uni-ui icon indicating copy to clipboard operation
uni-ui copied to clipboard

uni-segmented-control 组件,建议给styleType为text 的,选中时加一个active class

Open rzshuo opened this issue 3 years ago • 1 comments

现在我想修改styleType=text的选中时的页签,但是没有可供覆写的class,我看源码styleType=button时有segmented-control__item--button--active,建议styleType=text选中时,加一个segmented-control__item--text--active,或者开个Props,传自定义class或者style进去。

rzshuo avatar Mar 30 '22 01:03 rzshuo

复议

pangxieju avatar Oct 07 '22 02:10 pangxieju

感谢反馈,uni-ui暂不考虑通过属性来自定义配置style,因为各端兼容性不一致,但是添加了独立配置activeColor,可供配置。如果还不满足请自行修改uni_modules文件夹下对应组件样式

18148764734 avatar Apr 02 '24 11:04 18148764734