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

Function SubVue

packages/runtime-core/src/compat/global.ts:236–249  ·  view source on GitHub ↗
(inlineOptions?: ComponentOptions)

Source from the content-addressed store, hash-verified

234
235 const Super = this
236 function SubVue(inlineOptions?: ComponentOptions) {
237 if (!inlineOptions) {
238 return createCompatApp(SubVue.options, SubVue)
239 } else {
240 return createCompatApp(
241 mergeOptions(
242 extend({}, SubVue.options),
243 inlineOptions,
244 internalOptionMergeStrats as any,
245 ),
246 SubVue,
247 )
248 }
249 }
250 SubVue.super = Super
251 SubVue.prototype = Object.create(Vue.prototype)
252 SubVue.prototype.constructor = SubVue

Callers

nothing calls this directly

Calls 2

mergeOptionsFunction · 0.90
createCompatAppFunction · 0.85

Tested by

no test coverage detected