Skip to content

Bug: web.config 网页配置组件 checkbox 复选框组件的配置中有 description 接口但页面上并没有显示 #551

@ikenxuan

Description

@ikenxuan

描述问题

                  components.checkbox.create('sendContent:checkbox:1', {
                    label: '视频信息',
                    value: 'info',
                    description: '仅解析视频时有效'
                  }),

checkbox 的 description 并不能像 radio 单选框那样显示描述在选项下方。

复现步骤

预期行为

像 radio 单选框那样显示描述在选项下方。
Image
要么就删掉这个 description 接口

实际行为

Image

操作系统

any

Node.js 版本

any

项目版本

any

附加信息

组件库文档:https://www.heroui.com/docs/components/checkbox

复选框组完整配置:

              components.checkbox.group('sendContent', {
                label: '解析时发送的内容',
                description: '若什么都不选,可能不会返回任何解析结果',
                orientation: 'horizontal',
                defaultValue: all.douyin.sendContent,
                isDisabled: !all.douyin.switch,
                checkbox: [
                  components.checkbox.create('sendContent:checkbox:1', {
                    label: '视频信息',
                    value: 'info',
                    description: '仅解析视频时有效'
                  }),
                  components.checkbox.create('sendContent:checkbox:2', {
                    label: '评论列表',
                    value: 'comment'
                  }),
                  components.checkbox.create('sendContent:checkbox:3', {
                    label: '视频文件',
                    value: 'video'
                  })
                ]
              }),

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions