From bb3b703fa42c4754839fbe285e91244dd1886af6 Mon Sep 17 00:00:00 2001 From: qiang Date: Wed, 26 Jan 2022 16:50:22 +0800 Subject: [PATCH] chore: rebuild mp.runtime.esm.js --- .../packages/mp-vue/dist/mp.runtime.esm.js | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js b/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js index 4bd476e36..feb6b927c 100644 --- a/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js +++ b/packages/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js @@ -1,6 +1,6 @@ /*! * Vue.js v2.6.11 - * (c) 2014-2021 Evan You + * (c) 2014-2022 Evan You * Released under the MIT License. */ /* */ @@ -4087,10 +4087,10 @@ function updateChildComponent ( // keep a copy of raw propsData vm.$options.propsData = propsData; } - + // fixed by xxxxxx update properties(mp runtime) vm._$updateProperties && vm._$updateProperties(vm); - + // update listeners listeners = listeners || emptyObject; var oldListeners = vm.$options._parentListeners; @@ -4621,7 +4621,7 @@ function initProps (vm, propsOptions) { } //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警 if( - key === 'value' && + key === 'value' && Array.isArray(vm.$options.behaviors) && vm.$options.behaviors.indexOf('uni://form-field') !== -1 ){ @@ -4633,7 +4633,7 @@ function initProps (vm, propsOptions) { var $parent = vm.$parent; while($parent){ if($parent.__next_tick_pending){ - return + return } $parent = $parent.$parent; } @@ -4965,10 +4965,10 @@ function initMixin (Vue) { initEvents(vm); initRender(vm); callHook(vm, 'beforeCreate'); - !vm._$fallback && initInjections(vm); // resolve injections before data/props + !vm._$fallback && initInjections(vm); // resolve injections before data/props initState(vm); !vm._$fallback && initProvide(vm); // resolve provide after data/props - !vm._$fallback && callHook(vm, 'created'); + !vm._$fallback && callHook(vm, 'created'); /* istanbul ignore if */ if (process.env.NODE_ENV !== 'production' && config.performance && mark) { @@ -5467,7 +5467,6 @@ function _diff(current, pre, path, result) { var currentType = type(currentValue); var preType = type(preValue); if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) { - // NOTE 此处将 != 修改为 !==。涉及地方太多恐怕测试不到,如果出现数据对比问题,将其修改回来。 if (currentValue !== pre[key]) { setResult(result, (path == '' ? '' : path + ".") + key, currentValue); } @@ -5694,7 +5693,7 @@ function mountComponent$1( } } } - + !vm._$fallback && callHook(vm, 'beforeMount'); var updateComponent = function () { @@ -5827,10 +5826,9 @@ function internalMixin(Vue) { Vue.prototype.$emit = function(event) { if (this.$scope && event) { - (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']) - .call(this.$scope, event, { - __args__: toArray(arguments, 1) - }) + (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']).call(this.$scope, event, { + __args__: toArray(arguments, 1) + }); } return oldEmit.apply(this, arguments) }; @@ -5895,7 +5893,7 @@ function internalMixin(Vue) { target = this; } // 解决动态属性添加 - Vue.set(target, key, value) + Vue.set(target, key, value); }; Vue.prototype.__set_sync = function(target, key, value) { @@ -5903,7 +5901,7 @@ function internalMixin(Vue) { target = this; } // 解决动态属性添加 - Vue.set(target, key, value) + Vue.set(target, key, value); }; Vue.prototype.__get_orig = function(item) { @@ -6036,7 +6034,7 @@ Vue.prototype.__patch__ = patch; // public mount method Vue.prototype.$mount = function( el , - hydrating + hydrating ) { return mountComponent$1(this, el, hydrating) }; -- GitLab