form-tdesigner
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
31 lines (28 loc) • 686 B
JavaScript
import uniqueId from '@form-create/utils/lib/unique';
import {localeProps} from '../../utils';
const label = '富文本框';
const name = 'fcEditor';
export default {
menu: 'main',
icon: 'icon-editor',
label,
name,
event: ['change'],
validate: ['string'],
rule({t}) {
return {
type: name,
field: uniqueId(),
title: t('com.fcEditor.name'),
info: '',
$required: false,
props: {},
};
},
props(_, {t}) {
return localeProps(t, name + '.props', [{
type: 'switch',
field: 'disabled'
}]);
}
};