vendor: amis 6.13.0 base (fork root)
This commit is contained in:
25
packages/amis-editor/examples/App.tsx
Normal file
25
packages/amis-editor/examples/App.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as React from 'react';
|
||||
import {AlertComponent, ToastComponent, ContextMenu} from 'amis';
|
||||
// @ts-ignore
|
||||
import AMisSchemaEditor from './Editor';
|
||||
import {Link} from 'react-router-dom';
|
||||
export default class App extends React.PureComponent {
|
||||
render() {
|
||||
// 备注: 如果需要改用antd主题,还需要将index.html换成index-antd.html
|
||||
const curTheme = 'cxd'; // 默认使用cxd主题
|
||||
return (
|
||||
<div className="Editor-Demo">
|
||||
<div id="headerBar" className="Editor-header">
|
||||
<div className="Editor-title">
|
||||
amis 可视化编辑器
|
||||
<Link to="/basic">面板模版</Link>
|
||||
</div>
|
||||
</div>
|
||||
<AMisSchemaEditor theme={curTheme} />
|
||||
<ToastComponent theme={curTheme} />
|
||||
<AlertComponent theme={curTheme} />
|
||||
<ContextMenu theme={curTheme} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user