@d-mok/quasar-app-extension-quasar-axe 3.1.39 → 3.1.40
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/package.json
CHANGED
|
@@ -24,14 +24,15 @@
|
|
|
24
24
|
import { ref } from 'vue'
|
|
25
25
|
import { HotTable } from '@handsontable/vue3'
|
|
26
26
|
import { registerAllModules } from 'handsontable/registry'
|
|
27
|
+
import type Handsontable from 'handsontable'
|
|
27
28
|
|
|
28
29
|
registerAllModules()
|
|
29
30
|
|
|
30
31
|
// handsontable instance
|
|
31
32
|
|
|
32
|
-
let hotTableComponent = ref()
|
|
33
|
+
let hotTableComponent = ref<InstanceType<typeof HotTable> | null>(null)
|
|
33
34
|
|
|
34
|
-
function getInstance() {
|
|
35
|
+
function getInstance(): Handsontable {
|
|
35
36
|
return hotTableComponent.value.hotInstance
|
|
36
37
|
}
|
|
37
38
|
|
|
@@ -92,7 +93,7 @@ function afterRemoveRow() {
|
|
|
92
93
|
// avoid no row
|
|
93
94
|
let hot = getInstance()
|
|
94
95
|
if (hot.countRows() === 0) {
|
|
95
|
-
hot.alter('
|
|
96
|
+
hot.alter('insert_row_above', 1)
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
|