UNPKG

@ovine/craft

Version:
38 lines (37 loc) 1.12 kB
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: () => React.createElement(Nav, null), }, }, { type: 'collapse', title: '节点导航', body: { component: (props) => React.createElement(Tree, Object.assign({}, props)), }, }, ], }; return (React.createElement(StyledPage, null, React.createElement(Amis, { schema: schema }))); });