Skip to content

Commit b74687c

Browse files
committed
refactor: isCE -> ce
1 parent 6e541db commit b74687c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/runtime-core/src/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export interface ComponentInternalInstance {
417417
* is custom element?
418418
* @internal
419419
*/
420-
isCE?: Element
420+
ce?: Element
421421
/**
422422
* custom element specific HMR method
423423
* @internal

packages/runtime-core/src/helpers/renderSlot.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ export function renderSlot(
3232
noSlotted?: boolean,
3333
): VNode {
3434
if (
35-
currentRenderingInstance!.isCE ||
35+
currentRenderingInstance!.ce ||
3636
(currentRenderingInstance!.parent &&
3737
isAsyncWrapper(currentRenderingInstance!.parent) &&
38-
currentRenderingInstance!.parent.isCE)
38+
currentRenderingInstance!.parent.ce)
3939
) {
4040
// in custom element mode, render <slot/> as actual slot outlets
4141
// wrap it with a fragment because in shadowRoot: false mode the slot

packages/runtime-dom/src/apiCustomElement.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class VueElement extends BaseClass {
259259
this._ob = null
260260
}
261261
render(null, this._root)
262-
this._instance!.isCE = undefined
262+
this._instance!.ce = undefined
263263
this._instance = null
264264
}
265265
})
@@ -433,7 +433,7 @@ export class VueElement extends BaseClass {
433433
if (!this._instance) {
434434
vnode.ce = instance => {
435435
this._instance = instance
436-
instance.isCE = this
436+
instance.ce = this
437437
// HMR
438438
if (__DEV__) {
439439
instance.ceReload = newStyles => {
@@ -555,7 +555,7 @@ export class VueElement extends BaseClass {
555555
*/
556556
export function useShadowRoot(): ShadowRoot | null {
557557
const instance = getCurrentInstance()
558-
const el = instance && instance.isCE
558+
const el = instance && instance.ce
559559
if (el) {
560560
return el.shadowRoot
561561
} else if (__DEV__) {

0 commit comments

Comments
 (0)