@ecan-bi/datav 1.1.14 → 1.1.16

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.1.14 */
1
+ /*! @ecan-bi/datav@1.1.16 */
2
2
  var _a, _b, _c, _d;
3
3
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, onBeforeUnmount, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, reactive, createTextVNode, withDirectives, vShow } from "vue";
4
4
  import { throttle, init, use, registerMap } from "echarts/core";
@@ -1679,10 +1679,8 @@ const useVariablesInText = (formatter = "", data = {}, { useNewline = false, use
1679
1679
  }
1680
1680
  }
1681
1681
  try {
1682
- if (/[0-9]+(.*)[+|-|*|/](.*)[0-9]+/g.test(statement)) {
1683
- const eval2 = eval;
1684
- statement = eval2(statement);
1685
- }
1682
+ const eval2 = eval;
1683
+ statement = eval2(statement);
1686
1684
  } catch (e) {
1687
1685
  console.error(e);
1688
1686
  }
@@ -1867,8 +1865,8 @@ const useImagePath = (path, isFormat = false) => {
1867
1865
  return imagePath;
1868
1866
  };
1869
1867
  const usePageUrl = (pageMode, pageId) => {
1870
- const envPageUrl = `${BASE_URL}preview?pageId=${pageId}`;
1871
- const proPageUrl = `${BASE_URL}${pageId}`;
1868
+ const envPageUrl = `${BASE_URL}/preview?pageId=${pageId}`;
1869
+ const proPageUrl = `${BASE_URL}/${pageId}`;
1872
1870
  return pageMode === "preview" ? envPageUrl : proPageUrl;
1873
1871
  };
1874
1872
  const request = axios.create({});
@@ -3803,8 +3801,8 @@ const _sfc_main$f = defineComponent({
3803
3801
  let _startTime = null;
3804
3802
  let _endTime = null;
3805
3803
  if (useCurrentTime) {
3806
- _startTime = dayjs();
3807
- _endTime = dayjs().subtract(interval, intervalUnit);
3804
+ _startTime = dayjs().subtract(interval, intervalUnit);
3805
+ _endTime = dayjs();
3808
3806
  }
3809
3807
  if (startTime) {
3810
3808
  _startTime = dayjs(startTime);
@@ -3842,7 +3840,7 @@ const _sfc_main$f = defineComponent({
3842
3840
  };
3843
3841
  }
3844
3842
  });
3845
- const RangePicker_vue_vue_type_style_index_0_scoped_2fc9988b_lang = "";
3843
+ const RangePicker_vue_vue_type_style_index_0_scoped_81675950_lang = "";
3846
3844
  const RangePicker_vue_vue_type_style_index_1_lang = "";
3847
3845
  function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3848
3846
  const _component_a_range_picker = resolveComponent("a-range-picker");
@@ -3863,7 +3861,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3863
3861
  }, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
3864
3862
  ], 4);
3865
3863
  }
3866
- const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-2fc9988b"]]);
3864
+ const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-81675950"]]);
3867
3865
  const EcanRangePicker = withInstall(RangePicker);
3868
3866
  const buttonProps = {
3869
3867
  ...props,