* is custom element?
* @internal
*/
- isCE?: Element
+ ce?: Element
/**
* custom element specific HMR method
* @internal
noSlotted?: boolean,
): VNode {
if (
- currentRenderingInstance!.isCE ||
+ currentRenderingInstance!.ce ||
(currentRenderingInstance!.parent &&
isAsyncWrapper(currentRenderingInstance!.parent) &&
- currentRenderingInstance!.parent.isCE)
+ currentRenderingInstance!.parent.ce)
) {
// in custom element mode, render <slot/> as actual slot outlets
// wrap it with a fragment because in shadowRoot: false mode the slot
this._ob = null
}
render(null, this._root)
- this._instance!.isCE = undefined
+ this._instance!.ce = undefined
this._instance = null
}
})
if (!this._instance) {
vnode.ce = instance => {
this._instance = instance
- instance.isCE = this
+ instance.ce = this
// HMR
if (__DEV__) {
instance.ceReload = newStyles => {
*/
export function useShadowRoot(): ShadowRoot | null {
const instance = getCurrentInstance()
- const el = instance && instance.isCE
+ const el = instance && instance.ce
if (el) {
return el.shadowRoot
} else if (__DEV__) {