Skip to content

Commit 917c063

Browse files
authored
chore: fix typo (#11522)
1 parent bb4a02a commit 917c063

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/runtime-core/src/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1240,5 +1240,5 @@ export function isClassComponent(value: unknown): value is ClassComponent {
12401240

12411241
export interface ComponentCustomElementInterface {
12421242
injectChildStyle(type: ConcreteComponent): void
1243-
removeChildStlye(type: ConcreteComponent): void
1243+
removeChildStyle(type: ConcreteComponent): void
12441244
}

packages/runtime-core/src/hmr.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function reload(id: string, newComp: HMRComponent) {
162162

163163
// update custom element child style
164164
if (instance.root.ce && instance !== instance.root) {
165-
instance.root.ce.removeChildStlye(oldComp)
165+
instance.root.ce.removeChildStyle(oldComp)
166166
}
167167
}
168168

packages/runtime-dom/src/apiCustomElement.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ export class VueElement
588588
this._applyStyles(comp.styles, comp)
589589
}
590590

591-
removeChildStlye(comp: ConcreteComponent): void {
591+
removeChildStyle(comp: ConcreteComponent): void {
592592
if (__DEV__) {
593593
this._styleChildren.delete(comp)
594594
if (this._childStyles && comp.__hmrId) {

0 commit comments

Comments
 (0)