amis2/packages/amis-editor/examples/App.tsx

22 lines
754 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import * as React from 'react';
import {AlertComponent, ToastComponent, ContextMenu} from 'amis';
// @ts-ignore
import AMisSchemaEditor from './Editor';
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 </div>
</div>
<AMisSchemaEditor theme={curTheme} />
<ToastComponent theme={curTheme} />
<AlertComponent theme={curTheme} />
<ContextMenu theme={curTheme} />
</div>
);
}
}