export default [ { "title": "高级表单容器", "screenshot": "https://alifd.alicdn.com/fusion-cool/icons/icon-antd/form-1.png", "schema": { "componentName": "GkProForm", "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": "basicPro" }, // "children": [ // { // "componentName": "Form.Item", // "props": { // "wrapperCol": { // "offset": 6 // } // }, // "children": [ // { // "componentName": "Button", // "props": { // "type": "primary", // "children": "提交", // "htmlType": "submit" // } // }, // { // "componentName": "Button", // "props": { // "style": { // "marginLeft": 20 // }, // "children": "取消" // } // } // ] // } // ] } } ]