Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【分类搜索组件】CategorySearch #48910

Closed
HenryLee951020 opened this issue May 14, 2024 · 8 comments
Closed

【分类搜索组件】CategorySearch #48910

HenryLee951020 opened this issue May 14, 2024 · 8 comments

Comments

@HenryLee951020
Copy link

What problem does this feature solve?

争对表单项数量过多时占用页面区域时
可参考:https://devui.design/components/zh-cn/category-search/demo

What does the proposed API look like?

searchConfig = [
{
label: '搜索项1',
key: 'filter1',
type: 'select',
options: [
{ label: '选项1', value: '1' },
{ label: '选项2', value: '2' },
],
},
{
label: '搜索项2',
key: 'filter2',
},
],
}

@afc163
Copy link
Member

afc163 commented May 14, 2024

@HenryLee951020
Copy link
Author

https://procomponents.ant.design/components/query-filter#queryfilter,lightfilter-demo-light-filter看下是否满足您的需求。

我在个人项目中尝试使用Popover、Dropdown、Tag等组件组合的方式去封装 但是存在诸多问题 所以想看看这边有没有这种组件
SearchBox

这个组件在“腾讯云”的项目页也有使用
image

我将尝试LightFilter组件的二次封装

@crazyair
Copy link
Member

https://procomponents.ant.design/components/query-filter#queryfilter,lightfilter-demo-light-filter 看下是否符合你的需求。

随便一试都是 bug

iShot_2024-05-14_10.41.54.mp4

@afc163
Copy link
Member

afc163 commented May 14, 2024

@HenryLee951020 你看下如何呢?

@HenryLee951020
Copy link
Author

@HenryLee951020你看下如何呢?

我在尝试将LightFilter内嵌到一个search box中 看看能否达到以上提及的效果
https://devui.design/components/zh-cn/category-search/demo#auto-scroll

@HenryLee951020
Copy link
Author

@HenryLee951020 你看下如何呢?

我在项目中直接使用LightFilter的示例代码报错了(.objectToMap is not a function)
image
image

@MadCcc
Copy link
Member

MadCcc commented May 15, 2024

这个业务属性太强了点,看看 Cascader 是不是就符合需求了

Copy link
Contributor

Since the issue was labeled with needs-more-info, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.

由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants