File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 17
17
},
18
18
inject: [' MdTable' ],
19
19
data : () => ({
20
- index: null
20
+ index: null ,
21
+ parentNode: null
21
22
}),
22
23
computed: {
23
24
cellClasses () {
50
51
})
51
52
},
52
53
updateAllCellData () {
53
- const cells = Array .from (this .$el .parentNode .childNodes ).filter (({ tagName, classList }) => {
54
+ this .MdTable .items = {}
55
+
56
+ const cells = Array .from (this .parentNode .childNodes ).filter (({ tagName, classList }) => {
54
57
const isSelection = classList && classList .contains (' md-table-cell-selection' )
55
58
const isTd = tagName && tagName .toLowerCase () === ' td'
56
59
67
70
}
68
71
},
69
72
mounted () {
73
+ this .parentNode = this .$el .parentNode
74
+ this .updateAllCellData ()
75
+ },
76
+ destroyed () {
77
+ const rowRemoved = this .$el .parentNode !== null
78
+
79
+ if (rowRemoved) {
80
+ return false
81
+ }
82
+
70
83
this .updateAllCellData ()
71
84
}
72
85
}
You can’t perform that action at this time.
0 commit comments