@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.umd.js CHANGED
@@ -1,7 +1,7 @@
1
- /*! @ecan-bi/datav@1.0.80 */
1
+ /*! @ecan-bi/datav@1.0.82 */
2
2
  (function(global, factory) {
3
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("echarts/core"), require("resize-detector"), require("ant-design-vue"), require("ant-design-vue/es/spin/style"), require("ant-design-vue/es/skeleton/style"), require("lodash-es"), require("axios"), require("mitt"), require("dayjs"), require("ant-design-vue/es/progress/style"), require("ant-design-vue/es/input/style"), require("ant-design-vue/es/date-picker/style"), require("ant-design-vue/es/date-picker/locale/zh_CN"), require("ant-design-vue/es/select/style"), require("ant-design-vue/es/button/style"), require("echarts/renderers"), require("echarts/charts"), require("echarts/components"), require("echarts"), require("ant-design-vue/es/modal/style"), require("ant-design-vue/es/table/style")) : typeof define === "function" && define.amd ? define(["exports", "vue", "echarts/core", "resize-detector", "ant-design-vue", "ant-design-vue/es/spin/style", "ant-design-vue/es/skeleton/style", "lodash-es", "axios", "mitt", "dayjs", "ant-design-vue/es/progress/style", "ant-design-vue/es/input/style", "ant-design-vue/es/date-picker/style", "ant-design-vue/es/date-picker/locale/zh_CN", "ant-design-vue/es/select/style", "ant-design-vue/es/button/style", "echarts/renderers", "echarts/charts", "echarts/components", "echarts", "ant-design-vue/es/modal/style", "ant-design-vue/es/table/style"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@ecan/bi-datav"] = {}, global.vue, global["echarts/core"], global["resize-detector"], global["ant-design-vue"], null, null, global["lodash-es"], global.axios, global.mitt, global.dayjs, null, null, null, global["ant-design-vue/es/date-picker/locale/zh_CN"], null, null, global["echarts/renderers"], global["echarts/charts"], global["echarts/components"], global.echarts));
4
- })(this, function(exports2, vue, core, resizeDetector, antDesignVue, style$1, style$2, lodashEs, axios, mitt, dayjs, style$3, style$4, style$5, locale, style$6, style$7, renderers, charts, components$1, echarts) {
3
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("echarts/core"), require("resize-detector"), require("ant-design-vue"), require("ant-design-vue/es/spin/style"), require("ant-design-vue/es/skeleton/style"), require("lodash-es"), require("axios"), require("mitt"), require("dayjs"), require("ant-design-vue/es/progress/style"), require("ant-design-vue/es/input/style"), require("ant-design-vue/es/date-picker/style"), require("ant-design-vue/es/date-picker/locale/zh_CN"), require("ant-design-vue/es/select/style"), require("ant-design-vue/es/button/style"), require("ant-design-vue/es/checkbox/style"), require("echarts/renderers"), require("echarts/charts"), require("echarts/components"), require("echarts"), require("ant-design-vue/es/modal/style"), require("ant-design-vue/es/table/style")) : typeof define === "function" && define.amd ? define(["exports", "vue", "echarts/core", "resize-detector", "ant-design-vue", "ant-design-vue/es/spin/style", "ant-design-vue/es/skeleton/style", "lodash-es", "axios", "mitt", "dayjs", "ant-design-vue/es/progress/style", "ant-design-vue/es/input/style", "ant-design-vue/es/date-picker/style", "ant-design-vue/es/date-picker/locale/zh_CN", "ant-design-vue/es/select/style", "ant-design-vue/es/button/style", "ant-design-vue/es/checkbox/style", "echarts/renderers", "echarts/charts", "echarts/components", "echarts", "ant-design-vue/es/modal/style", "ant-design-vue/es/table/style"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@ecan/bi-datav"] = {}, global.vue, global["echarts/core"], global["resize-detector"], global["ant-design-vue"], null, null, global["lodash-es"], global.axios, global.mitt, global.dayjs, null, null, null, global["ant-design-vue/es/date-picker/locale/zh_CN"], null, null, null, global["echarts/renderers"], global["echarts/charts"], global["echarts/components"], global.echarts));
4
+ })(this, function(exports2, vue, core, resizeDetector, antDesignVue, style$1, style$2, lodashEs, axios, mitt, dayjs, style$3, style$4, style$5, locale, style$6, style$7, style$8, renderers, charts, components$1, echarts) {
5
5
  var _a, _b, _c;
6
6
  "use strict";
7
7
  const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
@@ -1401,7 +1401,7 @@
1401
1401
  }
1402
1402
  return target;
1403
1403
  };
1404
- const _sfc_main$p = vue.defineComponent({
1404
+ const _sfc_main$q = vue.defineComponent({
1405
1405
  props: {
1406
1406
  spinning: {
1407
1407
  type: Boolean,
@@ -1425,7 +1425,7 @@
1425
1425
  }
1426
1426
  });
1427
1427
  const _hoisted_1$a = { class: "spin-wrapper" };
1428
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
1428
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
1429
1429
  const _component_a_spin = vue.resolveComponent("a-spin");
1430
1430
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
1431
1431
  _ctx.spinning ? (vue.openBlock(), vue.createBlock(_component_a_spin, {
@@ -1437,8 +1437,8 @@
1437
1437
  }, null, 8, ["spinning", "indicator"])) : vue.renderSlot(_ctx.$slots, "default", { key: 1 })
1438
1438
  ]);
1439
1439
  }
1440
- const Spin = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]);
1441
- const _sfc_main$o = vue.defineComponent({
1440
+ const Spin = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
1441
+ const _sfc_main$p = vue.defineComponent({
1442
1442
  name: "Skeleton",
1443
1443
  props: {
1444
1444
  loading: {
@@ -1450,7 +1450,7 @@
1450
1450
  ASkeleton: antDesignVue.Skeleton
1451
1451
  }
1452
1452
  });
1453
- function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
1453
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
1454
1454
  const _component_a_skeleton = vue.resolveComponent("a-skeleton");
1455
1455
  return vue.openBlock(), vue.createBlock(_component_a_skeleton, {
1456
1456
  active: "",
@@ -1462,7 +1462,7 @@
1462
1462
  _: 3
1463
1463
  }, 8, ["loading"]);
1464
1464
  }
1465
- const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o]]);
1465
+ const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]);
1466
1466
  process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
1467
1467
  process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
1468
1468
  const withInstall = (main, extra) => {
@@ -1718,13 +1718,22 @@
1718
1718
  record = getGlobalModel(id) || {};
1719
1719
  }
1720
1720
  const p = vue.unref(record[prop]);
1721
- const isNeedFormat = ["date", "range"].some((item) => lowerCaseIncludes(record == null ? void 0 : record.type, item));
1722
1721
  let v = "";
1722
+ const isNeedFormat = ["date", "range"].some((item) => lowerCaseIncludes(record == null ? void 0 : record.type, item));
1723
1723
  if (isNeedFormat) {
1724
1724
  v = ((_a2 = vue.unref(p)) == null ? void 0 : _a2.format((propKey == null ? void 0 : propKey.trim()) || record.format)) || "";
1725
1725
  } else {
1726
- v = p != null && typeof p === "object" ? p[propKey || "value"] : p;
1726
+ if (Object.prototype.toString.call(p) === "[object Objet]") {
1727
+ v = p[propKey || "value"];
1728
+ } else if (Array.isArray(p)) {
1729
+ v = p.join(",");
1730
+ } else {
1731
+ v = p;
1732
+ }
1733
+ console.log(p);
1734
+ console.log("v", v);
1727
1735
  }
1736
+ console.log("v", v);
1728
1737
  _params[key] = v;
1729
1738
  } else if (typeof value === "string") {
1730
1739
  _params[key] = useVariablesInText(value);
@@ -2449,7 +2458,7 @@
2449
2458
  }
2450
2459
  };
2451
2460
  const PageConfig_vue_vue_type_style_index_0_scoped_true_lang = "";
