MCPcopy
hub / github.com/vuejs/core / VueElement

Class VueElement

packages/runtime-dom/src/apiCustomElement.ts:203–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201type InnerComponentDef = ConcreteComponent & CustomElementOptions
202
203export class VueElement
204 extends BaseClass
205 implements ComponentCustomElementInterface
206{
207 _isVueCE = true
208 /**
209 * @internal
210 */
211 _instance: ComponentInternalInstance | null = null
212 /**
213 * @internal
214 */
215 _app: App | null = null
216 /**
217 * @internal
218 */
219 _root: Element | ShadowRoot
220 /**
221 * @internal
222 */
223 _nonce: string | undefined = this._def.nonce
224
225 /**
226 * @internal
227 */
228 _teleportTargets?: Set<Element>
229
230 private _connected = false
231 private _resolved = false
232 private _patching = false
233 private _dirty = false
234 private _numberProps: Record<string, true> | null = null
235 private _styleChildren = new WeakSet()
236 private _pendingResolve: Promise<void> | undefined
237 private _parent: VueElement | undefined
238 private _styleAnchors: WeakMap<ConcreteComponent, HTMLStyleElement> =
239 new WeakMap()
240 /**
241 * dev only
242 */
243 private _styles?: HTMLStyleElement[]
244 /**
245 * dev only
246 */
247 private _childStyles?: Map<string, HTMLStyleElement[]>
248 private _ob?: MutationObserver | null = null
249 private _slots?: Record<string, Node[]>
250
251 constructor(
252 /**
253 * Component def - note this may be an AsyncWrapper, and this._def will
254 * be overwritten by the inner component when resolved.
255 */
256 private _def: InnerComponentDef,
257 private _props: Record<string, any> = {},
258 private _createApp: CreateAppFunction<Element> = createApp,
259 ) {
260 super()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected