form-create-designer
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
32 lines (29 loc) • 764 B
JavaScript
import {localeOptions, localeProps} from '../../utils';
const label = '分割线';
const name = 'elDivider';
export default {
menu: 'aide',
icon: 'icon-divider',
label,
name,
rule({t}) {
return {
type: name,
props: {},
children: [t('com.elDivider.name')],
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [{
type: 'input',
field: 'formCreateChild',
}, {
type: 'select',
field: 'contentPosition',
options: localeOptions(t, [{label: 'left', value: 'left'}, {label: 'right', value: 'right'}, {
label: 'center',
value: 'center'
}])
}]);
}
};