@form-create/antd-designer
Version:
AntDesignVue版本Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
35 lines (32 loc) • 798 B
JavaScript
import {localeProps, makeTitleRule} from '../../utils';
const label = '标签';
const name = 'aTag';
export default {
menu: 'aide',
icon: 'icon-tag',
label,
name,
mask: true,
event: ['click', 'close'],
rule({t}) {
return {
type: name,
title: '',
children: [t('com.aTag.name')]
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [
...makeTitleRule(t),
{
type: 'input',
field: 'formCreateChild'
}, {
type: 'ColorInput', field: 'color'
}, {
type: 'switch', field: 'closable'
}, {
type: 'switch', field: 'bordered', value: true
}]);
}
};