@ecan-bi/datav 1.0.89 → 1.0.90
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 +35 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +35 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +9 -13
- package/es/hooks/useVariablesInText.js +0 -1
- package/package.json +1 -1
- package/types/control/select/Select.vue.d.ts +1 -0
- package/types/control/select/index.d.ts +1 -0
- package/types/table/table/Table.vue.d.ts +80 -0
- package/types/table/table/index.d.ts +80 -0
- package/types/table/table/props.d.ts +42 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.0.
|
|
1
|
+
/*! @ecan-bi/datav@1.0.90 */
|
|
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) {
|
|
@@ -1703,7 +1703,6 @@
|
|
|
1703
1703
|
if (useSpace) {
|
|
1704
1704
|
formatter = formatter == null ? void 0 : formatter.replace(/\s{2,}?/g, " ");
|
|
1705
1705
|
}
|
|
1706
|
-
console.log("formatter", formatter);
|
|
1707
1706
|
return formatter;
|
|
1708
1707
|
};
|
|
1709
1708
|
const useRequestData = (props2, callBack = () => {
|
|
@@ -3642,15 +3641,23 @@
|
|
|
3642
3641
|
}
|
|
3643
3642
|
return !!((value == null ? void 0 : value.toLowerCase().indexOf(input == null ? void 0 : input.toLowerCase())) >= 0);
|
|
3644
3643
|
};
|
|
3644
|
+
const loading = vue.ref(false);
|
|
3645
3645
|
const handleRequestData = async () => {
|
|
3646
3646
|
var _a2, _b2;
|
|
3647
3647
|
if (props2.dataType !== "request" || vue.unref(pageMode) === "design")
|
|
3648
3648
|
return;
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3649
|
+
loading.value = true;
|
|
3650
|
+
try {
|
|
3651
|
+
const res = await requestData();
|
|
3652
|
+
options.value = ((_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.rows) || [];
|
|
3653
|
+
const firstOption = vue.unref(options)[0];
|
|
3654
|
+
if (props2.value === "" && firstOption != null) {
|
|
3655
|
+
myValue.value = firstOption[dataFieldNames.value];
|
|
3656
|
+
}
|
|
3657
|
+
} catch (e) {
|
|
3658
|
+
console.error(e);
|
|
3659
|
+
} finally {
|
|
3660
|
+
loading.value = false;
|
|
3654
3661
|
}
|
|
3655
3662
|
};
|
|
3656
3663
|
const { getGlobalModel, setGlobalModel } = vue.inject(GLOBAL_MODEL, {
|
|
@@ -3680,7 +3687,8 @@
|
|
|
3680
3687
|
myValue,
|
|
3681
3688
|
selectChange,
|
|
3682
3689
|
options,
|
|
3683
|
-
filterOption
|
|
3690
|
+
filterOption,
|
|
3691
|
+
loading
|
|
3684
3692
|
};
|
|
3685
3693
|
}
|
|
3686
3694
|
});
|
|
@@ -3699,11 +3707,12 @@
|
|
|
3699
3707
|
"field-names": _ctx.dataFieldNames,
|
|
3700
3708
|
"show-search": "",
|
|
3701
3709
|
"filter-option": _ctx.filterOption,
|
|
3702
|
-
onChange: _ctx.selectChange
|
|
3703
|
-
|
|
3710
|
+
onChange: _ctx.selectChange,
|
|
3711
|
+
loading: _ctx.loading
|
|
3712
|
+
}, null, 8, ["value", "options", "getPopupContainer", "field-names", "filter-option", "onChange", "loading"])
|
|
3704
3713
|
], 4);
|
|
3705
3714
|
}
|
|
3706
|
-
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-
|
|
3715
|
+
const Select = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-7ae9493f"]]);
|
|
3707
3716
|
const EcanSelect = withInstall(Select);
|
|
3708
3717
|
const rangePickerProps = {
|
|
3709
3718
|
...props,
|
|
@@ -6574,9 +6583,11 @@
|
|
|
6574
6583
|
width: "400px",
|
|
6575
6584
|
height: "240px",
|
|
6576
6585
|
bordered: false,
|
|
6586
|
+
headerFontSize: "14px",
|
|
6577
6587
|
fontSize: "14px",
|
|
6578
6588
|
isUseSeq: false,
|
|
6579
6589
|
size: "default",
|
|
6590
|
+
headerFontWeight: 400,
|
|
6580
6591
|
fontWeight: 400,
|
|
6581
6592
|
columnsFixedNum: 0,
|
|
6582
6593
|
scrollX: 0,
|
|
@@ -6752,7 +6763,8 @@
|
|
|
6752
6763
|
const _columns = [{
|
|
6753
6764
|
title: firstColumns.title,
|
|
6754
6765
|
dataIndex: "col0",
|
|
6755
|
-
key: "col0"
|
|
6766
|
+
key: "col0",
|
|
6767
|
+
align: "center"
|
|
6756
6768
|
}];
|
|
6757
6769
|
for (let i = 0; i < dataSource.length; i++) {
|
|
6758
6770
|
const data = dataSource[i];
|
|
@@ -6760,7 +6772,8 @@
|
|
|
6760
6772
|
_columns.push({
|
|
6761
6773
|
title: data[firstColumns.dataIndex],
|
|
6762
6774
|
dataIndex,
|
|
6763
|
-
key: dataIndex
|
|
6775
|
+
key: dataIndex,
|
|
6776
|
+
align: "center"
|
|
6764
6777
|
});
|
|
6765
6778
|
}
|
|
6766
6779
|
const _dataSource = [];
|
|
@@ -7043,6 +7056,14 @@
|
|
|
7043
7056
|
pagination: _ctx.pagination,
|
|
7044
7057
|
onChange: _ctx.tableChange
|
|
7045
7058
|
}, {
|
|
7059
|
+
headerCell: vue.withCtx(({ column }) => [
|
|
7060
|
+
vue.createElementVNode("span", {
|
|
7061
|
+
style: vue.normalizeStyle({
|
|
7062
|
+
fontSize: _ctx.headerFontSize,
|
|
7063
|
+
fontWeight: _ctx.headerFontWeight
|
|
7064
|
+
})
|
|
7065
|
+
}, vue.toDisplayString(column.title), 5)
|
|
7066
|
+
]),
|
|
7046
7067
|
bodyCell: vue.withCtx(({ column, index: index2, text, record }) => [
|
|
7047
7068
|
column.dataIndex === "SEQ" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
7048
7069
|
key: 0,
|
|
@@ -7115,7 +7136,7 @@
|
|
|
7115
7136
|
}, 8, ["loading"])
|
|
7116
7137
|
], 4);
|
|
7117
7138
|
}
|
|
7118
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7139
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-32101ced"]]);
|
|
7119
7140
|
const EcanTable = withInstall(Table);
|
|
7120
7141
|
const mapProps = {
|
|
7121
7142
|
...props,
|