-
Notifications
You must be signed in to change notification settings - Fork 323
Closed
Description
tdesign-miniprogram 版本
1.8.8
重现链接
No response
重现步骤
<form bindsubmit="onFormSubmit">
<t-radio-group default-value="0" borderless name="rad" t-class="idtype">
<t-radio t-class-icon="item" label="选项1" value="0" />
<t-radio t-class-icon="item" label="选项2" value="1" />
<button type="submit">提交</button>
</t-radio-group>
<form>
onFormSubmit函数里面打印的detail.value里面不会包含rad。看了下源代码t-radio-group没有behavior属性。
又试了下把name属性放到t-radio上,也不行。打印的detail.value永远是1,不管当前选中的是哪个。
可能是我用法不对,请问这个要怎么做。目前是用radio-group的change事件临时处理了
期望结果
No response
实际结果
No response
基础库版本
No response
补充说明
No response
Metadata
Metadata
Assignees
Labels
No labels