-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ feat(custom): pc端搜索提供搜索建议,但是并不完善,up列表需要更新
- Loading branch information
master1lan
committed
Mar 4, 2023
1 parent
7572267
commit 6911c57
Showing
13 changed files
with
471 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import { createContext, useContext } from "react"; | ||
| type InputWrapperContextType = { | ||
| anchorEl: HTMLElement | null; | ||
| }; | ||
| export const InputWrapperContext = createContext<InputWrapperContextType>({ | ||
| anchorEl: null, | ||
| }); | ||
| export const useGetInputWrapper = () => useContext(InputWrapperContext); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { phoneMoreNameAndFaceUrls } from "../phone/url"; | ||
|
|
||
| export type renderSuggestItemLists = { label: string; value: string }[]; | ||
|
|
||
| //tag列 | ||
| export const pcSuggestTagLists: renderSuggestItemLists = [ | ||
| "莞儿睡不醒", | ||
| "露早GOGO", | ||
| "米诺高分少女", | ||
| "虞莫MOMO", | ||
| "柚恩不加糖", | ||
| "EOE组合", | ||
| "早莞在一起", | ||
| "莞柚引力", | ||
| "一莞米", | ||
| "虞舟唱莞", | ||
| "早柚", | ||
| "西米露", | ||
| "早有虞谋", | ||
| "米哈柚", | ||
| "虞香柚丝", | ||
| "米虞说的道理", | ||
| "虞米之乡", | ||
| ].map((item) => ({ label: item, value: item })); | ||
|
|
||
| //up列 | ||
| export const pcSuggestNameLists: renderSuggestItemLists = | ||
| phoneMoreNameAndFaceUrls; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.