@form-create/vant-designer
Version:
基于Vant的移动端低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
49 lines (46 loc) • 1.04 kB
JavaScript
import {localeProps} from '../../utils';
const name = 'vanCell';
export default {
name,
label: '单元格子',
dragBtn: false,
rule({t}) {
return {
type: name,
props: {
title: t('props.title'),
value: t('props.content'),
}
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [
{
type: 'input',
field: 'title',
}, {
type: 'input',
field: 'value',
}, {
type: 'input',
field: 'label',
},
{
type: 'input',
field: 'icon',
},
{
type: 'input',
field: 'url',
},
{
type: 'switch',
field: 'isLink',
},
{
type: 'switch',
field: 'center',
}
]);
}
};