fix(client): fix waring props (#4562)

This commit is contained in:
Junyi 2024-06-05 14:49:49 +08:00 committed by GitHub
parent 8cc5ad2abf
commit d7866a6b51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,7 @@ export const Action: ComposedAction = withDynamicSchemaProps(
/** 如果为 true 则说明该按钮是树表格的 Add child 按钮 */ /** 如果为 true 则说明该按钮是树表格的 Add child 按钮 */
addChild, addChild,
onMouseEnter, onMouseEnter,
refreshDataBlockRequest,
...others ...others
} = useProps(props); // 新版 UISchema1.0 之后)中已经废弃了 useProps这里之所以继续保留是为了兼容旧版的 UISchema } = useProps(props); // 新版 UISchema1.0 之后)中已经废弃了 useProps这里之所以继续保留是为了兼容旧版的 UISchema
const aclCtx = useACLActionParamsContext(); const aclCtx = useACLActionParamsContext();
@ -88,7 +89,6 @@ export const Action: ComposedAction = withDynamicSchemaProps(
const designerProps = fieldSchema['x-toolbar-props'] || fieldSchema['x-designer-props']; const designerProps = fieldSchema['x-toolbar-props'] || fieldSchema['x-designer-props'];
const openMode = fieldSchema?.['x-component-props']?.['openMode']; const openMode = fieldSchema?.['x-component-props']?.['openMode'];
const openSize = fieldSchema?.['x-component-props']?.['openSize']; const openSize = fieldSchema?.['x-component-props']?.['openSize'];
const refreshDataBlockRequest = fieldSchema?.['x-component-props']?.['refreshDataBlockRequest'];
const disabled = form.disabled || field.disabled || field.data?.disabled || propsDisabled; const disabled = form.disabled || field.disabled || field.data?.disabled || propsDisabled;
const linkageRules = useMemo(() => fieldSchema?.['x-linkage-rules'] || [], [fieldSchema?.['x-linkage-rules']]); const linkageRules = useMemo(() => fieldSchema?.['x-linkage-rules'] || [], [fieldSchema?.['x-linkage-rules']]);