fix: m2o association field should support pattern configure (#3074)
* fix: m2o association field should support pattern configure * fix: setInitialValueundefined
This commit is contained in:
parent
ea136ab6bc
commit
b3dfc939f3
@ -139,7 +139,7 @@ export const useTableBlockProps = () => {
|
|||||||
if (!ctx?.service?.loading) {
|
if (!ctx?.service?.loading) {
|
||||||
field.value = [];
|
field.value = [];
|
||||||
field.value = ctx?.service?.data?.data;
|
field.value = ctx?.service?.data?.data;
|
||||||
field.setInitialValue(ctx?.service?.data?.data);
|
field?.setInitialValue(ctx?.service?.data?.data);
|
||||||
field.data = field.data || {};
|
field.data = field.data || {};
|
||||||
field.data.selectedRowKeys = ctx?.field?.data?.selectedRowKeys;
|
field.data.selectedRowKeys = ctx?.field?.data?.selectedRowKeys;
|
||||||
field.componentProps.pagination = field.componentProps.pagination || {};
|
field.componentProps.pagination = field.componentProps.pagination || {};
|
||||||
|
@ -584,7 +584,7 @@ FormItem.Designer = function Designer() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{form && !form?.readPretty && collectionField?.interface !== 'o2m' && !isPatternDisabled(fieldSchema) && (
|
{form && !form?.readPretty && !isPatternDisabled(fieldSchema) && (
|
||||||
<SchemaSettings.SelectItem
|
<SchemaSettings.SelectItem
|
||||||
key="pattern"
|
key="pattern"
|
||||||
title={t('Pattern')}
|
title={t('Pattern')}
|
||||||
|
Loading…
Reference in New Issue
Block a user