uView icon indicating copy to clipboard operation
uView copied to clipboard

u-button的plain没有效果

Open Linpengfei-NB opened this issue 3 years ago • 5 comments

u-button的plain没有效果

Linpengfei-NB avatar Dec 16 '20 09:12 Linpengfei-NB

u-button的plain没有效果

plain是正常可用的,您检查一下你的css有没有冲突哦

BeiQiaoT avatar Dec 17 '20 07:12 BeiQiaoT

u-button的plain没有效果

plain是正常可用的,您检查一下你的css有没有冲突哦

image image

但是不使用u-button ,使用button就对了

Linpengfei-NB avatar Dec 17 '20 07:12 Linpengfei-NB

u-button的plain没有效果 plain是正常可用的,您检查一下你的css有没有冲突哦

但是不使用u-button ,使用button就对了

你看一下官方案例,的确是可以用的

BeiQiaoT avatar Dec 17 '20 11:12 BeiQiaoT

u-button的plain没有效果 plain是正常可用的,您检查一下你的css有没有冲突哦 但是不使用u-button,使用button就对了

你看一下官方案例,的确是可以用的

你可以去看一下,微信小程序有uview的官方小程序样例。加了plain只是背景色颜色变了。

Linpengfei-NB avatar Dec 18 '20 02:12 Linpengfei-NB

我也遇到了这个问题,我是使用u-button的type=default时使用镂空属性,发现没有任何变化。 如果type=primary之类的话,可以看到背景色有明显的深蓝色或浅蓝色变化。 后来认真看了下文档,发现我可能理解有误差。 我以为镂空是背景色透明,显示为父容器的背景色。实际上镂空是显示为白色。 image 当type=default的时候,背景色本来就是白色,镂空与否背景色没有任何变化。 而一般用default的button,设置镂空的时候,是希望背景色不是白色,而是透明。 这点是否可以考虑变更下呢? @BeiQiaoT

anyongjin avatar Oct 26 '21 05:10 anyongjin