chore: fix typo (#11522)

This commit is contained in:
edison 2024-08-06 18:20:40 +08:00 committed by GitHub
parent bb4a02a70c
commit 917c0631cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View 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
}

View 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)
}
}

View 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) {