diff --git a/packages/core/client/src/schema-component/antd/appends-tree-select/AppendsTreeSelect.tsx b/packages/core/client/src/schema-component/antd/appends-tree-select/AppendsTreeSelect.tsx index 9d240d7a2..812cf48de 100644 --- a/packages/core/client/src/schema-component/antd/appends-tree-select/AppendsTreeSelect.tsx +++ b/packages/core/client/src/schema-component/antd/appends-tree-select/AppendsTreeSelect.tsx @@ -12,7 +12,7 @@ export type AppendsTreeSelectProps = { multiple?: boolean; filter?(field): boolean; collection?: string; - useCollection_deprecated?(props: Pick): string; + useCollection?(props: Pick): string; rootOption?: { label: string; value: string; @@ -78,7 +78,7 @@ export const AppendsTreeSelect: React.FC { if (props.multiple) { @@ -99,7 +99,7 @@ export const AppendsTreeSelect: React.FC { - if (propsLoadData !== null) { + if (propsLoadData != null) { return propsLoadData(option); } if (!option.isLeaf && option.loadChildren) { diff --git a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts index 731800c23..8013a5632 100644 --- a/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts +++ b/packages/plugins/@nocobase/plugin-snapshot-field/src/client/interface.ts @@ -176,7 +176,7 @@ export class SnapshotFieldInterface extends CollectionFieldInterface { 'x-component': 'AppendsTreeSelect', 'x-component-props': { multiple: true, - useCollection_deprecated: useRecordCollection, + useCollection: useRecordCollection, }, 'x-reactions': [ { diff --git a/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/client/FormTrigger.tsx b/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/client/FormTrigger.tsx index 333dd045e..c4c244afb 100644 --- a/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/client/FormTrigger.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-form-trigger/src/client/FormTrigger.tsx @@ -44,7 +44,7 @@ export default class extends Trigger { 'x-component-props': { title: 'Preload associations', multiple: true, - useCollection_deprecated() { + useCollection() { const { values } = useForm(); return values?.collection; }, diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts index 7edf15680..0a0e92d4a 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/collection.ts @@ -174,7 +174,7 @@ export const appends = { 'x-component-props': { title: 'Preload associations', multiple: true, - useCollection_deprecated() { + useCollection() { const { values } = useForm(); return values?.collection; },