@ecan-bi/datav 1.1.13 → 1.1.14
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 +70 -20
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +70 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +11 -11
- package/package.json +1 -1
- package/types/control/date-picker/DatePicker.vue.d.ts +18 -0
- package/types/control/date-picker/index.d.ts +18 -0
- package/types/control/date-picker/props.d.ts +10 -0
- package/types/control/range-picker/RangePicker.vue.d.ts +54 -0
- package/types/control/range-picker/index.d.ts +54 -0
- package/types/control/range-picker/props.d.ts +31 -0
- package/types/graph/bar/props.d.ts +1 -5
- package/types/graph/pie/props.d.ts +1 -5
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.14 */
|
|
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) {
|
|
@@ -3567,10 +3567,11 @@
|
|
|
3567
3567
|
keyName: "\u65E5\u671F\u9009\u62E9\u5668",
|
|
3568
3568
|
rotate: "",
|
|
3569
3569
|
type: "ecanDatePicker",
|
|
3570
|
-
value:
|
|
3570
|
+
value: "",
|
|
3571
3571
|
picker: "date",
|
|
3572
3572
|
format: "YYYY-MM-DD",
|
|
3573
|
-
showTime: false
|
|
3573
|
+
showTime: false,
|
|
3574
|
+
useCurrentTime: true
|
|
3574
3575
|
};
|
|
3575
3576
|
const datePickerComponentProps = transformToComponentProps(datePickerProps);
|
|
3576
3577
|
const datePickerEvents = ["dateChange"];
|
|
@@ -3586,8 +3587,14 @@
|
|
|
3586
3587
|
const style2 = usePickComponentStyle(props2);
|
|
3587
3588
|
const getPopupContainer = () => document.getElementById("ProviderConfig") || document.body;
|
|
3588
3589
|
const myValue = vue.ref(null);
|
|
3589
|
-
vue.watch(() => props2.value, () => {
|
|
3590
|
-
|
|
3590
|
+
vue.watch(() => [props2.value, props2.useCurrentTime], ([value, useCurrentTime]) => {
|
|
3591
|
+
let _value = null;
|
|
3592
|
+
if (value) {
|
|
3593
|
+
_value = dayjs__default.default(value);
|
|
3594
|
+
} else if (useCurrentTime) {
|
|
3595
|
+
_value = dayjs__default.default();
|
|
3596
|
+
}
|
|
3597
|
+
myValue.value = _value;
|
|
3591
3598
|
}, {
|
|
3592
3599
|
immediate: true
|
|
3593
3600
|
});
|
|
@@ -3778,7 +3785,10 @@
|
|
|
3778
3785
|
picker: "date",
|
|
3779
3786
|
format: "YYYY-MM-DD",
|
|
3780
3787
|
startTime: "",
|
|
3781
|
-
endTime: ""
|
|
3788
|
+
endTime: "",
|
|
3789
|
+
useCurrentTime: true,
|
|
3790
|
+
interval: 1,
|
|
3791
|
+
intervalUnit: "year"
|
|
3782
3792
|
};
|
|
3783
3793
|
const rangePickerComponentProps = transformToComponentProps(rangePickerProps);
|
|
3784
3794
|
const rangePickerEvents = ["dateChange"];
|
|
@@ -3794,9 +3804,19 @@
|
|
|
3794
3804
|
const style2 = usePickComponentStyle(props2);
|
|
3795
3805
|
const getPopupContainer = () => document.getElementById("ProviderConfig") || document.body;
|
|
3796
3806
|
const myValue = vue.ref([null, null]);
|
|
3797
|
-
vue.watch(() => [props2.startTime, props2.endTime], ([startTime, endTime]) => {
|
|
3798
|
-
|
|
3799
|
-
|
|
3807
|
+
vue.watch(() => [props2.startTime, props2.endTime, props2.useCurrentTime, props2.interval, props2.intervalUnit], ([startTime, endTime, useCurrentTime, interval, intervalUnit]) => {
|
|
3808
|
+
let _startTime = null;
|
|
3809
|
+
let _endTime = null;
|
|
3810
|
+
if (useCurrentTime) {
|
|
3811
|
+
_startTime = dayjs__default.default();
|
|
3812
|
+
_endTime = dayjs__default.default().subtract(interval, intervalUnit);
|
|
3813
|
+
}
|
|
3814
|
+
if (startTime) {
|
|
3815
|
+
_startTime = dayjs__default.default(startTime);
|
|
3816
|
+
}
|
|
3817
|
+
if (endTime) {
|
|
3818
|
+
_endTime = dayjs__default.default(endTime);
|
|
3819
|
+
}
|
|
3800
3820
|
myValue.value = [_startTime, _endTime];
|
|
3801
3821
|
}, {
|
|
3802
3822
|
immediate: true
|
|
@@ -3827,7 +3847,7 @@
|
|
|
3827
3847
|
};
|
|
3828
3848
|
}
|
|
3829
3849
|
});
|
|
3830
|
-
const
|
|
3850
|
+
const RangePicker_vue_vue_type_style_index_0_scoped_2fc9988b_lang = "";
|
|
3831
3851
|
const RangePicker_vue_vue_type_style_index_1_lang = "";
|
|
3832
3852
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3833
3853
|
const _component_a_range_picker = vue.resolveComponent("a-range-picker");
|
|
@@ -3848,7 +3868,7 @@
|
|
|
3848
3868
|
}, null, 8, ["value", "format", "picker", "locale", "getPopupContainer", "onChange"])
|
|
3849
3869
|
], 4);
|
|
3850
3870
|
}
|
|
3851
|
-
const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-
|
|
3871
|
+
const RangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-2fc9988b"]]);
|
|
3852
3872
|
const EcanRangePicker = withInstall(RangePicker);
|
|
3853
3873
|
const buttonProps = {
|
|
3854
3874
|
...props,
|
|
@@ -3880,7 +3900,7 @@
|
|
|
3880
3900
|
const emitEvent = useEmitEvent(props2);
|
|
3881
3901
|
const click = emitEvent("click", () => {
|
|
3882
3902
|
const url = vue.unref(myHref);
|
|
3883
|
-
if (props2.target === "event") {
|
|
3903
|
+
if (url && props2.target === "event") {
|
|
3884
3904
|
window.parent.postMessage({
|
|
3885
3905
|
type: "openPage",
|
|
3886
3906
|
url
|
|
@@ -4115,7 +4135,7 @@
|
|
|
4115
4135
|
toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F"
|
|
4116
4136
|
};
|
|
4117
4137
|
const pieComponentProps = transformToComponentProps(pieProps);
|
|
4118
|
-
const pieEvents = ["click", "refreshData"];
|
|
4138
|
+
const pieEvents = ["click", "refreshData", "resetRecord"];
|
|
4119
4139
|
const useDownloadFile = async (downloadFileUrl) => {
|
|
4120
4140
|
var _a2;
|
|
4121
4141
|
const res = await request.post(downloadFileUrl, {}, {
|
|
@@ -4368,7 +4388,13 @@
|
|
|
4368
4388
|
const refreshData = () => {
|
|
4369
4389
|
chooseRequestOrDiagram();
|
|
4370
4390
|
};
|
|
4391
|
+
const resetRecord = () => {
|
|
4392
|
+
const id = props2.id;
|
|
4393
|
+
const modal = getGlobalModel(id);
|
|
4394
|
+
setGlobalModel(id, { ...modal, RECORD: "" });
|
|
4395
|
+
};
|
|
4371
4396
|
useOnEvent(props2, {
|
|
4397
|
+
resetRecord,
|
|
4372
4398
|
refreshData,
|
|
4373
4399
|
click
|
|
4374
4400
|
});
|
|
@@ -4495,7 +4521,7 @@
|
|
|
4495
4521
|
areaStyleOpacity: 0
|
|
4496
4522
|
};
|
|
4497
4523
|
const lineComponentProps = transformToComponentProps(lineProps);
|
|
4498
|
-
const lineEvents = ["click", "refreshData"];
|
|
4524
|
+
const lineEvents = ["click", "refreshData", "resetRecord"];
|
|
4499
4525
|
core.use([
|
|
4500
4526
|
renderers.CanvasRenderer,
|
|
4501
4527
|
charts.LineChart,
|
|
@@ -4782,8 +4808,14 @@
|
|
|
4782
4808
|
const refreshData = () => {
|
|
4783
4809
|
chooseRequestOrDiagram();
|
|
4784
4810
|
};
|
|
4811
|
+
const resetRecord = () => {
|
|
4812
|
+
const id = props2.id;
|
|
4813
|
+
const modal = getGlobalModel(id);
|
|
4814
|
+
setGlobalModel(id, { ...modal, RECORD: "" });
|
|
4815
|
+
};
|
|
4785
4816
|
useOnEvent(props2, {
|
|
4786
4817
|
refreshData,
|
|
4818
|
+
resetRecord,
|
|
4787
4819
|
click
|
|
4788
4820
|
});
|
|
4789
4821
|
const { setRequest } = vue.inject(REQUEST_MODEL, {
|
|
@@ -4937,7 +4969,7 @@
|
|
|
4937
4969
|
labelColor: ""
|
|
4938
4970
|
};
|
|
4939
4971
|
const barComponentProps = transformToComponentProps(barProps);
|
|
4940
|
-
const barEvents = ["refreshData", "click"];
|
|
4972
|
+
const barEvents = ["refreshData", "click", "resetRecord"];
|
|
4941
4973
|
core.use([
|
|
4942
4974
|
renderers.CanvasRenderer,
|
|
4943
4975
|
charts.BarChart,
|
|
@@ -5247,9 +5279,15 @@
|
|
|
5247
5279
|
requestFn: refreshData,
|
|
5248
5280
|
sortNum: props2.requestSort
|
|
5249
5281
|
});
|
|
5282
|
+
const resetRecord = () => {
|
|
5283
|
+
const id = props2.id;
|
|
5284
|
+
const modal = getGlobalModel(id);
|
|
5285
|
+
setGlobalModel(id, { ...modal, RECORD: "" });
|
|
5286
|
+
};
|
|
5250
5287
|
useOnEvent(props2, {
|
|
5251
5288
|
refreshData,
|
|
5252
|
-
click
|
|
5289
|
+
click,
|
|
5290
|
+
resetRecord
|
|
5253
5291
|
});
|
|
5254
5292
|
return {
|
|
5255
5293
|
option,
|
|
@@ -5786,7 +5824,7 @@
|
|
|
5786
5824
|
barWidth: "40%"
|
|
5787
5825
|
};
|
|
5788
5826
|
const comboGraphComponentProps = transformToComponentProps(comboGraphProps);
|
|
5789
|
-
const comboGraphEvents = ["refreshData", "click"];
|
|
5827
|
+
const comboGraphEvents = ["refreshData", "click", "resetRecord"];
|
|
5790
5828
|
core.use([
|
|
5791
5829
|
renderers.CanvasRenderer,
|
|
5792
5830
|
charts.BarChart,
|
|
@@ -6106,7 +6144,13 @@
|
|
|
6106
6144
|
requestFn: chooseRequestOrDiagram,
|
|
6107
6145
|
sortNum: props2.requestSort
|
|
6108
6146
|
});
|
|
6147
|
+
const resetRecord = () => {
|
|
6148
|
+
const id = props2.id;
|
|
6149
|
+
const modal = getGlobalModel(id);
|
|
6150
|
+
setGlobalModel(id, { ...modal, RECORD: "" });
|
|
6151
|
+
};
|
|
6109
6152
|
useOnEvent(props2, {
|
|
6153
|
+
resetRecord,
|
|
6110
6154
|
refreshData,
|
|
6111
6155
|
click
|
|
6112
6156
|
});
|
|
@@ -6796,7 +6840,7 @@
|
|
|
6796
6840
|
}
|
|
6797
6841
|
};
|
|
6798
6842
|
const tableComponentProps = transformToComponentProps(tableProps);
|
|
6799
|
-
const tableEvents = ["click", "refreshData"];
|
|
6843
|
+
const tableEvents = ["click", "refreshData", "resetRecord"];
|
|
6800
6844
|
const _sfc_main$1 = vue.defineComponent({
|
|
6801
6845
|
name: "EcanTable",
|
|
6802
6846
|
components: {
|
|
@@ -7165,7 +7209,13 @@
|
|
|
7165
7209
|
break;
|
|
7166
7210
|
}
|
|
7167
7211
|
};
|
|
7212
|
+
const resetRecord = () => {
|
|
7213
|
+
const id = props2.id;
|
|
7214
|
+
const modal = getGlobalModel(id);
|
|
7215
|
+
setGlobalModel(id, { ...modal, RECORD: "" });
|
|
7216
|
+
};
|
|
7168
7217
|
useOnEvent(props2, {
|
|
7218
|
+
resetRecord,
|
|
7169
7219
|
refreshData
|
|
7170
7220
|
});
|
|
7171
7221
|
const summaryList = vue.computed(() => {
|
|
@@ -7300,7 +7350,7 @@
|
|
|
7300
7350
|
};
|
|
7301
7351
|
}
|
|
7302
7352
|
});
|
|
7303
|
-
const
|
|
7353
|
+
const Table_vue_vue_type_style_index_0_scoped_3f25d4f8_lang = "";
|
|
7304
7354
|
const Table_vue_vue_type_style_index_1_lang = "";
|
|
7305
7355
|
const _hoisted_1$1 = /* @__PURE__ */ vue.createTextVNode(" \u641C\u7D22 ");
|
|
7306
7356
|
const _hoisted_2 = /* @__PURE__ */ vue.createTextVNode(" \u91CD\u7F6E ");
|
|
@@ -7456,7 +7506,7 @@
|
|
|
7456
7506
|
}, 8, ["loading"])
|
|
7457
7507
|
], 4);
|
|
7458
7508
|
}
|
|
7459
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
7509
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-3f25d4f8"]]);
|
|
7460
7510
|
const EcanTable = withInstall(Table);
|
|
7461
7511
|
const mapProps = {
|
|
7462
7512
|
...props,
|