vue 2.7.11 → 2.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vue.js v2.7.11
2
+ * Vue.js v2.7.12
3
3
  * (c) 2014-2022 Evan You
4
4
  * Released under the MIT License.
5
5
  */
@@ -3931,7 +3931,7 @@ function onErrorCaptured(hook, target = currentInstance) {
3931
3931
  /**
3932
3932
  * Note: also update dist/vue.runtime.mjs when adding new exports to this file.
3933
3933
  */
3934
- const version = '2.7.11';
3934
+ const version = '2.7.12';
3935
3935
  /**
3936
3936
  * @internal type is manually declared in <root>/types/v3-define-component.d.ts
3937
3937
  */
@@ -4259,6 +4259,10 @@ function proxy(target, sourceKey, key) {
4259
4259
  }
4260
4260
  function initState(vm) {
4261
4261
  const opts = vm.$options;
4262
+ if (opts.props)
4263
+ initProps$1(vm, opts.props);
4264
+ // Composition API
4265
+ initSetup(vm);
4262
4266
  if (opts.methods)
4263
4267
  initMethods(vm, opts.methods);
4264
4268
  if (opts.data) {
@@ -4275,8 +4279,6 @@ function initState(vm) {
4275
4279
  }
4276
4280
  }
4277
4281
  function initProps$1(vm, propsOptions) {
4278
- if (!propsOptions)
4279
- return;
4280
4282
  const propsData = vm.$options.propsData || {};
4281
4283
  const props = (vm._props = shallowReactive({}));
4282
4284
  // cache prop keys so that future props updates can iterate using Array
@@ -4637,11 +4639,8 @@ function initMixin$1(Vue) {
4637
4639
  initLifecycle(vm);
4638
4640
  initEvents(vm);
4639
4641
  initRender(vm);
4640
- const opts = vm.$options;
4641
- initInjections(vm); // resolve injections before data/props
4642
- initProps$1(vm, opts.props);
4643
- initSetup(vm);
4644
4642
  callHook$1(vm, 'beforeCreate', undefined, false /* setContext */);
4643
+ initInjections(vm); // resolve injections before data/props
4645
4644
  initState(vm);
4646
4645
  initProvide(vm); // resolve provide after data/props
4647
4646
  callHook$1(vm, 'created');