This commit is contained in:
zhiyuanzmj 2025-06-18 21:17:16 +08:00 committed by GitHub
commit e534794ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ export function defineComponent<
props: Props, props: Props,
ctx: SetupContext<E, S>, ctx: SetupContext<E, S>,
) => RenderFunction | Promise<RenderFunction>, ) => RenderFunction | Promise<RenderFunction>,
options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & { options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'components'> & {
props?: (keyof Props)[] props?: (keyof Props)[]
emits?: E | EE[] emits?: E | EE[]
slots?: S slots?: S
@ -172,7 +172,7 @@ export function defineComponent<
props: Props, props: Props,
ctx: SetupContext<E, S>, ctx: SetupContext<E, S>,
) => RenderFunction | Promise<RenderFunction>, ) => RenderFunction | Promise<RenderFunction>,
options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & { options?: Pick<ComponentOptions, 'name' | 'inheritAttrs' | 'components'> & {
props?: ComponentObjectPropsOptions<Props> props?: ComponentObjectPropsOptions<Props>
emits?: E | EE[] emits?: E | EE[]
slots?: S slots?: S