@web-utils/component 2.0.13 → 2.7.0
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/chunks/config.46422d7f.js +73 -0
- package/dist/chunks/confirmable-mixin.3a79781b.js +75 -0
- package/dist/chunks/dataformat.fb35ee10.js +61 -0
- package/dist/chunks/detail.a3249549.js +28 -0
- package/dist/chunks/dic.5f7e3523.js +132 -0
- package/dist/chunks/event.50c365eb.js +235 -0
- package/dist/chunks/form-input-mixin.ff5b58f7.js +24 -0
- package/dist/chunks/form-item-mixin.79f6eaff.js +128 -0
- package/dist/chunks/{822300f3.js → form-pick-mixin.61ad06b2.js} +3 -3
- package/dist/chunks/init.352281f5.js +121 -0
- package/dist/chunks/{44b78389.js → input-number-mixin.41a066be.js} +8 -8
- package/dist/chunks/{e1939731.js → mixins.5a78e0db.js} +5 -6
- package/dist/chunks/packages.5d7a86c4.js +114 -0
- package/dist/chunks/permission.ce5d2121.js +16 -0
- package/dist/chunks/slot.1b8d2b1b.js +27 -0
- package/dist/chunks/tab-mixin.8c0142e0.js +81 -0
- package/dist/chunks/util.5053d54e.js +264 -0
- package/dist/chunks/utils.97652d86.js +26 -0
- package/dist/chunks/utils.fa73de78.js +185 -0
- package/dist/chunks/vueComponentNormalizer.71e2aa87.js +32 -0
- package/dist/components/address-input/index.js +43 -56
- package/dist/components/address-input/style.css +1 -15
- package/dist/components/affix/index.js +102 -0
- package/dist/components/affix/style.css +1 -0
- package/dist/components/array/index.js +156 -0
- package/dist/components/array/style.css +1 -0
- package/dist/components/article/index.js +93 -0
- package/dist/components/article/style.css +1 -0
- package/dist/components/aside-menu/index.js +30 -36
- package/dist/components/aside-menu/style.css +1 -9
- package/dist/components/avatar/index.js +106 -0
- package/dist/components/avatar/style.css +1 -0
- package/dist/components/awesome-button/index.js +32 -35
- package/dist/components/base.css +1 -66
- package/dist/components/capsule-tab/index.js +27 -33
- package/dist/components/capsule-tab/style.css +1 -32
- package/dist/components/card/index.js +130 -0
- package/dist/components/card/style.css +1 -0
- package/dist/components/carousel/index.js +70 -0
- package/dist/components/carousel/style.css +1 -0
- package/dist/components/chat/index.js +567 -0
- package/dist/components/chat/style.css +1 -0
- package/dist/components/chunk-file-uploader/index.js +54 -88
- package/dist/components/chunk-file-uploader/style.css +1 -4
- package/dist/components/chunk-file-uploader-button/index.js +25 -31
- package/dist/components/chunk-file-uploader-button/style.css +1 -17
- package/dist/components/chunk-file-uploader-drop/index.js +28 -42
- package/dist/components/chunk-file-uploader-drop/style.css +1 -12
- package/dist/components/chunk-file-uploader-file/index.js +134 -211
- package/dist/components/chunk-file-uploader-file/style.css +1 -125
- package/dist/components/chunk-file-uploader-files/index.js +28 -34
- package/dist/components/chunk-file-uploader-files/style.css +1 -9
- package/dist/components/chunk-file-uploader-list/index.js +29 -35
- package/dist/components/chunk-file-uploader-list/style.css +1 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +30 -38
- package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
- package/dist/components/code/index.js +66 -0
- package/dist/components/code-mirror-editor/index.js +156 -181
- package/dist/components/code-mirror-editor/style.css +1 -17
- package/dist/components/color-picker/index.js +49 -68
- package/dist/components/column/index.js +114 -0
- package/dist/components/column-default/index.js +105 -0
- package/dist/components/column-dynamic/index.js +93 -0
- package/dist/components/column-menu/index.js +286 -0
- package/dist/components/column-slot/index.js +265 -0
- package/dist/components/comment/index.js +94 -0
- package/dist/components/comment/style.css +1 -0
- package/dist/components/confirm-button/index.js +19 -21
- package/dist/components/confirmable/index.js +18 -19
- package/dist/components/context-menu/index.js +118 -130
- package/dist/components/context-menu/style.css +1 -88
- package/dist/components/count-up/index.js +120 -0
- package/dist/components/custom-scrollbar/index.js +50 -68
- package/dist/components/data-box/index.js +97 -0
- package/dist/components/data-box/style.css +1 -0
- package/dist/components/data-card/index.js +98 -0
- package/dist/components/data-card/style.css +1 -0
- package/dist/components/data-cardtext/index.js +82 -0
- package/dist/components/data-cardtext/style.css +1 -0
- package/dist/components/data-display/index.js +93 -0
- package/dist/components/data-display/style.css +1 -0
- package/dist/components/data-icons/index.js +104 -0
- package/dist/components/data-icons/style.css +1 -0
- package/dist/components/data-imgtext/index.js +106 -0
- package/dist/components/data-imgtext/style.css +1 -0
- package/dist/components/data-operatext/index.js +99 -0
- package/dist/components/data-operatext/style.css +1 -0
- package/dist/components/data-panel/index.js +93 -0
- package/dist/components/data-panel/style.css +1 -0
- package/dist/components/data-pay/index.js +149 -0
- package/dist/components/data-pay/style.css +1 -0
- package/dist/components/data-price/index.js +84 -0
- package/dist/components/data-price/style.css +1 -0
- package/dist/components/data-progress/index.js +97 -0
- package/dist/components/data-progress/style.css +1 -0
- package/dist/components/data-rotate/index.js +96 -0
- package/dist/components/data-rotate/style.css +1 -0
- package/dist/components/data-table-picker/index.js +62 -81
- package/dist/components/data-tabs/index.js +94 -0
- package/dist/components/data-tabs/style.css +1 -0
- package/dist/components/dialog-column/index.js +138 -0
- package/dist/components/dialog-excel/index.js +214 -0
- package/dist/components/dialog-filter/index.js +245 -0
- package/dist/components/dialog-form/index.js +275 -0
- package/dist/components/draggable/index.js +384 -0
- package/dist/components/draggable/style.css +1 -0
- package/dist/components/dynamic-table/index.js +89 -113
- package/dist/components/dynamic-table/style.css +1 -30
- package/dist/components/e-charts/index.js +126 -201
- package/dist/components/e-charts/style.css +1 -10
- package/dist/components/editable-progress/index.js +60 -93
- package/dist/components/editable-progress/style.css +1 -37
- package/dist/components/editable-tree/index.js +423 -638
- package/dist/components/editable-tree/style.css +1 -82
- package/dist/components/egd-collapse/index.js +33 -46
- package/dist/components/egd-collapse-item/index.js +60 -76
- package/dist/components/element-dialog/index.js +95 -147
- package/dist/components/element-dialog/style.css +1 -102
- package/dist/components/empty/index.js +59 -0
- package/dist/components/empty/style.css +1 -0
- package/dist/components/empty-view/index.js +28 -34
- package/dist/components/empty-view/style.css +1 -17
- package/dist/components/error-view/index.js +26 -32
- package/dist/components/error-view/style.css +1 -17
- package/dist/components/flex-column/index.js +25 -40
- package/dist/components/flex-item/index.js +29 -57
- package/dist/components/flex-row/index.js +25 -40
- package/dist/components/flex-scroller/index.js +26 -32
- package/dist/components/flex-scroller/style.css +1 -20
- package/dist/components/flow/index.js +278 -0
- package/dist/components/flow/style.css +1 -0
- package/dist/components/flow-node/index.js +102 -0
- package/dist/components/form-button/index.js +34 -38
- package/dist/components/form-cascader/index.js +71 -81
- package/dist/components/form-checkbox-group/index.js +88 -113
- package/dist/components/form-checkbox-group/style.css +1 -51
- package/dist/components/form-date-picker/index.js +70 -132
- package/dist/components/form-group/index.js +122 -0
- package/dist/components/form-group/style.css +1 -0
- package/dist/components/form-holder/index.js +53 -39
- package/dist/components/form-input/index.js +56 -62
- package/dist/components/form-input-email/index.js +48 -60
- package/dist/components/form-input-id-card/index.js +53 -59
- package/dist/components/form-input-number/index.js +61 -68
- package/dist/components/form-input-number/style.css +1 -12
- package/dist/components/form-input-phone-number/index.js +49 -55
- package/dist/components/form-input-time/index.js +53 -59
- package/dist/components/form-item/index.js +80 -123
- package/dist/components/form-item/style.css +1 -11
- package/dist/components/form-item-config-provider/index.js +25 -26
- package/dist/components/form-item-group/index.js +85 -111
- package/dist/components/form-item-group/style.css +1 -30
- package/dist/components/form-radio-group/index.js +85 -104
- package/dist/components/form-radio-group/style.css +1 -53
- package/dist/components/form-select/index.js +76 -91
- package/dist/components/form-switch/index.js +51 -57
- package/dist/components/form-temp/index.js +149 -0
- package/dist/components/form-textarea/index.js +51 -57
- package/dist/components/form-view/index.js +165 -232
- package/dist/components/form-view/style.css +1 -158
- package/dist/components/fy-cascader/index.js +132 -0
- package/dist/components/fy-checkbox/index.js +116 -0
- package/dist/components/fy-checkbox/style.css +1 -0
- package/dist/components/fy-curd/index.js +846 -0
- package/dist/components/fy-curd/style.css +1 -0
- package/dist/components/fy-date/index.js +84 -0
- package/dist/components/fy-date/style.css +1 -0
- package/dist/components/fy-dialog-form/index.js +278 -0
- package/dist/components/fy-dialog-form/style.css +1 -0
- package/dist/components/fy-dynamic/index.js +335 -0
- package/dist/components/fy-dynamic/style.css +1 -0
- package/dist/components/fy-form/index.js +754 -0
- package/dist/components/fy-form/style.css +1 -0
- package/dist/components/fy-form-menu/index.js +95 -0
- package/dist/components/fy-input/index.js +162 -0
- package/dist/components/fy-input-color/index.js +96 -0
- package/dist/components/fy-input-icon/index.js +161 -0
- package/dist/components/fy-input-icon/style.css +1 -0
- package/dist/components/fy-input-map/index.js +275 -0
- package/dist/components/fy-input-map/style.css +1 -0
- package/dist/components/fy-input-number/index.js +87 -0
- package/dist/components/fy-input-table/index.js +172 -0
- package/dist/components/fy-input-table/style.css +1 -0
- package/dist/components/fy-input-tree/index.js +265 -0
- package/dist/components/fy-input-tree/style.css +1 -0
- package/dist/components/fy-radio/index.js +68 -0
- package/dist/components/fy-radio/style.css +1 -0
- package/dist/components/fy-rate/index.js +105 -0
- package/dist/components/fy-rate/style.css +1 -0
- package/dist/components/fy-select/index.js +223 -0
- package/dist/components/fy-select/style.css +1 -0
- package/dist/components/fy-slider/index.js +79 -0
- package/dist/components/fy-switch/index.js +73 -0
- package/dist/components/fy-time/index.js +95 -0
- package/dist/components/fy-title/index.js +40 -0
- package/dist/components/fy-title/style.css +1 -0
- package/dist/components/fy-upload/index.js +704 -0
- package/dist/components/fy-upload/style.css +1 -0
- package/dist/components/guide-steps/index.js +44 -58
- package/dist/components/guide-steps/style.css +1 -34
- package/dist/components/header-menu/index.js +238 -0
- package/dist/components/header-search/index.js +246 -0
- package/dist/components/icon-card/index.js +29 -35
- package/dist/components/icon-card/style.css +1 -56
- package/dist/components/icon-temp/index.js +50 -0
- package/dist/components/icon-temp/style.css +1 -0
- package/dist/components/iframe-window/index.js +29 -35
- package/dist/components/iframe-window/style.css +1 -20
- package/dist/components/image-viewer/index.js +48 -66
- package/dist/components/image-viewer/style.css +1 -21
- package/dist/components/input-number/index.js +127 -193
- package/dist/components/input-number/style.css +1 -15
- package/dist/components/input-number-range/index.js +45 -57
- package/dist/components/input-number-range/style.css +1 -12
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +77 -120
- package/dist/components/keyboard/index.js +389 -0
- package/dist/components/keyboard/style.css +1 -0
- package/dist/components/license/index.js +134 -0
- package/dist/components/loading-view/index.js +26 -32
- package/dist/components/loading-view/style.css +1 -17
- package/dist/components/login/index.js +244 -0
- package/dist/components/login/style.css +1 -0
- package/dist/components/name-avatar/index.js +66 -0
- package/dist/components/name-avatar/style.css +1 -0
- package/dist/components/nav-bar/index.js +27 -37
- package/dist/components/nav-bar/style.css +1 -17
- package/dist/components/not-implement/index.js +23 -31
- package/dist/components/not-implement/style.css +1 -15
- package/dist/components/notice/index.js +143 -0
- package/dist/components/notice/style.css +1 -0
- package/dist/components/page/index.js +22 -28
- package/dist/components/page/style.css +1 -12
- package/dist/components/page-header/index.js +30 -36
- package/dist/components/page-header/style.css +1 -14
- package/dist/components/page-index/index.js +62 -83
- package/dist/components/page-index/style.css +1 -23
- package/dist/components/page-index-top/index.js +53 -68
- package/dist/components/page-skeleton/index.js +31 -37
- package/dist/components/page-skeleton/style.css +1 -23
- package/dist/components/page-skeleton-new/index.js +42 -48
- package/dist/components/page-skeleton-new/style.css +1 -42
- package/dist/components/pageable-table/index.js +190 -253
- package/dist/components/pageable-table/style.css +1 -72
- package/dist/components/pageable-view/index.js +134 -199
- package/dist/components/pageable-view/style.css +1 -69
- package/dist/components/photo-swipe/index.js +116 -151
- package/dist/components/photo-swipe/style.css +1 -20
- package/dist/components/progress/index.js +60 -0
- package/dist/components/queue/index.js +76 -0
- package/dist/components/record-video/index.js +173 -0
- package/dist/components/record-video/style.css +1 -0
- package/dist/components/resize-observer/index.js +34 -68
- package/dist/components/resize-observer/style.css +1 -31
- package/dist/components/search/index.js +142 -0
- package/dist/components/search/style.css +1 -0
- package/dist/components/search-popover/index.js +153 -211
- package/dist/components/search-popover/style.css +1 -93
- package/dist/components/sign/index.js +128 -0
- package/dist/components/sign/style.css +1 -0
- package/dist/components/sign-panel/index.js +105 -142
- package/dist/components/sign-panel/style.css +1 -97
- package/dist/components/skeleton/index.js +82 -0
- package/dist/components/skeleton/style.css +1 -0
- package/dist/components/split-pane/index.js +107 -162
- package/dist/components/split-pane/style.css +1 -100
- package/dist/components/stateful/index.js +31 -34
- package/dist/components/stateful/style.css +1 -33
- package/dist/components/static-pageable-table/index.js +37 -44
- package/dist/components/static-pageable-table/style.css +1 -9
- package/dist/components/swiper/index.js +85 -150
- package/dist/components/swiper/style.css +1 -43
- package/dist/components/tab/index.js +56 -72
- package/dist/components/tab/style.css +1 -122
- package/dist/components/tab-item/index.js +30 -35
- package/dist/components/table-column/index.js +30 -32
- package/dist/components/table-page/index.js +129 -0
- package/dist/components/table-view/index.js +156 -227
- package/dist/components/table-view/style.css +1 -95
- package/dist/components/tabs/index.js +90 -0
- package/dist/components/tabs/style.css +0 -0
- package/dist/components/tag-render/index.js +44 -58
- package/dist/components/tag-render/style.css +1 -33
- package/dist/components/text-ellipsis/index.js +107 -0
- package/dist/components/text-ellipsis/style.css +1 -0
- package/dist/components/tinymce-editor/index.js +79 -95
- package/dist/components/tinymce-editor/style.css +1 -43
- package/dist/components/tinymce-wrapper/index.js +92 -121
- package/dist/components/tinymce-wrapper/style.css +1 -36
- package/dist/components/toolbar/index.js +63 -84
- package/dist/components/toolbar/style.css +1 -39
- package/dist/components/toolbar-button/index.js +41 -48
- package/dist/components/toolbar-button/style.css +1 -21
- package/dist/components/tree/index.js +427 -0
- package/dist/components/tree/style.css +1 -0
- package/dist/components/trigger/index.js +29 -36
- package/dist/components/verify/index.js +80 -0
- package/dist/components/verify/style.css +1 -0
- package/dist/components/vue-tags-input/index.js +305 -311
- package/dist/components/vue-tags-input/style.css +1 -682
- package/dist/components/watermark/index.js +43 -37
- package/dist/components/watermark/style.css +1 -11
- package/dist/index.css +4157 -1686
- package/dist/index.es.js +23131 -11014
- package/package.json +20 -4
- package/web-types.json +12777 -2788
- package/dist/chunks/3d28cc08.js +0 -57
- package/dist/chunks/5d33812d.js +0 -147
- package/dist/chunks/9d848bf6.js +0 -99
- package/dist/chunks/a0bb327b.js +0 -96
- package/dist/chunks/a8891d2c.js +0 -30
- package/dist/chunks/c69d5628.js +0 -248
- package/dist/chunks/de9fe802.js +0 -24
- package/dist/components/x-dialog/index.js +0 -199
- package/dist/components/x-dialog/style.css +0 -15
|
@@ -1,44 +1,38 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { BarChart, LineChart, PieChart, RadarChart, MapChart, ScatterChart, EffectScatterChart, PictorialBarChart } from "echarts/charts";
|
|
3
|
-
import { TitleComponent, TooltipComponent, GridComponent, LegendComponent, DatasetComponent, PolarComponent } from "echarts/components";
|
|
4
|
-
import { CanvasRenderer } from "echarts/renderers";
|
|
5
|
-
import { debounce, isString } from "@web-utils/core";
|
|
6
|
-
import { addListener, removeListener } from "resize-detector";
|
|
7
|
-
import { n as
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var _c = _vm._self._c || _h;
|
|
12
|
-
return _c("div", {
|
|
1
|
+
import * as s from "echarts/core";
|
|
2
|
+
import { BarChart as a, LineChart as n, PieChart as o, RadarChart as c, MapChart as d, ScatterChart as l, EffectScatterChart as p, PictorialBarChart as g } from "echarts/charts";
|
|
3
|
+
import { TitleComponent as u, TooltipComponent as f, GridComponent as m, LegendComponent as _, DatasetComponent as O, PolarComponent as C } from "echarts/components";
|
|
4
|
+
import { CanvasRenderer as w } from "echarts/renderers";
|
|
5
|
+
import { debounce as M, isString as R } from "@web-utils/core";
|
|
6
|
+
import { addListener as y, removeListener as z } from "resize-detector";
|
|
7
|
+
import { n as v } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
8
|
+
var S = function() {
|
|
9
|
+
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
10
|
+
return i("div", {
|
|
13
11
|
staticClass: "echarts",
|
|
14
12
|
style: {
|
|
15
|
-
width:
|
|
16
|
-
height:
|
|
13
|
+
width: t.width,
|
|
14
|
+
height: t.height
|
|
17
15
|
}
|
|
18
16
|
});
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
EffectScatterChart,
|
|
37
|
-
PictorialBarChart
|
|
17
|
+
}, L = [];
|
|
18
|
+
s.use([
|
|
19
|
+
u,
|
|
20
|
+
f,
|
|
21
|
+
m,
|
|
22
|
+
_,
|
|
23
|
+
O,
|
|
24
|
+
C,
|
|
25
|
+
w,
|
|
26
|
+
a,
|
|
27
|
+
n,
|
|
28
|
+
o,
|
|
29
|
+
c,
|
|
30
|
+
d,
|
|
31
|
+
l,
|
|
32
|
+
p,
|
|
33
|
+
g
|
|
38
34
|
]);
|
|
39
|
-
const
|
|
40
|
-
const REWATCH_TRIGGERS = ["manualUpdate", "watchShallow"];
|
|
41
|
-
const __vue2_script = {
|
|
35
|
+
const x = ["theme", "initOptions", "autoResize"], E = ["manualUpdate", "watchShallow"], $ = {
|
|
42
36
|
name: "ECharts",
|
|
43
37
|
props: {
|
|
44
38
|
options: {
|
|
@@ -71,83 +65,70 @@ const __vue2_script = {
|
|
|
71
65
|
};
|
|
72
66
|
},
|
|
73
67
|
watch: {
|
|
74
|
-
group(
|
|
75
|
-
this.chart.group =
|
|
68
|
+
group(t) {
|
|
69
|
+
this.chart.group = t;
|
|
76
70
|
}
|
|
77
71
|
},
|
|
78
72
|
created() {
|
|
79
|
-
this.initOptionsWatcher()
|
|
80
|
-
INIT_TRIGGERS.forEach((prop) => {
|
|
73
|
+
this.initOptionsWatcher(), x.forEach((t) => {
|
|
81
74
|
this.$watch(
|
|
82
|
-
|
|
75
|
+
t,
|
|
83
76
|
() => {
|
|
84
77
|
this.refresh();
|
|
85
78
|
},
|
|
86
|
-
{ deep:
|
|
79
|
+
{ deep: !0 }
|
|
87
80
|
);
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
this.initOptionsWatcher();
|
|
92
|
-
this.refresh();
|
|
81
|
+
}), E.forEach((t) => {
|
|
82
|
+
this.$watch(t, () => {
|
|
83
|
+
this.initOptionsWatcher(), this.refresh();
|
|
93
84
|
});
|
|
94
85
|
});
|
|
95
86
|
},
|
|
96
87
|
mounted() {
|
|
97
|
-
|
|
98
|
-
this.init();
|
|
99
|
-
}
|
|
88
|
+
this.options && this.init();
|
|
100
89
|
},
|
|
101
90
|
activated() {
|
|
102
|
-
|
|
103
|
-
this.chart && this.chart.resize();
|
|
104
|
-
}
|
|
91
|
+
this.autoResize && this.chart && this.chart.resize();
|
|
105
92
|
},
|
|
106
93
|
destroyed() {
|
|
107
|
-
|
|
108
|
-
this.destroy();
|
|
109
|
-
}
|
|
94
|
+
this.chart && this.destroy();
|
|
110
95
|
},
|
|
111
96
|
methods: {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
if (!this.chart) {
|
|
117
|
-
this.init(options);
|
|
118
|
-
} else {
|
|
119
|
-
this.delegateMethod("setOption", options, notMerge, lazyUpdate);
|
|
120
|
-
}
|
|
97
|
+
// provide an explicit merge option method
|
|
98
|
+
mergeOptions(t, e, i) {
|
|
99
|
+
this.manualUpdate && (this.manualOptions = t), this.chart ? this.delegateMethod("setOption", t, e, i) : this.init(t);
|
|
121
100
|
},
|
|
122
|
-
|
|
123
|
-
|
|
101
|
+
// just delegates ECharts methods to Vue component
|
|
102
|
+
// use explicit params to reduce transpiled size for now
|
|
103
|
+
appendData(t) {
|
|
104
|
+
this.delegateMethod("appendData", t);
|
|
124
105
|
},
|
|
125
|
-
resize(
|
|
126
|
-
this.delegateMethod("resize",
|
|
106
|
+
resize(t) {
|
|
107
|
+
this.delegateMethod("resize", t);
|
|
127
108
|
},
|
|
128
|
-
dispatchAction(
|
|
129
|
-
this.delegateMethod("dispatchAction",
|
|
109
|
+
dispatchAction(t) {
|
|
110
|
+
this.delegateMethod("dispatchAction", t);
|
|
130
111
|
},
|
|
131
|
-
convertToPixel(
|
|
132
|
-
return this.delegateMethod("convertToPixel",
|
|
112
|
+
convertToPixel(t, e) {
|
|
113
|
+
return this.delegateMethod("convertToPixel", t, e);
|
|
133
114
|
},
|
|
134
|
-
convertFromPixel(
|
|
135
|
-
return this.delegateMethod("convertFromPixel",
|
|
115
|
+
convertFromPixel(t, e) {
|
|
116
|
+
return this.delegateMethod("convertFromPixel", t, e);
|
|
136
117
|
},
|
|
137
|
-
containPixel(
|
|
138
|
-
return this.delegateMethod("containPixel",
|
|
118
|
+
containPixel(t, e) {
|
|
119
|
+
return this.delegateMethod("containPixel", t, e);
|
|
139
120
|
},
|
|
140
|
-
showLoading(
|
|
141
|
-
this.delegateMethod("showLoading",
|
|
121
|
+
showLoading(t, e) {
|
|
122
|
+
this.delegateMethod("showLoading", t, e);
|
|
142
123
|
},
|
|
143
124
|
hideLoading() {
|
|
144
125
|
this.delegateMethod("hideLoading");
|
|
145
126
|
},
|
|
146
|
-
getDataURL(
|
|
147
|
-
return this.delegateMethod("getDataURL",
|
|
127
|
+
getDataURL(t) {
|
|
128
|
+
return this.delegateMethod("getDataURL", t);
|
|
148
129
|
},
|
|
149
|
-
getConnectedDataURL(
|
|
150
|
-
return this.delegateMethod("getConnectedDataURL",
|
|
130
|
+
getConnectedDataURL(t) {
|
|
131
|
+
return this.delegateMethod("getConnectedDataURL", t);
|
|
151
132
|
},
|
|
152
133
|
clear() {
|
|
153
134
|
this.delegateMethod("clear");
|
|
@@ -155,156 +136,100 @@ const __vue2_script = {
|
|
|
155
136
|
dispose() {
|
|
156
137
|
this.delegateMethod("dispose");
|
|
157
138
|
},
|
|
158
|
-
delegateMethod(
|
|
159
|
-
|
|
160
|
-
this.init();
|
|
161
|
-
}
|
|
162
|
-
return this.chart[name](...args);
|
|
139
|
+
delegateMethod(t, ...e) {
|
|
140
|
+
return this.chart || this.init(), this.chart[t](...e);
|
|
163
141
|
},
|
|
164
|
-
delegateGet(
|
|
165
|
-
|
|
166
|
-
this.init();
|
|
167
|
-
}
|
|
168
|
-
return this.chart[methodName]();
|
|
142
|
+
delegateGet(t) {
|
|
143
|
+
return this.chart || this.init(), this.chart[t]();
|
|
169
144
|
},
|
|
170
145
|
getArea() {
|
|
171
146
|
return this.$el.offsetWidth * this.$el.offsetHeight;
|
|
172
147
|
},
|
|
173
|
-
init(
|
|
174
|
-
if (this.chart)
|
|
148
|
+
init(t) {
|
|
149
|
+
if (this.chart)
|
|
175
150
|
return;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if (this.autoResize) {
|
|
191
|
-
this.lastArea = this.getArea();
|
|
192
|
-
this.__resizeHandler = debounce(
|
|
193
|
-
() => {
|
|
194
|
-
if (this.lastArea === 0) {
|
|
195
|
-
this.mergeOptions({}, true);
|
|
196
|
-
this.resize();
|
|
197
|
-
this.mergeOptions(this.options || this.manualOptions || {}, true);
|
|
198
|
-
} else {
|
|
199
|
-
this.resize();
|
|
200
|
-
}
|
|
201
|
-
this.lastArea = this.getArea();
|
|
202
|
-
},
|
|
203
|
-
100,
|
|
204
|
-
{ leading: true }
|
|
205
|
-
);
|
|
206
|
-
addListener(this.$el, this.__resizeHandler);
|
|
207
|
-
}
|
|
208
|
-
Object.defineProperties(this, {
|
|
151
|
+
const e = s.init(this.$el, this.theme, this.initOptions);
|
|
152
|
+
this.group && (e.group = this.group), e.setOption(t || this.manualOptions || this.options || {}, !0), Object.keys(this.$listeners).forEach((i) => {
|
|
153
|
+
const r = this.$listeners[i];
|
|
154
|
+
i.indexOf("zr:") === 0 ? e.getZr().on(i.slice(3), r) : e.on(i, r);
|
|
155
|
+
}), this.autoResize && (this.lastArea = this.getArea(), this.__resizeHandler = M(
|
|
156
|
+
() => {
|
|
157
|
+
this.lastArea === 0 ? (this.mergeOptions({}, !0), this.resize(), this.mergeOptions(this.options || this.manualOptions || {}, !0)) : this.resize(), this.lastArea = this.getArea();
|
|
158
|
+
},
|
|
159
|
+
100,
|
|
160
|
+
{ leading: !0 }
|
|
161
|
+
), y(this.$el, this.__resizeHandler)), Object.defineProperties(this, {
|
|
162
|
+
// Only recalculated when accessed from JavaScript.
|
|
163
|
+
// Won't update DOM on value change because getters
|
|
164
|
+
// don't depend on reactive values
|
|
209
165
|
width: {
|
|
210
|
-
configurable:
|
|
211
|
-
get: () =>
|
|
212
|
-
return this.delegateGet("getWidth");
|
|
213
|
-
}
|
|
166
|
+
configurable: !0,
|
|
167
|
+
get: () => this.delegateGet("getWidth")
|
|
214
168
|
},
|
|
215
169
|
height: {
|
|
216
|
-
configurable:
|
|
217
|
-
get: () =>
|
|
218
|
-
return this.delegateGet("getHeight");
|
|
219
|
-
}
|
|
170
|
+
configurable: !0,
|
|
171
|
+
get: () => this.delegateGet("getHeight")
|
|
220
172
|
},
|
|
221
173
|
isDisposed: {
|
|
222
|
-
configurable:
|
|
223
|
-
get: () =>
|
|
224
|
-
return !!this.delegateGet("isDisposed");
|
|
225
|
-
}
|
|
174
|
+
configurable: !0,
|
|
175
|
+
get: () => !!this.delegateGet("isDisposed")
|
|
226
176
|
},
|
|
227
177
|
computedOptions: {
|
|
228
|
-
configurable:
|
|
229
|
-
get: () =>
|
|
230
|
-
return this.delegateGet("getOption");
|
|
231
|
-
}
|
|
178
|
+
configurable: !0,
|
|
179
|
+
get: () => this.delegateGet("getOption")
|
|
232
180
|
}
|
|
233
|
-
});
|
|
234
|
-
this.chart = chart;
|
|
181
|
+
}), this.chart = e;
|
|
235
182
|
},
|
|
236
183
|
initOptionsWatcher() {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
this.
|
|
243
|
-
|
|
244
|
-
(val, oldVal) => {
|
|
245
|
-
if (!this.chart && val) {
|
|
246
|
-
this.init();
|
|
247
|
-
} else {
|
|
248
|
-
this.chart.setOption(val, val !== oldVal);
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
{ deep: !this.watchShallow }
|
|
252
|
-
);
|
|
253
|
-
}
|
|
184
|
+
this.__unwatchOptions && (this.__unwatchOptions(), this.__unwatchOptions = null), this.manualUpdate || (this.__unwatchOptions = this.$watch(
|
|
185
|
+
"options",
|
|
186
|
+
(t, e) => {
|
|
187
|
+
!this.chart && t ? this.init() : this.chart.setOption(t, t !== e);
|
|
188
|
+
},
|
|
189
|
+
{ deep: !this.watchShallow }
|
|
190
|
+
));
|
|
254
191
|
},
|
|
255
192
|
destroy() {
|
|
256
|
-
|
|
257
|
-
removeListener(this.$el, this.__resizeHandler);
|
|
258
|
-
}
|
|
259
|
-
this.dispose();
|
|
260
|
-
this.chart = null;
|
|
193
|
+
this.autoResize && z(this.$el, this.__resizeHandler), this.dispose(), this.chart = null;
|
|
261
194
|
},
|
|
262
195
|
refresh() {
|
|
263
|
-
|
|
264
|
-
this.destroy();
|
|
265
|
-
this.init();
|
|
266
|
-
}
|
|
196
|
+
this.chart && (this.destroy(), this.init());
|
|
267
197
|
}
|
|
268
198
|
},
|
|
269
|
-
connect(
|
|
270
|
-
|
|
271
|
-
group = group.map((chart) => chart.chart);
|
|
272
|
-
}
|
|
273
|
-
echarts.connect(group);
|
|
199
|
+
connect(t) {
|
|
200
|
+
R(t) || (t = t.map((e) => e.chart)), s.connect(t);
|
|
274
201
|
},
|
|
275
|
-
disconnect(
|
|
276
|
-
|
|
202
|
+
disconnect(t) {
|
|
203
|
+
s.disConnect(t);
|
|
277
204
|
},
|
|
278
|
-
getMap(
|
|
279
|
-
return
|
|
205
|
+
getMap(t) {
|
|
206
|
+
return s.getMap(t);
|
|
280
207
|
},
|
|
281
|
-
registerMap(
|
|
282
|
-
|
|
208
|
+
registerMap(t, e, i) {
|
|
209
|
+
s.registerMap(t, e, i);
|
|
283
210
|
},
|
|
284
|
-
registerTheme(
|
|
285
|
-
|
|
211
|
+
registerTheme(t, e) {
|
|
212
|
+
s.registerTheme(t, e);
|
|
286
213
|
},
|
|
287
|
-
graphic:
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
__vue2_injectStyles,
|
|
214
|
+
graphic: s.graphic
|
|
215
|
+
}, h = {};
|
|
216
|
+
var b = /* @__PURE__ */ v(
|
|
217
|
+
$,
|
|
218
|
+
S,
|
|
219
|
+
L,
|
|
220
|
+
!1,
|
|
221
|
+
A,
|
|
296
222
|
null,
|
|
297
223
|
null,
|
|
298
224
|
null
|
|
299
225
|
);
|
|
300
|
-
function
|
|
301
|
-
for (let
|
|
302
|
-
this[
|
|
303
|
-
}
|
|
226
|
+
function A(t) {
|
|
227
|
+
for (let e in h)
|
|
228
|
+
this[e] = h[e];
|
|
304
229
|
}
|
|
305
|
-
const
|
|
306
|
-
return
|
|
230
|
+
const H = /* @__PURE__ */ function() {
|
|
231
|
+
return b.exports;
|
|
307
232
|
}();
|
|
308
233
|
export {
|
|
309
|
-
|
|
234
|
+
H as default
|
|
310
235
|
};
|
|
@@ -1,68 +1,64 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _c = _vm._self._c || _h;
|
|
6
|
-
return _c("div", {
|
|
1
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var l = function() {
|
|
3
|
+
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
4
|
+
return s("div", {
|
|
7
5
|
staticClass: "editable-progress",
|
|
8
6
|
on: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
mouseover: e.onMouseOver,
|
|
8
|
+
mousedown: e.onMouseDown,
|
|
9
|
+
mouseleave: e.onMouseLeave,
|
|
10
|
+
click: e.wrapperClick
|
|
13
11
|
}
|
|
14
|
-
}, [
|
|
12
|
+
}, [s("ElProgress", {
|
|
15
13
|
directives: [{
|
|
16
14
|
name: "show",
|
|
17
15
|
rawName: "v-show",
|
|
18
|
-
value: !
|
|
16
|
+
value: !e.slider,
|
|
19
17
|
expression: "!slider"
|
|
20
18
|
}],
|
|
21
|
-
class:
|
|
19
|
+
class: e.percent === 100 ? "progress__success" : "",
|
|
22
20
|
attrs: {
|
|
23
|
-
"stroke-width":
|
|
21
|
+
"stroke-width": e.strokeWidth,
|
|
24
22
|
"text-inside": "",
|
|
25
|
-
|
|
23
|
+
percentage: e.percent
|
|
26
24
|
}
|
|
27
|
-
}),
|
|
25
|
+
}), e.disabled ? e._e() : s("ElSlider", {
|
|
28
26
|
directives: [{
|
|
29
27
|
name: "show",
|
|
30
28
|
rawName: "v-show",
|
|
31
|
-
value:
|
|
29
|
+
value: e.slider,
|
|
32
30
|
expression: "slider"
|
|
33
31
|
}],
|
|
34
32
|
ref: "slider",
|
|
35
33
|
style: {
|
|
36
|
-
width: `${
|
|
34
|
+
width: `${e.max === 100 ? 100 : e.max - 1}%`
|
|
37
35
|
},
|
|
38
36
|
attrs: {
|
|
39
|
-
"tooltip-class":
|
|
40
|
-
|
|
41
|
-
"format-tooltip":
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
"tooltip-class": e.tooltipClass,
|
|
38
|
+
max: e.max,
|
|
39
|
+
"format-tooltip": e.formatTooltip,
|
|
40
|
+
disabled: e.disabled,
|
|
41
|
+
step: e.step
|
|
44
42
|
},
|
|
45
43
|
on: {
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
input: e.onInput,
|
|
45
|
+
change: e.onChange
|
|
48
46
|
},
|
|
49
47
|
model: {
|
|
50
|
-
value:
|
|
51
|
-
callback: function(
|
|
52
|
-
|
|
48
|
+
value: e.percent,
|
|
49
|
+
callback: function(i) {
|
|
50
|
+
e.percent = i;
|
|
53
51
|
},
|
|
54
52
|
expression: "percent"
|
|
55
53
|
}
|
|
56
|
-
})
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const EditableProgress_vue_vue_type_style_index_0_lang = "";
|
|
60
|
-
const __vue2_script = {
|
|
54
|
+
})], 1);
|
|
55
|
+
}, n = [];
|
|
56
|
+
const a = {
|
|
61
57
|
name: "EditableProgress",
|
|
62
58
|
props: {
|
|
63
59
|
disabled: {
|
|
64
60
|
type: Boolean,
|
|
65
|
-
default:
|
|
61
|
+
default: !1
|
|
66
62
|
},
|
|
67
63
|
strokeWidth: {
|
|
68
64
|
type: Number,
|
|
@@ -83,92 +79,63 @@ const __vue2_script = {
|
|
|
83
79
|
},
|
|
84
80
|
data() {
|
|
85
81
|
return {
|
|
86
|
-
slider:
|
|
87
|
-
mouseDown:
|
|
82
|
+
slider: !1,
|
|
83
|
+
mouseDown: !1,
|
|
88
84
|
tooltipClass: "hide-tooltip",
|
|
89
85
|
percent: this.value
|
|
90
86
|
};
|
|
91
87
|
},
|
|
92
88
|
watch: {
|
|
93
|
-
value(
|
|
94
|
-
|
|
95
|
-
this.percent = val;
|
|
96
|
-
}
|
|
89
|
+
value(e) {
|
|
90
|
+
this.percent !== e && (this.percent = e);
|
|
97
91
|
}
|
|
98
92
|
},
|
|
99
93
|
methods: {
|
|
100
|
-
formatTooltip(
|
|
101
|
-
return `${
|
|
94
|
+
formatTooltip(e) {
|
|
95
|
+
return `${e}%`;
|
|
102
96
|
},
|
|
103
|
-
onInput(
|
|
104
|
-
|
|
105
|
-
this.$emit("input", percent);
|
|
106
|
-
}
|
|
97
|
+
onInput(e) {
|
|
98
|
+
this.value !== e && this.$emit("input", e);
|
|
107
99
|
},
|
|
108
|
-
onChange(
|
|
109
|
-
this.slider =
|
|
110
|
-
this.tooltipClass = "hide-tooltip";
|
|
111
|
-
this.$emit("change", percent);
|
|
100
|
+
onChange(e) {
|
|
101
|
+
this.slider = !1, this.tooltipClass = "hide-tooltip", this.$emit("change", e);
|
|
112
102
|
},
|
|
113
103
|
onMouseOver() {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
this.slider = true;
|
|
118
|
-
this.$nextTick(() => {
|
|
119
|
-
this.$refs.slider.$refs.button1.$refs.tooltip.updatePopper();
|
|
120
|
-
this.tooltipClass = "";
|
|
121
|
-
});
|
|
104
|
+
this.disabled || this.slider || (this.slider = !0, this.$nextTick(() => {
|
|
105
|
+
this.$refs.slider.$refs.button1.$refs.tooltip.updatePopper(), this.tooltipClass = "";
|
|
106
|
+
}));
|
|
122
107
|
},
|
|
123
108
|
onMouseDown() {
|
|
124
|
-
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
this.mouseDown = true;
|
|
128
|
-
window.addEventListener("mouseup", this.onMouseUp);
|
|
109
|
+
this.disabled || (this.mouseDown = !0, window.addEventListener("mouseup", this.onMouseUp));
|
|
129
110
|
},
|
|
130
111
|
onMouseUp() {
|
|
131
|
-
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
this.mouseDown = false;
|
|
135
|
-
this.tooltipClass = "hide-tooltip";
|
|
136
|
-
window.removeEventListener("mouseup", this.onMouseUp);
|
|
112
|
+
this.disabled || (this.mouseDown = !1, this.tooltipClass = "hide-tooltip", window.removeEventListener("mouseup", this.onMouseUp));
|
|
137
113
|
},
|
|
138
114
|
onMouseLeave() {
|
|
139
|
-
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
this.tooltipClass = "hide-tooltip";
|
|
143
|
-
this.slider = false;
|
|
115
|
+
this.disabled || this.mouseDown || (this.tooltipClass = "hide-tooltip", this.slider = !1);
|
|
144
116
|
},
|
|
145
117
|
wrapperClick() {
|
|
146
|
-
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
this.slider = true;
|
|
118
|
+
this.disabled || (this.slider = !0);
|
|
150
119
|
}
|
|
151
120
|
}
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
__vue2_injectStyles,
|
|
121
|
+
}, o = {};
|
|
122
|
+
var u = /* @__PURE__ */ r(
|
|
123
|
+
a,
|
|
124
|
+
l,
|
|
125
|
+
n,
|
|
126
|
+
!1,
|
|
127
|
+
d,
|
|
160
128
|
null,
|
|
161
129
|
null,
|
|
162
130
|
null
|
|
163
131
|
);
|
|
164
|
-
function
|
|
165
|
-
for (let
|
|
166
|
-
this[
|
|
167
|
-
}
|
|
132
|
+
function d(e) {
|
|
133
|
+
for (let t in o)
|
|
134
|
+
this[t] = o[t];
|
|
168
135
|
}
|
|
169
|
-
const
|
|
170
|
-
return
|
|
136
|
+
const h = /* @__PURE__ */ function() {
|
|
137
|
+
return u.exports;
|
|
171
138
|
}();
|
|
172
139
|
export {
|
|
173
|
-
|
|
140
|
+
h as default
|
|
174
141
|
};
|