@ecan-bi/datav 1.0.93 → 1.0.95

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.0.93 */
1
+ /*! @ecan-bi/datav@1.0.95 */
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) {
@@ -3122,12 +3122,12 @@
3122
3122
  });
3123
3123
  const List_vue_vue_type_style_index_0_scoped_73ca0d93_lang = "";
3124
3124
  const List_vue_vue_type_style_index_1_lang = "";
3125
- const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-73ca0d93"), n = n(), vue.popScopeId(), n);
3125
+ const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-73ca0d93"), n = n(), vue.popScopeId(), n);
3126
3126
  const _hoisted_1$6 = {
3127
3127
  key: 0,
3128
3128
  class: "title"
3129
3129
  };
3130
- const _hoisted_2$3 = {
3130
+ const _hoisted_2$2 = {
3131
3131
  key: 0,
3132
3132
  class: "ranking"
3133
3133
  };
@@ -3139,7 +3139,7 @@
3139
3139
  key: 0,
3140
3140
  class: "ranking"
3141
3141
  };
3142
- const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "icon" }, null, -1));
3142
+ const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "icon" }, null, -1));
3143
3143
  const _hoisted_6$1 = { class: "sort" };
3144
3144
  const _hoisted_7$1 = {
3145
3145
  key: 2,
@@ -3165,7 +3165,7 @@
3165
3165
  }),
3166
3166
  key: count
