in packages/lowcode-preset-plugin/src/plugins/index.tsx [148:181]
async init() {
const { skeleton, hotkey } = ctx;
skeleton.add({
name: 'resetSchema',
area: 'topArea',
type: 'Widget',
props: {
align: 'right',
},
content: (
<Button type="secondary" onClick={resetSchema}>
重置
</Button>
),
});
skeleton.add({
name: 'saveSample',
area: 'topArea',
type: 'Widget',
props: {
align: 'right',
},
content: (
<Button type="primary" onClick={saveSchema}>
保存
</Button>
),
});
hotkey.bind('command+s', (e) => {
e.preventDefault();
// saveSchema();
});
},