We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vben Admin V5
代码如下
import { NRadioButton } from 'naive-ui'; const [QueryForm] = useVbenForm({ // 默认展开 collapsed: false, layout: 'horizontal', commonConfig: { controlClass: 'h-full', }, schema: [ { component: 'RadioGroup', defaultValue: 1, fieldName: 'remark', label: 'remark', renderComponentContent: () => { return { default: () => Array.from({ length: 5 }, (_, index) => h(NRadioButton, { value: index, label: String(index) }), ), }; }, }, ], // 控制表单是否显示折叠按钮 showCollapseButton: false, // 按下回车时是否提交表单 submitOnEnter: false, wrapperClass: 'grid-cols-1 md:grid-cols-4 lg:grid-cols-5', });
zheng正常渲染应该是这样的 但是实际上渲染是这样的
/
No response
The text was updated successfully, but these errors were encountered:
对比了一下naive官网的代码通过表单渲染出来的group组件似乎少了样式,但是不知道怎么修复
Sorry, something went wrong.
自定义渲染的情况下,默认值不会生效
RadioGroup如果使用了按钮组样式(RadioButton),需要用Space包裹。具体请查看官方文档的演示代码.
CheckboxGroup
RadioGroup
options
Successfully merging a pull request may close this issue.
Version
Vben Admin V5
Describe the bug?
代码如下
zheng正常渲染应该是这样的
但是实际上渲染是这样的
Reproduction
/
System Info
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: