Skip to content

Commit

Permalink
feat(select): #2627 #2628 格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
qiusen committed Oct 23, 2023
1 parent 4f7c8c9 commit 3eb90ff
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/hooks/use-search-mode/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

// 搜索时的临时节点数据
Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit 3eb90ff

Please sign in to comment.