File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,12 @@ export const useAppStore = defineStore('app', () => {
47
47
componentProps ?: Recordable
48
48
componentSlots ?: Recordable
49
49
}
50
+ interface CustomActionSlotOptions {
51
+ h : typeof h
52
+ ref : typeof ref
53
+ }
50
54
type CustomActionSlot =
51
- | ( ( { h } : any ) => VNode | string | number | boolean )
55
+ | ( ( options : CustomActionSlotOptions ) => VNode | string | number | boolean )
52
56
| VNode
53
57
| string
54
58
| number
@@ -69,7 +73,7 @@ export const useAppStore = defineStore('app', () => {
69
73
let result : CustomActionSlot = slot
70
74
if ( typeof result === 'function' ) {
71
75
const customH = ( type : any , ...args : any [ ] ) => h ( resolveComponent ( type ) , ...args )
72
- result = result ( { h : customH } )
76
+ result = result ( { h : customH , ref } )
73
77
}
74
78
if ( isVNode ( result ) ) {
75
79
return result
You can’t perform that action at this time.
0 commit comments