UNPKG

form-tdesigner

Version:

好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。

38 lines (35 loc) 753 B
import { localeOptions, localeProps } from '../../utils'; const label = '分割线'; const name = 'tDivider'; export default { menu: 'aide', icon: 'icon-divider', label, name, rule({ t }) { return { type: name, props: {}, children: [t('com.tDivider.name')], }; }, props(_, { t }) { return localeProps(t, name + '.props', [ { type: 'input', field: 'formCreateChild', }, { type: 'select', field: 'layout', options: localeOptions(t, [ { label: 'horizontal', value: 'horizontal' }, { label: 'vertical', value: 'vertical', }, ]), }, ]); }, };