UNPKG

@dcp-designable/dn-components

Version:

设计期组件

122 lines 4.36 kB
/* * @Description: * @Version: 2.0 * @Autor: 李淑娜 * @Date: 2022-11-24 22:16:24 * @LastEditors: 李淑娜 * @LastEditTime: 2022-12-01 15:50:53 */ import { CommonLocale } from './common'; import { mergeSchema } from '@dcp-designable/utils'; export const FormItem = mergeSchema(CommonLocale, { 'zh-CN': { settings: { 'x-value': '默认值', // 'x-readOnly': '只读', 'x-inherit-disabled': '继承表单禁用', 'x-formKey': 'formKey', // 'x-disabled': '禁用', // 'title': '标签文本', 'tooltip': '提示信息', 'labelWidth': '宽度', 'x-BillCode': '编码配置', // 'x-event':"事件", 'x-tooltip': '提示文字', 'x-decorator-props': { colon: '是否有冒号', labelWidth: '标签宽度', style: { width: '宽度', position: '定位', }, layout: { title: '布局', dataSource: ['水平', '垂直'], }, }, 'x-component-props': { placeholder: '占位符', allowClear: '清空图标', prefix: '前缀', suffix: '后缀', // required: '必填', labelWrap: '位置', labelAlign: '对齐', label: { openLabelOptions: '开启标签选项', labelType: { title: '标签类型', dataSource: ['选择框', '复选框'], }, checkedValue: '标签选中值', uncheckedValue: '标签非选中值', labelValue: '标签默认值', // disabled: '标签禁用', }, extra: { labelWidth: '尾部拓展宽度', open: '开启尾部拓展', style: '尾部拓展css样式', }, }, }, }, 'en-US': { settings: { 'x-value': 'default', 'x-formKey': 'formKey', 'x-inherit-disabled': 'inherit disabled', // 'x-disabled': 'disabled', // 'x-readOnly': 'readOnly', // 'x-hidden':'hide', // 'x-event':"event", 'base-group': 'Base', 'form-group': 'Form', 'label-group': 'Label', 'event-group': 'Event', 'senior-group': 'Senior', 'validator-group': 'Validator', 'style-group': 'Style', 'x-BillCode': 'CodeConfig', 'x-tooltip': 'ToolTip', 'x-decorator-props': { colon: 'Colon', labelWidth: 'Label Width', style: { width: 'Width', }, layout: { title: 'layout', dataSource: ['horizontal', 'vertical'], }, }, 'x-component-props': { title: '标签文本', placeholder: 'placeholder', allowClear: 'allowClear', prefix: 'prefix', suffix: 'suffix', // required: 'required', labelWrap: 'labelWrap', labelAlign: 'labelAlign', label: { openLabelOptions: 'Open Label Options', labelType: { title: 'Label Type', dataSource: ['Select', 'Checkbox'], }, checkedValue: 'Label TrueValue', uncheckedValue: 'Label FalseValue', labelValue: 'Label Default Value', // disabled: 'Label Disabled', }, extra: { labelWidth: 'labelWidth', open: 'oepn', style: 'style', }, }, }, }, }); //# sourceMappingURL=FormItem.js.map