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': { 'x-component-props': {
mode: 'multiple', mode: 'multiple',
}, },
'x-decorator': 'FormItem',
'x-designable-bar': 'Select.DesignableBar',
enum: [], enum: [],
}, },
}, },

View File

@ -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: {

View File

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

View File

@ -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: {

View File

@ -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,
}} }}
/> />
); );