2452
- const _sfc_main$n = vue.defineComponent({
2461
+ const _sfc_main$o = vue.defineComponent({
2453
2462
  name: "EcanPageConfig",
2454
2463
  inheritAttrs: false,
2455
2464
  props: {
@@ -2550,7 +2559,7 @@
2550
2559
  id: "container",
2551
2560
  ref: "container"
2552
2561
  };
2553
- function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2562
+ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
2554
2563
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$9, [
2555
2564
  _ctx.ready ? (vue.openBlock(), vue.createElementBlock("div", {
2556
2565
  key: 0,
@@ -2561,7 +2570,7 @@
2561
2570
  ], 4)) : vue.createCommentVNode("", true)
2562
2571
  ], 512);
2563
2572
  }
2564
- const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-c850087e"]]);
2573
+ const PageConfig = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-c850087e"]]);
2565
2574
  const EcanPageConfig = withInstall(PageConfig);
2566
2575
  const providerConfig = {
2567
2576
  contextRequestUrl: "",
@@ -2570,7 +2579,7 @@
2570
2579
  containerMap: {}
2571
2580
  };
2572
2581
  const providerConfigComponentProps = transformToComponentProps(providerConfig);
2573
- const _sfc_main$m = vue.defineComponent({
2582
+ const _sfc_main$n = vue.defineComponent({
2574
2583
  name: "EcanProviderConfig",
2575
2584
  inheritAttrs: false,
2576
2585
  props: {
@@ -2714,12 +2723,12 @@
2714
2723
  id: "ProviderConfig",
2715
2724
  ref: "providerConfig"
2716
2725
  };
2717
- function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2726
+ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2718
2727
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$8, [
2719
2728
  vue.renderSlot(_ctx.$slots, "default")
2720
2729
  ], 512);
2721
2730
  }
2722
- const ProviderConfig = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m]]);
2731
+ const ProviderConfig = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
2723
2732
  const EcanProviderConfig = withInstall(ProviderConfig);
2724
2733
  const textProps = {
2725
2734
  ...props,
@@ -2747,7 +2756,7 @@
2747
2756
  const goUp = "data:image/png;base64,iVBORw0KGgoAAA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DQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+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==";
2749
2758
  const Text_vue_vue_type_style_index_0_scoped_true_lang = "";
2750
- const _sfc_main$l = vue.defineComponent({
2759
+ const _sfc_main$m = vue.defineComponent({
2751
2760
  name: "EcanText",
2752
2761
  components: { Skeleton },
2753
2762
  props: {
@@ -2850,7 +2859,7 @@
2850
2859
  }
2851
2860
  });
2852
2861
  const _hoisted_1$7 = ["innerHTML"];
2853
- function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2862
+ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
2854
2863
  const _component_skeleton = vue.resolveComponent("skeleton");
2855
2864
  return _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", {
2856
2865
  key: 0,
@@ -2866,10 +2875,10 @@
2866
2875
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
2867
2876
  }, null, 12, _hoisted_1$7));
2868
2877
  }
2869
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-04fdee06"]]);
2878
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-04fdee06"]]);
2870
2879
  const EcanText = withInstall(Text);
2871
2880
  const ScrollText_vue_vue_type_style_index_0_scoped_true_lang = "";
2872
- const _sfc_main$k = vue.defineComponent({
2881
+ const _sfc_main$l = vue.defineComponent({
2873
2882
  name: "EcanScrollText",
2874
2883
  setup() {
2875
2884
  const text = vue.ref("\u57FA\u7840\u6587\u672C");
@@ -2879,10 +2888,10 @@
2879
2888
  }
2880
2889
  });
2881
2890
  const _hoisted_1$6 = { class: "red" };
2882
- function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2891
+ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
2883
2892
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, vue.toDisplayString(_ctx.text), 1);
2884
2893
  }
2885
- const ScrollText = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-0bb717eb"]]);
2894
+ const ScrollText = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-0bb717eb"]]);
2886
2895
  const EcanScrollText = withInstall(ScrollText);
2887
2896
  const timeDisplayProps = {
2888
2897
  ...props,
@@ -2902,7 +2911,7 @@
2902
2911
  };
2903
2912
  const timeDisplayComponentProps = transformToComponentProps(timeDisplayProps);
2904
2913
  const TimeDisplay_vue_vue_type_style_index_0_scoped_true_lang = "";
