form-tdesigner
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
30 lines (27 loc) • 678 B
JavaScript
import {localeProps} from '../../utils';
const label = '选项卡';
const name = 'tTabPanel';
export default {
label,
name,
inside: true,
drag: true,
dragBtn: false,
mask: false,
rule({t}) {
return {
type: 't-tab-panel',
props: {label: t('com.elTabPane.name')},
children: []
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [{type: 'input', field: 'label'}, {
type: 'switch',
field: 'disabled'
}, {type: 'input', field: 'name'}, {
type: 'switch',
field: 'lazy'
}]);
}
};