From f7af0c4445fb677bd708dadd946ee244cf68aff9 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Wed, 26 Mar 2025 14:39:58 +0800 Subject: [PATCH] fix: ensure ellipsis property is correctly set in schema component props (#6520) * fix: ensure ellipsis property is correctly set in schema component props * fix: replace direct assignment with lodash set for ellipsis property in schema --- .../modules/fields/component/Input/inputComponentSettings.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/modules/fields/component/Input/inputComponentSettings.tsx b/packages/core/client/src/modules/fields/component/Input/inputComponentSettings.tsx index 8f53455a71..d86283a3f2 100644 --- a/packages/core/client/src/modules/fields/component/Input/inputComponentSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Input/inputComponentSettings.tsx @@ -8,6 +8,7 @@ */ import { useField, useFieldSchema } from '@formily/react'; +import _ from 'lodash'; import { useTranslation } from 'react-i18next'; import { useBlockContext, useOpenModeContext } from '../../../../'; import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings'; @@ -45,11 +46,12 @@ export const ellipsisSettingsItem: SchemaSettingsItemType = { tableFieldInstanceList.forEach((fieldInstance) => { fieldInstance.componentProps.ellipsis = checked; }); - schema['x-component-props']['ellipsis'] = checked; } else { formField.componentProps.ellipsis = checked; } + _.set(schema, 'x-component-props.ellipsis', checked); + await dn.emit('patch', { schema: { 'x-uid': schema['x-uid'],