mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +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 按钮 */
|
/** 如果为 true 则说明该按钮是树表格的 Add child 按钮 */
|
||||||
addChild,
|
addChild,
|
||||||
onMouseEnter,
|
onMouseEnter,
|
||||||
|
refreshDataBlockRequest,
|
||||||
...others
|
...others
|
||||||
} = useProps(props); // 新版 UISchema(1.0 之后)中已经废弃了 useProps,这里之所以继续保留是为了兼容旧版的 UISchema
|
} = useProps(props); // 新版 UISchema(1.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']]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user