@ecan-bi/datav 1.4.57 → 1.4.59

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.57 */
1
+ /*! @ecan-bi/datav@1.4.59 */
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";
@@ -11865,15 +11865,15 @@ const __default__$4 = defineComponent({
11865
11865
  }
11866
11866
  }), __injectCSSVars__$4 = () => {
11867
11867
  useCssVars((c) => ({
11868
- "666e7ed3": c.vFontSize,
11869
- "0f81668c": c.textIndent,
11870
- "6db2c038": c.percentageSide,
11871
- "2fe434a2": c.titleFontColor,
11872
- "5c3109d8": c.variableColor
11868
+ "66867d1b": c.vFontSize,
11869
+ 12693144: c.textIndent,
11870
+ "293a4e9c": c.percentageSide,
11871
+ 48219467: c.titleFontColor,
11872
+ "2471d548": c.variableColor
11873
11873
  }));
11874
11874
  }, __setup__$4 = __default__$4.setup;
11875
11875
  __default__$4.setup = __setup__$4 ? (c, u) => (__injectCSSVars__$4(), __setup__$4(c, u)) : __injectCSSVars__$4;
11876
- 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"];
11876
+ const Text_vue_vue_type_style_index_0_scoped_5a4c4ae2_lang = "", Text_vue_vue_type_style_index_1_lang = "", _hoisted_1$f = ["innerHTML"], _hoisted_2$7 = ["innerHTML"], _hoisted_3$3 = ["innerHTML"];
11877
11877
  function _sfc_render$x(c, u, f, d, p, m) {
11878
11878
  const v = resolveComponent("skeleton"), g = resolveComponent("a-tooltip");
11879
11879
  return c.loading ? (openBlock(), createElementBlock("div", {
@@ -11885,7 +11885,8 @@ function _sfc_render$x(c, u, f, d, p, m) {
11885
11885
  ], 4)) : (openBlock(), createElementBlock("div", {
11886
11886
  key: 1,
11887
11887
  class: "ecan-text",
11888
- style: normalizeStyle$1(c.style)
11888
+ style: normalizeStyle$1(c.style),
11889
+ onClick: u[0] || (u[0] = (...y) => c.click && c.click(...y))
11889
11890
  }, [
11890
11891
  c.myTitle ? (openBlock(), createBlock(g, {
11891
11892
  key: 0,
@@ -11910,8 +11911,7 @@ function _sfc_render$x(c, u, f, d, p, m) {
11910
11911
  ...c.gradientStyle,
11911
11912
  ...c.cursorStyle
11912
11913
  }),
11913
- innerHTML: c.myText,
11914
- onClick: u[0] || (u[0] = (...y) => c.click && c.click(...y))
11914
+ innerHTML: c.myText
11915
11915
  }, null, 14, _hoisted_2$7)
11916
11916
  ]),
11917
11917
  _: 1
@@ -11923,12 +11923,11 @@ function _sfc_render$x(c, u, f, d, p, m) {
11923
11923
  ...c.cursorStyle,
11924
11924
  ...c.wrapStyle
11925
11925
  }),
11926
- innerHTML: c.myText,
11927
- onClick: u[1] || (u[1] = (...y) => c.click && c.click(...y))
11926
+ innerHTML: c.myText
11928
11927
  }, null, 14, _hoisted_3$3))
11929
11928
  ], 4));
11930
11929
  }
