@@ -813,22 +813,26 @@ export default (Vue as VueConstructor<Vue & {
813
813
this .debounceTimer = window .requestAnimationFrame (this .updateRenderNodes .bind (this , true ))
814
814
// this.updateRenderNodes(true)
815
815
},
816
+
817
+ initializeNonReactiveData (): void {
818
+ const { keyField, ignoreMode, filteredNodeCheckable, cascade, defaultExpandAll, load, expandOnFilter } = this
819
+ this .nonReactive = {
820
+ store: new TreeStore ({
821
+ keyField ,
822
+ ignoreMode ,
823
+ filteredNodeCheckable ,
824
+ cascade ,
825
+ defaultExpandAll ,
826
+ load ,
827
+ expandOnFilter ,
828
+ }),
829
+ blockNodes: [],
830
+ }
831
+ },
816
832
},
817
833
created () {
818
834
// Initial non-reactive
819
- const { keyField, ignoreMode, filteredNodeCheckable, cascade, defaultExpandAll, load, expandOnFilter } = this
820
- this .nonReactive = {
821
- store: new TreeStore ({
822
- keyField ,
823
- ignoreMode ,
824
- filteredNodeCheckable ,
825
- cascade ,
826
- defaultExpandAll ,
827
- load ,
828
- expandOnFilter ,
829
- }),
830
- blockNodes: [],
831
- }
835
+ this .initializeNonReactiveData ()
832
836
833
837
this .nonReactive .store .on (' visible-data-change' , this .updateBlockNodes )
834
838
this .nonReactive .store .on (' render-data-change' , this .updateRender )
@@ -860,6 +864,7 @@ export default (Vue as VueConstructor<Vue & {
860
864
if ($iframe .contentWindow ) {
861
865
$iframe .contentWindow .removeEventListener (' resize' , this .updateRender )
862
866
}
867
+ this .initializeNonReactiveData ()
863
868
},
864
869
watch: {
865
870
value (newVal : VModelType ) {
0 commit comments