export default [ { "title": "表单容器", "screenshot": "https://alifd.alicdn.com/fusion-cool/icons/icon-antd/form-1.png", "schema": { "componentName": "Form", "props": { "labelCol": { "span": 6 }, "wrapperCol": { "span": 14 }, "onValuesChange": { "type": "JSFunction", "value": "function onValuesChange(changedValues, allValues) {\n console.log('onValuesChange', changedValues, allValues);\n}" }, "onFinish": { "type": "JSFunction", "value": "function onFinish(values) {\n console.log('onFinish', values);\n}" }, "onFinishFailed": { "type": "JSFunction", "value": "function onFinishFailed({ values, errorFields, outOfDate }) {\n console.log('onFinishFailed', values, errorFields, outOfDate);\n}" }, "name": "basic" }, "children": [ { "componentName": "Form.Item", "props": { "label": "表单项", "labelAlign": "right", "colon": true, "required": true, "noStyle": false, "valuePropName": "value", "name": "a", "requiredobj": { "required": true, "message": "必填" }, "typeobj": { "type": null, "message": null }, "lenobj": { "max": null, "min": null, "message": null }, "patternobj": { "pattern": null, "message": null } }, "children": [ { "componentName": "Input", "props": { "placeholder": "", "bordered": true, "disabled": false, "size": "middle" } } ] } ] } } ]