2905
- const _sfc_main$j = vue.defineComponent({
2914
+ const _sfc_main$k = vue.defineComponent({
2906
2915
  name: "EcanTimeDisplay",
2907
2916
  props: {
2908
2917
  ...timeDisplayComponentProps
@@ -2935,13 +2944,13 @@
2935
2944
  };
2936
2945
  }
2937
2946
  });
2938
- function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
2947
+ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2939
2948
  return vue.openBlock(), vue.createElementBlock("div", {
2940
2949
  class: "time-display",
2941
2950
  style: vue.normalizeStyle(_ctx.style)
2942
2951
  }, vue.toDisplayString(_ctx.time), 5);
2943
2952
  }
2944
- const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-2da8f6d2"]]);
2953
+ const TimeDisplay = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-2da8f6d2"]]);
2945
2954
  const EcanTimeDisplay = withInstall(TimeDisplay);
2946
2955
  const listProps = {
2947
2956
  ...props,
@@ -2981,7 +2990,7 @@
2981
2990
  const listEvents = ["refreshData", "click"];
2982
2991
  const List_vue_vue_type_style_index_0_scoped_true_lang = "";
2983
2992
  const List_vue_vue_type_style_index_1_lang = "";
2984
- const _sfc_main$i = vue.defineComponent({
2993
+ const _sfc_main$j = vue.defineComponent({
2985
2994
  name: "EcanList",
2986
2995
  components: { Skeleton },
2987
2996
  props: {
@@ -3089,7 +3098,7 @@
3089
3098
  key: 2,
3090
3099
  class: "empty"
3091
3100
  };
3092
- function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3101
+ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
3093
3102
  const _component_skeleton = vue.resolveComponent("skeleton");
3094
3103
  return vue.openBlock(), vue.createElementBlock("div", {
3095
3104
  class: "ecan-list",
@@ -3168,7 +3177,7 @@
3168
3177
  }, 8, ["loading"])
3169
3178
  ], 4);
3170
3179
  }
3171
- const List = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-2d4a657c"]]);
3180
+ const List = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-2d4a657c"]]);
3172
3181
  const EcanList = withInstall(List);
3173
3182
  const proportionProps = {
3174
3183
  ...props,
@@ -3197,7 +3206,7 @@
3197
3206
  const proportionComponentProps = transformToComponentProps(proportionProps);
3198
3207
  const proportionEvents = ["refreshData", "click"];
3199
3208
  const Proportion_vue_vue_type_style_index_0_scoped_true_lang = "";
3200
- const _sfc_main$h = vue.defineComponent({
3209
+ const _sfc_main$i = vue.defineComponent({
3201
3210
  name: "EcanProportion",
3202
3211
  components: {
3203
3212
  AProgress: antDesignVue.Progress,
@@ -3337,7 +3346,7 @@
3337
3346
  };
3338
3347
  }
3339
3348
  });
3340
- function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3349
+ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
3341
3350
  const _component_skeleton = vue.resolveComponent("skeleton");
3342
3351
  const _component_a_progress = vue.resolveComponent("a-progress");
3343
3352
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -3376,7 +3385,7 @@
3376
3385
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
3377
3386
  ], 4);
3378
3387
  }
3379
- const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-4f7958e8"]]);
3388
+ const Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-4f7958e8"]]);
3380
3389
  const EcanProportion = withInstall(Proportion);
3381
3390
  const inputProps = {
3382
3391
  ...props,
@@ -3392,8 +3401,9 @@
3392
3401
  placeholder: "\u8BF7\u8F93\u5165\u6587\u5B57"
3393
3402
  };
3394
3403
  const inputComponentProps = transformToComponentProps(inputProps);
3395
- const Input_vue_vue_type_style_index_0_scoped_true_lang = "";
3396
- const _sfc_main$g = vue.defineComponent({
3404
+ const inputEvents = ["inputChange", "inputBlur"];
3405
+ const Input_vue_vue_type_style_index_0_lang = "";
3406
+ const _sfc_main$h = vue.defineComponent({
3397
3407
  name: "EcanInput",
3398
3408
  components: {
3399
3409
  AInput: antDesignVue.Input
@@ -3403,12 +3413,40 @@
3403
3413
  },
3404
3414
  setup(props2) {
3405
3415
  const style2 = usePickComponentStyle(props2);
3416
+ const myValue = vue.ref("");
3417
+ vue.watch(() => props2.value, (value) => {
3418
+ myValue.value = value;
3419
+ }, {
3420
+ immediate: true
3421
+ });
3422
+ const id = props2.id;
3423
+ const { getGlobalModel, setGlobalModel } = vue.inject(GLOBAL_MODEL, {
3424
+ getGlobalModel: (key) => void 0,
3425
+ setGlobalModel: (key, value) => void 0
3426
+ });
3427
+ setGlobalModel(props2.id, {
3428
+ type: props2.type,
3429
+ value: myValue
3430
+ });
3431
+ const handleSetGlobalModel = () => {
3432
+ const modal = getGlobalModel(id);
3433
+ setGlobalModel(id, { ...modal, RECORD: myValue });
3434
+ };
3435
+ const emitEvent = useEmitEvent(props2);
3436
+ const inputChange = lodashEs.debounce(emitEvent("inputChange", () => {
3437
+ handleSetGlobalModel();
3438
+ }), 300);
3439
+ const inputBlur = emitEvent("inputBlur", () => {
3440
+ });
3406
3441
  return {
3407
- style: style2
3442
+ style: style2,
3443
+ myValue,
3444
+ inputBlur,
3445
+ inputChange
3408
3446
  };
3409
3447
  }
3410
3448
  });
3411
- function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3449
+ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
3412
3450
  const _component_a_input = vue.resolveComponent("a-input");
3413
3451
  return vue.openBlock(), vue.createElementBlock("div", {
3414
3452
  class: "ecan-input",
@@ -3416,12 +3454,15 @@
3416
3454
  }, [
3417
3455
  vue.createVNode(_component_a_input, {
3418
3456
  class: "input",
3419
- value: _ctx.value,
3420
- placeholder: _ctx.placeholder
3421
- }, null, 8, ["value", "placeholder"])
3457
+ value: _ctx.myValue,
3458
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.myValue = $event),
3459
+ placeholder: _ctx.placeholder,
3460
+ onChange: _ctx.inputChange,
3461
+ onBlur: _ctx.inputBlur
3462
+ }, null, 8, ["value", "placeholder", "onChange", "onBlur"])
3422
3463
  ], 4);
