Skip to content
This repository was archived by the owner on May 22, 2022. It is now read-only.

Commit bf2088c

Browse files
committed
fix: working prototype
1 parent 12f5b03 commit bf2088c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ts-packages/vue-excel-initializer/lib/src/excel_initializer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineComponent, h, onMounted, onUnmounted } from 'vue'
1+
import { defineComponent, onMounted, onUnmounted } from 'vue'
22
const _excelPuginsNames = [
33
'OSFPerformance',
44
'OSF',
@@ -74,7 +74,7 @@ class _ExcelIntializer {
7474
}
7575
export const ExcelIntializer = defineComponent({
7676
name: 'ExcelInitializer',
77-
setup() {
77+
setup(_props, { slots }) {
7878
onMounted(() => {
7979
if (parent)
8080
parent.addEventListener(
@@ -90,6 +90,6 @@ export const ExcelIntializer = defineComponent({
9090
_ExcelIntializer.installPlugins
9191
)
9292
})
93-
return () => h(<slot />)
93+
return () => <>{slots.default?.()}</>
9494
}
9595
})

0 commit comments

Comments
 (0)