MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / render

Method render

xadmin-dashboard/src/editor/components/DashForm.js:20–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 }
19
20 render() {
21 const { cellKey, removeCell } = this.props
22
23 const schema = {
24 type: 'object',
25 properties: {
26 title: {
27 title: '标题',
28 type: 'string'
29 },
30 background: {
31 title: '背景',
32 type: 'string'
33 },
34 width: {
35 title: '宽',
36 type: 'string'
37 },
38 height: {
39 title: '高',
40 type: 'string'
41 },
42 layers: {
43 title: '层',
44 type: 'array',
45 items: {
46 type: 'object',
47 properties: {
48 mode: {
49 title: '布局形式',
50 type: 'string',
51 enum: [ '栅格布局', '绝对布局' ]
52 },
53 cols: {
54 title: '列数',
55 type: 'number'
56 },
57 yheight: {
58 title: '行高度',
59 type: 'number'
60 },
61 margin: {
62 title: '间距',
63 type: 'number'
64 },
65 verticalFree: {
66 title: '自由摆放',
67 type: 'boolean'
68 }
69 }
70 }
71 }
72 }
73 }
74
75 const FormLayout = (props) => {
76 const { children, invalid, handleSubmit, submitting, onClose, isCreate } = props
77 const icon = submitting ? 'spinner fa-spin' : 'floppy-o'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected