We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 775103a commit 1ef8f46Copy full SHA for 1ef8f46
packages/runtime-core/src/componentPublicInstance.ts
@@ -313,6 +313,7 @@ export type ComponentPublicInstance<
313
$slots: UnwrapSlotsType<S>
314
$root: ComponentPublicInstance | null
315
$parent: ComponentPublicInstance | null
316
+ $host: Element | null
317
$emit: EmitFn<E>
318
$el: any
319
$options: Options & MergedComponentOptionsOverride
@@ -371,6 +372,7 @@ export const publicPropertiesMap: PublicPropertiesMap =
371
372
$refs: i => (__DEV__ ? shallowReadonly(i.refs) : i.refs),
373
$parent: i => getPublicInstance(i.parent),
374
$root: i => getPublicInstance(i.root),
375
+ $host: i => i.ce,
376
$emit: i => i.emit,
377
$options: i => (__FEATURE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type),
378
$forceUpdate: i =>
0 commit comments