@ecan-bi/datav 1.0.53 → 1.0.56

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
@@ -2903,10 +2903,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2903
2903
  });
2904
2904
  const listComponentProps = transformToComponentProps(listProps);
2905
2905
  const listEvents = ["refreshData", "click"];
2906
- var List_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.ecan-list[data-v-461dbe78] {
2906
+ var List_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.ecan-list[data-v-f7268778] {
2907
2907
  overflow: hidden;
2908
2908
  }
2909
- .ecan-list-content[data-v-461dbe78] {
2909
+ .ecan-list-content[data-v-f7268778] {
2910
2910
  width: 100%;
2911
2911
  height: 100%;
2912
2912
  overflow: auto;
@@ -2914,7 +2914,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2914
2914
  align-content: flex-start;
2915
2915
  flex-wrap: wrap;
2916
2916
  }
2917
- .title[data-v-461dbe78] {
2917
+ .title[data-v-f7268778] {
2918
2918
  position: absolute;
2919
2919
  z-index: 9;
2920
2920
  display: flex;
@@ -2924,18 +2924,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2924
2924
  font-size: 16px;
2925
2925
  color: #ffffff;
2926
2926
  }
2927
- .title-inner[data-v-461dbe78] {
2927
+ .title-inner[data-v-f7268778] {
2928
2928
  padding-left: 28px;
2929
2929
  padding-right: 20px;
2930
2930
  flex: 1;
2931
2931
  display: flex;
2932
2932
  height: 100%;
2933
2933
  }
2934
- .title-placeholder[data-v-461dbe78] {
2934
+ .title-placeholder[data-v-f7268778] {
2935
2935
  width: 100%;
2936
2936
  height: 32px;
2937
2937
  }
2938
- .item[data-v-461dbe78] {
2938
+ .item[data-v-f7268778] {
2939
2939
  display: flex;
2940
2940
  align-items: center;
2941
2941
  height: 32px;
@@ -2945,13 +2945,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2945
2945
  font-size: 16px;
2946
2946
  color: #ffffff;
2947
2947
  }
2948
- .column[data-v-461dbe78] {
2948
+ .column[data-v-f7268778] {
2949
2949
  flex: 1;
2950
2950
  overflow: hidden;
2951
2951
  text-overflow: ellipsis;
2952
2952
  white-space: nowrap;
2953
2953
  }
2954
- .ranking[data-v-461dbe78] {
2954
+ .ranking[data-v-f7268778] {
2955
2955
  flex: 1;
2956
2956
  display: flex;
2957
2957
  align-items: center;
@@ -2960,28 +2960,28 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2960
2960
  text-overflow: ellipsis;
2961
2961
  white-space: nowrap;
2962
2962
  }
2963
- .icon[data-v-461dbe78] {
2963
+ .icon[data-v-f7268778] {
2964
2964
  width: 12px;
2965
2965
  height: 8px;
2966
2966
  background: #21BEF7;
2967
2967
  margin-right: 17px;
2968
2968
  opacity: 0.6;
2969
2969
  }
2970
- .item:nth-child(2) .icon[data-v-461dbe78] {
2970
+ .item:nth-child(2) .icon[data-v-f7268778] {
2971
2971
  opacity: 0.8;
2972
2972
  }
2973
- .item:first-child .icon[data-v-461dbe78] {
2973
+ .item:first-child .icon[data-v-f7268778] {
2974
2974
  opacity: 1;
2975
2975
  }
2976
- .sort[data-v-461dbe78] {
2976
+ .sort[data-v-f7268778] {
2977
2977
  font-weight: 600;
2978
2978
  }
2979
- .goUp[data-v-461dbe78] {
2979
+ .goUp[data-v-f7268778] {
2980
2980
  color: #FF512E;
2981
2981
  display: flex;
2982
2982
  align-items: center;
2983
2983
  }
2984
- .goUp[data-v-461dbe78]:before {
2984
+ .goUp[data-v-f7268778]:before {
2985
2985
  content: '';
2986
2986
  display: block;
2987
2987
  background: url("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=");
@@ -2991,22 +2991,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2991
2991
  background-size: cover;
2992
2992
  margin-right: 2px;
2993
2993
  }
2994
- .goDown[data-v-461dbe78] {
2995
- color: #00F7B4;
2994
+ .goDown[data-v-f7268778] {
2995
+ color: #39cf93;
2996
2996
  display: flex;
2997
2997
  align-items: center;
2998
2998
  }
2999
- .goDown[data-v-461dbe78]:before {
2999
+ .goDown[data-v-f7268778]:before {
3000
3000
  content: '';
3001
3001
  display: block;
3002
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6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AQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==");
3003
3003
  width: 12px;
3004
3004
  height: 12px;
3005
3005
  background-repeat: no-repeat;
3006
3006
  background-size: cover;
3007
3007
  margin-right: 2px;
3008
3008
  }
3009
- .empty[data-v-461dbe78] {
3009
+ .empty[data-v-f7268778] {
3010
3010
  text-align: center;
3011
3011
  margin-top: 15%;
3012
3012
  }
@@ -3095,7 +3095,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3095
3095
  };
3096
3096
  }
3097
3097
  });
3098
- const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-461dbe78"), n = n(), vue.popScopeId(), n);
3098
+ const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-f7268778"), n = n(), vue.popScopeId(), n);
3099
3099
  const _hoisted_1$5 = {
3100
3100
  key: 0,
3101
3101
  class: "title"
@@ -3195,7 +3195,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3195
3195
  }, 8, ["loading"])
3196
3196
  ], 4);
3197
3197
  }
3198
- var List = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-461dbe78"]]);
3198
+ var List = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-f7268778"]]);
3199
3199
  const EcanList = withInstall(List);
3200
3200
  const proportionProps = __spreadProps(__spreadValues({}, props), {
3201
3201
  name: "\u5360\u6BD4\u56FE",
@@ -3217,11 +3217,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3217
3217
  fontWeight: 400,
3218
3218
  strokeTextWidth: "100%",
3219
3219
  lineHeight: "26px",
3220
- decimalFormat: false
3220
+ decimalFormat: false,
3221
+ variableDefaultValue: ""
3221
3222
  });
3222
3223
  const proportionComponentProps = transformToComponentProps(proportionProps);
3223
3224
  const proportionEvents = ["refreshData", "click"];
3224
- var Proportion_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-proportion[data-v-f55c66cc] {\n overflow: hidden;\n}\n.progress[data-v-f55c66cc] {\n width: 100%;\n height: 100%;\n}\n.format[data-v-f55c66cc] {\n margin: 0 auto;\n}\n")();
3225
+ var Proportion_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".ecan-proportion[data-v-4a25add6] {\n overflow: hidden;\n}\n.progress[data-v-4a25add6] {\n width: 100%;\n height: 100%;\n}\n.format[data-v-4a25add6] {\n margin: 0 auto;\n}\n")();
3225
3226
  const _sfc_main$h = vue.defineComponent({
3226
3227
  name: "EcanProportion",
3227
3228
  components: {
@@ -3230,6 +3231,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3230
3231
  },
3231
3232
  props: __spreadValues({}, proportionComponentProps),
3232
3233
  setup(props2) {
3234
+ const { pageMode } = vue.inject(GLOBAL_CONFIG, {
3235
+ pageMode: "normal"
3236
+ });
3233
3237
  const style2 = usePickComponentStyle(props2);
3234
3238
  const myWidth = vue.computed(() => {
3235
3239
  const width = props2.width;
@@ -3259,26 +3263,29 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3259
3263
  const text = vue.computed(() => {
3260
3264
  let text2 = props2.text;
3261
3265
  const data = vue.unref(myData);
3262
- const variables = text2.match(/\{.*\}/g) || [];
3263
- console.log("variables", variables);
3266
+ const variables = text2.match(/\{.+\}/g) || [];
3264
3267
  if (text2 === "")
3265
3268
  return vue.unref(value) + "%";
3266
- for (let i = 0; i < variables.length; i++) {
3269
+ for (let i = 0; i < (variables == null ? void 0 : variables.length); i++) {
3267
3270
  const variable = variables[i];
3268
3271
  let statement = variable.slice(1, variable.length - 1);
3269
3272
  const textVariables = statement.match(/[a-zA-Z]\w*/g);
3270
- console.log("textVariables", textVariables);
3271
- for (let j = 0; j < textVariables.length; j++) {
3273
+ for (let j = 0; j < (textVariables == null ? void 0 : textVariables.length); j++) {
3272
3274
  const textVariable = textVariables[i];
3273
3275
  if (data[textVariable] != null) {
3274
3276
  statement = statement.replace(textVariable, data[textVariable]);
3277
+ } else {
3278
+ statement = statement.replace(textVariable, props2.variableDefaultValue);
3275
3279
  }
3276
3280
  }
3277
- console.log("statement", statement);
3278
- let usedVariable;
3279
- if (/[+\-*/%]+/g.test(statement)) {
3280
- const eval2 = eval;
3281
- usedVariable = eval2(statement);
3281
+ let usedVariable = statement;
3282
+ try {
3283
+ if (/[+\-*/%]+/g.test(statement)) {
3284
+ const eval2 = eval;
3285
+ usedVariable = eval2(statement);
3286
+ }
3287
+ } catch (e) {
3288
+ console.error(e);
3282
3289
  }
3283
3290
  if (props2.decimalFormat) {
3284
3291
  usedVariable = usedVariable == null ? void 0 : usedVariable.toFixed(2);
@@ -3287,9 +3294,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3287
3294
  }
3288
3295
  return text2;
3289
3296
  });
3290
- const { pageMode } = vue.inject(GLOBAL_CONFIG, {
3291
- pageMode: "normal"
3292
- });
3293
3297
  const requestData = useRequestData(props2);
3294
3298
  const loading = vue.ref(false);
3295
3299
  const handleRequestData = async () => {
@@ -3368,7 +3372,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3368
3372
  }, 8, ["percent", "width", "type", "strokeColor", "strokeLinecap", "trailColor", "strokeWidth", "gapDegree", "onClick"])
3369
3373
  ], 4);
3370
3374
  }
3371
- var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-f55c66cc"]]);
3375
+ var Proportion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-4a25add6"]]);
3372
3376
  const EcanProportion = withInstall(Proportion);
3373
3377
  const inputProps = __spreadProps(__spreadValues({}, props), {
3374
3378
  width: "200px",
@@ -3662,7 +3666,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3662
3666
  danger: false,
3663
3667
  shape: "default",
3664
3668
  href: "",
3665
- target: "_self",
3669
+ target: "self",
3666
3670
  fontSize: "14px",
3667
3671
  fontWeight: 400
3668
3672
  });
@@ -3679,20 +3683,42 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3679
3683
  const style2 = usePickComponentStyle(props2);
3680
3684
  const events = props2.events;
3681
3685
  const emitEvent = useEmitEvent(events);
3682
- const click = emitEvent("click");
3686
+ const click = emitEvent("click", () => {
3687
+ if (props2.target === "event") {
3688
+ window.parent.postMessage({
3689
+ type: "openPage",
3690
+ url: props2.href
3691
+ }, "*");
3692
+ }
3693
+ });
3683
3694
  const myText = vue.computed(() => useVariablesInText(props2.text));
3684
3695
  const myHref = vue.computed(() => {
3696
+ if (props2.target === "event")
3697
+ return void 0;
3685
3698
  const href = props2.href;
3686
3699
  if (href) {
3687
3700
  return useVariablesInText(href);
3688
3701
  }
3689
3702
  return void 0;
3690
3703
  });
3704
+ const myTarget = vue.computed(() => {
3705
+ const target = props2.target;
3706
+ if (target === "event") {
3707
+ return void 0;
3708
+ } else {
3709
+ const map = {
3710
+ self: "_self",
3711
+ blank: "_blank"
3712
+ };
3713
+ return map[target];
3714
+ }
3715
+ });
3691
3716
  return {
3692
3717
  style: style2,
3693
3718
  click,
3694
3719
  myText,
3695
- myHref
3720
+ myHref,
3721
+ myTarget
3696
3722
  };
3697
3723
  }
3698
3724
  });
@@ -3709,7 +3735,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3709
3735
  danger: _ctx.danger,
3710
3736
  shape: _ctx.shape,
3711
3737
  href: _ctx.myHref,
3712
- target: _ctx.target
3738
+ target: _ctx.myTarget
3713
3739
  }, {
3714
3740
  default: vue.withCtx(() => [
3715
3741
  vue.createElementVNode("span", {
@@ -4491,7 +4517,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
4491
4517
  valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
4492
4518
  keyTypeDataFieldNames: { name: "name", types: [] },
4493
4519
  dataFieldConfigType: "value",
4494
- barWidth: "0%",
4520
+ barWidth: "40%",
4495
4521
  gridContainLabel: true,
4496
4522
  gridTop: "10%",
4497
4523
  gridBottom: "10%",
@@ -6014,12 +6040,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6014
6040
  width: "300px",
6015
6041
  height: "300px",
6016
6042
  imgUrl: "",
6017
- linkUrl: "",
6018
- linkMethod: "_self",
6043
+ target: "self",
6044
+ href: "",
6019
6045
  linkPage: ""
6020
6046
  });
6021
6047
  const imageComponentProps = transformToComponentProps(imageProps);
6022
- var Image_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-placeholder[data-v-03ae963a] {\n display: grid;\n place-content: center;\n border: 1px solid #d9d9d9;\n font-size: 16px;\n color: #333;\n}\n")();
6048
+ var Image_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-placeholder[data-v-2d7002a4] {\n display: grid;\n place-content: center;\n border: 1px solid #d9d9d9;\n font-size: 16px;\n color: #333;\n width: 100%;\n}\n")();
6023
6049
  const _sfc_main$2 = vue.defineComponent({
6024
6050
  name: "EcanImage",
6025
6051
  props: __spreadValues({}, imageComponentProps),
@@ -6032,9 +6058,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6032
6058
  const onClick = () => {
6033
6059
  const linkPage = props2.linkPage || "";
6034
6060
  const pageUrl = usePageUrl(vue.unref(pageMode), linkPage);
6035
- const linkUrl = props2.linkUrl;
6036
- const url = linkUrl || pageUrl;
6037
- window.open(url, props2.linkMethod);
6061
+ const href = props2.href;
6062
+ const url = href || pageUrl;
6063
+ const target = props2.target;
6064
+ if (target == null || target === "")
6065
+ return;
6066
+ if (target !== "event") {
6067
+ window.open(url, "_" + target);
6068
+ } else {
6069
+ window.parent.postMessage({
6070
+ type: "openPage",
6071
+ url: href
6072
+ }, "*");
6073
+ }
6038
6074
  };
6039
6075
  return {
6040
6076
  style: style2,
@@ -6056,7 +6092,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6056
6092
  style: vue.normalizeStyle(_ctx.style)
6057
6093
  }, " \u8BF7\u4E0A\u4F20\u56FE\u7247 ", 4));
6058
6094
  }
6059
- var Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-03ae963a"]]);
6095
+ var Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-2d7002a4"]]);
6060
6096
  const EcanImage = withInstall(Image);
6061
6097
  const tableProps = __spreadProps(__spreadValues({}, props), {
6062
6098
  zIndex: 2,
@@ -6086,7 +6122,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6086
6122
  target: "",
6087
6123
  color: ""
6088
6124
  }],
6089
- actionColumnWidth: 50,
6125
+ actionColumnWidth: 100,
6090
6126
  columns: [
6091
6127
  {
6092
6128
  title: "\u59D3\u540D",
@@ -6121,16 +6157,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6121
6157
  });
6122
6158
  const tableComponentProps = transformToComponentProps(tableProps);
6123
6159
  const tableEvents = ["click", "refreshData"];
6124
- var Table_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.table[data-v-a84f3122] {
6160
+ var Table_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.table[data-v-5e888642] {
6125
6161
  width: 100%;
6126
6162
  }
6127
- .goUp[data-v-a84f3122] {
6163
+ .goUp[data-v-5e888642] {
6128
6164
  color: #FF512E;
6129
6165
  display: flex;
6130
6166
  align-items: center;
6131
6167
  justify-content: center;
6132
6168
  }
6133
- .goUp[data-v-a84f3122]:before {
6169
+ .goUp[data-v-5e888642]:before {
6134
6170
  content: '';
6135
6171
  display: block;
6136
6172
  background-image: url("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=");
@@ -6140,27 +6176,27 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6140
6176
  background-size: cover;
6141
6177
  margin-right: 2px;
6142
6178
  }
6143
- .goDown[data-v-a84f3122] {
6144
- color: #00F7B4;
6179
+ .goDown[data-v-5e888642] {
6180
+ color: #39cf93;
6145
6181
  display: flex;
6146
6182
  align-items: center;
6147
6183
  justify-content: center;
6148
6184
  }
6149
- .goDown[data-v-a84f3122]:before {
6185
+ .goDown[data-v-5e888642]:before {
6150
6186
  content: '';
6151
6187
  display: block;
6152
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+Lw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RmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==");
6153
6189
  width: 12px;
6154
6190
  height: 12px;
6155
6191
  background-repeat: no-repeat;
6156
6192
  background-size: cover;
6157
6193
  margin-right: 2px;
6158
6194
  }
6159
- .action-list[data-v-a84f3122] {
6195
+ .action-list[data-v-5e888642] {
6160
6196
  display: flex;
6161
6197
  width: 100%;
6162
6198
  }
6163
- .action[data-v-a84f3122] {
6199
+ .action[data-v-5e888642] {
6164
6200
  flex: 1;
6165
6201
  }
6166
6202
  `)();
@@ -6415,6 +6451,32 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6415
6451
  expose({
6416
6452
  refreshData
6417
6453
  });
6454
+ const handleHref = (target, href = "", data) => {
6455
+ if (target === "event") {
6456
+ return void 0;
6457
+ } else {
6458
+ useVariablesInText(href, data);
6459
+ }
6460
+ };
6461
+ const handleHrefTarget = (target) => {
6462
+ if (target === "event") {
6463
+ return void 0;
6464
+ } else {
6465
+ const map = {
6466
+ self: "_self",
6467
+ blank: "_blank"
6468
+ };
6469
+ return map[target];
6470
+ }
6471
+ };
6472
+ const onTouchHrefEvent = (target, href = "") => {
6473
+ if (target === "event") {
6474
+ window.parent.postMessage({
6475
+ type: "openPage",
6476
+ url: href
6477
+ }, "*");
6478
+ }
6479
+ };
6418
6480
  return {
6419
6481
  x,
6420
6482
  y,
@@ -6429,7 +6491,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6429
6491
  dataSource,
6430
6492
  summaryList,
6431
6493
  loading,
6432
- useVariablesInText
6494
+ onTouchHrefEvent,
6495
+ handleHref,
6496
+ handleHrefTarget
6433
6497
  };
6434
6498
  }
6435
6499
  });
@@ -6437,7 +6501,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6437
6501
  key: 1,
6438
6502
  class: "action-list"
6439
6503
  };
6440
- const _hoisted_2 = ["href", "target"];
6504
+ const _hoisted_2 = ["href", "target", "onClick"];
6441
6505
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
6442
6506
  const _component_a_table_summary_cell = vue.resolveComponent("a-table-summary-cell");
6443
6507
  const _component_a_table_summary_row = vue.resolveComponent("a-table-summary-row");
@@ -6478,13 +6542,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6478
6542
  key: index22
6479
6543
  }, [
6480
6544
  vue.createElementVNode("a", {
6481
- href: _ctx.useVariablesInText(action.href, record),
6482
- target: action.target,
6545
+ href: _ctx.handleHref(action.target, action.href, record),
6546
+ target: _ctx.handleHrefTarget(action.target),
6483
6547
  style: vue.normalizeStyle({
6484
6548
  color: action.color,
6485
6549
  fontSize: _ctx.fontSize,
6486
6550
  fontWeight: _ctx.fontWeight
6487
- })
6551
+ }),
6552
+ onClick: ($event) => _ctx.onTouchHrefEvent(action.target, action.href)
6488
6553
  }, vue.toDisplayString(action.title), 13, _hoisted_2)
6489
6554
  ]);
6490
6555
  }), 128))
@@ -6535,7 +6600,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6535
6600
  }, 8, ["loading"])
6536
6601
  ], 4);
6537
6602
  }
6538
- var Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a84f3122"]]);
6603
+ var Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-5e888642"]]);
6539
6604
  const EcanTable = withInstall(Table);
6540
6605
  const mapProps = __spreadProps(__spreadValues({}, props), {
6541
6606
  mapJson: null,