UNPKG

@form-create/antd-designer

Version:

AntDesignVue版本Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。

47 lines (44 loc) 1.11 kB
import uniqueId from '@form-create/utils/lib/unique'; import {localeProps} from '../../utils'; const label = '滑块'; const name = 'slider'; export default { menu: 'main', icon: 'icon-slider', label, name, input: true, event: ['change'], validate: ['number', 'array'], rule({t}) { return { type: name, field: uniqueId(), title: t('com.slider.name'), info: '', $required: false, props: {}, }; }, props(_, {t}) { return localeProps(t, name + '.props', [{type: 'switch', field: 'disabled'}, { type: 'switch', field: 'range' }, { type: 'inputNumber', field: 'min', props: {min: 0} }, { type: 'inputNumber', field: 'max', props: {min: 0}, }, { type: 'inputNumber', field: 'step', props: {min: 0}, }, {type: 'switch', field: 'dots'}, { type: 'switch', field: 'vertical' }]); } };