🐛(component): 修复 table 销毁时未注销 onresize 事件
This commit is contained in:
parent
b650909f45
commit
820b956871
@ -15,6 +15,7 @@ import {
|
|||||||
StyleValue,
|
StyleValue,
|
||||||
WritableComputedRef,
|
WritableComputedRef,
|
||||||
computed,
|
computed,
|
||||||
|
onBeforeUnmount,
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import { v4 as uuidv4 } from "../../utils/guidUtil";
|
import { v4 as uuidv4 } from "../../utils/guidUtil";
|
||||||
import { Recordable } from "../../types";
|
import { Recordable } from "../../types";
|
||||||
@ -610,6 +611,10 @@ const renderTotalRowCell = (column: any) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
window.onresize = null;
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
Loading…
Reference in New Issue
Block a user