3423
3464
  }
3424
- const Input = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-506cf42a"]]);
3465
+ const Input = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h]]);
3425
3466
  const EcanInput = withInstall(Input);
3426
3467
  const datePickerProps = {
3427
3468
  ...props,
@@ -3443,7 +3484,7 @@
3443
3484
  const datePickerEvents = ["dateChange"];
3444
3485
  const DatePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
3445
3486
  const DatePicker_vue_vue_type_style_index_1_lang = "";
3446
- const _sfc_main$f = vue.defineComponent({
3487
+ const _sfc_main$g = vue.defineComponent({
3447
3488
  name: "EcanDatePicker",
3448
3489
  props: {
3449
3490
  ...datePickerComponentProps
@@ -3478,7 +3519,7 @@
3478
3519
  };
3479
3520
  }
3480
3521
  });
3481
- function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3522
+ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
3482
3523
  const _component_a_date_picker = vue.resolveComponent("a-date-picker");
3483
3524
  return vue.openBlock(), vue.createElementBlock("div", {
3484
3525
  class: "ecan-date-picker",
@@ -3498,7 +3539,7 @@
3498
3539
  }, null, 8, ["value", "format", "picker", "showTime", "locale", "onChange", "getPopupContainer"])
3499
3540
  ], 4);
3500
3541
  }
3501
- const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-6e240054"]]);
3542
+ const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__scopeId", "data-v-6e240054"]]);
3502
3543
  const EcanDatePicker = withInstall(DatePicker);
3503
3544
  const selectProps = {
3504
3545
  ...props,
@@ -3507,7 +3548,11 @@
3507
3548
  width: "120px",
3508
3549
  height: "33px",
3509
3550
  type: "ecanSelect",
3510
- data: [],
3551
+ data: [
3552
+ { label: "\u9009\u9879\u4E00", value: 1 },
3553
+ { label: "\u9009\u9879\u4E8C", value: 2 },
3554
+ { label: "\u9009\u9879\u4E09", value: 3 }
3555
+ ],
3511
3556
  value: "",
3512
3557
  dataFieldNames: { label: "label", value: "value" }
3513
3558
  };
