@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 +32 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +32 -17
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +15 -9
- package/package.json +1 -1
- package/types/graph/bar/Bar.vue.d.ts +56 -0
- package/types/graph/bar/index.d.ts +56 -0
- package/types/graph/bar/props.d.ts +30 -0
- package/types/table/table/Table.vue.d.ts +42 -1
- package/types/table/table/index.d.ts +42 -1
- package/types/table/table/props.d.ts +21 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.0.
|
|
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 = [];
|
|
@@ -6618,8 +6620,14 @@
|
|
|
6618
6620
|
const myLink = vue.computed(() => {
|
|
6619
6621
|
let link = useVariablesInText(props2.link);
|
|
6620
6622
|
if (props2.linkType === "erd" && link != null) {
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
+
let ctxErdUrl = vue.unref(contextRequestUrl);
|
|
6624
|
+
if (ctxErdUrl[ctxErdUrl.length - 1] === "/") {
|
|
6625
|
+
ctxErdUrl += "erdReport";
|
|
6626
|
+
} else {
|
|
6627
|
+
ctxErdUrl += "/erdReport";
|
|
6628
|
+
}
|
|
6629
|
+
const erdUrl = ERD_URL || ctxErdUrl;
|
|
6630
|
+
link = `${erdUrl}?_t=0&uid=${link}`;
|
|
6623
6631
|
}
|
|
6624
6632
|
return link;
|
|
6625
6633
|
});
|
|
@@ -6629,7 +6637,7 @@
|
|
|
6629
6637
|
};
|
|
6630
6638
|
}
|
|
6631
6639
|
});
|
|
6632
|
-
const
|
|
6640
|
+
const Iframe_vue_vue_type_style_index_0_scoped_b0be60e8_lang = "";
|
|
6633
6641
|
const _hoisted_1$2 = ["src"];
|
|
6634
6642
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6635
6643
|
return _ctx.myLink ? (vue.openBlock(), vue.createElementBlock("iframe", {
|
|
@@ -6642,7 +6650,7 @@
|
|
|
6642
6650
|
style: vue.normalizeStyle(_ctx.style)
|
|
6643
6651
|
}, " \u8BF7\u586B\u5199\u7F51\u9875\u94FE\u63A5 ", 4));
|
|
6644
6652
|
}
|
|
6645
|
-
const Iframe = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
6653
|
+
const Iframe = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-b0be60e8"]]);
|
|
6646
6654
|
const EcanIframe = withInstall(Iframe);
|
|
6647
6655
|
const tableProps = {
|
|
6648
6656
|
...props,
|
|
@@ -6669,6 +6677,7 @@
|
|
|
6669
6677
|
paginationPosition: "bottomRight",
|
|
6670
6678
|
paginationPageSize: 10,
|
|
6671
6679
|
isUseAction: false,
|
|
6680
|
+
clickHighlight: true,
|
|
6672
6681
|
actionList: [{
|
|
6673
6682
|
title: "",
|
|
6674
6683
|
href: "",
|
|
@@ -6769,12 +6778,15 @@
|
|
|
6769
6778
|
cellAlign = "center",
|
|
6770
6779
|
cellColor
|
|
6771
6780
|
} = column;
|
|
6772
|
-
column.customCell = () => ({
|
|
6781
|
+
column.customCell = (_record, rowIndex) => ({
|
|
6773
6782
|
style: {
|
|
6774
6783
|
textAlign: cellAlign,
|
|
6775
6784
|
color: cellColor,
|
|
6776
6785
|
backgroundColor: props2.cellBackgroundColor,
|
|
6777
6786
|
borderBottomColor: props2.borderColor
|
|
6787
|
+
},
|
|
6788
|
+
class: {
|
|
6789
|
+
highlight: vue.unref(useRowIndex) === rowIndex && props2.clickHighlight
|
|
6778
6790
|
}
|
|
6779
6791
|
});
|
|
6780
6792
|
if (Array.isArray(column.children)) {
|
|
@@ -6882,10 +6894,10 @@
|
|
|
6882
6894
|
};
|
|
6883
6895
|
if (props2.paginationShow) {
|
|
6884
6896
|
params = {
|
|
6885
|
-
...params,
|
|
6886
6897
|
pageNum: vue.unref(pageNum),
|
|
6887
6898
|
pageSize: vue.unref(pageSize),
|
|
6888
|
-
layer: "1"
|
|
6899
|
+
layer: "1",
|
|
6900
|
+
...params
|
|
6889
6901
|
};
|
|
6890
6902
|
}
|
|
6891
6903
|
const res = await requestData(params);
|
|
@@ -6982,11 +6994,13 @@
|
|
|
6982
6994
|
loading.value = false;
|
|
6983
6995
|
}
|
|
6984
6996
|
};
|
|
6985
|
-
const
|
|
6997
|
+
const useRowIndex = vue.ref(-1);
|
|
6998
|
+
const customRow = (record, index2) => ({
|
|
6986
6999
|
onClick: emitEvent("click", () => {
|
|
6987
7000
|
const id = props2.id;
|
|
6988
7001
|
const modal = getGlobalModel(id);
|
|
6989
7002
|
setGlobalModel(id, { ...modal, RECORD: record });
|
|
7003
|
+
useRowIndex.value = index2;
|
|
6990
7004
|
})
|
|
6991
7005
|
});
|
|
6992
7006
|
const refreshData = (isUseLoading = true) => {
|
|
@@ -7086,11 +7100,12 @@
|
|
|
7086
7100
|
loading,
|
|
7087
7101
|
onTouchHrefEvent,
|
|
7088
7102
|
handleHref,
|
|
7089
|
-
handleHrefTarget
|
|
7103
|
+
handleHrefTarget,
|
|
7104
|
+
useRowIndex
|
|
7090
7105
|
};
|
|
7091
7106
|
}
|
|
7092
7107
|
});
|
|
7093
|
-
const
|
|
7108
|
+
const Table_vue_vue_type_style_index_0_scoped_9d631b38_lang = "";
|
|
7094
7109
|
const Table_vue_vue_type_style_index_1_lang = "";
|
|
7095
7110
|
const _hoisted_1$1 = {
|
|
7096
7111
|
key: 1,
|
|
@@ -7208,7 +7223,7 @@
|
|
|
7208
7223
|
}, 8, ["loading"])
|
|
7209
7224
|
], 4);
|
|
7210
7225
|
}
|
|
7211
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7226
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-9d631b38"]]);
|
|
7212
7227
|
const EcanTable = withInstall(Table);
|
|
7213
7228
|
const mapProps = {
|
|
7214
7229
|
...props,
|