UNPKG

@ovine/craft

Version:
46 lines (40 loc) 856 B
import { observer } from 'mobx-react' import React from 'react' import { Amis } from '@core/components/amis/schema' import Indicator from '../indicator' import Nav from '../nav' import Tree from '../tree' import { StyledPage } from './styled' export default observer(() => { const schema = { type: 'container', body: [ { type: 'collapse', title: '容器模版', body: { component: Indicator, }, }, { type: 'collapse', title: '可编辑元素', body: { component: () => <Nav />, }, }, { type: 'collapse', title: '节点导航', body: { component: (props) => <Tree {...props} />, }, }, ], } return ( <StyledPage> <Amis schema={schema} /> </StyledPage> ) })