UNPKG

@form-create/vant-designer

Version:

基于Vant的移动端低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。

50 lines (47 loc) 1.19 kB
import {localeOptions, localeProps} from '../../utils'; const label = '分割线'; const name = 'vanDivider'; export default { menu: 'aide', icon: 'icon-divider', label, name, rule({t}) { return { type: name, props: {}, children: [t('com.' + name + '.name')], }; }, props(_, {t}) { return localeProps(t, name + '.props', [ { type: 'input', field: 'formCreateChild', }, { type: 'switch', field: 'dashed', }, { type: 'select', field: 'contentPosition', options: localeOptions(t, [ { label: 'left', value: 'left', }, { label: 'center', value: 'center', }, { label: 'right', value: 'right', } ]) }, { type: 'switch', field: 'vertical', } ]); } };