メモリリークの一因になってそうだったのでrefを渡すのを削除
This commit is contained in:
parent
a0f794e372
commit
21b6e23e98
2 changed files with 3 additions and 13 deletions
|
|
@ -32,8 +32,6 @@ export default defineComponent({
|
|||
raw: {
|
||||
default: false
|
||||
},
|
||||
// specify the parent element
|
||||
parentElement: {}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -66,7 +64,7 @@ export default defineComponent({
|
|||
|
||||
if (this.$refs.gridOuter) {
|
||||
let height = 287;
|
||||
const parent = this.parentElement || this.$parent.$el;
|
||||
const parent = this.$parent.$el;
|
||||
|
||||
if (this.$refs.gridOuter.clientHeight) {
|
||||
height = this.$refs.gridOuter.clientHeight;
|
||||
|
|
@ -81,11 +79,6 @@ export default defineComponent({
|
|||
});
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
parentElement() {
|
||||
this.size();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue