[Feature] 希望能够加入自定义选中的外边框样式,目前仅仅支持theme主题里面的一个样式
What problem does this feature solve?
我看了下源码里面,目前定义的选中样式是跟随样式固定的,不知道能不能改成传参进去,这样可以设置每个select的样式,类似于飞书。相关最底层的代码如下:
What does the proposed API look like?
@HyokaChen https://visactor.io/vtable/guide/interaction/select#%E9%80%89%E4%B8%AD%E6%A0%B7%E5%BC%8F
@trisaen 我的意思不是整体切换,而是可以设置不同选区的样式,不是从theme里面统一配置
@trisaen 我的意思不是整体切换,而是可以设置不同选区的样式,不是从theme里面统一配置
@HyokaChen https://visactor.io/vtable/guide/custom_define/custom_style试试这个
selectionStyle支持函数的话 是不是可以支持该需求
@trisaen 我的意思不是整体切换,而是可以设置不同选区的样式,不是从theme里面统一配置
@HyokaChen https://visactor.io/vtable/guide/custom_define/custom_style试试这个
试过了,选区是需要 selectborder 的样式,这个会覆盖掉 cell 的样式,所以自定义无效的。
selectionStyle支持函数的话 是不是可以支持该需求
是的,提供传入样式可以,目前自定义 cell 样式不支持 select 的样式,可以考虑下扩展。
感谢你的反馈!我们已经收到你的问题,并将在后续进行处理。
如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,欢迎参与开源共建!
我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。
参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide
与官方开发者交流问题可以下载飞书app扫码加入飞书群:
再次感谢你的支持!
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!
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of @VisActor/vtable, please open a new issue and link this to it. Thanks!