Skip to content

Commit 38f835d

Browse files
committed
fix: 更新slots类型
1 parent 479f516 commit 38f835d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extends/component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export class VueComponent<T extends {} = {}> {
6464
get $attrs() {
6565
return this.$.proxy!.$attrs
6666
}
67-
get $slots() {
68-
return this.$.proxy!.$slots
67+
get $slots(): Omit<NonNullable<VueComponentProps<T>['v-slots']>, '$stable'> {
68+
return this.$.proxy!.$slots as any
6969
}
7070
get $options() {
7171
return this.$.proxy!.$options

0 commit comments

Comments
 (0)