Ryan Wang
|
e8b6f5ccb9
|
feat: add global search support (#623)
#### What type of PR is this?
/kind feature
/milestone 2.0
#### What this PR does / why we need it:
添加全局搜索框支持。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/1924
#### Screenshots:
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/192448624-fbef4e58-7c0e-4c24-b29e-4dd6eba9fa4f.png">
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/192448660-369e19a4-747d-45ad-9056-162f5c8e01be.png">
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/192449009-6b856d82-e7a6-4e93-b2fa-d0d0c7a58ebf.png">
#### Special notes for your reviewer:
/cc @halo-dev/sig-halo-console
测试方式:
1. 本地 Console 切换到当前 PR 的分支,需要 `pnpm install && pnpm build:packages`
2. 使用 Ctrl + K(Windows/Linux) 或者 Command + K(macOS)调起搜索框
3. 可以使用键盘上/下键(或者 Ctrl + J / Ctrl + K)选择搜索条目,回车键确认选择。
#### Does this PR introduce a user-facing change?
```release-note
后台添加全局搜索的支持
```
|
2022-09-28 06:50:16 +00:00 |