@ecan-bi/datav 1.0.80 → 1.0.82

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,9 +1,9 @@
1
- /*! @ecan-bi/datav@1.0.80 */
1
+ /*! @ecan-bi/datav@1.0.82 */
2
2
  var _a, _b, _c;
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, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
4
4
  import { throttle, init, use, registerMap } from "echarts/core";
5
5
  import { addListener, removeListener } from "resize-detector";
6
- import { Spin as Spin$1, Skeleton as Skeleton$1, message, Progress, Input as Input$1, DatePicker as DatePicker$1, Select as Select$1, RangePicker as RangePicker$1, Button as Button$1, Modal as Modal$1, Table as Table$1, TableSummary, TableSummaryRow, TableSummaryCell } from "ant-design-vue";
6
+ import { Spin as Spin$1, Skeleton as Skeleton$1, message, Progress, Input as Input$1, DatePicker as DatePicker$1, Select as Select$1, RangePicker as RangePicker$1, Button as Button$1, CheckboxGroup, Modal as Modal$1, Table as Table$1, TableSummary, TableSummaryRow, TableSummaryCell } from "ant-design-vue";
7
7
  import "ant-design-vue/es/spin/style";
8
8
  import "ant-design-vue/es/skeleton/style";
9
9
  import { mapValues, without, pick, debounce } from "lodash-es";
@@ -16,6 +16,7 @@ import "ant-design-vue/es/date-picker/style";
16
16
  import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
17
17
  import "ant-design-vue/es/select/style";
18
18
  import "ant-design-vue/es/button/style";
19
+ import "ant-design-vue/es/checkbox/style";
19
20
  import { CanvasRenderer } from "echarts/renderers";
20
21
  import { PieChart, LineChart, BarChart, ScatterChart, MapChart } from "echarts/charts";
21
22
  import { TitleComponent, ToolboxComponent, TooltipComponent, LegendComponent, DatasetComponent, VisualMapComponent, GraphicComponent } from "echarts/components";
@@ -1395,7 +1396,7 @@ const _export_sfc = (sfc, props2) => {
1395
1396
  }
1396
1397
  return target;
1397
1398
  };