@@ -3515,7 +3560,7 @@
3515
3560
  const selectEvents = ["selectChange"];
3516
3561
  const Select_vue_vue_type_style_index_0_scoped_true_lang = "";
3517
3562
  const Select_vue_vue_type_style_index_1_lang = "";
3518
- const _sfc_main$e = vue.defineComponent({
3563
+ const _sfc_main$f = vue.defineComponent({
3519
3564
  name: "EcanSelect",
3520
3565
  components: {
3521
3566
  ASelect: antDesignVue.Select
@@ -3532,6 +3577,20 @@
3532
3577
  });
3533
3578
  const options = vue.ref(props2.data);
3534
3579
  const myValue = vue.ref(props2.value || props2.data[0]);
3580
+ const dataFieldNames = props2.dataFieldNames;
3581
+ const filterOption = (input, option) => {
3582
+ const labelKey = dataFieldNames.label;
3583
+ const valueKey = dataFieldNames.value;
3584
+ let value;
3585
+ const labelValue = option[labelKey];
3586
+ const valueValue = option[valueKey];
3587
+ if (labelValue != null) {
3588
+ value = labelValue;
3589
+ } else if (valueValue != null) {
3590
+ value = valueValue;
3591
+ }
3592
+ return !!((value == null ? void 0 : value.toLowerCase().indexOf(input == null ? void 0 : input.toLowerCase())) >= 0);
3593
+ };
3535
3594
  const handleRequestData = async () => {
3536
3595
  var _a2, _b2;
3537
3596
  if (props2.dataType !== "request" || vue.unref(pageMode) === "design")
@@ -3540,7 +3599,7 @@
3540
3599
  options.value = ((_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.rows) || [];
3541
3600
  const firstOption = vue.unref(options)[0];
3542
3601
  if (props2.value === "" && firstOption != null) {
3543
- myValue.value = firstOption[props2.dataFieldNames.value];
3602
+ myValue.value = firstOption[dataFieldNames.value];
3544
3603
  }
3545
3604
  };
3546
3605
  const { getGlobalModel, setGlobalModel } = vue.inject(GLOBAL_MODEL, {
@@ -3569,11 +3628,12 @@
3569
3628
  getPopupContainer,
3570
3629
  myValue,
3571
3630
  selectChange,
3572
- options
3631
+ options,
3632
+ filterOption
3573
3633
  };
3574
3634
  }
3575
3635
  });
3576
- function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
3636
+ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
3577
3637
  const _component_a_select = vue.resolveComponent("a-select");
3578
3638
  return vue.openBlock(), vue.createElementBlock("div", {
3579
3639
  class: "ecan-select",
@@ -3586,11 +3646,13 @@
3586
3646
  options: _ctx.options,
3587
3647
  getPopupContainer: _ctx.getPopupContainer,
3588
3648
  "field-names": _ctx.dataFieldNames,
3649
+ "show-search": "",
3650
+ "filter-option": _ctx.filterOption,
3589
3651
  onChange: _ctx.selectChange
3590
- }, null, 8, ["value", "options", "getPopupContainer", "field-names", "onChange"])
3652
+ }, null, 8, ["value", "options", "getPopupContainer", "field-names", "filter-option", "onChange"])
3591
3653
  ], 4);
3592
3654
  }
3593
- const Select = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-1eb4535b"]]);
3655
+ const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-5e92066a"]]);
3594
3656
  const EcanSelect = withInstall(Select);
