]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix typo (#11522)
authoredison <daiwei521@126.com>
Tue, 6 Aug 2024 10:20:40 +0000 (18:20 +0800)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 10:20:40 +0000 (18:20 +0800)
packages/runtime-core/src/component.ts
packages/runtime-core/src/hmr.ts
packages/runtime-dom/src/apiCustomElement.ts

index 4863c24a8cc4f98d80b45800a14c34368ac7e7d6..2bf25ac8e4726644fb553fb1660ac81f54970bc3 100644 (file)
@@ -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
 }
index 6eb0c372c3fdfc2811f25e4f4ed7972a19a25600..926d3fa0a51a3789f10926b51aae31f7c1a3ed02 100644 (file)
@@ -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)
     }
   }
 
index 6aa40c8330e54fa775e213026747d54614e67bd6..4c3be8d449480753f36ef9ae7755a1b31f770a41 100644 (file)
@@ -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) {