@ecan-bi/datav 1.0.96 → 1.0.98
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 +22 -13
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +22 -13
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +14 -8
- 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.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.0.
|
|
1
|
+
/*! @ecan-bi/datav@1.0.98 */
|
|
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 = [];
|
|
@@ -6670,6 +6672,7 @@ const tableProps = {
|
|
|
6670
6672
|
paginationPosition: "bottomRight",
|
|
6671
6673
|
paginationPageSize: 10,
|
|
6672
6674
|
isUseAction: false,
|
|
6675
|
+
clickHighlight: false,
|
|
6673
6676
|
actionList: [{
|
|
6674
6677
|
title: "",
|
|
6675
6678
|
href: "",
|
|
@@ -6770,12 +6773,15 @@ const _sfc_main$1 = defineComponent({
|
|
|
6770
6773
|
cellAlign = "center",
|
|
6771
6774
|
cellColor
|
|
6772
6775
|
} = column;
|
|
6773
|
-
column.customCell = () => ({
|
|
6776
|
+
column.customCell = (_record, rowIndex) => ({
|
|
6774
6777
|
style: {
|
|
6775
6778
|
textAlign: cellAlign,
|
|
6776
6779
|
color: cellColor,
|
|
6777
6780
|
backgroundColor: props2.cellBackgroundColor,
|
|
6778
6781
|
borderBottomColor: props2.borderColor
|
|
6782
|
+
},
|
|
6783
|
+
class: {
|
|
6784
|
+
highlight: unref(useRowIndex) === rowIndex && props2.clickHighlight
|
|
6779
6785
|
}
|
|
6780
6786
|
});
|
|
6781
6787
|
if (Array.isArray(column.children)) {
|
|
@@ -6883,10 +6889,10 @@ const _sfc_main$1 = defineComponent({
|
|
|
6883
6889
|
};
|
|
6884
6890
|
if (props2.paginationShow) {
|
|
6885
6891
|
params = {
|
|
6886
|
-
...params,
|
|
6887
6892
|
pageNum: unref(pageNum),
|
|
6888
6893
|
pageSize: unref(pageSize),
|
|
6889
|
-
layer: "1"
|
|
6894
|
+
layer: "1",
|
|
6895
|
+
...params
|
|
6890
6896
|
};
|
|
6891
6897
|
}
|
|
6892
6898
|
const res = await requestData(params);
|
|
@@ -6983,11 +6989,13 @@ const _sfc_main$1 = defineComponent({
|
|
|
6983
6989
|
loading.value = false;
|
|
6984
6990
|
}
|
|
6985
6991
|
};
|
|
6986
|
-
const
|
|
6992
|
+
const useRowIndex = ref(-1);
|
|
6993
|
+
const customRow = (record, index2) => ({
|
|
6987
6994
|
onClick: emitEvent("click", () => {
|
|
6988
6995
|
const id = props2.id;
|
|
6989
6996
|
const modal = getGlobalModel(id);
|
|
6990
6997
|
setGlobalModel(id, { ...modal, RECORD: record });
|
|
6998
|
+
useRowIndex.value = index2;
|
|
6991
6999
|
})
|
|
6992
7000
|
});
|
|
6993
7001
|
const refreshData = (isUseLoading = true) => {
|
|
@@ -7087,11 +7095,12 @@ const _sfc_main$1 = defineComponent({
|
|
|
7087
7095
|
loading,
|
|
7088
7096
|
onTouchHrefEvent,
|
|
7089
7097
|
handleHref,
|
|
7090
|
-
handleHrefTarget
|
|
7098
|
+
handleHrefTarget,
|
|
7099
|
+
useRowIndex
|
|
7091
7100
|
};
|
|
7092
7101
|
}
|
|
7093
7102
|
});
|
|
7094
|
-
const
|
|
7103
|
+
const Table_vue_vue_type_style_index_0_scoped_9d631b38_lang = "";
|
|
7095
7104
|
const Table_vue_vue_type_style_index_1_lang = "";
|
|
7096
7105
|
const _hoisted_1$1 = {
|
|
7097
7106
|
key: 1,
|
|
@@ -7209,7 +7218,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7209
7218
|
}, 8, ["loading"])
|
|
7210
7219
|
], 4);
|
|
7211
7220
|
}
|
|
7212
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7221
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-9d631b38"]]);
|
|
7213
7222
|
const EcanTable = withInstall(Table);
|
|
7214
7223
|
const mapProps = {
|
|
7215
7224
|
...props,
|