button的左右边距设置无效是为什么?


如上图,我只设置了上下的20边距,左右为0,但是显示的时候左右的也是20,这种情况应该怎么解决,附上代码片段https://developers.weixin.qq.com/s/9xLsFom578ey
2 回复
来解决了:
https://developers.weixin.qq.com/s/V3Mdpomj7xeZ
问题原因是你用了v2版本的button UI组件。v2版本为新版基础UI,在app.json中去掉即可。