VantWeapp field组件通过button-slot插入的按钮为啥不能更改大小?

小程序 文章 2022-01-07 14:40 1138 0 全屏看文

AI助手支持GPT4.0

VantWeapp field组件通过button-slot插入的按钮为啥不能更改大小?Why can’t the size of the button inserted by the VantWeapp field component via button-slot be changed?

VantWeapp field组件通过button-slot插入的按钮为啥不能更改大小?

WXML:

示例图:

问题:“发送验证码”这个button的宽度太大了,我尝试用class调整了一下,但是没有任何效果,!important也加了,也没有效果,有人遇到相同的问题并解决了吗?


Wxml: example figure: problem: the width of the "send verification code" button is too wide. I tried to adjust it with class, but it has no effect,! Important has also been added, which has no effect. Has anyone encountered the same problem and solved it?

回答:

brave:

是不是 size="large" 导致的,改成 small 或者 mini 看看

困难:

可能是你class没用对

怀瑾:尝试了也不行
困难:我随便尝试了一下,是可以的
怀瑾:那我再试试 谢谢朋友
姑苏洛言:

是不是最新版本的

怀瑾:是最新版本的1.10.1

-EOF-

AI助手支持GPT4.0