form-tdesigner
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
44 lines (41 loc) • 942 B
JavaScript
import {localeProps} from '../../utils';
const name = 'tableFormColumn';
export default {
icon: 'icon-cell',
name,
aide: true,
drag: true,
dragBtn: false,
mask: false,
style: false,
rule({t}) {
return {
type: name,
props: {
label: t('com.tableFormColumn.label'),
width: 'auto'
},
children: []
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [
{
type: 'input',
field: 'label',
},
{
type: 'switch',
field: 'required',
},
{
type: 'input',
field: 'width',
},
{
type: 'ColorInput',
field: 'color',
}
]);
}
};