Skip to content

Commit

Permalink
chore: fix typo (#11522)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 authored Aug 6, 2024
1 parent bb4a02a commit 917c063
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion packages/runtime-core/src/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/apiCustomElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 917c063

Please sign in to comment.