mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:57:20 +00:00
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) {
|
||||
field.value = [];
|
||||
field.value = ctx?.service?.data?.data;
|
||||
field.setInitialValue(ctx?.service?.data?.data);
|
||||
field?.setInitialValue(ctx?.service?.data?.data);
|
||||
field.data = field.data || {};
|
||||
field.data.selectedRowKeys = ctx?.field?.data?.selectedRowKeys;
|
||||
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
|
||||
key="pattern"
|
||||
title={t('Pattern')}
|
||||
|
Loading…
Reference in New Issue
Block a user