|
|
@@ -40,13 +40,13 @@ const EnumParam = () => {
|
|
|
'x-reactions':
|
|
|
'{{(field)=>field.title = field.value && (field.value.text) || field.title}}',
|
|
|
properties: {
|
|
|
- text: {
|
|
|
+ value: {
|
|
|
type: 'string',
|
|
|
- title: 'Text',
|
|
|
+ title: 'Value',
|
|
|
'x-decorator': 'FormItem',
|
|
|
'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
- placeholder: '标识',
|
|
|
+ placeholder: '对该枚举项的描述',
|
|
|
},
|
|
|
'x-validator': [
|
|
|
{
|
|
|
@@ -55,17 +55,17 @@ const EnumParam = () => {
|
|
|
},
|
|
|
{
|
|
|
required: true,
|
|
|
- message: '请输入Text',
|
|
|
+ message: '请输入Value',
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
- value: {
|
|
|
+ text: {
|
|
|
type: 'string',
|
|
|
- title: 'Value',
|
|
|
+ title: 'Text',
|
|
|
'x-decorator': 'FormItem',
|
|
|
'x-component': 'Input',
|
|
|
'x-component-props': {
|
|
|
- placeholder: '对该枚举项的描述',
|
|
|
+ placeholder: '请输入Text',
|
|
|
},
|
|
|
'x-validator': [
|
|
|
{
|
|
|
@@ -74,7 +74,7 @@ const EnumParam = () => {
|
|
|
},
|
|
|
{
|
|
|
required: true,
|
|
|
- message: '请输入Value',
|
|
|
+ message: '请输入Text',
|
|
|
},
|
|
|
],
|
|
|
},
|