@dcloudio/uni-mp-vue 3.0.0-alpha-3021320211117003 → 3.0.0-alpha-3021320211118002
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.
- package/dist/vue.runtime.esm.js +9 -3
- package/package.json +2 -2
package/dist/vue.runtime.esm.js
CHANGED
|
@@ -2882,7 +2882,9 @@ const getPublicInstance = (i) => {
|
|
|
2882
2882
|
};
|
|
2883
2883
|
const publicPropertiesMap = extend(Object.create(null), {
|
|
2884
2884
|
$: i => i,
|
|
2885
|
-
|
|
2885
|
+
// fixed by xxxxxx vue-i18n 在 dev 模式,访问了 $el,故模拟一个假的
|
|
2886
|
+
// $el: i => i.vnode.el,
|
|
2887
|
+
$el: i => i.__$el || (i.__$el = {}),
|
|
2886
2888
|
$data: i => i.data,
|
|
2887
2889
|
$props: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.props) : i.props),
|
|
2888
2890
|
$attrs: i => ((process.env.NODE_ENV !== 'production') ? shallowReadonly(i.attrs) : i.attrs),
|
|
@@ -4880,6 +4882,7 @@ var plugin = {
|
|
|
4880
4882
|
initApp(app);
|
|
4881
4883
|
// TODO 旧编译器使用了$createElement 导致告警,当切换到新编译器时,移除此类代码
|
|
4882
4884
|
app.config.globalProperties.$createElement = () => { };
|
|
4885
|
+
app.config.globalProperties.$el = {};
|
|
4883
4886
|
const oldMount = app.mount;
|
|
4884
4887
|
app.mount = function mount(rootContainer) {
|
|
4885
4888
|
const instance = oldMount.call(app, rootContainer);
|
|
@@ -5052,8 +5055,8 @@ function findScopedSlotInvoker(vueId, instance) {
|
|
|
5052
5055
|
|
|
5053
5056
|
//@ts-ignore
|
|
5054
5057
|
function withScopedSlot(fn, { name, path, vueId, }) {
|
|
5055
|
-
fn.path = path;
|
|
5056
5058
|
const instance = getCurrentInstance();
|
|
5059
|
+
fn.path = path;
|
|
5057
5060
|
const scopedSlots = (instance.$ssi ||
|
|
5058
5061
|
(instance.$ssi = {}));
|
|
5059
5062
|
const invoker = scopedSlots[vueId] ||
|
|
@@ -5078,7 +5081,10 @@ function createScopedSlotInvoker(instance) {
|
|
|
5078
5081
|
// 循环第一个 slot 时,重置 data
|
|
5079
5082
|
slot.data = {};
|
|
5080
5083
|
}
|
|
5084
|
+
// 确保当前 slot 的上下文,类似 withCtx
|
|
5085
|
+
const prevInstance = setCurrentRenderingInstance(instance);
|
|
5081
5086
|
slot.data[key] = slot.fn(args, key, slotName + (hasKey ? '-' + key : ''));
|
|
5087
|
+
setCurrentRenderingInstance(prevInstance);
|
|
5082
5088
|
// TODO 简单的 forceUpdate,理论上,可以仅对 scoped slot 部分数据 diff 更新
|
|
5083
5089
|
instance.proxy.$forceUpdate();
|
|
5084
5090
|
};
|
|
@@ -5127,4 +5133,4 @@ function createApp(rootComponent, rootProps = null) {
|
|
|
5127
5133
|
}
|
|
5128
5134
|
const createSSRApp = createApp;
|
|
5129
5135
|
|
|
5130
|
-
export { EffectScope, ReactiveEffect, c, callWithAsyncErrorHandling, callWithErrorHandling, computed, createApp, createSSRApp, createVNode$1 as createVNode, createVueApp, customRef, d, defineComponent, defineEmits, defineExpose, defineProps, e, effect, effectScope, f, getCurrentInstance, getCurrentScope, h, inject, injectHook, isInSSRComponentSetup, isProxy, isReactive, isReadonly, isRef, logError, markRaw, mergeDefaults, mergeProps, n, nextTick, o, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onUnmounted, onUpdated, patch, provide, proxyRefs, queuePostFlushCb, r, reactive, readonly, ref, resolveComponent, resolveDirective, resolveFilter, s, setupDevtoolsPlugin, shallowReactive, shallowReadonly, shallowRef, stop, t, toHandlers, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useSSRContext, useSlots, version, w, warn$1 as warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withModifiers, withScopeId };
|
|
5136
|
+
export { EffectScope, Fragment, ReactiveEffect, Text, c, callWithAsyncErrorHandling, callWithErrorHandling, computed, createApp, createSSRApp, createVNode$1 as createVNode, createVueApp, customRef, d, defineComponent, defineEmits, defineExpose, defineProps, e, effect, effectScope, f, getCurrentInstance, getCurrentScope, h, inject, injectHook, isInSSRComponentSetup, isProxy, isReactive, isReadonly, isRef, logError, markRaw, mergeDefaults, mergeProps, n, nextTick, o, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onUnmounted, onUpdated, patch, provide, proxyRefs, queuePostFlushCb, r, reactive, readonly, ref, resolveComponent, resolveDirective, resolveFilter, s, setCurrentRenderingInstance, setupDevtoolsPlugin, shallowReactive, shallowReadonly, shallowRef, stop, t, toHandlers, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useSSRContext, useSlots, version, w, warn$1 as warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withModifiers, withScopeId };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-mp-vue",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3021320211118002",
|
|
4
4
|
"description": "@dcloudio/uni-mp-vue",
|
|
5
5
|
"main": "dist/vue.runtime.esm.js",
|
|
6
6
|
"module": "dist/vue.runtime.esm.js",
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
},
|
|
20
20
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@dcloudio/uni-mp-vue": "3.0.0-alpha-
|
|
22
|
+
"@dcloudio/uni-mp-vue": "3.0.0-alpha-3021320211118002"
|
|
23
23
|
}
|
|
24
24
|
}
|