From 917c0631ccffa5d95b6ff3212f0f7dc43641aa2d Mon Sep 17 00:00:00 2001 From: edison Date: Tue, 6 Aug 2024 18:20:40 +0800 Subject: [PATCH] chore: fix typo (#11522) --- packages/runtime-core/src/component.ts | 2 +- packages/runtime-core/src/hmr.ts | 2 +- packages/runtime-dom/src/apiCustomElement.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 4863c24a8cc..2bf25ac8e47 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -1240,5 +1240,5 @@ export function isClassComponent(value: unknown): value is ClassComponent { export interface ComponentCustomElementInterface { injectChildStyle(type: ConcreteComponent): void - removeChildStlye(type: ConcreteComponent): void + removeChildStyle(type: ConcreteComponent): void } diff --git a/packages/runtime-core/src/hmr.ts b/packages/runtime-core/src/hmr.ts index 6eb0c372c3f..926d3fa0a51 100644 --- a/packages/runtime-core/src/hmr.ts +++ b/packages/runtime-core/src/hmr.ts @@ -162,7 +162,7 @@ function reload(id: string, newComp: HMRComponent) { // update custom element child style if (instance.root.ce && instance !== instance.root) { - instance.root.ce.removeChildStlye(oldComp) + instance.root.ce.removeChildStyle(oldComp) } } diff --git a/packages/runtime-dom/src/apiCustomElement.ts b/packages/runtime-dom/src/apiCustomElement.ts index 6aa40c8330e..4c3be8d4494 100644 --- a/packages/runtime-dom/src/apiCustomElement.ts +++ b/packages/runtime-dom/src/apiCustomElement.ts @@ -588,7 +588,7 @@ export class VueElement this._applyStyles(comp.styles, comp) } - removeChildStlye(comp: ConcreteComponent): void { + removeChildStyle(comp: ConcreteComponent): void { if (__DEV__) { this._styleChildren.delete(comp) if (this._childStyles && comp.__hmrId) {