@ecan-bi/datav 1.0.96 → 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.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.0.96 */
1
+ /*! @ecan-bi/datav@1.0.97 */
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) {
@@ -4869,7 +4869,9 @@
4869
4869
  axisInverse: false,
4870
4870
  xAxisInverse: false,
4871
4871
  yAxisInverse: false,
4872
- isStack: false
4872
+ isStack: false,
4873
+ labelShow: false,
4874
+ labelFontSize: "12px"
4873
4875
  };
4874
4876
  const barComponentProps = transformToComponentProps(barProps);
4875
4877
  const barEvents = ["refreshData", "click"];
@@ -4910,10 +4912,11 @@
4910
4912
  };
4911
4913
  if (props2.isStack) {
4912
4914
  item.stack = "stack";
4913
- item.label = {
4914
- show: true
4915
- };
4916
4915
  }
4916
+ item.label = {
4917
+ show: props2.labelShow,
4918
+ fontSize: props2.labelFontSize
4919
+ };
4917
4920
  series2.push(item);
4918
4921
  }
4919
4922
  return series2;
@@ -5876,7 +5879,6 @@
5876
5879
  const dataFieldNames = useDataFieldNames ? props2.valueTypeDataFieldNames : null;
5877
5880
  chartData = useTransformChartDataByAttrValue(data, dataFieldNames);
5878
5881
  }
5879
- console.log("chartData", chartData);
5880
5882
  dimensions.value = chartData.dimensions;
5881
5883
  const dataset = chartData.dataset;
5882
5884
  const temp = [];
@@ -6675,6 +6677,7 @@
6675
6677
  paginationPosition: "bottomRight",
6676
6678
  paginationPageSize: 10,
6677
6679
  isUseAction: false,
6680
+ clickHighlight: true,
6678
6681
  actionList: [{
6679
6682
  title: "",
6680
6683
  href: "",
@@ -6775,12 +6778,15 @@
6775
6778
  cellAlign = "center",
6776
6779
  cellColor
6777
6780
  } = column;
6778
- column.customCell = () => ({
6781
+ column.customCell = (_record, rowIndex) => ({
6779
6782
  style: {
6780
6783
  textAlign: cellAlign,
6781
6784
  color: cellColor,
6782
6785
  backgroundColor: props2.cellBackgroundColor,
6783
6786
  borderBottomColor: props2.borderColor
6787
+ },
6788
+ class: {
6789
+ highlight: vue.unref(useRowIndex) === rowIndex && props2.clickHighlight
6784
6790
  }
6785
6791
  });
6786
6792
  if (Array.isArray(column.children)) {
@@ -6888,10 +6894,10 @@
6888
6894
  };
6889
6895
  if (props2.paginationShow) {
6890
6896
  params = {
6891
- ...params,
6892
6897
  pageNum: vue.unref(pageNum),
6893
6898
  pageSize: vue.unref(pageSize),
6894
- layer: "1"
6899
+ layer: "1",
6900
+ ...params
6895
6901
  };
6896
6902
  }
6897
6903
  const res = await requestData(params);
@@ -6988,11 +6994,13 @@
6988
6994
  loading.value = false;
6989
6995
  }
6990
6996
  };
6991
- const customRow = (record) => ({
6997
+ const useRowIndex = vue.ref(-1);
6998
+ const customRow = (record, index2) => ({
6992
6999
  onClick: emitEvent("click", () => {
6993
7000
  const id = props2.id;
6994
7001
  const modal = getGlobalModel(id);
6995
7002
  setGlobalModel(id, { ...modal, RECORD: record });
7003
+ useRowIndex.value = index2;
6996
7004
  })
6997
7005
  });
6998
7006
  const refreshData = (isUseLoading = true) => {
@@ -7092,11 +7100,12 @@
7092
7100
  loading,
7093
7101
  onTouchHrefEvent,
7094
7102
  handleHref,
7095
- handleHrefTarget
7103
+ handleHrefTarget,
7104
+ useRowIndex
7096
7105
  };
7097
7106
  }
7098
7107
  });
7099
- const Table_vue_vue_type_style_index_0_scoped_392a99da_lang = "";
7108
+ const Table_vue_vue_type_style_index_0_scoped_9d631b38_lang = "";
7100
7109
  const Table_vue_vue_type_style_index_1_lang = "";
7101
7110
  const _hoisted_1$1 = {
7102
7111
  key: 1,
@@ -7214,7 +7223,7 @@
7214
7223
  }, 8, ["loading"])
7215
7224
  ], 4);
7216
7225
  }
7217
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-392a99da"]]);
7226
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-9d631b38"]]);
7218
7227
  const EcanTable = withInstall(Table);
7219
7228
  const mapProps = {
7220
7229
  ...props,