mirror of https://github.com/vuejs/core.git
chore: fix typo (#11522)
This commit is contained in:
parent
bb4a02a70c
commit
917c0631cc
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue