@ecan-bi/datav 1.1.4 → 1.1.6

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,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.1.4 */
1
+ /*! @ecan-bi/datav@1.1.6 */
2
2
  (function(global, factory) {
3
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
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) {
@@ -1560,7 +1560,7 @@
1560
1560
  const GLOBAL_TOKEN = "GLOBAL_TOKEN";
1561
1561
  const REFRESH_PAGE = "REFRESH_PAGE";
1562
1562
  const INDICATOR_URL = (_a = window == null ? void 0 : window.config) == null ? void 0 : _a.indicatorURL;
1563
- const UPLOAD_PATH = ((_b = window == null ? void 0 : window.config) == null ? void 0 : _b.uploadPath) || "/api";
1563
+ ((_b = window == null ? void 0 : window.config) == null ? void 0 : _b.uploadPath) || "/api";
1564
1564
  const BASE_URL = ((_c = window == null ? void 0 : window.config) == null ? void 0 : _c.routerBaseURL) || "./";
1565
1565
  const ERD_URL = ((_d = window == null ? void 0 : window.config) == null ? void 0 : _d.erdURL) || "";
1566
1566
  const useOnEvent = (props2, events) => {
@@ -1841,13 +1841,14 @@
1841
1841
  };
1842
1842
  };
1843
1843
  const useImagePath = (path, isFormat = false) => {
1844
+ var _a2;
1844
1845
  if (!path)
1845
1846
  return path;
1846
1847
  let imagePath = "";
1847
1848
  if (path == null ? void 0 : path.includes("://")) {
1848
1849
  imagePath = path;
1849
1850
  } else {
1850
- imagePath = UPLOAD_PATH + path;
1851
+ imagePath = ((_a2 = window == null ? void 0 : window.config) == null ? void 0 : _a2.uploadPath) + path;
1851
1852
  }
1852
1853
  if (isFormat) {
1853
1854
  imagePath = `url(${imagePath})`;
@@ -2828,7 +2829,6 @@
2828
2829
  let usedVariable = data[v];
2829
2830
  if (usedVariable != null) {
2830
2831
  const format = props2.format;
2831
- console.log("format", format);
2832
2832
  if (format === "percentage") {
2833
2833
  usedVariable = +usedVariable;
2834
2834
  if (!isNaN(usedVariable)) {
@@ -2842,7 +2842,6 @@
2842
2842
  text = text.replace(variable, `<span style="color:${props2.variableColor};font-size:${props2.variableFontSize}">${0}%</span>`);
2843
2843
  }
2844
2844
  } else if (format === "percent") {
2845
- console.log("format", format);
2846
2845
  usedVariable = +usedVariable;
2847
2846
  if (!isNaN(usedVariable)) {
2848
2847
  usedVariable = (usedVariable * 100).toFixed(2);
@@ -2930,7 +2929,7 @@
2930
2929
  };
2931
2930
  }
2932
2931
  });
2933
- const Text_vue_vue_type_style_index_0_scoped_0a5690c3_lang = "";
2932
+ const Text_vue_vue_type_style_index_0_scoped_445a06d8_lang = "";
2934
2933
  const _hoisted_1$8 = ["innerHTML"];
2935
2934
  function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
2936
2935
  const _component_skeleton = vue.resolveComponent("skeleton");
@@ -2948,7 +2947,7 @@
2948
2947
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
2949
2948
  }, null, 12, _hoisted_1$8));
2950
2949
  }
2951
- const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-0a5690c3"]]);
2950
+ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-445a06d8"]]);
2952
2951
  const EcanText = withInstall(Text);
2953
2952
  const _sfc_main$m = vue.defineComponent({
2954
2953
  name: "EcanScrollText",
@@ -3165,11 +3164,11 @@
3165
3164
  key: 1,
3166
3165
  class: "ecan-list-content"
3167
3166
  };
3168
- const _hoisted_4$1 = {
3167
+ const _hoisted_4$2 = {
3169
3168
  key: 0,
3170
3169
  class: "ranking"
3171
3170
  };
3172
- const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "icon" }, null, -1));
3171
+ const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "icon" }, null, -1));
3173
3172
  const _hoisted_6$1 = { class: "sort" };
3174
3173
  const _hoisted_7$1 = {
3175
3174
  key: 2,
@@ -3230,8 +3229,8 @@
3230
3229
  key: item.id || i,
3231
3230
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
3232
3231
  }, [
3233
- _ctx.useRanking ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [
3234
- _hoisted_5$1,
3232
+ _ctx.useRanking ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [
3233
+ _hoisted_5$2,
3235
3234
  vue.createElementVNode("div", _hoisted_6$1, " Top " + vue.toDisplayString(i + 1), 1)
3236
3235
  ])) : vue.createCommentVNode("", true),
3237
3236
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columns, (column) => {
@@ -6225,8 +6224,8 @@
6225
6224
  const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-left border-item" }, null, -1));
6226
6225
  const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-right border-item" }, null, -1));
6227
6226
  const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
6228
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
6229
- const _hoisted_5 = { class: "title-item-wrapper" };
6227
+ const _hoisted_4$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
6228
+ const _hoisted_5$1 = { class: "title-item-wrapper" };
6230
6229
  const _hoisted_6 = { class: "title-item" };
6231
6230
  const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("img", {
6232
6231
  class: "title-decoration-left",
@@ -6261,7 +6260,7 @@
6261
6260
  _hoisted_1$5,
6262
6261
  _hoisted_2$1,
6263
6262
  _hoisted_3$1,
6264
- _hoisted_4
6263
+ _hoisted_4$1
6265
6264
  ], 64)) : vue.createCommentVNode("", true)
6266
6265
  ], 4)) : vue.createCommentVNode("", true),
6267
6266
  _ctx.mode === "top-title" ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -6269,7 +6268,7 @@
6269
6268
  class: "top-title",
6270
6269
  style: vue.normalizeStyle(_ctx.borderStyle)
6271
6270
  }, [
6272
- vue.createElementVNode("div", _hoisted_5, [
6271
+ vue.createElementVNode("div", _hoisted_5$1, [
6273
6272
  vue.createElementVNode("div", _hoisted_6, [
6274
6273
  _hoisted_7,
6275
6274
  vue.createElementVNode("div", _hoisted_8, vue.toDisplayString(_ctx.title), 1),
@@ -6740,6 +6739,7 @@
6740
6739
  paginationPageSize: 10,
6741
6740
  isUseAction: false,
6742
6741
  clickHighlight: false,
6742
+ filterDropdownHeight: "200px",
6743
6743
  actionList: [{
6744
6744
  title: "",
6745
6745
  href: "",
@@ -6785,6 +6785,8 @@
6785
6785
  name: "EcanTable",
6786
6786
  components: {
6787
6787
  Skeleton,
6788
+ AInput: antDesignVue.Input,
6789
+ ACheckboxGroup: antDesignVue.CheckboxGroup,
6788
6790
  ATable: antDesignVue.Table,
6789
6791
  ATableSummary: antDesignVue.TableSummary,
6790
6792
  ATableSummaryRow: antDesignVue.TableSummaryRow,
@@ -6825,6 +6827,7 @@
6825
6827
  const total = vue.ref(0);
6826
6828
  const pageNum = vue.ref(1);
6827
6829
  const pageSize = vue.computed(() => props2.paginationPageSize);
6830
+ const filterDataIndexList = vue.reactive([]);
6828
6831
  const handleChildrenColumns = (_columns = []) => {
6829
6832
  if (Array.isArray(_columns) && _columns.length > 0) {
6830
6833
  const len = _columns.length;
@@ -6840,8 +6843,16 @@
6840
6843
  cellAlign = "center",
6841
6844
  cellColor,
6842
6845
  dataIndex,
6843
- title
6846
+ title,
6847
+ tableFilter
6844
6848
  } = column;
6849
+ if (tableFilter) {
6850
+ filterDataIndexList.push(dataIndex);
6851
+ column.filterOptionsInputValue = "";
6852
+ column.filterCheckboxGroupValue = [];
6853
+ column.customFilterDropdown = true;
6854
+ column.onFilter = (value, record) => record[dataIndex].toString().toLowerCase().includes(value.toLowerCase());
6855
+ }
6845
6856
  column.customCell = (record, rowIndex) => ({
6846
6857
  style: {
6847
6858
  textAlign: cellAlign,
@@ -6908,14 +6919,48 @@
6908
6919
  }, {
6909
6920
  immediate: true
6910
6921
  });
6922
+ const allFilterOptions = vue.ref({});
6923
+ const handleFilterCheckboxOptions = (dataSource) => {
6924
+ if (Array.isArray(dataSource)) {
6925
+ const dataLen = dataSource.length;
6926
+ const keys = filterDataIndexList;
6927
+ const keysLen = keys.length;
6928
+ const filterOptionsMap = {};
6929
+ for (let i = 0; i < dataLen; i++) {
6930
+ const record = dataSource[i];
6931
+ for (let j = 0; j < keysLen; j++) {
6932
+ const key = keys[j];
6933
+ if (filterOptionsMap[key]) {
6934
+ filterOptionsMap[key].add(record[key]);
6935
+ } else {
6936
+ const set = /* @__PURE__ */ new Set();
6937
+ set.add(record[key]);
6938
+ filterOptionsMap[key] = set;
6939
+ }
6940
+ }
6941
+ }
6942
+ const _allFilterOptions = {};
6943
+ for (const key in filterOptionsMap) {
6944
+ if (Object.prototype.hasOwnProperty.call(filterOptionsMap, key)) {
6945
+ const optionsSet = filterOptionsMap[key];
6946
+ const options = Array.from(optionsSet);
6947
+ _allFilterOptions[key] = options.map((option) => ({ label: option, value: option }));
6948
+ }
6949
+ }
6950
+ allFilterOptions.value = _allFilterOptions;
6951
+ }
6952
+ };
6911
6953
  vue.watch(() => [props2.isReverse, myColumns.value, myDataSource.value], () => {
6954
+ const _columns = vue.unref(myColumns);
6955
+ const _dataSource = vue.unref(myDataSource);
6956
+ handleFilterCheckboxOptions(_dataSource);
6912
6957
  if (props2.isReverse) {
6913
- const { columns, dataSource } = handleReverseTable(lodashEs.cloneDeep(vue.unref(myColumns)), lodashEs.cloneDeep(vue.unref(myDataSource)));
6958
+ const { columns, dataSource } = handleReverseTable(lodashEs.cloneDeep(_columns), lodashEs.cloneDeep(_dataSource));
6914
6959
  tableColumns.value = columns;
6915
6960
  tableDataSource.value = dataSource;
6916
6961
  } else {
6917
- tableColumns.value = vue.unref(myColumns);
6918
- tableDataSource.value = vue.unref(myDataSource);
6962
+ tableColumns.value = _columns;
6963
+ tableDataSource.value = _dataSource;
6919
6964
  }
6920
6965
  }, {
6921
6966
  immediate: true,
@@ -7054,8 +7099,7 @@
7054
7099
  });
7055
7100
  const handleIndicatorDataset = (dataColumns = [], dataRows = []) => {
7056
7101
  const _columns = dataColumns.map((column) => ({ title: column, dataIndex: column, key: column }));
7057
- const columns = handleColumns(_columns);
7058
- myColumns.value = columns;
7102
+ myColumns.value = handleColumns(_columns);
7059
7103
  myDataSource.value = dataRows;
7060
7104
  };
7061
7105
  const indicatorData = useIndicatorData(props2);
@@ -7175,6 +7219,34 @@
7175
7219
  }, "*");
7176
7220
  }
7177
7221
  };
7222
+ const useSetSelectedKeys = (setSelectedKeys, column) => {
7223
+ setSelectedKeys(column.filterCheckboxGroupValue);
7224
+ };
7225
+ const onResetFilter = (clearFilters, column) => {
7226
+ clearFilters({ confirm: true });
7227
+ column.filterOptionsInputValue = "";
7228
+ column.filterCheckboxGroupValue = [];
7229
+ };
7230
+ const onSearchFilterOptions = () => {
7231
+ };
7232
+ const useFilterOptions = (column) => {
7233
+ const key = column.dataIndex;
7234
+ if (typeof key === "string") {
7235
+ let filterOptions = vue.unref(allFilterOptions)[key];
7236
+ const _inputValue = vue.unref(column.filterOptionsInputValue).trim();
7237
+ if (Array.isArray(filterOptions)) {
7238
+ filterOptions = filterOptions.filter((filterOption) => {
7239
+ if (filterOption.label) {
7240
+ return filterOption.label.toLowerCase().includes(_inputValue.toLowerCase());
7241
+ }
7242
+ return true;
7243
+ });
7244
+ return filterOptions;
7245
+ }
7246
+ return [];
7247
+ }
7248
+ return [];
7249
+ };
7178
7250
  return {
7179
7251
  x,
7180
7252
  y,
@@ -7184,8 +7256,6 @@
7184
7256
  formatFn,
7185
7257
  contrastClass,
7186
7258
  tableChange,
7187
- myColumns,
7188
- myDataSource,
7189
7259
  summaryList,
7190
7260
  loading,
7191
7261
  onTouchHrefEvent,
@@ -7193,19 +7263,28 @@
7193
7263
  handleHrefTarget,
7194
7264
  useRowIndex,
7195
7265
  tableColumns,
7196
- tableDataSource
7266
+ tableDataSource,
7267
+ useFilterOptions,
7268
+ useSetSelectedKeys,
7269
+ onResetFilter,
7270
+ onSearchFilterOptions
7197
7271
  };
7198
7272
  }
7199
7273
  });
7200
- const Table_vue_vue_type_style_index_0_scoped_292c12ab_lang = "";
7274
+ const Table_vue_vue_type_style_index_0_scoped_915e7876_lang = "";
7201
7275
  const Table_vue_vue_type_style_index_1_lang = "";
7202
- const _hoisted_1$1 = { key: 0 };
7203
- const _hoisted_2 = {
7276
+ const _hoisted_1$1 = /* @__PURE__ */ vue.createTextVNode(" \u641C\u7D22 ");
7277
+ const _hoisted_2 = /* @__PURE__ */ vue.createTextVNode(" \u91CD\u7F6E ");
7278
+ const _hoisted_3 = { key: 0 };
7279
+ const _hoisted_4 = {
7204
7280
  key: 1,
7205
7281
  class: "action-list"
7206
7282
  };
7207
- const _hoisted_3 = ["href", "target", "onClick"];
7283
+ const _hoisted_5 = ["href", "target", "onClick"];
7208
7284
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7285
+ const _component_a_input = vue.resolveComponent("a-input");
7286
+ const _component_a_checkbox_group = vue.resolveComponent("a-checkbox-group");
7287
+ const _component_a_button = vue.resolveComponent("a-button");
7209
7288
  const _component_a_table_summary_cell = vue.resolveComponent("a-table-summary-cell");
7210
7289
  const _component_a_table_summary_row = vue.resolveComponent("a-table-summary-row");
7211
7290
  const _component_a_table_summary = vue.resolveComponent("a-table-summary");
@@ -7244,9 +7323,55 @@
7244
7323
  })
7245
7324
  }, vue.toDisplayString(column.title), 5)
7246
7325
  ]),
7326
+ customFilterDropdown: vue.withCtx(({ column, selectedKeys, setSelectedKeys, confirm, clearFilters }) => [
7327
+ vue.createElementVNode("div", {
7328
+ class: "ecan-table-filter",
7329
+ style: vue.normalizeStyle({
7330
+ height: _ctx.filterDropdownHeight
7331
+ })
7332
+ }, [
7333
+ vue.createVNode(_component_a_input, {
7334
+ value: column.filterOptionsInputValue,
7335
+ "onUpdate:value": ($event) => column.filterOptionsInputValue = $event,
7336
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u5B57",
7337
+ class: "filter-input",
7338
+ onChange: _ctx.onSearchFilterOptions
7339
+ }, null, 8, ["value", "onUpdate:value", "onChange"]),
7340
+ vue.createVNode(_component_a_checkbox_group, {
7341
+ value: column.filterCheckboxGroupValue,
7342
+ "onUpdate:value": ($event) => column.filterCheckboxGroupValue = $event,
7343
+ class: "filter-checkbox",
7344
+ options: _ctx.useFilterOptions(column),
7345
+ onChange: ($event) => _ctx.useSetSelectedKeys(setSelectedKeys, column)
7346
+ }, null, 8, ["value", "onUpdate:value", "options", "onChange"]),
7347
+ vue.createElementVNode("div", null, [
7348
+ vue.createVNode(_component_a_button, {
7349
+ type: "primary",
7350
+ size: "small",
7351
+ style: { "width": "90px", "margin-right": "8px" },
7352
+ onClick: () => confirm()
7353
+ }, {
7354
+ default: vue.withCtx(() => [
7355
+ _hoisted_1$1
7356
+ ]),
7357
+ _: 2
7358
+ }, 1032, ["onClick"]),
7359
+ vue.createVNode(_component_a_button, {
7360
+ size: "small",
7361
+ style: { "width": "90px" },
7362
+ onClick: ($event) => _ctx.onResetFilter(clearFilters)
7363
+ }, {
7364
+ default: vue.withCtx(() => [
7365
+ _hoisted_2
7366
+ ]),
7367
+ _: 2
7368
+ }, 1032, ["onClick"])
7369
+ ])
7370
+ ], 4)
7371
+ ]),
7247
7372
  bodyCell: vue.withCtx(({ column, index: index2, text, record }) => [
7248
- column.dataIndex === "SEQ" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$1, vue.toDisplayString(index2 + 1), 1)) : vue.createCommentVNode("", true),
7249
- column.dataIndex === "ACTION" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
7373
+ column.dataIndex === "SEQ" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, vue.toDisplayString(index2 + 1), 1)) : vue.createCommentVNode("", true),
7374
+ column.dataIndex === "ACTION" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
7250
7375
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actionList, (action, index22) => {
7251
7376
  return vue.openBlock(), vue.createElementBlock("div", {
7252
7377
  class: "action",
@@ -7261,7 +7386,7 @@
7261
7386
  fontWeight: _ctx.fontWeight
7262
7387
  }),
7263
7388
  onClick: ($event) => _ctx.onTouchHrefEvent(action.target, _ctx.handleHref(action.href, record))
7264
- }, vue.toDisplayString(action.title), 13, _hoisted_3)
7389
+ }, vue.toDisplayString(action.title), 13, _hoisted_5)
7265
7390
  ]);
7266
7391
  }), 128))
7267
7392
  ])) : (vue.openBlock(), vue.createElementBlock("div", {
@@ -7315,7 +7440,7 @@
7315
7440
  }, 8, ["loading"])
7316
7441
  ], 4);
7317
7442
  }
7318
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-292c12ab"]]);
7443
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-915e7876"]]);
7319
7444
  const EcanTable = withInstall(Table);
7320
7445
  const mapProps = {
7321
7446
  ...props,
@@ -7481,17 +7606,19 @@
7481
7606
  });
7482
7607
  const isLoadedData = vue.ref(false);
7483
7608
  const handleRegisterMap = async () => {
7609
+ var _a2;
7484
7610
  const mapJson = props2.mapJson;
7485
- if (mapJson == null || mapJson.path == null)
7486
- return;
7487
- const res = await request(UPLOAD_PATH + mapJson.path);
7488
- core.registerMap("map", (res == null ? void 0 : res.data) || {});
7611
+ if (mapJson != null && mapJson.path) {
7612
+ const res = await request(((_a2 = window == null ? void 0 : window.config) == null ? void 0 : _a2.uploadPath) + mapJson.path);
7613
+ core.registerMap("map", (res == null ? void 0 : res.data) || {});
7614
+ }
7489
7615
  isLoadedData.value = true;
7490
7616
  };
7491
7617
  vue.watch(() => props2.mapJson, () => {
7492
7618
  handleRegisterMap();
7493
7619
  }, {
7494
- immediate: true
7620
+ immediate: true,
7621
+ deep: true
7495
7622
  });
7496
7623
  return {
7497
7624
  option,
@@ -7502,7 +7629,7 @@
7502
7629
  };
7503
7630
  }
7504
7631
  });
7505
- const Map_vue_vue_type_style_index_0_scoped_38065aba_lang = "";
7632
+ const Map_vue_vue_type_style_index_0_scoped_1eea2b3c_lang = "";
7506
7633
  const _hoisted_1 = ["src"];
7507
7634
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7508
7635
  const _component_echarts = vue.resolveComponent("echarts");
@@ -7524,7 +7651,7 @@
7524
7651
  ])
7525
7652
  ], 4);
7526
7653
  }
7527
- const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-38065aba"]]);
7654
+ const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1eea2b3c"]]);
7528
7655
  const EcanMap = withInstall(Map$1);
7529
7656
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7530
7657
  __proto__: null,