@ecan-bi/datav 1.3.71 → 1.3.72

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/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.3.71 */
1
+ /*! @ecan-bi/datav@1.3.72 */
2
2
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, onBeforeUnmount, normalizeClass as normalizeClass$1, normalizeStyle as normalizeStyle$1, createElementVNode, createCommentVNode, Fragment, renderList, provide, useCssVars, toDisplayString, pushScopeId, popScopeId, createSlots, withModifiers, createTextVNode, Teleport, resolveDynamicComponent, mergeProps, normalizeProps, toHandlers, withDirectives, vShow, reactive, vModelText, getCurrentInstance, onDeactivated, isRef, onActivated, isVNode, Transition, onBeforeUpdate, Comment } from "vue";
3
3
  import { throttle, init, use, registerMap } from "echarts/core";
4
4
  import { addListener, removeListener } from "resize-detector";
@@ -7827,7 +7827,7 @@ const runCode = (e, r) => {
7827
7827
  customRequestParams: u
7828
7828
  } = e, { pageMode: y } = inject(GLOBAL_CONFIG, {
7829
7829
  pageMode: "normal"
7830
- }), { contextRequestUrl: m, touchEventId: b } = inject(GLOBAL_CONFIG, {
7830
+ }) || {}, { contextRequestUrl: m, touchEventId: b } = inject(GLOBAL_CONFIG, {
7831
7831
  contextRequestUrl: "",
7832
7832
  touchEventId: ""
7833
7833
  }) || {}, { getGlobalModel: w } = inject(GLOBAL_MODEL, {
@@ -7900,19 +7900,22 @@ const runCode = (e, r) => {
7900
7900
  Object.prototype.toString.call(F) === "[object Object]" && (F = JSON.stringify(F)), N === 0 ? O !== 1 ? k += `?${B}=${F}&` : k += `?${B}=${F}` : N === D ? k += `${B}=${F}` : k += `${B}=${F}&`;
7901
7901
  });
7902
7902
  function V(B) {
7903
- var T;
7904
- const N = JSON.parse(B), F = ((T = window == null ? void 0 : window.config) == null ? void 0 : T.requestParams) || {};
7905
- if (Object.prototype.toString.call(N) === "[object Object]") {
7906
- for (const M in N)
7907
- if (typeof N[M] == "string") {
7908
- const E = N[M].match(/\${(.+?)\}/g);
7909
- if (E != null && E.length) {
7910
- const A = E[0].slice(2, -1);
7911
- A && F[A] ? N[M] = F[A] : N[M] = "";
7903
+ var N;
7904
+ if (typeof B == "string") {
7905
+ const F = JSON.parse(B), T = ((N = window == null ? void 0 : window.config) == null ? void 0 : N.requestParams) || {};
7906
+ if (Object.prototype.toString.call(F) === "[object Object]") {
7907
+ for (const M in F)
7908
+ if (typeof F[M] == "string") {
7909
+ const E = F[M].match(/\${(.+?)\}/g);
7910
+ if (E != null && E.length) {
7911
+ const A = E[0].slice(2, -1);
7912
+ A && T[A] ? F[M] = T[A] : F[M] = "";
7913
+ }
7912
7914
  }
7913
- }
7914
- }
7915
- return N;
7915
+ }
7916
+ return F;
7917
+ } else
7918
+ return B;
7916
7919
  }
7917
7920
  try {
7918
7921
  const B = ["get", "head"].includes(i), N = {};