3595
3657
  const rangePickerProps = {
3596
3658
  ...props,
@@ -3608,7 +3670,7 @@
3608
3670
  const rangePickerEvents = ["dateChange"];
3609
3671
  const RangePicker_vue_vue_type_style_index_0_scoped_true_lang = "";
3610
3672
  const RangePicker_vue_vue_type_style_index_1_lang = "";
3611
- const _sfc_main$d = vue.defineComponent({
3673
+ const _sfc_main$e = vue.defineComponent({
3612
3674
  name: "EcanRangePicker",
3613
3675
  components: {
3614
3676
  ARangePicker: antDesignVue.RangePicker
@@ -3653,7 +3715,7 @@
3653
3715
  };
3654
3716
  }
3655
3717
  });
3656
- function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3718
+ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
3657
3719
  const _component_a_range_picker = vue.resolveComponent("a-range-picker");
3658
3720
  return vue.openBlock(), vue.createElementBlock("div", {
3659
3721
  class: "ecan-range-picker",
@@ -3672,7 +3734,7 @@
3672
3734
  }, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
3673
3735
  ], 4);
3674
3736
  }
3675
- const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-7433eda4"]]);
3737
+ const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-7433eda4"]]);
3676
3738
  const EcanRangePicker = withInstall(RangePicker);
3677
3739
  const buttonProps = {
3678
3740
  ...props,
@@ -3692,7 +3754,7 @@
3692
3754
  const buttonComponentProps = transformToComponentProps(buttonProps);
3693
3755
  const buttonEvents = ["click"];
3694
3756
  const Button_vue_vue_type_style_index_0_lang = "";
3695
- const _sfc_main$c = vue.defineComponent({
3757
+ const _sfc_main$d = vue.defineComponent({
3696
3758
  name: "EcanButton",
3697
3759
  components: {
3698
3760
  AButton: antDesignVue.Button
@@ -3735,7 +3797,7 @@
3735
3797
  };
3736
3798
  }
3737
3799
  });
3738
- function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
3800
+ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3739
3801
  const _component_a_button = vue.resolveComponent("a-button");
3740
3802
  return vue.openBlock(), vue.createElementBlock("div", {
3741
3803
  class: "ecan-button",
@@ -3762,8 +3824,96 @@
3762
3824
  }, 8, ["onClick", "type", "danger", "shape", "href", "target"])
3763
3825
  ], 4);
3764
3826
  }
3765
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
3827
+ const Button = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d]]);
3766
3828
  const EcanButton = withInstall(Button);
3829
+ const checkboxProps = {
3830
+ ...props,
3831
+ width: "240px",
3832
+ id: "",
3833
+ left: "0px",
3834
+ top: "0px",
3835
+ name: "\u590D\u9009\u6846",
3836
+ keyName: "\u590D\u9009\u6846",
3837
+ rotate: "",
3838
+ type: "ecanCheckbox",
3839
+ value: [],
3840
+ data: [
3841
+ { label: "\u9009\u9879\u4E00", value: "1", checked: true },
3842
+ { label: "\u9009\u9879\u4E8C", value: "2", checked: true },
3843
+ { label: "\u9009\u9879\u4E09", value: "3" }
3844
+ ]
3845
+ };
3846
+ const checkboxComponentProps = transformToComponentProps(checkboxProps);
3847
+ const checkboxEvents = ["checkboxChange"];
3848
+ const Checkbox_vue_vue_type_style_index_0_lang = "";
3849
+ const _sfc_main$c = vue.defineComponent({
3850
+ name: "EcanCheckbox",
3851
+ components: {
3852
+ ACheckboxGroup: antDesignVue.CheckboxGroup
3853
+ },
3854
+ props: {
3855
+ ...checkboxComponentProps
3856
+ },
3857
+ setup(props2) {
3858
+ const style2 = usePickComponentStyle(props2);
3859
+ const myOption = vue.ref([]);
3860
+ const myValue = vue.ref([]);
3861
+ vue.watch(() => [props2.data, props2.value], ([data, value]) => {
3862
+ let _value = [];
3863
+ data.forEach((item) => {
3864
+ if (item.checked) {
3865
+ _value.push(item.value);
3866
+ }
3867
+ });
3868
+ if (typeof value === "string" && value !== "") {
3869
+ _value = _value.concat(value.split(","));
3870
+ } else if (Array.isArray(value)) {
3871
+ _value = _value.concat(value);
3872
+ }
3873
+ myOption.value = data;
3874
+ myValue.value = _value;
3875
+ }, {
3876
+ immediate: true,
3877
+ deep: true
3878
+ });
3879
+ const id = props2.id;
3880
+ const { getGlobalModel, setGlobalModel } = vue.inject(GLOBAL_MODEL, {
3881
+ getGlobalModel: (key) => void 0,
3882
+ setGlobalModel: (key, value) => void 0
3883
+ });
3884
+ setGlobalModel(props2.id, {
3885
+ type: props2.type,
3886
+ value: myValue
3887
+ });
3888
+ const emitEvent = useEmitEvent(props2);
3889
+ const checkboxChange = emitEvent("checkboxChange", () => {
3890
+ const modal = getGlobalModel(id);
3891
+ setGlobalModel(id, { ...modal, RECORD: myValue });
3892
+ });
3893
+ return {
3894
+ myOption,
3895
+ style: style2,
3896
+ myValue,
3897
+ checkboxChange
3898
+ };
3899
+ }
3900
+ });
3901
+ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
3902
+ const _component_a_checkbox_group = vue.resolveComponent("a-checkbox-group");
3903
+ return vue.openBlock(), vue.createElementBlock("div", {
3904
+ class: "ecan-checkbox",
3905
+ style: vue.normalizeStyle(_ctx.style)
3906
+ }, [
3907
+ vue.createVNode(_component_a_checkbox_group, {
3908
+ options: _ctx.myOption,
3909
+ value: _ctx.myValue,
3910
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.myValue = $event),
3911
+ onChange: _ctx.checkboxChange
3912
+ }, null, 8, ["options", "value", "onChange"])
3913
+ ], 4);
3914
+ }
3915
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c]]);
3916
+ const EcanCheckbox = withInstall(Checkbox);
3767
3917
  const pieProps = {
3768
3918
  ...props,
3769
3919
  id: "",
@@ -6917,6 +7067,7 @@
6917
7067
  EcanProportion,
6918
7068
  inputProps,
6919
7069
  inputComponentProps,
7070
+ inputEvents,
6920
7071
  EcanInput,
6921
7072
  datePickerProps,
6922
7073
  datePickerComponentProps,
@@ -6934,6 +7085,10 @@
6934
7085
  buttonComponentProps,
6935
7086
  buttonEvents,
6936
7087
  EcanButton,
7088
+ checkboxProps,
7089
+ checkboxComponentProps,
7090
+ checkboxEvents,
7091
+ EcanCheckbox,
6937
7092
  pieProps,
6938
7093
  pieComponentProps,
6939
7094
  pieEvents,
@@ -6994,6 +7149,7 @@
6994
7149
  exports2.EcanBar = EcanBar;
6995
7150
  exports2.EcanBorder = EcanBorder;
6996
7151
  exports2.EcanButton = EcanButton;
7152
+ exports2.EcanCheckbox = EcanCheckbox;
6997
7153
  exports2.EcanComboGraph = EcanComboGraph;
6998
7154
  exports2.EcanCustomGraph = EcanCustomGraph;
6999
7155
  exports2.EcanDatePicker = EcanDatePicker;
@@ -7024,6 +7180,9 @@
7024
7180
  exports2.buttonComponentProps = buttonComponentProps;
7025
7181
  exports2.buttonEvents = buttonEvents;
7026
7182
  exports2.buttonProps = buttonProps;
7183
+ exports2.checkboxComponentProps = checkboxComponentProps;
7184
+ exports2.checkboxEvents = checkboxEvents;
7185
+ exports2.checkboxProps = checkboxProps;
7027
7186
  exports2.comboGraphComponentProps = comboGraphComponentProps;
7028
7187
  exports2.comboGraphEvents = comboGraphEvents;
7029
7188
  exports2.comboGraphProps = comboGraphProps;
@@ -7036,6 +7195,7 @@
7036
7195
  exports2.imageComponentProps = imageComponentProps;
7037
7196
  exports2.imageProps = imageProps;
7038
7197
  exports2.inputComponentProps = inputComponentProps;
7198
+ exports2.inputEvents = inputEvents;
7039
7199
  exports2.inputProps = inputProps;
7040
7200
  exports2.lineComponentProps = lineComponentProps;
7041
7201
  exports2.lineEvents = lineEvents;