diff --git a/packages/core/client/src/locale/en_US.json b/packages/core/client/src/locale/en_US.json index cce66dcef..5bdfbe526 100644 --- a/packages/core/client/src/locale/en_US.json +++ b/packages/core/client/src/locale/en_US.json @@ -791,6 +791,7 @@ "Restart": "Restart", "Restart application": "Restart application", "Cascade Select": "Cascade Select", + "Cascader": "Cascader", "Execute": "Execute", "Please use a valid SELECT or WITH AS statement": "Please use a valid SELECT or WITH AS statement", "Please confirm the SQL statement first": "Please confirm the SQL statement first", diff --git a/packages/core/client/src/locale/zh-CN.json b/packages/core/client/src/locale/zh-CN.json index 440242701..e7ca35eee 100644 --- a/packages/core/client/src/locale/zh-CN.json +++ b/packages/core/client/src/locale/zh-CN.json @@ -850,6 +850,7 @@ "UnSelect all": "取消全选", "Determine whether a record exists by the following fields": "通过以下字段判断记录是否存在", "Cascade Select": "级联选择", + "Cascader": "级联选择", "Execute": "执行", "Please use a valid SELECT or WITH AS statement": "请使用有效的 SELECT 或 WITH AS 语句", "Please confirm the SQL statement first": "请先确认 SQL 语句", diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalCascader.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalCascader.tsx index 4a6d0dfc0..10834f2c5 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalCascader.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalCascader.tsx @@ -125,8 +125,9 @@ const Cascade = connect((props) => { } }; - const filter = (inputValue: string, path) => - path.some((option) => fuzzysearch(inputValue, (option.label as string) ?? '')); + const filter = (inputValue: string, path) => { + return fuzzysearch(inputValue, path.map((option) => option.label || '').join('')); + }; return (