@ecan-bi/datav 1.4.54 → 1.4.55

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.4.54 */
1
+ /*! @ecan-bi/datav@1.4.55 */
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";
@@ -9658,7 +9658,9 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
9658
9658
  c.pageId || useHrefParamsToGlobalVariables();
9659
9659
  const d = computed(() => !!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)), p = ref(), m = () => {
9660
9660
  p.value.setAttribute("datav-theme", c.theme);
9661
- }, v = ref({}), g = inject("usedComponentList", []), y = inject("componentList", []), b = computed(() => {
9661
+ }, v = ref({
9662
+ $page: {}
9663
+ }), g = inject("usedComponentList", []), y = inject("componentList", []), b = computed(() => {
9662
9664
  const vr = [];
9663
9665
  for (const br of unref(g))
9664
9666
  br.type === "ecanModal" ? vr.push(...br.componentList) : vr.push(br);
@@ -9743,7 +9745,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
9743
9745
  projectRequestUrl: unref(w),
9744
9746
  getModel: qn
9745
9747
  })(), kr = ((Dr = Er == null ? void 0 : Er.data) == null ? void 0 : Dr.data) || {};
9746
- vr.requestKeyName && (v.value[vr.requestKeyName] = kr);
9748
+ vr.requestKeyName && (v.value.$page[vr.requestKeyName] = kr);
9747
9749
  const Ar = Jn.get(Sr);
9748
9750
  if (Ar != null && Ar.length && (!br || Xn[Sr])) {
9749
9751
  for (const Ir of Ar)
@@ -9916,7 +9918,7 @@ const PageConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_r
9916
9918
  configStyle: _
9917
9919
  };
9918
9920
  }
9919
- }), ProviderConfig_vue_vue_type_style_index_0_scoped_9a8147ee_lang = "";
9921
+ }), ProviderConfig_vue_vue_type_style_index_0_scoped_bcf17302_lang = "";
9920
9922
  function _sfc_render$y(c, u, f, d, p, m) {
9921
9923
  return openBlock(), createElementBlock("div", {
9922
9924
  id: "ProviderConfig",
@@ -9926,7 +9928,7 @@ function _sfc_render$y(c, u, f, d, p, m) {
9926
9928
  renderSlot(c.$slots, "default", {}, void 0, !0)
9927
9929
  ], 4);
9928
9930
  }
9929
- const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$y], ["__scopeId", "data-v-9a8147ee"]]), EcanProviderConfig = withInstall$1(ProviderConfig), textProps = {
9931
+ const ProviderConfig = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$y], ["__scopeId", "data-v-bcf17302"]]), EcanProviderConfig = withInstall$1(ProviderConfig), textProps = {
9930
9932
  ...props,
9931
9933
  name: "文本",
9932
9934
  keyName: "文本",
@@ -11488,7 +11490,9 @@ const __default__$4 = defineComponent({
11488
11490
  setup(c, { expose: u }) {
11489
11491
  const f = ref(!1), d = usePickComponentStyle(c), p = ref({}), m = computed(() => c.variableFontSize || "14px"), v = computed(() => "-" + unref(m)), g = ref(), { pageMode: y, globalVariable: b } = inject(GLOBAL_CONFIG, {
11490
11492
  pageMode: "normal",
11491
- globalVariable: {}
11493
+ globalVariable: {
11494
+ $page: {}
11495
+ }
11492
11496
  }), {
11493
11497
  getGlobalModel: w,
11494
11498
  setGlobalModel: Bn,
@@ -11543,7 +11547,7 @@ const __default__$4 = defineComponent({
11543
11547
  let mr = "";
11544
11548
  if (dr != null && dr.length) {
11545
11549
  const gr = (fr = dr[0].slice(1, -1)) == null ? void 0 : fr.trim();
11546
- gr.includes(".") ? mr = vn(gr) : mr = ar && ar[gr] ? ar[gr] : c.titleContent;
11550
+ gr.includes("$page") ? mr = vn(gr) : mr = ar && ar[gr] ? ar[gr] : c.titleContent;
11547
11551
  } else
11548
11552
  mr = c.titleContent;
11549
11553
  g.value = c != null && c.isMarkDown ? esmEntry(mr) : mr;
@@ -11650,7 +11654,7 @@ const __default__$4 = defineComponent({
11650
11654
  for (let pr = 0; pr < dr.length; pr++) {
11651
11655
  const xr = dr[pr], vr = (yr = xr == null ? void 0 : xr.slice(1, xr.length - 1)) == null ? void 0 : yr.trim();
11652
11656
  let br = vr;
11653
- if (vr.includes("."))
11657
+ if (vr.includes("$page"))
11654
11658
  br = vn(vr) || c.variableDefaultValue;
11655
11659
  else {
11656
11660
  const Er = vr.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);
@@ -11854,15 +11858,15 @@ const __default__$4 = defineComponent({
11854
11858
  }
11855
11859
  }), __injectCSSVars__$4 = () => {
11856
11860
  useCssVars((c) => ({
11857
- "44f1a360": c.vFontSize,
11858
- "7b7ea6af": c.textIndent,
11859
- 76711687: c.percentageSide,
11860
- d54f475c: c.titleFontColor,
11861
- b41bb7de: c.variableColor
11861
+ "666e7ed3": c.vFontSize,
11862
+ "0f81668c": c.textIndent,
11863
+ "6db2c038": c.percentageSide,
11864
+ "2fe434a2": c.titleFontColor,
11865
+ "5c3109d8": c.variableColor
11862
11866
  }));
11863
11867
  }, __setup__$4 = __default__$4.setup;
11864
11868
  __default__$4.setup = __setup__$4 ? (c, u) => (__injectCSSVars__$4(), __setup__$4(c, u)) : __injectCSSVars__$4;
11865
- const Text_vue_vue_type_style_index_0_scoped_6409c309_lang = "", Text_vue_vue_type_style_index_1_lang = "", _hoisted_1$f = ["innerHTML"], _hoisted_2$7 = ["innerHTML"], _hoisted_3$3 = ["innerHTML"];
11869
+ const Text_vue_vue_type_style_index_0_scoped_a7769bba_lang = "", Text_vue_vue_type_style_index_1_lang = "", _hoisted_1$f = ["innerHTML"], _hoisted_2$7 = ["innerHTML"], _hoisted_3$3 = ["innerHTML"];
11866
11870
  function _sfc_render$x(c, u, f, d, p, m) {
11867
11871
  const v = resolveComponent("skeleton"), g = resolveComponent("a-tooltip");
11868
11872
  return c.loading ? (openBlock(), createElementBlock("div", {
@@ -11917,7 +11921,7 @@ function _sfc_render$x(c, u, f, d, p, m) {
11917
11921
  }, null, 14, _hoisted_3$3))
11918
11922
  ], 4));
11919
11923
  }
11920
- const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-6409c309"]]), EcanText = withInstall$1(Text), _sfc_main$s = defineComponent({
11924
+ const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-a7769bba"]]), EcanText = withInstall$1(Text), _sfc_main$s = defineComponent({
11921
11925
  name: "EcanScrollText",
11922
11926
  setup() {
11923
11927
  return {