3167
3167
  }, [
3168
- _ctx.useRanking ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3)) : vue.createCommentVNode("", true),
3168
+ _ctx.useRanking ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2)) : vue.createCommentVNode("", true),
3169
3169
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columns, (column, i) => {
3170
3170
  return vue.openBlock(), vue.createElementBlock("div", {
3171
3171
  class: "column",
@@ -4835,6 +4835,9 @@
4835
4835
  xAxisLabelOverflow: "none",
4836
4836
  xAxisLineStyleColor: "#333",
4837
4837
  xAxisTickShow: true,
4838
+ yAxisLabelWidth: void 0,
4839
+ yAxisLabelRotate: 0,
4840
+ yAxisLabelOverflow: "none",
4838
4841
  yAxisSplitLineShow: true,
4839
4842
  yAxisSplitLineStyleColor: "#333",
4840
4843
  yAxisLabelColor: "#333",
@@ -4864,6 +4867,8 @@
4864
4867
  toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
4865
4868
  isUseHorizontalAxis: false,
4866
4869
  axisInverse: false,
4870
+ xAxisInverse: false,
4871
+ yAxisInverse: false,
4867
4872
  isStack: false
4868
4873
  };
4869
4874
  const barComponentProps = transformToComponentProps(barProps);
@@ -5019,7 +5024,7 @@
5019
5024
  xAxis: {
5020
5025
  type: props2.isUseHorizontalAxis ? "value" : "category",
5021
5026
  data: props2.isUseHorizontalAxis ? null : vue.unref(dimensions),
5022
- inverse: props2.isUseHorizontalAxis ? false : props2.axisInverse,
5027
+ inverse: props2.isUseHorizontalAxis ? props2.xAxisInverse : props2.axisInverse,
5023
5028
  splitLine: {
5024
5029
  show: props2.xAxisSplitLineShow,
5025
5030
  lineStyle: {
@@ -5048,7 +5053,7 @@
5048
5053
  yAxis: {
5049
5054
  type: props2.isUseHorizontalAxis ? "category" : "value",
5050
5055
  data: props2.isUseHorizontalAxis ? vue.unref(dimensions) : null,
5051
- inverse: props2.isUseHorizontalAxis ? props2.axisInverse : false,
5056
+ inverse: props2.isUseHorizontalAxis ? props2.axisInverse : props2.yAxisInverse,
5052
5057
  splitLine: {
5053
5058
  show: props2.yAxisSplitLineShow,
5054
5059
  lineStyle: {
@@ -5057,6 +5062,9 @@
5057
5062
  },
5058
5063
  axisLabel: {
5059
5064
  color: props2.yAxisLabelColor,
5065
+ rotate: props2.yAxisLabelRotate,
5066
+ width: props2.yAxisLabelWidth,
5067
+ overflow: props2.yAxisLabelOverflow,
5060
5068
  formatter(value) {
5061
5069
  return useValueFormatter(yAxisLabelFormatter, value);
5062
5070
  }
@@ -6149,26 +6157,26 @@
6149
6157
  const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=";
6150
6158
  const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==";
6151
6159
  const Border_vue_vue_type_style_index_0_scoped_f3fc1305_lang = "";
6152
- const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-f3fc1305"), n = n(), vue.popScopeId(), n);
6153
- const _hoisted_1$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-left border-item" }, null, -1));
6154
- const _hoisted_2$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-right border-item" }, null, -1));
6155
- const _hoisted_3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
6156
- const _hoisted_4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
6160
+ const _withScopeId = (n) => (vue.pushScopeId("data-v-f3fc1305"), n = n(), vue.popScopeId(), n);
6161
+ const _hoisted_1$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-left border-item" }, null, -1));
6162
+ const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-right border-item" }, null, -1));
6163
+ const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
6164
+ const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
6157
6165
  const _hoisted_5 = { class: "title-item-wrapper" };
6158
6166
  const _hoisted_6 = { class: "title-item" };
6159
- const _hoisted_7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("img", {
6167
+ const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("img", {
6160
6168
  class: "title-decoration-left",
6161
6169
  src: _imports_0
6162
6170
  }, null, -1));
6163
6171
  const _hoisted_8 = { class: "title" };
6164
- const _hoisted_9 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("img", {
6172
+ const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("img", {
6165
6173
  class: "title-decoration-right",
6166
6174
  src: _imports_1
6167
6175
  }, null, -1));
6168
- const _hoisted_10 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-left border-item" }, null, -1));
6169
- const _hoisted_11 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-right border-item" }, null, -1));
6170
- const _hoisted_12 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
6171
- const _hoisted_13 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
6176
+ const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-left border-item" }, null, -1));
6177
+ const _hoisted_11 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "top-right border-item" }, null, -1));
6178
+ const _hoisted_12 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-left border-item" }, null, -1));
6179
+ const _hoisted_13 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom-right border-item" }, null, -1));
6172
6180
  const _hoisted_14 = {
6173
6181
  key: 2,
6174
6182
  class: "left-title"
@@ -6187,7 +6195,7 @@
6187
6195
  }, [
6188
6196
  _ctx.useBorderModify ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
6189
6197
  _hoisted_1$5,
6190
- _hoisted_2$2,
6198
+ _hoisted_2$1,
6191
6199
  _hoisted_3,
6192
6200
  _hoisted_4
6193
6201
  ], 64)) : vue.createCommentVNode("", true)
@@ -6401,9 +6409,11 @@
6401
6409
  activeTabBackgroundImage: "",
6402
6410
  tabColor: "#333",
6403
6411
  tabBarGutter: "24px",
6412
+ tabFontWeight: 400,
6404
6413
  value: "",
6405
6414
  activeKey: 0,
6406
6415
  contains: [],
6416
+ tabFlexDirection: "row",
6407
6417
  data: [
6408
6418
  {
6409
6419
  title: "\u6807\u7B7E1"
@@ -6414,7 +6424,9 @@
6414
6424
  {
6415
6425
  title: "\u6807\u7B7E3"
6416
6426
  }
6417
- ]
6427
+ ],
6428
+ tabAlignItems: "flex-start",
6429
+ tabJustifyContent: "flex-start"
6418
6430
  };
6419
6431
  const tabsComponentProps = transformToComponentProps(tabsProps);
6420
6432
  const tabsEvents = ["tabChange"];
@@ -6472,10 +6484,8 @@
6472
6484
  };
6473
6485
  }
6474
6486
  });
6475
- const Tabs_vue_vue_type_style_index_0_scoped_0a4268f1_lang = "";
6476
- const _withScopeId = (n) => (vue.pushScopeId("data-v-0a4268f1"), n = n(), vue.popScopeId(), n);
6487
+ const Tabs_vue_vue_type_style_index_0_scoped_3db5a989_lang = "";
6477
6488
  const _hoisted_1$4 = ["onClick"];
