We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
295dfd3
https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/radio-group/radio-group.wxml#L11
block="{{item.block || true}}" 这段代码无论item.block设置什么,永远返回true。
block="{{item.block || true}}"
item.block
true
当item.block设置为false时,可以返回false
false
当item.block设置为false时,返回true
No response
The text was updated successfully, but these errors were encountered:
👋 @fatindeed,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
快速fix的话可以改为block="{{typeof item.block == 'boolean' ? item.block : true}}"
block="{{typeof item.block == 'boolean' ? item.block : true}}"
@fatindeed
item.block || true // 这段代码无论item.block设置什么,确实永远返回true,代码上没问题哈
block="{{!!item.block}}" // 推荐
No branches or pull requests
tdesign-miniprogram 版本
295dfd3
重现链接
https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/radio-group/radio-group.wxml#L11
重现步骤
block="{{item.block || true}}"
这段代码无论
item.block
设置什么,永远返回true
。期望结果
当
item.block
设置为false
时,可以返回false
实际结果
当
item.block
设置为false
时,返回true
基础库版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: