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
|
inheritAttrs?: boolean
|
||||||
/**
|
/**
|
||||||
* is custom element?
|
* Custom Element instance (if component is created by defineCustomElement)
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
ce?: ComponentCustomElementInterface
|
ce?: ComponentCustomElementInterface
|
||||||
|
/**
|
||||||
|
* is custom element? (kept only for compatibility)
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
isCE?: boolean
|
||||||
/**
|
/**
|
||||||
* custom element specific HMR method
|
* custom element specific HMR method
|
||||||
* @internal
|
* @internal
|
||||||
|
|
|
||||||
|
|
@ -519,6 +519,7 @@ export class VueElement
|
||||||
vnode.ce = instance => {
|
vnode.ce = instance => {
|
||||||
this._instance = instance
|
this._instance = instance
|
||||||
instance.ce = this
|
instance.ce = this
|
||||||
|
instance.isCE = true // for vue-i18n backwards compat
|
||||||
// HMR
|
// HMR
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
instance.ceReload = newStyles => {
|
instance.ceReload = newStyles => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue