File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import defaultLocale from '../locale-provider/default';
20
20
import warning from '../_util/warning' ;
21
21
import scrollTo from '../_util/scrollTo' ;
22
22
import TransButton from '../_util/transButton' ;
23
- import Vue from 'vue' ;
24
23
25
24
function noop ( ) { }
26
25
@@ -143,7 +142,7 @@ export default {
143
142
) ;
144
143
this . CheckboxPropsCache = { } ;
145
144
146
- this . store = Vue . observable ( {
145
+ this . store = this . $root . constructor . observable ( {
147
146
selectedRowKeys : getRowSelection ( this . $props ) . selectedRowKeys || [ ] ,
148
147
selectionDirty : false ,
149
148
} ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import BodyTable from './BodyTable';
13
13
import ExpandableTable from './ExpandableTable' ;
14
14
import { initDefaultProps , getOptionProps , getListeners } from '../../_util/props-util' ;
15
15
import BaseMixin from '../../_util/BaseMixin' ;
16
- import Vue from 'vue' ;
17
16
18
17
export default {
19
18
name : 'Table' ,
@@ -88,7 +87,7 @@ export default {
88
87
) ,
89
88
data ( ) {
90
89
this . preData = [ ...this . data ] ;
91
- this . store = Vue . observable ( {
90
+ this . store = this . $root . constructor . observable ( {
92
91
currentHoverKey : null ,
93
92
fixedColumnsHeadRowsHeight : [ ] ,
94
93
fixedColumnsBodyRowsHeight : { } ,
You can’t perform that action at this time.
0 commit comments