mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-17 07:13:01 +00:00
22 lines
624 B
TypeScript
22 lines
624 B
TypeScript
import React from 'react';
|
|
import { Button } from '@alifd/next';
|
|
import './index.scss';
|
|
import { PluginProps } from '@ali/lowcode-editor-core/lib/definitions';
|
|
|
|
const Save: React.FC<PluginProps> = (props): React.ReactElement => {
|
|
const handleClick = (): void => {
|
|
console.log('save data:', props.editor.designer.currentDocument.schema);
|
|
console.log('save data json:', JSON.stringify(props.editor.designer.currentDocument.schema));
|
|
};
|
|
|
|
return (
|
|
<div className="lowcode-plugin-save">
|
|
<Button type="primary" onClick={handleClick}>
|
|
保存
|
|
</Button>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Save;
|