Commit 4db6d38f by 袁成

fix: indexMixin watch value

parent 3b3a8c24
......@@ -10,19 +10,19 @@ export default {
},
},
},
watch: {
value: {
handler: function (newVal) {
if (newVal) {
this.init(newVal)
} else {
this.selection = []
this.sendEvent(null)
}
},
deep: true,
},
},
// watch: {
// value: {
// handler: function (newVal) {
// if (newVal) {
// this.init(newVal)
// } else {
// this.selection = []
// this.sendEvent(null)
// }
// },
// deep: true,
// },
// },
methods: {
init(value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment