-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] 按钮中的数字样式问题 #2881
Comments
那应该是小程序的bug了,因为小程序的文档里lang的默认值就是'en',所以van-button默认设置了'en'。 |
vant weapp这边可以去除 |
对的 就是这个意思 用户传入lang的时候再去给van-button设置lang属性
…------------------ 原始邮件 ------------------
发件人: "rex"<notifications@github.com>;
发送时间: 2020年3月19日(星期四) 中午1:31
收件人: "youzan/vant-weapp"<vant-weapp@noreply.github.com>;
抄送: "陈建忠"<842289456@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [youzan/vant-weapp] [Bug Report] 按钮中的数字样式问题 (#2881)
vant weapp这边可以去除lang的默认值,兼容小程序的bug。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
rex-zsd
added a commit
that referenced
this issue
Mar 19, 2020
我看到你们去除了lang的默认值,但是实际上并没有移除lang这个属性,所以问题依然存在,只要设置了lang并且lang不是zh_CN或zh_TW就会有问题
可以考虑在open-type='getUserInfo'的情况下再设置lang;或者把lang默认设为'zh_CN',在open-type='getUserInfo'的情况下再设置lang='en'
…------------------ 原始邮件 ------------------
发件人: "rex"<notifications@github.com>;
发送时间: 2020年3月19日(星期四) 中午1:31
收件人: "youzan/vant-weapp"<vant-weapp@noreply.github.com>;
抄送: "陈建忠"<842289456@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [youzan/vant-weapp] [Bug Report] 按钮中的数字样式问题 (#2881)
vant weapp这边可以去除lang的默认值,兼容小程序的bug。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
设备
iphone7
VantWeapp 版本
1.0.6
基础库版本
2.6.6
如果是 UI 问题,截图链接(多图回车分隔)
请提供核心代码片段链接
https://gist.github.com/richchen/6b2074c8f3d1ceda6bc2d9b1b35406d3
描述问题
前两天提过这个问题,你们那边说没问题,但是你们给的结果是在安卓手机上测试的结果啊,我这个问题只在ios上有问题好像?
我已经找到原因,答案在第二张截图中,这应该是微信小程序的一个小bug,只要显示的指定button的lang属性,lang属性的值不等于zh_CN或zh_TW,那button中的数字样式在ios中都是有问题的。
因为van-button封装都是显示指定的lang值而且默认值是en,所以只要开发者没有指定van-button的lang值为zh_CN或zh_TW,那如果在van-button中使用数字,都是会有问题的。
The text was updated successfully, but these errors were encountered: