@form-create/tdesign
Version:
tdesign动态表单|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 kinds
32 lines (31 loc) • 726 B
JavaScript
export default function getConfig() {
return {
form: {
layout: 'vertical',
labelAlign: 'right',
labelWidth: '125px',
},
row: {
show: true,
gutter: 0,
},
submitBtn: {
theme: 'primary',
loading: false,
disabled: false,
innerText: '提交',
show: true,
col: undefined,
click: undefined,
},
resetBtn: {
theme: 'default',
loading: false,
disabled: false,
innerText: '重置',
show: false,
col: undefined,
click: undefined,
},
};
}