@form-create/arco-design
Version:
arco-design动态表单|form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports 5 UI frameworks, and supports the generation of any Vue components. Built-in 20 k
38 lines (36 loc) • 818 B
JavaScript
const UNDEF = undefined;
export default function getConfig() {
return {
form: {
layout: 'horizontal',
labelAlign: 'right',
labelColProps: {
span: 3
},
wrapperColProps: {
span: 21
}
},
row: {
gutter: 0,
},
submitBtn: {
disabled: false,
loading: false,
type: 'primary',
innerText: '提交',
show: true,
col: UNDEF,
click: UNDEF,
},
resetBtn: {
disabled: false,
loading: false,
type: 'secondary',
innerText: '重置',
show: false,
col: UNDEF,
click: UNDEF
},
};
}