mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
[Improvement] Radio: add label-disabled prop (#1445)
This commit is contained in:
@@ -28,7 +28,8 @@ export default create({
|
||||
props: {
|
||||
name: null,
|
||||
value: null,
|
||||
disabled: Boolean
|
||||
disabled: Boolean,
|
||||
labelDisabled: Boolean
|
||||
},
|
||||
|
||||
computed: {
|
||||
@@ -55,7 +56,7 @@ export default create({
|
||||
|
||||
methods: {
|
||||
onClickLabel() {
|
||||
if (!this.isDisabled) {
|
||||
if (!this.isDisabled && !this.labelDisabled) {
|
||||
this.currentValue = this.name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user