6478
- const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "tabs-content" }, null, -1));
6479
6489
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
6480
6490
  return vue.openBlock(), vue.createElementBlock("div", {
6481
6491
  class: "ecan-tabs",
@@ -6484,7 +6494,10 @@
6484
6494
  vue.createElementVNode("div", {
6485
6495
  class: "tabs-header",
6486
6496
  style: vue.normalizeStyle({
6487
- fontSize: _ctx.tabFontSize
6497
+ fontSize: _ctx.tabFontSize,
6498
+ alignItems: _ctx.tabAlignItems,
6499
+ justifyContent: _ctx.tabJustifyContent,
6500
+ flexDirection: _ctx.tabFlexDirection
6488
6501
  })
6489
6502
  }, [
6490
6503
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.myData, (tab, index2) => {
@@ -6494,7 +6507,9 @@
6494
6507
  padding: `5px ${_ctx.tabHorizontalPadding}`,
6495
6508
  color: _ctx.isActive(index2) ? _ctx.activeTabColor : _ctx.tabColor,
6496
6509
  backgroundImage: _ctx.isActive(index2) ? _ctx.useImagePath(_ctx.activeTabBackgroundImage, true) : _ctx.useImagePath(_ctx.tabBackgroundImage, true),
6497
- paddingRight: _ctx.tabBarGutter
6510
+ marginRight: _ctx.tabFlexDirection === "row" ? _ctx.tabBarGutter : null,
6511
+ marginBottom: _ctx.tabFlexDirection === "column" ? _ctx.tabBarGutter : null,
6512
+ fontWeight: _ctx.tabFontWeight
6498
6513
  }),
6499
6514
  key: index2,
6500
6515
  onClick: vue.withModifiers(($event) => _ctx.tabChange(tab, index2), ["prevent", "stop"])
@@ -6507,11 +6522,10 @@
6507
6522
  }, vue.toDisplayString(tab.title), 5)
6508
6523
  ], 12, _hoisted_1$4);
6509
6524
  }), 128))
6510
- ], 4),
6511
- _hoisted_2$1
6525
+ ], 4)
6512
6526
  ], 4);
6513
6527
  }
6514
- const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-0a4268f1"]]);
6528
+ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-3db5a989"]]);
6515
6529
  const EcanTabs = withInstall(Tabs);
6516
6530
  const imageProps = {
6517
6531
  ...props,
@@ -6603,9 +6617,9 @@
6603
6617
  });
6604
6618
  const myLink = vue.computed(() => {
6605
6619
  let link = useVariablesInText(props2.link);
6606
- if (props2.linkType === "erd") {
6607
- const erdUrl = ERD_URL || vue.unref(contextRequestUrl);
6608
- link = `${vue.unref(erdUrl)}/erdReport?_t=0&uid=${link}`;
6620
+ if (props2.linkType === "erd" && link != null) {
6621
+ const erdUrl = ERD_URL || vue.unref(contextRequestUrl) + "/erdReport";
6622
+ link = `${vue.unref(erdUrl)}?_t=0&uid=${link}`;
6609
6623
  }
6610
6624
  return link;
6611
6625
  });
@@ -6615,7 +6629,7 @@
6615
6629
  };
6616
6630
  }
6617
6631
  });
6618
- const Iframe_vue_vue_type_style_index_0_scoped_8ff0c882_lang = "";
6632
+ const Iframe_vue_vue_type_style_index_0_scoped_9631ea8e_lang = "";
6619
6633
  const _hoisted_1$2 = ["src"];
6620
6634
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6621
6635
  return _ctx.myLink ? (vue.openBlock(), vue.createElementBlock("iframe", {
@@ -6628,7 +6642,7 @@
6628
6642
  style: vue.normalizeStyle(_ctx.style)
6629
6643
  }, " \u8BF7\u586B\u5199\u7F51\u9875\u94FE\u63A5 ", 4));
6630
6644
  }
6631
- const Iframe = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-8ff0c882"]]);
6645
+ const Iframe = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-9631ea8e"]]);
6632
6646
  const EcanIframe = withInstall(Iframe);
