Skip to content

Commit

Permalink
fix: 更新slots类型
Browse files Browse the repository at this point in the history
  • Loading branch information
agileago committed Dec 5, 2024
1 parent 479f516 commit 38f835d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extends/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export class VueComponent<T extends {} = {}> {
get $attrs() {
return this.$.proxy!.$attrs
}
get $slots() {
return this.$.proxy!.$slots
get $slots(): Omit<NonNullable<VueComponentProps<T>['v-slots']>, '$stable'> {
return this.$.proxy!.$slots as any
}
get $options() {
return this.$.proxy!.$options
Expand Down

0 comments on commit 38f835d

Please sign in to comment.