|
@@ -1,6 +1,6 @@
|
|
|
import config from '../config'
|
|
import config from '../config'
|
|
|
import { initProxy } from './proxy'
|
|
import { initProxy } from './proxy'
|
|
|
-import { initProps, initState } from './state'
|
|
|
|
|
|
|
+import { initState } from './state'
|
|
|
import { initRender } from './render'
|
|
import { initRender } from './render'
|
|
|
import { initEvents } from './events'
|
|
import { initEvents } from './events'
|
|
|
import { mark, measure } from '../util/perf'
|
|
import { mark, measure } from '../util/perf'
|
|
@@ -10,7 +10,6 @@ import { extend, mergeOptions, formatComponentName } from '../util/index'
|
|
|
import type { Component } from 'types/component'
|
|
import type { Component } from 'types/component'
|
|
|
import type { InternalComponentOptions } from 'types/options'
|
|
import type { InternalComponentOptions } from 'types/options'
|
|
|
import { EffectScope } from 'v3/reactivity/effectScope'
|
|
import { EffectScope } from 'v3/reactivity/effectScope'
|
|
|
-import { initSetup } from '../../v3/apiSetup'
|
|
|
|
|
|
|
|
|
|
let uid = 0
|
|
let uid = 0
|
|
|
|
|
|
|
@@ -60,12 +59,8 @@ export function initMixin(Vue: typeof Component) {
|
|
|
initLifecycle(vm)
|
|
initLifecycle(vm)
|
|
|
initEvents(vm)
|
|
initEvents(vm)
|
|
|
initRender(vm)
|
|
initRender(vm)
|
|
|
-
|
|
|
|
|
- const opts = vm.$options
|
|
|
|
|
- initInjections(vm) // resolve injections before data/props
|
|
|
|
|
- initProps(vm, opts.props)
|
|
|
|
|
- initSetup(vm)
|
|
|
|
|
callHook(vm, 'beforeCreate', undefined, false /* setContext */)
|
|
callHook(vm, 'beforeCreate', undefined, false /* setContext */)
|
|
|
|
|
+ initInjections(vm) // resolve injections before data/props
|
|
|
initState(vm)
|
|
initState(vm)
|
|
|
initProvide(vm) // resolve provide after data/props
|
|
initProvide(vm) // resolve provide after data/props
|
|
|
callHook(vm, 'created')
|
|
callHook(vm, 'created')
|