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