VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] 内置组件如checkbox可以设置主题色吗

Open moliyu opened this issue 1 month ago • 1 comments

What problem does this feature solve?

如题

What does the proposed API look like?

{
  theme: {
    checkBox: {
      color: #xxxxxx
    }
  }
}

moliyu avatar Nov 04 '25 08:11 moliyu

感谢你的反馈! 如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,留言后开始你的创作提pr给我们! 欢迎大家参与开源共建!我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。 参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide 与官方开发者交流问题可以下载飞书app扫码加入飞书群: 飞书20241029-170312 再次感谢你的支持!

Thank you for your feedback! We have received your question and will deal with it later. If any developer is interested in this issue, please leave a message "claim this issue" below the issue. Welcome to participate in open source co-construction! We are very grateful to every contributor. After submitting the PR, we will prepare a gift for the developers who participated in the co-construction. For participation in co-construction, please refer to: https://visactor.io/vtable/guide/Contribution_Guide To communicate with official developers, you can download the Feishu app and scan the QR code to join the Feishu group! Thank you again for your support!

fangsmile avatar Nov 04 '25 08:11 fangsmile

@moliyu 你是怎么使用的呢,目前无论是单独使用Checkbox组件(例1)和使用checkbox类型单元格(例2)都是支持修改颜色的

例1:

          const checkbox2 = new CheckBox({
            text: {
              text: 'collect',
              fontSize: 12
            },
            box: {
              defaultFill: 'red',
              checkedFill: 'red'
            },
            spaceBetweenTextAndIcon: 2
          });

例2:

{
   theme: VTable.themes.DEFAULT.extends({
      checkboxStyle: {
        defaultFill: 'red',
        checkedFill: 'red'
      }
    })
}

wumo1016 avatar Nov 18 '25 12:11 wumo1016

不好意思,之前没看到主题里面可以设置,我关闭issue了

moliyu avatar Nov 19 '25 09:11 moliyu