fix(client): dynamic component

This commit is contained in:
chenos 2022-03-03 15:28:43 +08:00
parent 3ff16e70c0
commit 93d521b134
5 changed files with 2 additions and 8 deletions

View File

@ -17,8 +17,6 @@ export const multipleSelect: IField = {
'x-component-props': {
mode: 'multiple',
},
'x-decorator': 'FormItem',
'x-designable-bar': 'Select.DesignableBar',
enum: [],
},
},

View File

@ -14,8 +14,6 @@ export const password: IField = {
type: 'string',
// title,
'x-component': 'Password',
'x-decorator': 'FormItem',
'x-designable-bar': 'Password.DesignableBar',
},
},
properties: {

View File

@ -20,8 +20,6 @@ export const percent: IField = {
step: '0',
addonAfter: '%',
},
'x-decorator': 'FormItem',
'x-designable-bar': 'InputNumber.DesignableBar',
},
},
properties: {

View File

@ -15,9 +15,7 @@ export const phone: IField = {
type: 'string',
// title,
'x-component': 'Input',
'x-decorator': 'FormItem',
'x-validator': 'phone',
'x-designable-bar': 'Input.DesignableBar',
},
},
properties: {

View File

@ -29,6 +29,8 @@ export const DynamicComponent = (props) => {
...props.schema,
name: 'value',
'x-read-pretty': false,
'x-validator': undefined,
'x-decorator': undefined,
}}
/>
);