mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix(client): fix waring props (#4562)
This commit is contained in:
parent
8cc5ad2abf
commit
d7866a6b51
@ -69,6 +69,7 @@ export const Action: ComposedAction = withDynamicSchemaProps(
|
||||
/** 如果为 true 则说明该按钮是树表格的 Add child 按钮 */
|
||||
addChild,
|
||||
onMouseEnter,
|
||||
refreshDataBlockRequest,
|
||||
...others
|
||||
} = useProps(props); // 新版 UISchema(1.0 之后)中已经废弃了 useProps,这里之所以继续保留是为了兼容旧版的 UISchema
|
||||
const aclCtx = useACLActionParamsContext();
|
||||
@ -88,7 +89,6 @@ export const Action: ComposedAction = withDynamicSchemaProps(
|
||||
const designerProps = fieldSchema['x-toolbar-props'] || fieldSchema['x-designer-props'];
|
||||
const openMode = fieldSchema?.['x-component-props']?.['openMode'];
|
||||
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 linkageRules = useMemo(() => fieldSchema?.['x-linkage-rules'] || [], [fieldSchema?.['x-linkage-rules']]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user