form-tdesigner
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
45 lines (41 loc) • 1 kB
JavaScript
import {localeProps} from '../../utils';
const label = '间距';
const name = 'space';
export default {
menu: 'layout',
icon: 'icon-space',
label,
name,
rule() {
return {
type: 'div',
wrap: {
show: false
},
native: true,
style: {
width: '100%',
height: '20px',
},
children: []
};
},
props(_, {t}) {
return [
{
type: 'object',
field: 'formCreateStyle',
native: true,
props: {
rule: localeProps(t, name + '.props', [
{
type: 'input',
field: 'height',
title: 'height',
},
])
}
}
];
}
};