]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor: isCE -> ce
authorEvan You <evan@vuejs.org>
Mon, 5 Aug 2024 08:33:48 +0000 (16:33 +0800)
committerEvan You <evan@vuejs.org>
Mon, 5 Aug 2024 08:33:48 +0000 (16:33 +0800)
packages/runtime-core/src/component.ts
packages/runtime-core/src/helpers/renderSlot.ts
packages/runtime-dom/src/apiCustomElement.ts

index 667fa5e713e96f767f51a297594772be6728a00a..713c81487902720bc79440d1031b51747cc1a2db 100644 (file)
@@ -417,7 +417,7 @@ export interface ComponentInternalInstance {
    * is custom element?
    * @internal
    */
-  isCE?: Element
+  ce?: Element
   /**
    * custom element specific HMR method
    * @internal
index 5a7492d70156e8f91536a8042fa09a909d1b63fe..59a9cde5775224d1c566fa01239940a075b81bc1 100644 (file)
@@ -32,10 +32,10 @@ export function renderSlot(
   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
index bb73feccfffe21a6f3155b65a88e06681718cd9b..846774fa66ec1ade5b39270c83d52a0fd7712527 100644 (file)
@@ -259,7 +259,7 @@ export class VueElement extends BaseClass {
           this._ob = null
         }
         render(null, this._root)
-        this._instance!.isCE = undefined
+        this._instance!.ce = undefined
         this._instance = null
       }
     })
@@ -433,7 +433,7 @@ export class VueElement extends BaseClass {
     if (!this._instance) {
       vnode.ce = instance => {
         this._instance = instance
-        instance.isCE = this
+        instance.ce = this
         // HMR
         if (__DEV__) {
           instance.ceReload = newStyles => {
@@ -555,7 +555,7 @@ export class VueElement extends BaseClass {
  */
 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__) {