6633
6647
  const tableProps = {
6634
6648
  ...props,
@@ -6775,7 +6789,8 @@
6775
6789
  if (isUseSeq) {
6776
6790
  _columns.push({
6777
6791
  title: "\u5E8F\u53F7",
6778
- dataIndex: "SEQ"
6792
+ dataIndex: "SEQ",
6793
+ align: "center"
6779
6794
  });
6780
6795
  }
6781
6796
  _columns = _columns.concat(lodashEs.cloneDeep(columns));
@@ -7075,7 +7090,7 @@
7075
7090
  };
7076
7091
  }
7077
7092
  });
7078
- const Table_vue_vue_type_style_index_0_scoped_e90dd607_lang = "";
7093
+ const Table_vue_vue_type_style_index_0_scoped_392a99da_lang = "";
7079
7094
  const Table_vue_vue_type_style_index_1_lang = "";
7080
7095
  const _hoisted_1$1 = {
7081
7096
  key: 1,
@@ -7115,7 +7130,7 @@
7115
7130
  fontWeight: _ctx.headerFontWeight,
7116
7131
  width: "100%",
7117
7132
  height: "100%",
7118
- textAlign: column.headerCellAlign,
7133
+ textAlign: column.headerCellAlign || "center",
7119
7134
  color: column.headerCellColor,
7120
7135
  borderBottomColor: _ctx.borderColor
7121
7136
  })
@@ -7193,7 +7208,7 @@
7193
7208
  }, 8, ["loading"])
7194
7209
  ], 4);
7195
7210
  }
7196
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-e90dd607"]]);
7211
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-392a99da"]]);
7197
7212
  const EcanTable = withInstall(Table);
7198
7213
  const mapProps = {
7199
7214
  ...props,
@@ -7276,84 +7291,87 @@
7276
7291
  }
7277
7292
  return "circle";
7278
7293
  });
