mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 23:00:25 +08:00
优化<checkbox>组件
This commit is contained in:
@@ -35,7 +35,7 @@ Vue.component("checkbox", {
|
|||||||
this.newValue = ""
|
this.newValue = ""
|
||||||
},
|
},
|
||||||
isChecked: function () {
|
isChecked: function () {
|
||||||
return this.newValue == this.elementValue
|
return (typeof (this.newValue) == "boolean" && this.newValue) || this.newValue == this.elementValue
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
Reference in New Issue
Block a user