console
console copied to clipboard
feat: add some formkit custom input for the system core extensions
What type of PR is this?
/kind feature /milestone 2.0
What this PR does / why we need it:
Ref https://github.com/halo-dev/halo/issues/2526#issuecomment-1273094868
FormKit 文档:https://formkit.com/advanced/custom-inputs
通过扩展 FormKit 的自定义 Input,提供系统常用资源的选择组件。
目前提供如下类型:
- menuCheckbox
- menuRadio
- menuItemSelect
- postSelect
- categorySelect
- tagSelect
- singlePageSelect
- categoryCheckbox
- tagCheckbox
FormKit 组件的使用方式:
<FormKit
placeholder="请选择文章"
label="文章"
type="postSelect"
validation="required"
/>
FormKit Schema 的使用方式:
- $formkit: menuRadio
name: menus
label: 底部菜单组
Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/2526
Screenshots:
Special notes for your reviewer:
/cc @halo-dev/sig-halo-console
测试方式:
- 检查后台文章设置弹框的选择分类和标签功能是否正常。
- 检查后台添加菜单项的功能是否正常。
- 使用主题或者插件定义 settings.yaml,使用上述任意 input 类型,检查得到的效果和值是否正常。
Does this PR introduce a user-facing change?
通过扩展 FormKit 的自定义 Input,提供系统常用资源的选择组件。
@ruibaby is attempting to deploy a commit to the halo-dev Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
halo-admin-next | ✅ Ready (Inspect) | Visit Preview | Oct 17, 2022 at 7:59AM (UTC) |
halo-admin-ui | ✅ Ready (Inspect) | Visit Preview | Oct 17, 2022 at 7:59AM (UTC) |
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: JohnNiang
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [JohnNiang]
Approvers can indicate their approval by writing /approve
in a comment
Approvers can cancel approval by writing /approve cancel
in a comment