7279
- const geoCenter = vue.computed(() => {
7280
- var _a2;
7281
- return (_a2 = props2.geoCenter) == null ? void 0 : _a2.split(",");
7282
- });
7283
- const option = vue.computed(() => ({
7284
- tooltip: {
7285
- show: true
7286
- },
7287
- graphic: [
7288
- {
7289
- type: "image",
7290
- style: {
7291
- width: parseFloat(props2.width),
7292
- height: parseFloat(props2.height),
7293
- image: vue.unref(myBackgroundImage)
7294
- },
7295
- top: "center"
7296
- }
7297
- ],
7298
- geo: {
7299
- zoom: props2.geoZoom,
7300
- roam: props2.geoRoam,
7301
- center: vue.unref(geoCenter),
7302
- map: "map",
7294
+ const option = vue.computed(() => {
7295
+ const geoCenter = props2.geoCenter;
7296
+ let center;
7297
+ if (typeof geoCenter === "string" && geoCenter !== "") {
7298
+ center = geoCenter.split(",");
7299
+ }
7300
+ return {
7303
7301
  tooltip: {
7304
- show: false
7305
- },
7306
- label: {
7307
- show: props2.geoLabelShow,
7308
- color: props2.geoLabelColor,
7309
- fontSize: props2.geoLabelFontSize
7310
- },
7311
- itemStyle: {
7312
- areaColor: vue.unref(areaColor),
7313
- borderColor: props2.geoItemStyleBorderColor,
7314
- borderWidth: props2.geoItemStyleBorderWidth,
7315
- shadowColor: props2.geoItemStyleShadowColor,
7316
- shadowBlur: props2.geoItemStyleShadowBlur,
7317
- shadowOffsetX: props2.geoItemStyleShadowOffsetX,
7318
- shadowOffsetY: props2.geoItemStyleShadowOffsetY
7302
+ show: true
7319
7303
  },
7320
- emphasis: {
7321
- disabled: props2.geoEmphasisDisabled,
7322
- label: {
7323
- color: props2.geoEmphasisLabelColor
7324
- },
7325
- itemStyle: {
7326
- areaColor: props2.geoEmphasisItemStyleAreaColor,
7327
- borderColor: props2.geoEmphasisItemStyleBorderColor
7304
+ graphic: [
7305
+ {
7306
+ type: "image",
7307
+ style: {
7308
+ width: parseFloat(props2.width),
7309
+ height: parseFloat(props2.height),
7310
+ image: vue.unref(myBackgroundImage)
7311
+ },
7312
+ top: "center"
7328
7313
  }
7329
- }
7330
- },
7331
- series: [
7332
- {
7333
- type: "scatter",
7334
- coordinateSystem: "geo",
7335
- itemStyle: {
7336
- color: props2.itemStyleColor
7314
+ ],
7315
+ geo: {
7316
+ zoom: props2.geoZoom,
7317
+ roam: props2.geoRoam,
7318
+ center,
7319
+ map: "map",
7320
+ tooltip: {
7321
+ show: false
7337
7322
  },
7338
- symbol: vue.unref(symbol),
7339
- symbolSize: [props2.symbolWidth, props2.symbolHeight],
7340
7323
  label: {
7341
- show: props2.labelShow,
7342
- fontSize: props2.labelFontSize,
7343
- formatter: props2.labelFormatter,
7344
- color: props2.labelColor
7324
+ show: props2.geoLabelShow,
7325
+ color: props2.geoLabelColor,
7326
+ fontSize: props2.geoLabelFontSize
7345
7327
  },
7346
- tooltip: {
7347
- show: props2.tooltipShow,
7348
- formatter: props2.tooltipFormatter,
7349
- textStyle: {
7350
- color: props2.tooltipTextStyleColor
7351
- }
7328
+ itemStyle: {
7329
+ areaColor: vue.unref(areaColor),
7330
+ borderColor: props2.geoItemStyleBorderColor,
7331
+ borderWidth: props2.geoItemStyleBorderWidth,
7332
+ shadowColor: props2.geoItemStyleShadowColor,
7333
+ shadowBlur: props2.geoItemStyleShadowBlur,
7334
+ shadowOffsetX: props2.geoItemStyleShadowOffsetX,
7335
+ shadowOffsetY: props2.geoItemStyleShadowOffsetY
7352
7336
  },
7353
- data: props2.data
7354
- }
7355
- ]
7356
- }));
7337
+ emphasis: {
7338
+ disabled: props2.geoEmphasisDisabled,
7339
+ label: {
7340
+ color: props2.geoEmphasisLabelColor
7341
+ },
7342
+ itemStyle: {
7343
+ areaColor: props2.geoEmphasisItemStyleAreaColor,
7344
+ borderColor: props2.geoEmphasisItemStyleBorderColor
7345
+ }
7346
+ }
7347
+ },
7348
+ series: [
7349
+ {
7350
+ type: "scatter",
7351
+ coordinateSystem: "geo",
7352
+ itemStyle: {
7353
+ color: props2.itemStyleColor
7354
+ },
7355
+ symbol: vue.unref(symbol),
7356
+ symbolSize: [props2.symbolWidth, props2.symbolHeight],
7357
+ label: {
7358
+ show: props2.labelShow,
7359
+ fontSize: props2.labelFontSize,
7360
+ formatter: props2.labelFormatter,
7361
+ color: props2.labelColor
7362
+ },
7363
+ tooltip: {
7364
+ show: props2.tooltipShow,
7365
+ formatter: props2.tooltipFormatter,
7366
+ textStyle: {
7367
+ color: props2.tooltipTextStyleColor
7368
+ }
7369
+ },
7370
+ data: props2.data
7371
+ }
7372
+ ]
7373
+ };
7374
+ });
7357
7375
  const isLoadedData = vue.ref(false);
7358
7376
  const handleRegisterMap = async () => {
7359
7377
  const mapJson = props2.mapJson;
@@ -7377,7 +7395,7 @@
7377
7395
  };
7378
7396
  }
7379
7397
  });
7380
- const Map_vue_vue_type_style_index_0_scoped_01c2ad5b_lang = "";
7398
+ const Map_vue_vue_type_style_index_0_scoped_38065aba_lang = "";
7381
7399
  const _hoisted_1 = ["src"];
7382
7400
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7383
7401
  const _component_echarts = vue.resolveComponent("echarts");
@@ -7399,7 +7417,7 @@
7399
7417
  ])
7400
7418
  ], 4);
7401
7419
  }
7402
- const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-01c2ad5b"]]);
7420
+ const Map$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-38065aba"]]);
7403
7421
  const EcanMap = withInstall(Map$1);
7404
7422
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7405
7423
  __proto__: null,