zzz-pc-view 0.0.44 → 0.0.46
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/package.json +1 -1
- package/src/decorators/index.d.ts +1 -1
- package/src/index.es.js +6 -2
- package/src/index.umd.js +2 -2
package/package.json
CHANGED
package/src/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
|
5
5
|
import CryptoJS from "crypto-js";
|
|
6
6
|
import qs from "qs";
|
|
7
7
|
import axios, { CanceledError } from "axios";
|
|
8
|
-
import { openBlock, createElementBlock, createElementVNode, ref, computed, shallowRef, nextTick, watch, onBeforeUnmount, onDeactivated, onActivated, reactive, defineComponent, h, resolveComponent, renderSlot, createVNode, withCtx, createBlock, createCommentVNode,
|
|
8
|
+
import { openBlock, createElementBlock, createElementVNode, ref, computed, shallowRef, nextTick, watch, onBeforeUnmount, onDeactivated, onActivated, reactive, defineComponent, h, resolveComponent, renderSlot, createVNode, withCtx, createBlock, createCommentVNode, unref, resolveDynamicComponent, createTextVNode, toDisplayString, Fragment, mergeProps, toHandlers, renderList, resolveDirective, withDirectives, withModifiers, isRef, createSlots, withKeys, normalizeStyle, normalizeClass, normalizeProps, guardReactiveProps, Transition, KeepAlive } from "vue";
|
|
9
9
|
import { useRoute, useRouter } from "vue-router";
|
|
10
10
|
import Mock from "mockjs";
|
|
11
11
|
import ElementPlus, { ElNotification, ElMessageBox } from "element-plus";
|
|
@@ -2865,6 +2865,8 @@ const getConfigByClassAndKey = (Class, key2) => (
|
|
|
2865
2865
|
// 获取类的原型,并调用 getConfigByPrototypeAndKey 函数
|
|
2866
2866
|
getConfigByPrototypeAndKey(Class.prototype, key2)
|
|
2867
2867
|
);
|
|
2868
|
+
const clearByPrototype = (target) => map.delete(target);
|
|
2869
|
+
const clearByClass = (Class) => clearByPrototype(Class.prototype);
|
|
2868
2870
|
const combineDecorator = (...Classes) => {
|
|
2869
2871
|
const CombineClass = combine(...Classes);
|
|
2870
2872
|
const mergeMap = {};
|
|
@@ -4618,6 +4620,8 @@ const ZDecorators = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4618
4620
|
get api() {
|
|
4619
4621
|
return api;
|
|
4620
4622
|
},
|
|
4623
|
+
clearByClass,
|
|
4624
|
+
clearByPrototype,
|
|
4621
4625
|
combineDecorator,
|
|
4622
4626
|
setApi,
|
|
4623
4627
|
useLoadStore,
|
|
@@ -10668,7 +10672,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
10668
10672
|
const props = __props;
|
|
10669
10673
|
const mappingComputed = useMappingOption(props, void 0, void 0);
|
|
10670
10674
|
return (_ctx, _cache) => {
|
|
10671
|
-
return props.component ? (openBlock(), createBlock(resolveDynamicComponent(unref(mappingComputed).is), {
|
|
10675
|
+
return props.component && unref(mappingComputed).text !== void 0 ? (openBlock(), createBlock(resolveDynamicComponent(unref(mappingComputed).is), {
|
|
10672
10676
|
key: 0,
|
|
10673
10677
|
value: _ctx.model[_ctx.prop]
|
|
10674
10678
|
}, {
|