11931
- const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-a7769bba"]]), EcanText = withInstall$1(Text), _sfc_main$s = defineComponent({
11930
+ const Text = /* @__PURE__ */ _export_sfc$1(__default__$4, [["render", _sfc_render$x], ["__scopeId", "data-v-5a4c4ae2"]]), EcanText = withInstall$1(Text), _sfc_main$s = defineComponent({
11932
11931
  name: "EcanScrollText",
11933
11932
  setup() {
11934
11933
  return {
@@ -13012,18 +13011,18 @@ const Input = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render
13012
13011
  });
13013
13012
  watch(() => [c.value, c.useCurrentTime, c.operate, w.value], ([Zn, Wn, cr, ur]) => {
13014
13013
  let Qn = null, lr = Zn;
13015
- if (c.dataType === "request" && (lr = ur), lr)
13016
- if (lr.includes("{") && lr.includes("}")) {
13017
- const ar = lr.match(/\{(.+?)\}/g), fr = {};
13018
- if (ar)
13019
- for (let hr of ar) {
13020
- const ir = hr.slice(1, -1).trim(), dr = J(ir);
13021
- dr && (fr[ir] = dr.value.format(dr.format));
13022
- }
13014
+ if (c.dataType === "request" && (lr = ur), lr) {
13015
+ const ar = lr.match(/\{(.+?)\}/g);
13016
+ if (ar) {
13017
+ const fr = {};
13018
+ for (let hr of ar) {
13019
+ const ir = hr.slice(1, -1).trim(), dr = J(ir);
13020
+ dr && (fr[ir] = dr.value.format(dr.format));
13021
+ }
13023
13022
  Qn = dayjs(hn(lr, { textData: fr }));
13024
13023
  } else
13025
13024
  Qn = dayjs(hn(lr));
13026
- else
13025
+ } else
13027
13026
  Wn && (Qn = dayjs());
13028
13027
  if (cr && Qn) {
13029
13028
  const { type: ar, value: fr, mode: hr } = cr;
@@ -13145,11 +13144,11 @@ const Input = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render
13145
13144
  }
13146
13145
  }), __injectCSSVars__$3 = () => {
13147
13146
  useCssVars((c) => ({
13148
- "066372ad": c.optionFontSize
13147
+ "0cb57cba": c.optionFontSize
13149
13148
  }));
13150
13149
  }, __setup__$3 = __default__$3.setup;
13151
13150
  __default__$3.setup = __setup__$3 ? (c, u) => (__injectCSSVars__$3(), __setup__$3(c, u)) : __injectCSSVars__$3;
13152
- const DatePicker_vue_vue_type_style_index_0_scoped_7b400517_lang = "", DatePicker_vue_vue_type_style_index_1_lang = "", _hoisted_1$a = ["id"];
13151
+ const DatePicker_vue_vue_type_style_index_0_scoped_cc0b12c8_lang = "", DatePicker_vue_vue_type_style_index_1_lang = "", _hoisted_1$a = ["id"];
13153
13152
  function _sfc_render$q(c, u, f, d, p, m) {
13154
13153
  const v = resolveComponent("calendar-outlined"), g = resolveComponent("close-circle-filled"), y = resolveComponent("a-input"), b = resolveComponent("van-date-picker"), w = resolveComponent("van-popup"), Bn = resolveComponent("a-date-picker");
13155
13154
  return openBlock(), createElementBlock("div", {
@@ -13220,7 +13219,7 @@ function _sfc_render$q(c, u, f, d, p, m) {
13220
13219
  }, null, 8, ["value", "format", "picker", "showTime", "locale", "onChange", "onOpenChange", "disabled-date", "getPopupContainer", "popupStyle"]))
13221
13220
  ], 12, _hoisted_1$a);
13222
13221
  }
13223
- const DatePicker$1 = /* @__PURE__ */ _export_sfc$1(__default__$3, [["render", _sfc_render$q], ["__scopeId", "data-v-7b400517"]]), EcanDatePicker = withInstall$1(DatePicker$1), rangePickerProps = {
13222
+ const DatePicker$1 = /* @__PURE__ */ _export_sfc$1(__default__$3, [["render", _sfc_render$q], ["__scopeId", "data-v-cc0b12c8"]]), EcanDatePicker = withInstall$1(DatePicker$1), rangePickerProps = {
13224
13223
  ...props,
13225
13224
  name: "日期范围选择器",
13226
13225
  keyName: "日期范围选择器",
@@ -13378,6 +13377,9 @@ const __default__$2 = defineComponent({
13378
13377
  const { value: vr } = dr;
13379
13378
  if (vr)
13380
13379
  switch (unref(vr)) {
13380
+ case "day":
13381
+ m.value = [dayjs().startOf("day"), dayjs().endOf("day")];
13382
+ break;
13381
13383
  case "month":
13382
13384
  m.value = [dayjs().startOf("month"), dayjs().endOf("month")];
13383
13385
  break;
@@ -13468,11 +13470,11 @@ const __default__$2 = defineComponent({
13468
13470
  }
13469
13471
  }), __injectCSSVars__$2 = () => {
13470
13472
  useCssVars((c) => ({
13471
- "2a62a250": c.optionFontSize
13473
+ "0651bc5b": c.optionFontSize
13472
13474
  }));
13473
13475
  }, __setup__$2 = __default__$2.setup;
13474
13476
  __default__$2.setup = __setup__$2 ? (c, u) => (__injectCSSVars__$2(), __setup__$2(c, u)) : __injectCSSVars__$2;
13475
- const RangePicker_vue_vue_type_style_index_0_scoped_251fac14_lang = "", RangePicker_vue_vue_type_style_index_1_lang = "";
13477
+ const RangePicker_vue_vue_type_style_index_0_scoped_1f30874c_lang = "", RangePicker_vue_vue_type_style_index_1_lang = "";
13476
13478
  function _sfc_render$p(c, u, f, d, p, m) {
13477
13479
  const v = resolveComponent("calendar-outlined"), g = resolveComponent("close-circle-filled"), y = resolveComponent("a-input"), b = resolveComponent("van-date-picker"), w = resolveComponent("van-picker-group"), Bn = resolveComponent("van-popup"), x = resolveComponent("a-range-picker");
13478
13480
  return openBlock(), createElementBlock("div", {
@@ -13560,7 +13562,7 @@ function _sfc_render$p(c, u, f, d, p, m) {
13560
13562
  }, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "disabled-date", "onChange", "onCalendarChange", "onOpenChange", "popupStyle"]))
13561
13563
  ], 4);
13562
13564
  }
13563
- const RangePicker = /* @__PURE__ */ _export_sfc$1(__default__$2, [["render", _sfc_render$p], ["__scopeId", "data-v-251fac14"]]), EcanRangePicker = withInstall$1(RangePicker), buttonProps = {
13565
+ const RangePicker = /* @__PURE__ */ _export_sfc$1(__default__$2, [["render", _sfc_render$p], ["__scopeId", "data-v-1f30874c"]]), EcanRangePicker = withInstall$1(RangePicker), buttonProps = {
13564
13566
  ...props,
13565
13567
  width: "200px",
13566
13568
  name: "按钮",