From 3eb90ffd3e874d27c81354c085e9d410ee1e731d Mon Sep 17 00:00:00 2001 From: qiusen Date: Mon, 23 Oct 2023 19:44:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(select):=20#2627=20#2628=20=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hooks/use-search-mode/src/index.ts | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/hooks/use-search-mode/src/index.ts b/packages/hooks/use-search-mode/src/index.ts index e4fdb32b8..14009d5ed 100644 --- a/packages/hooks/use-search-mode/src/index.ts +++ b/packages/hooks/use-search-mode/src/index.ts @@ -17,10 +17,10 @@ const initialStateInSearch = () => ({ * TODO: What is useSearchMode */ export const useSearchMode = ({ - searchable: searchableProp, - strategies, - keyword: keywordProp, - }: UseSearchModeProps) => { + searchable: searchableProp, + strategies, + keyword: keywordProp, +}: UseSearchModeProps) => { const [keyword, setKeyword] = useUncontrolledState('', keywordProp) // 搜索时的临时节点数据 @@ -183,13 +183,13 @@ export const useHighlightSearch = ({ data, flattedData, searchMode }: any) => { } export const useFilterSearch = ({ - enabled, - searchMode = 'filter', - data, - flattedData, - exclude, - fieldNames, - }: any) => { + enabled, + searchMode = 'filter', + data, + flattedData, + exclude, + fieldNames, +}: any) => { const excludeLatestRef = useLatestRef(exclude) const getKeyFields = useMemo(() => genKeyFields(fieldNames), [fieldNames])