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
1.8.2
<u-switch v-model="isDefault" :active-value='1' :inactive-value='0'></u-switch> data(){ return { isDefault: 0 } }
v-model可绑定一个非布尔值,既然active-value和inactive-value支持Boolean | Number | String,value理应也如此
v-model绑定非布尔值时报错
服务端给到数据为非布尔值,u-switch也支持指定active-value和inactive-value,并且支持多种类型,value不应只支持布尔值,应避免带来不必要的类型转换
The text was updated successfully, but these errors were encountered:
v-model需要绑定的就是布尔值,设置了acttive-value和inactive-value,只是可以在触发change事件时可以接收。
v-model
acttive-value
inactive-value
change
Sorry, something went wrong.
@yatoku uView2.0已支持,为啥uView1.8不可以同步支持?老项目换成uView2.0改动大
Successfully merging a pull request may close this issue.
版本
1.8.2
重现步骤
期望的结果是什么?
v-model可绑定一个非布尔值,既然active-value和inactive-value支持Boolean | Number | String,value理应也如此
实际的结果是什么?
v-model绑定非布尔值时报错
服务端给到数据为非布尔值,u-switch也支持指定active-value和inactive-value,并且支持多种类型,value不应只支持布尔值,应避免带来不必要的类型转换
The text was updated successfully, but these errors were encountered: