@ecan-bi/datav 1.0.95 → 1.0.97

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.0.95 */
1
+ /*! @ecan-bi/datav@1.0.97 */
2
2
  var _a, _b, _c, _d;
3
3
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
4
4
  import { throttle, init, use, registerMap } from "echarts/core";
@@ -4864,7 +4864,9 @@ const barProps = {
4864
4864
  axisInverse: false,
4865
4865
  xAxisInverse: false,
4866
4866
  yAxisInverse: false,
4867
- isStack: false
4867
+ isStack: false,
4868
+ labelShow: false,
4869
+ labelFontSize: "12px"
4868
4870
  };
4869
4871
  const barComponentProps = transformToComponentProps(barProps);
4870
4872
  const barEvents = ["refreshData", "click"];
@@ -4905,10 +4907,11 @@ const _sfc_main$a = defineComponent({
4905
4907
  };
4906
4908
  if (props2.isStack) {
4907
4909
  item.stack = "stack";
4908
- item.label = {
4909
- show: true
4910
- };
4911
4910
  }
4911
+ item.label = {
4912
+ show: props2.labelShow,
4913
+ fontSize: props2.labelFontSize
4914
+ };
4912
4915
  series2.push(item);
4913
4916
  }
4914
4917
  return series2;
@@ -5871,7 +5874,6 @@ const _sfc_main$7 = defineComponent({
5871
5874
  const dataFieldNames = useDataFieldNames ? props2.valueTypeDataFieldNames : null;
5872
5875
  chartData = useTransformChartDataByAttrValue(data, dataFieldNames);
5873
5876
  }
5874
- console.log("chartData", chartData);
5875
5877
  dimensions.value = chartData.dimensions;
5876
5878
  const dataset = chartData.dataset;
5877
5879
  const temp = [];
@@ -6613,8 +6615,14 @@ const _sfc_main$2 = defineComponent({
6613
6615
  const myLink = computed(() => {
6614
6616
  let link = useVariablesInText(props2.link);
6615
6617
  if (props2.linkType === "erd" && link != null) {
6616
- const erdUrl = ERD_URL || unref(contextRequestUrl) + "/erdReport";
6617
- link = `${unref(erdUrl)}?_t=0&uid=${link}`;
6618
+ let ctxErdUrl = unref(contextRequestUrl);
6619
+ if (ctxErdUrl[ctxErdUrl.length - 1] === "/") {
6620
+ ctxErdUrl += "erdReport";
6621
+ } else {
6622
+ ctxErdUrl += "/erdReport";
6623
+ }
6624
+ const erdUrl = ERD_URL || ctxErdUrl;
6625
+ link = `${erdUrl}?_t=0&uid=${link}`;
6618
6626
  }
6619
6627
  return link;
6620
6628
  });
@@ -6624,7 +6632,7 @@ const _sfc_main$2 = defineComponent({
6624
6632
  };
6625
6633
  }
6626
6634
  });
6627
- const Iframe_vue_vue_type_style_index_0_scoped_9631ea8e_lang = "";
6635
+ const Iframe_vue_vue_type_style_index_0_scoped_b0be60e8_lang = "";
6628
6636
  const _hoisted_1$2 = ["src"];
6629
6637
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6630
6638
  return _ctx.myLink ? (openBlock(), createElementBlock("iframe", {
@@ -6637,7 +6645,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6637
6645
  style: normalizeStyle(_ctx.style)
6638
6646
  }, " \u8BF7\u586B\u5199\u7F51\u9875\u94FE\u63A5 ", 4));
6639
6647
  }
6640
- const Iframe = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-9631ea8e"]]);
6648
+ const Iframe = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-b0be60e8"]]);
6641
6649
  const EcanIframe = withInstall(Iframe);
6642
6650
  const tableProps = {
6643
6651
  ...props,
@@ -6664,6 +6672,7 @@ const tableProps = {
6664
6672
  paginationPosition: "bottomRight",
6665
6673
  paginationPageSize: 10,
6666
6674
  isUseAction: false,
6675
+ clickHighlight: true,
6667
6676
  actionList: [{
6668
6677
  title: "",
6669
6678
  href: "",
@@ -6764,12 +6773,15 @@ const _sfc_main$1 = defineComponent({
6764
6773
  cellAlign = "center",
6765
6774
  cellColor
6766
6775
  } = column;
6767
- column.customCell = () => ({
6776
+ column.customCell = (_record, rowIndex) => ({
6768
6777
  style: {
6769
6778
  textAlign: cellAlign,
6770
6779
  color: cellColor,
6771
6780
  backgroundColor: props2.cellBackgroundColor,
6772
6781
  borderBottomColor: props2.borderColor
6782
+ },
6783
+ class: {
6784
+ highlight: unref(useRowIndex) === rowIndex && props2.clickHighlight
6773
6785
  }
6774
6786
  });
6775
6787
  if (Array.isArray(column.children)) {
@@ -6877,10 +6889,10 @@ const _sfc_main$1 = defineComponent({
6877
6889
  };
6878
6890
  if (props2.paginationShow) {
6879
6891
  params = {
6880
- ...params,
6881
6892
  pageNum: unref(pageNum),
6882
6893
  pageSize: unref(pageSize),
6883
- layer: "1"
6894
+ layer: "1",
6895
+ ...params
6884
6896
  };
6885
6897
  }
6886
6898
  const res = await requestData(params);
@@ -6977,11 +6989,13 @@ const _sfc_main$1 = defineComponent({
6977
6989
  loading.value = false;
6978
6990
  }
6979
6991
  };
6980
- const customRow = (record) => ({
6992
+ const useRowIndex = ref(-1);
6993
+ const customRow = (record, index2) => ({
6981
6994
  onClick: emitEvent("click", () => {
6982
6995
  const id = props2.id;
6983
6996
  const modal = getGlobalModel(id);
6984
6997
  setGlobalModel(id, { ...modal, RECORD: record });
6998
+ useRowIndex.value = index2;
6985
6999
  })
6986
7000
  });
6987
7001
  const refreshData = (isUseLoading = true) => {
@@ -7081,11 +7095,12 @@ const _sfc_main$1 = defineComponent({
7081
7095
  loading,
7082
7096
  onTouchHrefEvent,
7083
7097
  handleHref,
7084
- handleHrefTarget
7098
+ handleHrefTarget,
7099
+ useRowIndex
7085
7100
  };
7086
7101
  }
7087
7102
  });
7088
- const Table_vue_vue_type_style_index_0_scoped_392a99da_lang = "";
7103
+ const Table_vue_vue_type_style_index_0_scoped_9d631b38_lang = "";
7089
7104
  const Table_vue_vue_type_style_index_1_lang = "";
7090
7105
  const _hoisted_1$1 = {
7091
7106
  key: 1,
@@ -7203,7 +7218,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
7203
7218
  }, 8, ["loading"])
7204
7219
  ], 4);
7205
7220
  }
7206
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-392a99da"]]);
7221
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-9d631b38"]]);
7207
7222
  const EcanTable = withInstall(Table);
7208
7223
  const mapProps = {
7209
7224
  ...props,