uni-ui
uni-ui copied to clipboard
uni-segmented-control 组件,建议给styleType为text 的,选中时加一个active class
现在我想修改styleType=text的选中时的页签,但是没有可供覆写的class,我看源码styleType=button时有segmented-control__item--button--active,建议styleType=text选中时,加一个segmented-control__item--text--active,或者开个Props,传自定义class或者style进去。
复议
感谢反馈,uni-ui暂不考虑通过属性来自定义配置style,因为各端兼容性不一致,但是添加了独立配置activeColor,可供配置。如果还不满足请自行修改uni_modules文件夹下对应组件样式