mirror of https://github.com/vuejs/core.git
fix(custom-element): keep instance.isCE for backwards compat
This commit is contained in:
parent
3d6f01571b
commit
e19fc27042
|
|
@ -414,10 +414,15 @@ export interface ComponentInternalInstance {
|
|||
*/
|
||||
inheritAttrs?: boolean
|
||||
/**
|
||||
* is custom element?
|
||||
* Custom Element instance (if component is created by defineCustomElement)
|
||||
* @internal
|
||||
*/
|
||||
ce?: ComponentCustomElementInterface
|
||||
/**
|
||||
* is custom element? (kept only for compatibility)
|
||||
* @internal
|
||||
*/
|
||||
isCE?: boolean
|
||||
/**
|
||||
* custom element specific HMR method
|
||||
* @internal
|
||||
|
|
|
|||
|
|
@ -519,6 +519,7 @@ export class VueElement
|
|||
vnode.ce = instance => {
|
||||
this._instance = instance
|
||||
instance.ce = this
|
||||
instance.isCE = true // for vue-i18n backwards compat
|
||||
// HMR
|
||||
if (__DEV__) {
|
||||
instance.ceReload = newStyles => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue