commit | 7d3c4a699dfc07d2e069bf1ea8c3fc6ebf188b37 | [log] [tgz] |
---|---|---|
author | 青湛 <0x1304570@gmail.com> | Tue Jul 25 22:00:09 2023 +1200 |
committer | GitHub <noreply@github.com> | Tue Jul 25 18:00:09 2023 +0800 |
tree | 63c7b456de4bc6844b225fc910bbc70e1f6ab444 | |
parent | 5896f41fae1c066538a4d4f73f4e4126c682d435 [diff] |
feat(config-ui): add full name in data scope search (#5742)
diff --git a/config-ui/src/plugins/components/data-scope-search/index.tsx b/config-ui/src/plugins/components/data-scope-search/index.tsx index faa8394..ac7dc2f 100644 --- a/config-ui/src/plugins/components/data-scope-search/index.tsx +++ b/config-ui/src/plugins/components/data-scope-search/index.tsx
@@ -59,7 +59,7 @@ const getKey = (it: ItemType) => it.id; - const getName = (it: ItemType) => it.name; + const getName = (it: ItemType) => it.fullName; const handleChangeItems = (selectedItems: ItemType[]) => onChangeItems?.(selectedItems.map((it) => it.data));
diff --git a/config-ui/src/plugins/components/data-scope-search/types.ts b/config-ui/src/plugins/components/data-scope-search/types.ts index 42d7a30..c3f6318 100644 --- a/config-ui/src/plugins/components/data-scope-search/types.ts +++ b/config-ui/src/plugins/components/data-scope-search/types.ts
@@ -19,5 +19,6 @@ export type ItemType = { id: ID; name: string; + fullName: string; data: any; };