@ecan-bi/datav 1.0.56 → 1.0.59

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
@@ -3687,20 +3687,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
3687
3687
  if (props2.target === "event") {
3688
3688
  window.parent.postMessage({
3689
3689
  type: "openPage",
3690
- url: props2.href
3690
+ url: vue.unref(myHref)
3691
3691
  }, "*");
3692
3692
  }
3693
3693
  });
3694
3694
  const myText = vue.computed(() => useVariablesInText(props2.text));
3695
- const myHref = vue.computed(() => {
3696
- if (props2.target === "event")
3697
- return void 0;
3698
- const href = props2.href;
3699
- if (href) {
3700
- return useVariablesInText(href);
3701
- }
3702
- return void 0;
3703
- });
3695
+ const myHref = vue.computed(() => useVariablesInText(props2.href));
3704
3696
  const myTarget = vue.computed(() => {
3705
3697
  const target = props2.target;
3706
3698
  if (target === "event") {
@@ -6045,7 +6037,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6045
6037
  linkPage: ""
6046
6038
  });
6047
6039
  const imageComponentProps = transformToComponentProps(imageProps);
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")();
6040
+ var Image_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-placeholder[data-v-e8534084] {\n display: grid;\n place-content: center;\n border: 1px solid #d9d9d9;\n font-size: 16px;\n color: #333;\n width: 100%;\n}\n")();
6049
6041
  const _sfc_main$2 = vue.defineComponent({
6050
6042
  name: "EcanImage",
6051
6043
  props: __spreadValues({}, imageComponentProps),
@@ -6059,7 +6051,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6059
6051
  const linkPage = props2.linkPage || "";
6060
6052
  const pageUrl = usePageUrl(vue.unref(pageMode), linkPage);
6061
6053
  const href = props2.href;
6062
- const url = href || pageUrl;
6054
+ let url = href || pageUrl;
6055
+ url = useVariablesInText(url);
6063
6056
  const target = props2.target;
6064
6057
  if (target == null || target === "")
6065
6058
  return;
@@ -6092,7 +6085,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6092
6085
  style: vue.normalizeStyle(_ctx.style)
6093
6086
  }, " \u8BF7\u4E0A\u4F20\u56FE\u7247 ", 4));
6094
6087
  }
6095
- var Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-2d7002a4"]]);
6088
+ var Image = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-e8534084"]]);
6096
6089
  const EcanImage = withInstall(Image);
6097
6090
  const tableProps = __spreadProps(__spreadValues({}, props), {
6098
6091
  zIndex: 2,
@@ -6157,16 +6150,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6157
6150
  });
6158
6151
  const tableComponentProps = transformToComponentProps(tableProps);
6159
6152
  const tableEvents = ["click", "refreshData"];
6160
- var Table_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.table[data-v-5e888642] {
6153
+ var Table_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => `.table[data-v-7ea14a02] {
6161
6154
  width: 100%;
6162
6155
  }
6163
- .goUp[data-v-5e888642] {
6156
+ .goUp[data-v-7ea14a02] {
6164
6157
  color: #FF512E;
6165
6158
  display: flex;
6166
6159
  align-items: center;
6167
6160
  justify-content: center;
6168
6161
  }
6169
- .goUp[data-v-5e888642]:before {
6162
+ .goUp[data-v-7ea14a02]:before {
6170
6163
  content: '';
6171
6164
  display: block;
6172
6165
  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=");
@@ -6176,13 +6169,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6176
6169
  background-size: cover;
6177
6170
  margin-right: 2px;
6178
6171
  }
6179
- .goDown[data-v-5e888642] {
6172
+ .goDown[data-v-7ea14a02] {
6180
6173
  color: #39cf93;
6181
6174
  display: flex;
6182
6175
  align-items: center;
6183
6176
  justify-content: center;
6184
6177
  }
6185
- .goDown[data-v-5e888642]:before {
6178
+ .goDown[data-v-7ea14a02]:before {
6186
6179
  content: '';
6187
6180
  display: block;
6188
6181
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRm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mOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+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==");
@@ -6192,11 +6185,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6192
6185
  background-size: cover;
6193
6186
  margin-right: 2px;
6194
6187
  }
6195
- .action-list[data-v-5e888642] {
6188
+ .action-list[data-v-7ea14a02] {
6196
6189
  display: flex;
6197
6190
  width: 100%;
6198
6191
  }
6199
- .action[data-v-5e888642] {
6192
+ .action[data-v-7ea14a02] {
6200
6193
  flex: 1;
6201
6194
  }
6202
6195
  `)();
@@ -6451,12 +6444,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6451
6444
  expose({
6452
6445
  refreshData
6453
6446
  });
6454
- const handleHref = (target, href = "", data) => {
6455
- if (target === "event") {
6456
- return void 0;
6457
- } else {
6458
- useVariablesInText(href, data);
6459
- }
6447
+ const handleHref = (href = "", data) => {
6448
+ return useVariablesInText(href, data);
6460
6449
  };
6461
6450
  const handleHrefTarget = (target) => {
6462
6451
  if (target === "event") {
@@ -6542,14 +6531,14 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6542
6531
  key: index22
6543
6532
  }, [
6544
6533
  vue.createElementVNode("a", {
6545
- href: _ctx.handleHref(action.target, action.href, record),
6534
+ href: _ctx.handleHref(action.href, record),
6546
6535
  target: _ctx.handleHrefTarget(action.target),
6547
6536
  style: vue.normalizeStyle({
6548
6537
  color: action.color,
6549
6538
  fontSize: _ctx.fontSize,
6550
6539
  fontWeight: _ctx.fontWeight
6551
6540
  }),
6552
- onClick: ($event) => _ctx.onTouchHrefEvent(action.target, action.href)
6541
+ onClick: ($event) => _ctx.onTouchHrefEvent(action.target, _ctx.handleHref(action.href, record))
6553
6542
  }, vue.toDisplayString(action.title), 13, _hoisted_2)
6554
6543
  ]);
6555
6544
  }), 128))
@@ -6600,7 +6589,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
6600
6589
  }, 8, ["loading"])
6601
6590
  ], 4);
6602
6591
  }
6603
- var Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-5e888642"]]);
6592
+ var Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-7ea14a02"]]);
6604
6593
  const EcanTable = withInstall(Table);
6605
6594
  const mapProps = __spreadProps(__spreadValues({}, props), {
6606
6595
  mapJson: null,