/* * @Author: wenrongyun wenrongyun@benlaixian.onaliyun.com * @Date: 2022-05-17 17:35:11 * @LastEditors: wenrongyun wenrongyun@benlaixian.onaliyun.com * @LastEditTime: 2022-05-17 22:28:32 * @FilePath: /lowcode-materials/lowcode/pro-form/snippets.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { uuid } from "../_utils/utils"; export default [ { title: '提交表单', screenshot: require('./__screenshots__/proform.svg'), schema: { componentName: 'BLProForm', props: { getState:{ "type": "JSFunction", "value": "function(stateName ){ " + "return stateName.split('.').length == 2 ? this.state[stateName.split('.')[0]][stateName.split('.')[1]] :this.state[stateName]}" }, setState:{ "type":"JSFunction", "value":"function (setName,setValue){ this.setState({[setName]:setValue})}" } }, children: [ { componentName: 'BLProFormInput', props: { formItemProps: { primaryKey: uuid(), label: '表单项', size: 'medium', device: 'desktop', fullWidth: true, }, placeholder: '请输入', }, } ], }, }, ];