-
Notifications
You must be signed in to change notification settings - Fork 482
feat: add full-functional post category select component for formkit #818
feat: add full-functional post category select component for formkit #818
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
有一个问题,目前已经有了叫做 categorySelect 的 FormKit 类型:https://docs.halo.run/developer-guide/form-schema#categoryselect 这个类型之前只用来查询和选择单个分类,那么这个新增的组件应该叫什么名字好呢? /cc @halo-dev/sig-halo-console |
categoryMultiSelect? |
我先尝试是否能够兼容以前的 categorySelect 单选,然后提供一个 multiple 参数来支持多选。 |
如果能直接在原来的 categorySelect 基础上通过参数的方式支持更多设置比如是否多选,那就更好了 |
tagSelect 已经支持:#817 |
/retitle feat: add full-functional post category select component for formkit ping @halo-dev/sig-halo-console |
ping @halo-dev/sig-halo-console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…select-for-formkit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guqing, JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
棒! |
…alo-dev/console#818) #### What type of PR is this? /kind feature #### What this PR does / why we need it: 添加功能更为全面的文章分类选择器,支持以下特性: 1. 按层级展示分类 2. 支持搜索 3. 选中结果支持显示层级 todo list: - [x] 样式整理 - [x] 支持创建新分类 #### Which issue(s) this PR fixes: Fixes halo-dev#2670 Fixes halo-dev#2485 #### Screenshots: <img width="832" alt="image" src="https://user-images.githubusercontent.com/21301288/211768419-087d9727-1468-41a1-868a-62d90eef9cca.png"> <img width="858" alt="image" src="https://user-images.githubusercontent.com/21301288/211768478-dcc70d79-127b-42b0-ae44-e48a6a22273a.png"> #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 重构 Console 端的文章分类选择器。 ```
What type of PR is this?
/kind feature
What this PR does / why we need it:
添加功能更为全面的文章分类选择器,支持以下特性:
todo list:
Which issue(s) this PR fixes:
Fixes halo-dev/halo#2670
Fixes halo-dev/halo#2485
Screenshots:
Special notes for your reviewer:
Does this PR introduce a user-facing change?