fix: fix DatePicker can't use problem

This commit is contained in:
Rairn 2023-03-14 18:05:10 +08:00
parent e86e40b93a
commit 8b205ec8b0

View File

@ -84,9 +84,7 @@ export const useTableColumnInitializerFields = () => {
'x-collection-field': `${name}.${field.name}`,
'x-component': 'CollectionField',
'x-read-pretty': true,
'x-component-props': {
mode: 'links',
},
'x-component-props': {},
};
// interfaceConfig?.schemaInitialize?.(schema, { field, readPretty: true, block: 'Table' });
return {
@ -210,9 +208,7 @@ export const useFormItemInitializerFields = (options?: any) => {
'x-component': field.interface === 'o2m' && !snapshot ? 'TableField' : 'CollectionField',
'x-decorator': 'FormItem',
'x-collection-field': `${name}.${field.name}`,
'x-component-props': {
mode: 'links',
},
'x-component-props': {},
'x-read-pretty': field?.uiSchema?.['x-read-pretty'],
};
// interfaceConfig?.schemaInitialize?.(schema, { field, block: 'Form', readPretty: form.readPretty });