fix(client): dynamic component
This commit is contained in:
parent
3ff16e70c0
commit
93d521b134
@ -17,8 +17,6 @@ export const multipleSelect: IField = {
|
|||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
mode: 'multiple',
|
mode: 'multiple',
|
||||||
},
|
},
|
||||||
'x-decorator': 'FormItem',
|
|
||||||
'x-designable-bar': 'Select.DesignableBar',
|
|
||||||
enum: [],
|
enum: [],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -14,8 +14,6 @@ export const password: IField = {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
// title,
|
// title,
|
||||||
'x-component': 'Password',
|
'x-component': 'Password',
|
||||||
'x-decorator': 'FormItem',
|
|
||||||
'x-designable-bar': 'Password.DesignableBar',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
|
@ -20,8 +20,6 @@ export const percent: IField = {
|
|||||||
step: '0',
|
step: '0',
|
||||||
addonAfter: '%',
|
addonAfter: '%',
|
||||||
},
|
},
|
||||||
'x-decorator': 'FormItem',
|
|
||||||
'x-designable-bar': 'InputNumber.DesignableBar',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
|
@ -15,9 +15,7 @@ export const phone: IField = {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
// title,
|
// title,
|
||||||
'x-component': 'Input',
|
'x-component': 'Input',
|
||||||
'x-decorator': 'FormItem',
|
|
||||||
'x-validator': 'phone',
|
'x-validator': 'phone',
|
||||||
'x-designable-bar': 'Input.DesignableBar',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
|
@ -29,6 +29,8 @@ export const DynamicComponent = (props) => {
|
|||||||
...props.schema,
|
...props.schema,
|
||||||
name: 'value',
|
name: 'value',
|
||||||
'x-read-pretty': false,
|
'x-read-pretty': false,
|
||||||
|
'x-validator': undefined,
|
||||||
|
'x-decorator': undefined,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user