1398
- const _sfc_main$p = defineComponent({
1399
+ const _sfc_main$q = defineComponent({
1399
1400
  props: {
1400
1401
  spinning: {
1401
1402
  type: Boolean,
@@ -1419,7 +1420,7 @@ const _sfc_main$p = defineComponent({
1419
1420
  }
1420
1421
  });
1421
1422
  const _hoisted_1$a = { class: "spin-wrapper" };
1422
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
1423
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
1423
1424
  const _component_a_spin = resolveComponent("a-spin");
1424
1425
  return openBlock(), createElementBlock("div", _hoisted_1$a, [
1425
1426
  _ctx.spinning ? (openBlock(), createBlock(_component_a_spin, {
@@ -1431,8 +1432,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
1431
1432
  }, null, 8, ["spinning", "indicator"])) : renderSlot(_ctx.$slots, "default", { key: 1 })
1432
1433
  ]);
1433
1434
  }
1434
- const Spin = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]);
1435
- const _sfc_main$o = defineComponent({
1435
+ const Spin = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
1436
+ const _sfc_main$p = defineComponent({
1436
1437
  name: "Skeleton",
1437
1438
  props: {
1438
1439
  loading: {
@@ -1444,7 +1445,7 @@ const _sfc_main$o = defineComponent({
1444
1445
  ASkeleton: Skeleton$1
1445
1446
  }
1446
1447
  });
1447
- function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
1448
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
1448
1449
  const _component_a_skeleton = resolveComponent("a-skeleton");
1449
1450
  return openBlock(), createBlock(_component_a_skeleton, {
1450
1451
  active: "",
@@ -1456,7 +1457,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
1456
1457
  _: 3
1457
1458
  }, 8, ["loading"]);
1458
1459
  }
1459
- const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o]]);
1460
+ const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]);
1460
1461
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
1461
1462
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
1462
1463
  const withInstall = (main, extra) => {
@@ -1712,13 +1713,22 @@ const useRequestData = (props2, callBack = () => {
1712
1713
  record = getGlobalModel(id) || {};
1713
1714
  }
1714
1715
  const p = unref(record[prop]);
1715
- const isNeedFormat = ["date", "range"].some((item) => lowerCaseIncludes(record == null ? void 0 : record.type, item));
1716
1716
  let v = "";
1717
+ const isNeedFormat = ["date", "range"].some((item) => lowerCaseIncludes(record == null ? void 0 : record.type, item));
1717
1718
  if (isNeedFormat) {
1718
1719
  v = ((_a2 = unref(p)) == null ? void 0 : _a2.format((propKey == null ? void 0 : propKey.trim()) || record.format)) || "";
1719
1720
  } else {
1720
- v = p != null && typeof p === "object" ? p[propKey || "value"] : p;
1721
+ if (Object.prototype.toString.call(p) === "[object Objet]") {
1722
+ v = p[propKey || "value"];
1723
+ } else if (Array.isArray(p)) {
1724
+ v = p.join(",");
1725
+ } else {
1726
+ v = p;
1727
+ }
1728
+ console.log(p);
1729
+ console.log("v", v);
1721
1730
  }
1731
+ console.log("v", v);
1722
1732
  _params[key] = v;
1723
1733
  } else if (typeof value === "string") {
1724
1734
  _params[key] = useVariablesInText(value);
@@ -2443,7 +2453,7 @@ const useHrefParamsToGlobalVariables = () => {
2443
2453
  }
2444
2454
  };
2445
2455
  const PageConfig_vue_vue_type_style_index_0_scoped_true_lang = "";
2446
- const _sfc_main$n = defineComponent({
2456
+ const _sfc_main$o = defineComponent({
2447
2457
  name: "EcanPageConfig",
2448
2458
  inheritAttrs: false,
2449
2459
  props: {
@@ -2544,7 +2554,7 @@ const _hoisted_1$9 = {
2544
2554
  id: "container",
2545
2555
  ref: "container"
2546
2556
  };
2547
- function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2557
+ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2548
2558
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
2549
2559
  _ctx.ready ? (openBlock(), createElementBlock("div", {
2550
2560
  key: 0,
@@ -2555,7 +2565,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2555
2565
  ], 4)) : createCommentVNode("", true)
2556
2566
  ], 512);
2557
2567
  }
2558
- const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-c850087e"]]);
2568
+ const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-c850087e"]]);
2559
2569
  const EcanPageConfig = withInstall(PageConfig);
2560
2570
  const providerConfig = {
2561
2571
  contextRequestUrl: "",
@@ -2564,7 +2574,7 @@ const providerConfig = {
2564
2574
  containerMap: {}
2565
2575
  };
2566
2576
  const providerConfigComponentProps = transformToComponentProps(providerConfig);
2567
- const _sfc_main$m = defineComponent({
2577
+ const _sfc_main$n = defineComponent({
2568
2578
  name: "EcanProviderConfig",
2569
2579
  inheritAttrs: false,
2570
2580
  props: {
@@ -2708,12 +2718,12 @@ const _hoisted_1$8 = {
2708
2718
  id: "ProviderConfig",
2709
2719
  ref: "providerConfig"
2710
2720
  };
2711
- function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2721
+ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2712
2722
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
2713
2723
  renderSlot(_ctx.$slots, "default")
2714
2724
  ], 512);
2715
2725
  }
2716
- const ProviderConfig = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m]]);
2726
+ const ProviderConfig = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
2717
2727
  const EcanProviderConfig = withInstall(ProviderConfig);
2718
2728
  const textProps = {
2719
2729
  ...props,
@@ -2741,7 +2751,7 @@ const textEvents = ["refreshData", "click"];
2741
2751
  const goUp = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=";
2742
2752
  const goDown = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==";
2743
2753
  const Text_vue_vue_type_style_index_0_scoped_true_lang = "";
2744
- const _sfc_main$l = defineComponent({
2754
+ const _sfc_main$m = defineComponent({
2745
2755
  name: "EcanText",
2746
2756
  components: { Skeleton },
2747
2757
  props: {
@@ -2844,7 +2854,7 @@ const _sfc_main$l = defineComponent({
2844
2854
  }
2845
2855
  });
2846
2856
  const _hoisted_1$7 = ["innerHTML"];
2847
- function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2857
+ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2848
2858
  const _component_skeleton = resolveComponent("skeleton");
2849
2859
  return _ctx.loading ? (openBlock(), createElementBlock("div", {
2850
2860
  key: 0,
@@ -2860,10 +2870,10 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2860
2870
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
2861
2871
  }, null, 12, _hoisted_1$7));
2862
2872
  }
2863
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-04fdee06"]]);
2873
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-04fdee06"]]);
2864
2874
  const EcanText = withInstall(Text);
2865
2875
  const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
2866
- const _sfc_main$k = defineComponent({
2876
+ const _sfc_main$l = defineComponent({
2867
2877
  name: "EcanScrollText",
2868
2878
  setup() {
2869
2879
  const text = ref("\u57FA\u7840\u6587\u672C");
@@ -2873,10 +2883,10 @@ const _sfc_main$k = defineComponent({
2873
2883
  }
2874
2884
  });
2875
2885
  const _hoisted_1$6 = { class: "red" };
2876
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2886
+ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2877
2887
  return openBlock(), createElementBlock("div", _hoisted_1$6, toDisplayString(_ctx.text), 1);
2878
2888
  }
2879
- const ScrollText = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-0bb717eb"]]);
2889
+ const ScrollText = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-0bb717eb"]]);
2880
2890
  const EcanScrollText = withInstall(ScrollText);
2881
2891
  const timeDisplayProps = {
2882
2892
  ...props,
@@ -2896,7 +2906,7 @@ const timeDisplayProps = {
2896
2906
  };
2897
2907
  const timeDisplayComponentProps = transformToComponentProps(timeDisplayProps);
2898
2908
  const TimeDisplay_vue_vue_type_style_index_0_scoped_true_lang = "";
2899
- const _sfc_main$j = defineComponent({
2909
+ const _sfc_main$k = defineComponent({
2900
2910
  name: "EcanTimeDisplay",
2901
2911
  props: {
2902
2912
  ...timeDisplayComponentProps
@@ -2929,13 +2939,13 @@ const _sfc_main$j = defineComponent({
2929
2939
  };
2930
2940
  }
2931
2941
  });
2932
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2942
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2933
2943
  return openBlock(), createElementBlock("div", {
2934
2944
  class: "time-display",
2935
2945
  style: normalizeStyle(_ctx.style)
2936
2946
  }, toDisplayString(_ctx.time), 5);
2937
2947
  }
2938
- const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-2da8f6d2"]]);
2948
+ const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-2da8f6d2"]]);
2939
2949
  const EcanTimeDisplay = withInstall(TimeDisplay);
2940
2950
  const listProps = {
2941
2951
  ...props,
@@ -2975,7 +2985,7 @@ const listComponentProps = transformToComponentProps(listProps);
2975
2985
  const listEvents = ["refreshData", "click"];
2976
2986
  const List_vue_vue_type_style_index_0_scoped_true_lang = "";
2977
2987
  const List_vue_vue_type_style_index_1_lang = "";
2978
- const _sfc_main$i = defineComponent({
2988
+ const _sfc_main$j = defineComponent({
2979
2989
  name: "EcanList",
2980
2990
  components: { Skeleton },
2981
2991
  props: {
@@ -3083,7 +3093,7 @@ const _hoisted_7$1 = {
3083
3093
  key: 2,
3084
3094
  class: "empty"
3085
3095
  };
3086
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3096
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
3087
3097
  const _component_skeleton = resolveComponent("skeleton");
3088
3098
  return openBlock(), createElementBlock("div", {
3089
3099
  class: "ecan-list",
@@ -3162,7 +3172,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3162
3172
  }, 8, ["loading"])
3163
3173
  ], 4);
3164
3174
  }
3165
- const List = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-2d4a657c"]]);
3175
+ const List = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-2d4a657c"]]);
3166
3176
  const EcanList = withInstall(List);
3167
3177
  const proportionProps = {
3168
3178
  ...props,
@@ -3191,7 +3201,7 @@ const proportionProps = {
3191
3201
  const proportionComponentProps = transformToComponentProps(proportionProps);
3192
3202
  const proportionEvents = ["refreshData", "click"];
3193
3203
  const Proportion_vue_vue_type_style_index_0_scoped_true_lang = "";
3194
- const _sfc_main$h = defineComponent({
3204
+ const _sfc_main$i = defineComponent({
3195
3205
  name: "EcanProportion",
3196
3206
  components: {
3197
3207
  AProgress: Progress,
@@ -3331,7 +3341,7 @@ const _sfc_main$h = defineComponent({
3331
3341
  };
3332
3342
  }
3333
3343
  });
3334
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3344
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3335
3345
  const _component_skeleton = resolveComponent("skeleton");
3336
3346
  const _component_a_progress = resolveComponent("a-progress");
3337
3347
  return openBlock(), createElementBlock("div", {
@@ -3370,7 +3380,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3370
3380
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
3371
3381
  ], 4);
3372
3382
  }
3373
- const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-4f7958e8"]]);
3383
+ const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-4f7958e8"]]);
3374
3384
  const EcanProportion = withInstall(Proportion);
3375
3385
  const inputProps = {
3376
3386
  ...props,
@@ -3386,8 +3396,9 @@ const inputProps = {
3386
3396
  placeholder: "\u8BF7\u8F93\u5165\u6587\u5B57"
3387
3397
  };
3388
3398
  const inputComponentProps = transformToComponentProps(inputProps);
3389
- const Input_vue_vue_type_style_index_0_scoped_true_lang = "";
3390
- const _sfc_main$g = defineComponent({
3399
+ const inputEvents = ["inputChange", "inputBlur"];
3400
+ const Input_vue_vue_type_style_index_0_lang = "";
3401
+ const _sfc_main$h = defineComponent({
3391
3402
  name: "EcanInput",
3392
3403
  components: {
3393
3404
  AInput: Input$1
@@ -3397,12 +3408,40 @@ const _sfc_main$g = defineComponent({
3397
3408
  },
3398
3409
  setup(props2) {
3399
3410
  const style2 = usePickComponentStyle(props2);
3411
+ const myValue = ref("");
3412
+ watch(() => props2.value, (value) => {
3413
+ myValue.value = value;
3414
+ }, {
3415
+ immediate: true
3416
+ });
3417
+ const id = props2.id;
3418
+ const { getGlobalModel, setGlobalModel } = inject(GLOBAL_MODEL, {
3419
+ getGlobalModel: (key) => void 0,
3420
+ setGlobalModel: (key, value) => void 0
3421
+ });
3422
+ setGlobalModel(props2.id, {
3423
+ type: props2.type,
3424
+ value: myValue
3425
+ });
3426
+ const handleSetGlobalModel = () => {
3427
+ const modal = getGlobalModel(id);
3428
+ setGlobalModel(id, { ...modal, RECORD: myValue });
3429
+ };
3430
+ const emitEvent = useEmitEvent(props2);
3431
+ const inputChange = debounce(emitEvent("inputChange", () => {
3432
+ handleSetGlobalModel();
3433
+ }), 300);
3434
+ const inputBlur = emitEvent("inputBlur", () => {
3435
+ });
3400
3436
  return {
3401
- style: style2
3437
+ style: style2,
3438
+ myValue,
3439
+ inputBlur,
3440
+ inputChange
3402
3441
  };
3403
3442
  }
3404
3443
  });
3405
- function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3444
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3406
3445
  const _component_a_input = resolveComponent("a-input");
3407
3446
  return openBlock(), createElementBlock("div", {
3408
3447
  class: "ecan-input",
@@ -3410,12 +3449,15 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3410
3449
  }, [
3411
3450
  createVNode(_component_a_input, {
3412
3451
  class: "input",
3413
- value: _ctx.value,
3414
- placeholder: _ctx.placeholder
3415
- }, null, 8, ["value", "placeholder"])
3452
+ value: _ctx.myValue,
3453
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.myValue = $event),
3454
+ placeholder: _ctx.placeholder,
3455
+ onChange: _ctx.inputChange,
3456
+ onBlur: _ctx.inputBlur
3457
+ }, null, 8, ["value", "placeholder", "onChange", "onBlur"])
3416
3458
  ], 4);
3417
3459
  }
3418
- const Input = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-506cf42a"]]);
3460
+ const Input = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h]]);
3419
3461
  const EcanInput = withInstall(Input);
3420
3462
  const datePickerProps = {
3421
3463
  ...props,
@@ -3437,7 +3479,7 @@ const datePickerComponentProps = transformToComponentProps(datePickerProps);
3437
3479
  const datePickerEvents = ["dateChange"];
3438
3480
  const DatePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
3439
3481
  const DatePicker_vue_vue_type_style_index_1_lang = "";
3440
- const _sfc_main$f = defineComponent({
3482
+ const _sfc_main$g = defineComponent({
3441
3483
  name: "EcanDatePicker",
3442
3484
  props: {
3443
3485
  ...datePickerComponentProps
@@ -3472,7 +3514,7 @@ const _sfc_main$f = defineComponent({
3472
3514
  };
3473
3515
  }
3474
3516
  });
3475
- function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3517
+ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3476
3518
  const _component_a_date_picker = resolveComponent("a-date-picker");
3477
3519
  return openBlock(), createElementBlock("div", {
3478
3520
  class: "ecan-date-picker",
@@ -3492,7 +3534,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3492
3534
  }, null, 8, ["value", "format", "picker", "showTime", "locale", "onChange", "getPopupContainer"])
3493
3535
  ], 4);
3494
3536
  }
3495
- const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-6e240054"]]);
3537
+ const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-6e240054"]]);
3496
3538
  const EcanDatePicker = withInstall(DatePicker);
3497
3539
  const selectProps = {
3498
3540
  ...props,
@@ -3501,7 +3543,11 @@ const selectProps = {
3501
3543
  width: "120px",
3502
3544
  height: "33px",
3503
3545
  type: "ecanSelect",
3504
- data: [],
3546
+ data: [
3547
+ { label: "\u9009\u9879\u4E00", value: 1 },
3548
+ { label: "\u9009\u9879\u4E8C", value: 2 },
3549
+ { label: "\u9009\u9879\u4E09", value: 3 }
3550
+ ],
3505
3551
  value: "",
3506
3552
  dataFieldNames: { label: "label", value: "value" }
3507
3553
  };
@@ -3509,7 +3555,7 @@ const selectComponentProps = transformToComponentProps(selectProps);
3509
3555
  const selectEvents = ["selectChange"];
3510
3556
  const Select_vue_vue_type_style_index_0_scoped_true_lang = "";
3511
3557
  const Select_vue_vue_type_style_index_1_lang = "";
3512
- const _sfc_main$e = defineComponent({
3558
+ const _sfc_main$f = defineComponent({
3513
3559
  name: "EcanSelect",
3514
3560
  components: {
3515
3561
  ASelect: Select$1
@@ -3526,6 +3572,20 @@ const _sfc_main$e = defineComponent({
3526
3572
  });
3527
3573
  const options = ref(props2.data);
3528
3574
  const myValue = ref(props2.value || props2.data[0]);
3575
+ const dataFieldNames = props2.dataFieldNames;
3576
+ const filterOption = (input, option) => {
3577
+ const labelKey = dataFieldNames.label;
3578
+ const valueKey = dataFieldNames.value;
3579
+ let value;
3580
+ const labelValue = option[labelKey];
3581
+ const valueValue = option[valueKey];
3582
+ if (labelValue != null) {
3583
+ value = labelValue;
3584
+ } else if (valueValue != null) {
3585
+ value = valueValue;
3586
+ }
3587
+ return !!((value == null ? void 0 : value.toLowerCase().indexOf(input == null ? void 0 : input.toLowerCase())) >= 0);
3588
+ };
3529
3589
  const handleRequestData = async () => {
3530
3590
  var _a2, _b2;
3531
3591
  if (props2.dataType !== "request" || unref(pageMode) === "design")
@@ -3534,7 +3594,7 @@ const _sfc_main$e = defineComponent({
3534
3594
  options.value = ((_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.rows) || [];
3535
3595
  const firstOption = unref(options)[0];
3536
3596
  if (props2.value === "" && firstOption != null) {
3537
- myValue.value = firstOption[props2.dataFieldNames.value];
3597
+ myValue.value = firstOption[dataFieldNames.value];
3538
3598
  }
3539
3599
  };
3540
3600
  const { getGlobalModel, setGlobalModel } = inject(GLOBAL_MODEL, {
@@ -3563,11 +3623,12 @@ const _sfc_main$e = defineComponent({
3563
3623
  getPopupContainer,
3564
3624
  myValue,
3565
3625
  selectChange,
3566
- options
3626
+ options,
3627
+ filterOption
3567
3628
  };
3568
3629
  }
3569
3630
  });
3570
- function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
3631
+ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3571
3632
  const _component_a_select = resolveComponent("a-select");
3572
3633
  return openBlock(), createElementBlock("div", {
3573
3634
  class: "ecan-select",
@@ -3580,11 +3641,13 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
3580
3641
  options: _ctx.options,
3581
3642
  getPopupContainer: _ctx.getPopupContainer,
3582
3643
  "field-names": _ctx.dataFieldNames,
3644
+ "show-search": "",
3645
+ "filter-option": _ctx.filterOption,
3583
3646
  onChange: _ctx.selectChange
3584
- }, null, 8, ["value", "options", "getPopupContainer", "field-names", "onChange"])
3647
+ }, null, 8, ["value", "options", "getPopupContainer", "field-names", "filter-option", "onChange"])
3585
3648
  ], 4);
3586
3649
  }
3587
- const Select = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-1eb4535b"]]);
3650
+ const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-5e92066a"]]);
3588
3651
  const EcanSelect = withInstall(Select);
3589
3652
  const rangePickerProps = {
3590
3653
  ...props,
@@ -3602,7 +3665,7 @@ const rangePickerComponentProps = transformToComponentProps(rangePickerProps);
3602
3665
  const rangePickerEvents = ["dateChange"];
3603
3666
  const RangePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
3604
3667
  const RangePicker_vue_vue_type_style_index_1_lang = "";
3605
- const _sfc_main$d = defineComponent({
3668
+ const _sfc_main$e = defineComponent({
3606
3669
  name: "EcanRangePicker",
3607
3670
  components: {
3608
3671
  ARangePicker: RangePicker$1
@@ -3647,7 +3710,7 @@ const _sfc_main$d = defineComponent({
3647
3710
  };
3648
3711
  }
3649
3712
  });
3650
- function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3713
+ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
3651
3714
  const _component_a_range_picker = resolveComponent("a-range-picker");
3652
3715
  return openBlock(), createElementBlock("div", {
3653
3716
  class: "ecan-range-picker",
@@ -3666,7 +3729,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3666
3729
  }, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
3667
3730
  ], 4);
3668
3731
  }
3669
- const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-7433eda4"]]);
3732
+ const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-7433eda4"]]);
3670
3733
  const EcanRangePicker = withInstall(RangePicker);
3671
3734
  const buttonProps = {
3672
3735
  ...props,
@@ -3686,7 +3749,7 @@ const buttonProps = {
3686
3749
  const buttonComponentProps = transformToComponentProps(buttonProps);
3687
3750
  const buttonEvents = ["click"];
3688
3751
  const Button_vue_vue_type_style_index_0_lang = "";
3689
- const _sfc_main$c = defineComponent({
3752
+ const _sfc_main$d = defineComponent({
3690
3753
  name: "EcanButton",
3691
3754
  components: {
3692
3755
  AButton: Button$1
@@ -3729,7 +3792,7 @@ const _sfc_main$c = defineComponent({
3729
3792
  };
3730
3793
  }
3731
3794
  });
3732
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
3795
+ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3733
3796
  const _component_a_button = resolveComponent("a-button");
3734
3797
  return openBlock(), createElementBlock("div", {
3735
3798
  class: "ecan-button",
@@ -3756,8 +3819,96 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
3756
3819
  }, 8, ["onClick", "type", "danger", "shape", "href", "target"])
3757
3820
  ], 4);
3758
3821
  }
3759
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
3822
+ const Button = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d]]);
3760
3823
  const EcanButton = withInstall(Button);
3824
+ const checkboxProps = {
3825
+ ...props,
3826
+ width: "240px",
3827
+ id: "",
3828
+ left: "0px",
3829
+ top: "0px",
3830
+ name: "\u590D\u9009\u6846",
3831
+ keyName: "\u590D\u9009\u6846",
3832
+ rotate: "",
3833
+ type: "ecanCheckbox",
3834
+ value: [],
3835
+ data: [
3836
+ { label: "\u9009\u9879\u4E00", value: "1", checked: true },
3837
+ { label: "\u9009\u9879\u4E8C", value: "2", checked: true },
3838
+ { label: "\u9009\u9879\u4E09", value: "3" }
3839
+ ]
3840
+ };
3841
+ const checkboxComponentProps = transformToComponentProps(checkboxProps);
3842
+ const checkboxEvents = ["checkboxChange"];
3843
+ const Checkbox_vue_vue_type_style_index_0_lang = "";
3844
+ const _sfc_main$c = defineComponent({
3845
+ name: "EcanCheckbox",
3846
+ components: {
3847
+ ACheckboxGroup: CheckboxGroup
3848
+ },
3849
+ props: {
3850
+ ...checkboxComponentProps
3851
+ },
3852
+ setup(props2) {
3853
+ const style2 = usePickComponentStyle(props2);
3854
+ const myOption = ref([]);
3855
+ const myValue = ref([]);
3856
+ watch(() => [props2.data, props2.value], ([data, value]) => {
3857
+ let _value = [];
3858
+ data.forEach((item) => {
3859
+ if (item.checked) {
3860
+ _value.push(item.value);
3861
+ }
3862
+ });
3863
+ if (typeof value === "string" && value !== "") {
3864
+ _value = _value.concat(value.split(","));
3865
+ } else if (Array.isArray(value)) {
3866
+ _value = _value.concat(value);
3867
+ }
3868
+ myOption.value = data;
3869
+ myValue.value = _value;
3870
+ }, {
3871
+ immediate: true,
3872
+ deep: true
3873
+ });
3874
+ const id = props2.id;
3875
+ const { getGlobalModel, setGlobalModel } = inject(GLOBAL_MODEL, {
3876
+ getGlobalModel: (key) => void 0,
3877
+ setGlobalModel: (key, value) => void 0
3878
+ });
3879
+ setGlobalModel(props2.id, {
3880
+ type: props2.type,
3881
+ value: myValue
3882
+ });
3883
+ const emitEvent = useEmitEvent(props2);
3884
+ const checkboxChange = emitEvent("checkboxChange", () => {
3885
+ const modal = getGlobalModel(id);
3886
+ setGlobalModel(id, { ...modal, RECORD: myValue });
3887
+ });
3888
+ return {
3889
+ myOption,
3890
+ style: style2,
3891
+ myValue,
3892
+ checkboxChange
3893
+ };
3894
+ }
3895
+ });
3896
+ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
3897
+ const _component_a_checkbox_group = resolveComponent("a-checkbox-group");
3898
+ return openBlock(), createElementBlock("div", {
3899
+ class: "ecan-checkbox",
3900
+ style: normalizeStyle(_ctx.style)
3901
+ }, [
3902
+ createVNode(_component_a_checkbox_group, {
3903
+ options: _ctx.myOption,
3904
+ value: _ctx.myValue,
3905
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.myValue = $event),
3906
+ onChange: _ctx.checkboxChange
3907
+ }, null, 8, ["options", "value", "onChange"])
3908
+ ], 4);
3909
+ }
3910
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
3911
+ const EcanCheckbox = withInstall(Checkbox);
3761
3912
  const pieProps = {
3762
3913
  ...props,
3763
3914
  id: "",
@@ -6911,6 +7062,7 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
6911
7062
  EcanProportion,
6912
7063
  inputProps,
6913
7064
  inputComponentProps,
7065
+ inputEvents,
6914
7066
  EcanInput,
6915
7067
  datePickerProps,
6916
7068
  datePickerComponentProps,
@@ -6928,6 +7080,10 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
6928
7080
  buttonComponentProps,
6929
7081
  buttonEvents,
6930
7082
  EcanButton,
7083
+ checkboxProps,
7084
+ checkboxComponentProps,
7085
+ checkboxEvents,
7086
+ EcanCheckbox,
6931
7087
  pieProps,
6932
7088
  pieComponentProps,
6933
7089
  pieEvents,
@@ -6989,6 +7145,7 @@ export {
6989
7145
  EcanBar,
6990
7146
  EcanBorder,
6991
7147
  EcanButton,
7148
+ EcanCheckbox,
6992
7149
  EcanComboGraph,
6993
7150
  EcanCustomGraph,
6994
7151
  EcanDatePicker,
@@ -7019,6 +7176,9 @@ export {
7019
7176
  buttonComponentProps,
7020
7177
  buttonEvents,
7021
7178
  buttonProps,
7179
+ checkboxComponentProps,
7180
+ checkboxEvents,
7181
+ checkboxProps,
7022
7182
  comboGraphComponentProps,
7023
7183
  comboGraphEvents,
7024
7184
  comboGraphProps,
@@ -7031,6 +7191,7 @@ export {
7031
7191
  imageComponentProps,
7032
7192
  imageProps,
7033
7193
  inputComponentProps,
7194
+ inputEvents,
7034
7195
  inputProps,
7035
7196
  lineComponentProps,
7036
7197
  lineEvents,