@dcloudio/uni-mp-vue 3.0.0-alpha-3021320211118002 → 3.0.0-alpha-3021320211122001
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 +49 -1
- package/package.json +2 -2
package/dist/vue.runtime.esm.js
CHANGED
|
@@ -4726,6 +4726,54 @@ function createVueApp(rootComponent, rootProps = null) {
|
|
|
4726
4726
|
return app;
|
|
4727
4727
|
}
|
|
4728
4728
|
|
|
4729
|
+
function useCssModule(name = '$style') {
|
|
4730
|
+
/* istanbul ignore else */
|
|
4731
|
+
{
|
|
4732
|
+
const instance = getCurrentInstance();
|
|
4733
|
+
if (!instance) {
|
|
4734
|
+
(process.env.NODE_ENV !== 'production') && warn$1(`useCssModule must be called inside setup()`);
|
|
4735
|
+
return EMPTY_OBJ;
|
|
4736
|
+
}
|
|
4737
|
+
const modules = instance.type.__cssModules;
|
|
4738
|
+
if (!modules) {
|
|
4739
|
+
(process.env.NODE_ENV !== 'production') && warn$1(`Current instance does not have CSS modules injected.`);
|
|
4740
|
+
return EMPTY_OBJ;
|
|
4741
|
+
}
|
|
4742
|
+
const mod = modules[name];
|
|
4743
|
+
if (!mod) {
|
|
4744
|
+
(process.env.NODE_ENV !== 'production') &&
|
|
4745
|
+
warn$1(`Current instance does not have CSS module named "${name}".`);
|
|
4746
|
+
return EMPTY_OBJ;
|
|
4747
|
+
}
|
|
4748
|
+
return mod;
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4752
|
+
/**
|
|
4753
|
+
* Runtime helper for SFC's CSS variable injection feature.
|
|
4754
|
+
* @private
|
|
4755
|
+
*/
|
|
4756
|
+
function useCssVars(getter) {
|
|
4757
|
+
const instance = getCurrentInstance();
|
|
4758
|
+
/* istanbul ignore next */
|
|
4759
|
+
if (!instance) {
|
|
4760
|
+
(process.env.NODE_ENV !== 'production') &&
|
|
4761
|
+
warn$1(`useCssVars is called without current active component instance.`);
|
|
4762
|
+
return;
|
|
4763
|
+
}
|
|
4764
|
+
initCssVarsRender(instance, getter);
|
|
4765
|
+
}
|
|
4766
|
+
function initCssVarsRender(instance, getter) {
|
|
4767
|
+
instance.ctx.__cssVars = () => {
|
|
4768
|
+
const vars = getter(instance.proxy);
|
|
4769
|
+
const cssVars = {};
|
|
4770
|
+
for (const key in vars) {
|
|
4771
|
+
cssVars[`--${key}`] = vars[key];
|
|
4772
|
+
}
|
|
4773
|
+
return cssVars;
|
|
4774
|
+
};
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4729
4777
|
function withModifiers() { }
|
|
4730
4778
|
function createVNode$1() { }
|
|
4731
4779
|
|
|
@@ -5133,4 +5181,4 @@ function createApp(rootComponent, rootProps = null) {
|
|
|
5133
5181
|
}
|
|
5134
5182
|
const createSSRApp = createApp;
|
|
5135
5183
|
|
|
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 };
|
|
5184
|
+
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, useCssModule, useCssVars, 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-3021320211122001",
|
|
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-3021320211122001"
|
|
23
23
|
}
|
|
24
24
|
}
|