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