nuxt-hs-ui 2.1.10 → 2.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -10,7 +10,14 @@
|
|
|
10
10
|
// [ node_modules ]
|
|
11
11
|
import { TabulatorFull as Tabulator } from "tabulator-tables";
|
|
12
12
|
// [ NUXT ]
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
ref,
|
|
15
|
+
watch,
|
|
16
|
+
computed,
|
|
17
|
+
onMounted,
|
|
18
|
+
// onUnmounted,
|
|
19
|
+
onBeforeUnmount,
|
|
20
|
+
} from "#imports";
|
|
14
21
|
// ----------------------------------------------------------------------------
|
|
15
22
|
// [ utils ]
|
|
16
23
|
import { Option } from "../../utils/tabulator";
|
|
@@ -175,7 +182,10 @@ const initTabulator = () => {
|
|
|
175
182
|
onMounted(() => {
|
|
176
183
|
initTabulator();
|
|
177
184
|
});
|
|
178
|
-
|
|
185
|
+
|
|
186
|
+
onBeforeUnmount(() => {
|
|
187
|
+
// console.log("onBeforeUnmount");
|
|
188
|
+
if (tabulator.value === null) return;
|
|
179
189
|
tabulator.value.destroy();
|
|
180
190
|
tabulator.value = null;
|
|
181
191
|
});
|