form-tdesigner
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
36 lines (33 loc) • 831 B
JavaScript
import {localeProps} from '../../utils';
const label = '表格布局';
const name = 'fcTable';
export default {
menu: 'layout',
icon: 'icon-table',
label,
name,
inside: false,
mask: false,
rule() {
return {
type: name,
props: {
rule: {
row: 3,
col: 4,
style: {},
class: {},
layout: []
}
},
children: []
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [
{type: 'switch', field: 'border', value: true},
{type: 'ColorInput', field: 'borderColor'},
{type: 'input', field: 'borderWidth'},
]);
}
};