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

期望 FormKit 的 list 输入框能支持动态添加元素 #6098

Closed
ruibaby opened this issue Jun 18, 2024 · 2 comments · Fixed by #6146
Closed

期望 FormKit 的 list 输入框能支持动态添加元素 #6098

ruibaby opened this issue Jun 18, 2024 · 2 comments · Fixed by #6146
Labels
area/ui Issues or PRs related to the Halo UI kind/feature Categorizes issue or PR as related to a new feature.
Milestone

Comments

@ruibaby
Copy link
Member

ruibaby commented Jun 18, 2024

你当前使用的版本

2.16.3

描述一下此特性

目前我们在表单定义中支持了 Repeater,但只能定义为对象的数组,但某些场景下,我们可能只期望得到简单类型的数组,比如在主题配置中选择一批文章分类的 name,目前只能通过 Repeater 得到类似于 [ { name: 'foo' }, { name: 'bar' } ] 的结构,实际上只需要 [ 'foo', 'bar' ]。所以期望扩展一些 FormKit 的原生 List 组件,能够支持和 Repeater 一样的动态添加/排序/删除元素。

image

/area ui
/kind feature

附加信息

No response

@ruibaby
Copy link
Member Author

ruibaby commented Jun 18, 2024

/area ui
/kind feature

@f2c-ci-robot f2c-ci-robot bot added area/ui Issues or PRs related to the Halo UI kind/feature Categorizes issue or PR as related to a new feature. labels Jun 18, 2024
@JohnNiang JohnNiang added this to the 2.17.x milestone Jun 26, 2024
@f2c-ci-robot f2c-ci-robot bot closed this as completed in 5d5df7c Jun 26, 2024
@ruibaby ruibaby modified the milestones: 2.17.x, 2.17.0 Jun 26, 2024
@bynowi
Copy link

bynowi commented Jul 15, 2024

当前版本可以使用插件扩展这个表单类型吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Issues or PRs related to the Halo UI kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants