@form-create/antd-designer
Version:
AntDesignVue版本Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
29 lines (26 loc) • 597 B
JavaScript
import {localeProps} from '../../utils';
const label = '选项卡';
const name = 'aTabPane';
export default {
label,
name,
inside: true,
drag: true,
dragBtn: false,
mask: false,
rule({t}) {
return {
type: name,
props: {
tab: t('com.aTabPane.name'),
},
children: []
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [{type: 'input', field: 'tab'}, {
type: 'switch',
field: 'disabled'
}, {type: 'input', field: 'key'}]);
}
};