This commit is contained in:
梁灏 2017-04-27 13:56:58 +08:00
parent 05e2dda017
commit 69a10b78f7
3 changed files with 138 additions and 49 deletions

View file

@ -119,6 +119,14 @@
this.$on('on-checked', () => {
this.$emit('on-check-change', this.getCheckedNodes());
});
},
watch: {
data () {
this.$nextTick(() => {
this.updateData();
this.broadcast('TreeNode', 'indeterminate');
})
}
}
};
</script>