@web-utils/component 2.0.9 → 2.0.11
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/3d28cc08.js +57 -0
- package/dist/chunks/{41a066be.js → 44b78389.js} +8 -8
- package/dist/chunks/5d33812d.js +147 -0
- package/dist/chunks/{61ad06b2.js → 822300f3.js} +3 -3
- package/dist/chunks/9d848bf6.js +99 -0
- package/dist/chunks/a0bb327b.js +96 -0
- package/dist/chunks/a8891d2c.js +30 -0
- package/dist/chunks/c69d5628.js +248 -0
- package/dist/chunks/de9fe802.js +24 -0
- package/dist/chunks/{5a78e0db.js → e1939731.js} +6 -5
- package/dist/components/address-input/index.js +56 -43
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/aside-menu/index.js +36 -30
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/awesome-button/index.js +35 -32
- package/dist/components/base.css +66 -1
- package/dist/components/capsule-tab/index.js +33 -27
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/chunk-file-uploader/index.js +88 -54
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/index.js +31 -25
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.js +42 -28
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/index.js +212 -134
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/index.js +34 -28
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/index.js +35 -29
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +38 -30
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/index.js +181 -153
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/index.js +68 -49
- package/dist/components/confirm-button/index.js +21 -19
- package/dist/components/confirmable/index.js +19 -18
- package/dist/components/context-menu/index.js +130 -108
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/custom-scrollbar/index.js +67 -49
- package/dist/components/data-table-picker/index.js +81 -62
- package/dist/components/dynamic-table/index.js +113 -89
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/index.js +201 -120
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/editable-progress/index.js +93 -60
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/index.js +638 -423
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/index.js +46 -33
- package/dist/components/egd-collapse-item/index.js +76 -60
- package/dist/components/element-dialog/index.js +147 -95
- package/dist/components/element-dialog/style.css +102 -1
- package/dist/components/empty-view/index.js +34 -28
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/index.js +32 -26
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.js +40 -25
- package/dist/components/flex-item/index.js +57 -29
- package/dist/components/flex-row/index.js +40 -25
- package/dist/components/flex-scroller/index.js +32 -26
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/form-button/index.js +38 -34
- package/dist/components/form-cascader/index.js +81 -71
- package/dist/components/form-checkbox-group/index.js +113 -88
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/index.js +132 -70
- package/dist/components/form-holder/index.js +39 -32
- package/dist/components/form-input/index.js +62 -56
- package/dist/components/form-input-email/index.js +60 -48
- package/dist/components/form-input-id-card/index.js +59 -53
- package/dist/components/form-input-number/index.js +68 -61
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/index.js +55 -49
- package/dist/components/form-input-time/index.js +59 -53
- package/dist/components/form-item/index.js +123 -80
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/index.js +26 -25
- package/dist/components/form-item-group/index.js +111 -85
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/index.js +104 -85
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/index.js +91 -76
- package/dist/components/form-switch/index.js +57 -51
- package/dist/components/form-textarea/index.js +57 -51
- package/dist/components/form-view/index.js +232 -165
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/guide-steps/index.js +58 -44
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/icon-card/index.js +35 -29
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/iframe-window/index.js +35 -29
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-viewer/index.js +66 -48
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/index.js +193 -127
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/index.js +57 -45
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +120 -73
- package/dist/components/loading-view/index.js +32 -26
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/nav-bar/index.js +37 -27
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/index.js +31 -23
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/page/index.js +28 -22
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/index.js +36 -30
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/index.js +83 -62
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/index.js +68 -53
- package/dist/components/page-skeleton/index.js +37 -31
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/index.js +48 -42
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/index.js +253 -186
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/index.js +199 -129
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.js +151 -110
- package/dist/components/photo-swipe/style.css +20 -1
- package/dist/components/resize-observer/index.js +68 -34
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search-popover/index.js +211 -153
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign-panel/index.js +142 -92
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/split-pane/index.js +162 -101
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/index.js +34 -31
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/index.js +44 -37
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.js +150 -85
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/index.js +72 -54
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/index.js +35 -30
- package/dist/components/table-column/index.js +32 -30
- package/dist/components/table-view/index.js +227 -156
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/index.js +58 -44
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/tinymce-editor/index.js +95 -79
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/index.js +121 -92
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/index.js +84 -63
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/index.js +48 -41
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/index.js +36 -29
- package/dist/components/vue-tags-input/index.js +308 -188
- package/dist/components/vue-tags-input/style.css +682 -1
- package/dist/components/watermark/index.js +37 -25
- package/dist/components/watermark/style.css +11 -1
- package/dist/components/x-dialog/index.js +93 -67
- package/dist/components/x-dialog/style.css +15 -1
- package/dist/index.css +1105 -193
- package/dist/index.es.js +7242 -4789
- package/package.json +2 -1
- package/web-types.json +1 -1
- package/dist/chunks/3a79781b.js +0 -75
- package/dist/chunks/5d4282fb.js +0 -30
- package/dist/chunks/76680a03.js +0 -24
- package/dist/chunks/8c0142e0.js +0 -81
- package/dist/chunks/97652d86.js +0 -26
- package/dist/chunks/b4acd3a6.js +0 -126
- package/dist/chunks/f71045fc.js +0 -184
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { BarChart
|
|
3
|
-
import { TitleComponent
|
|
4
|
-
import { CanvasRenderer
|
|
5
|
-
import { debounce
|
|
6
|
-
import { addListener
|
|
7
|
-
import { n as
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
1
|
+
import * as echarts from "echarts/core";
|
|
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 normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
8
|
+
var render = function() {
|
|
9
|
+
var _vm = this;
|
|
10
|
+
var _h = _vm.$createElement;
|
|
11
|
+
var _c = _vm._self._c || _h;
|
|
12
|
+
return _c("div", {
|
|
11
13
|
staticClass: "echarts",
|
|
12
14
|
style: {
|
|
13
|
-
width:
|
|
14
|
-
height:
|
|
15
|
+
width: _vm.width,
|
|
16
|
+
height: _vm.height
|
|
15
17
|
}
|
|
16
18
|
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
};
|
|
20
|
+
var staticRenderFns = [];
|
|
21
|
+
const ECharts_vue_vue_type_style_index_0_lang = "";
|
|
22
|
+
echarts.use([
|
|
23
|
+
TitleComponent,
|
|
24
|
+
TooltipComponent,
|
|
25
|
+
GridComponent,
|
|
26
|
+
LegendComponent,
|
|
27
|
+
DatasetComponent,
|
|
28
|
+
PolarComponent,
|
|
29
|
+
CanvasRenderer,
|
|
30
|
+
BarChart,
|
|
31
|
+
LineChart,
|
|
32
|
+
PieChart,
|
|
33
|
+
RadarChart,
|
|
34
|
+
MapChart,
|
|
35
|
+
ScatterChart,
|
|
36
|
+
EffectScatterChart,
|
|
37
|
+
PictorialBarChart
|
|
34
38
|
]);
|
|
35
|
-
const
|
|
39
|
+
const INIT_TRIGGERS = ["theme", "initOptions", "autoResize"];
|
|
40
|
+
const REWATCH_TRIGGERS = ["manualUpdate", "watchShallow"];
|
|
41
|
+
const __vue2_script = {
|
|
36
42
|
name: "ECharts",
|
|
37
43
|
props: {
|
|
38
44
|
options: {
|
|
@@ -65,67 +71,83 @@ const x = ["theme", "initOptions", "autoResize"], E = ["manualUpdate", "watchSha
|
|
|
65
71
|
};
|
|
66
72
|
},
|
|
67
73
|
watch: {
|
|
68
|
-
group(
|
|
69
|
-
this.chart.group =
|
|
74
|
+
group(group) {
|
|
75
|
+
this.chart.group = group;
|
|
70
76
|
}
|
|
71
77
|
},
|
|
72
78
|
created() {
|
|
73
|
-
this.initOptionsWatcher()
|
|
79
|
+
this.initOptionsWatcher();
|
|
80
|
+
INIT_TRIGGERS.forEach((prop) => {
|
|
74
81
|
this.$watch(
|
|
75
|
-
|
|
82
|
+
prop,
|
|
76
83
|
() => {
|
|
77
84
|
this.refresh();
|
|
78
85
|
},
|
|
79
|
-
{ deep:
|
|
86
|
+
{ deep: true }
|
|
80
87
|
);
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
});
|
|
89
|
+
REWATCH_TRIGGERS.forEach((prop) => {
|
|
90
|
+
this.$watch(prop, () => {
|
|
91
|
+
this.initOptionsWatcher();
|
|
92
|
+
this.refresh();
|
|
84
93
|
});
|
|
85
94
|
});
|
|
86
95
|
},
|
|
87
96
|
mounted() {
|
|
88
|
-
this.options
|
|
97
|
+
if (this.options) {
|
|
98
|
+
this.init();
|
|
99
|
+
}
|
|
89
100
|
},
|
|
90
101
|
activated() {
|
|
91
|
-
this.autoResize
|
|
102
|
+
if (this.autoResize) {
|
|
103
|
+
this.chart && this.chart.resize();
|
|
104
|
+
}
|
|
92
105
|
},
|
|
93
106
|
destroyed() {
|
|
94
|
-
this.chart
|
|
107
|
+
if (this.chart) {
|
|
108
|
+
this.destroy();
|
|
109
|
+
}
|
|
95
110
|
},
|
|
96
111
|
methods: {
|
|
97
|
-
mergeOptions(
|
|
98
|
-
|
|
112
|
+
mergeOptions(options, notMerge, lazyUpdate) {
|
|
113
|
+
if (this.manualUpdate) {
|
|
114
|
+
this.manualOptions = options;
|
|
115
|
+
}
|
|
116
|
+
if (!this.chart) {
|
|
117
|
+
this.init(options);
|
|
118
|
+
} else {
|
|
119
|
+
this.delegateMethod("setOption", options, notMerge, lazyUpdate);
|
|
120
|
+
}
|
|
99
121
|
},
|
|
100
|
-
appendData(
|
|
101
|
-
this.delegateMethod("appendData",
|
|
122
|
+
appendData(params) {
|
|
123
|
+
this.delegateMethod("appendData", params);
|
|
102
124
|
},
|
|
103
|
-
resize(
|
|
104
|
-
this.delegateMethod("resize",
|
|
125
|
+
resize(options) {
|
|
126
|
+
this.delegateMethod("resize", options);
|
|
105
127
|
},
|
|
106
|
-
dispatchAction(
|
|
107
|
-
this.delegateMethod("dispatchAction",
|
|
128
|
+
dispatchAction(payload) {
|
|
129
|
+
this.delegateMethod("dispatchAction", payload);
|
|
108
130
|
},
|
|
109
|
-
convertToPixel(
|
|
110
|
-
return this.delegateMethod("convertToPixel",
|
|
131
|
+
convertToPixel(finder, value) {
|
|
132
|
+
return this.delegateMethod("convertToPixel", finder, value);
|
|
111
133
|
},
|
|
112
|
-
convertFromPixel(
|
|
113
|
-
return this.delegateMethod("convertFromPixel",
|
|
134
|
+
convertFromPixel(finder, value) {
|
|
135
|
+
return this.delegateMethod("convertFromPixel", finder, value);
|
|
114
136
|
},
|
|
115
|
-
containPixel(
|
|
116
|
-
return this.delegateMethod("containPixel",
|
|
137
|
+
containPixel(finder, value) {
|
|
138
|
+
return this.delegateMethod("containPixel", finder, value);
|
|
117
139
|
},
|
|
118
|
-
showLoading(
|
|
119
|
-
this.delegateMethod("showLoading",
|
|
140
|
+
showLoading(type, options) {
|
|
141
|
+
this.delegateMethod("showLoading", type, options);
|
|
120
142
|
},
|
|
121
143
|
hideLoading() {
|
|
122
144
|
this.delegateMethod("hideLoading");
|
|
123
145
|
},
|
|
124
|
-
getDataURL(
|
|
125
|
-
return this.delegateMethod("getDataURL",
|
|
146
|
+
getDataURL(options) {
|
|
147
|
+
return this.delegateMethod("getDataURL", options);
|
|
126
148
|
},
|
|
127
|
-
getConnectedDataURL(
|
|
128
|
-
return this.delegateMethod("getConnectedDataURL",
|
|
149
|
+
getConnectedDataURL(options) {
|
|
150
|
+
return this.delegateMethod("getConnectedDataURL", options);
|
|
129
151
|
},
|
|
130
152
|
clear() {
|
|
131
153
|
this.delegateMethod("clear");
|
|
@@ -133,97 +155,156 @@ const x = ["theme", "initOptions", "autoResize"], E = ["manualUpdate", "watchSha
|
|
|
133
155
|
dispose() {
|
|
134
156
|
this.delegateMethod("dispose");
|
|
135
157
|
},
|
|
136
|
-
delegateMethod(
|
|
137
|
-
|
|
158
|
+
delegateMethod(name, ...args) {
|
|
159
|
+
if (!this.chart) {
|
|
160
|
+
this.init();
|
|
161
|
+
}
|
|
162
|
+
return this.chart[name](...args);
|
|
138
163
|
},
|
|
139
|
-
delegateGet(
|
|
140
|
-
|
|
164
|
+
delegateGet(methodName) {
|
|
165
|
+
if (!this.chart) {
|
|
166
|
+
this.init();
|
|
167
|
+
}
|
|
168
|
+
return this.chart[methodName]();
|
|
141
169
|
},
|
|
142
170
|
getArea() {
|
|
143
171
|
return this.$el.offsetWidth * this.$el.offsetHeight;
|
|
144
172
|
},
|
|
145
|
-
init(
|
|
146
|
-
if (this.chart)
|
|
173
|
+
init(options) {
|
|
174
|
+
if (this.chart) {
|
|
147
175
|
return;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
176
|
+
}
|
|
177
|
+
const chart = echarts.init(this.$el, this.theme, this.initOptions);
|
|
178
|
+
if (this.group) {
|
|
179
|
+
chart.group = this.group;
|
|
180
|
+
}
|
|
181
|
+
chart.setOption(options || this.manualOptions || this.options || {}, true);
|
|
182
|
+
Object.keys(this.$listeners).forEach((event) => {
|
|
183
|
+
const handler = this.$listeners[event];
|
|
184
|
+
if (event.indexOf("zr:") === 0) {
|
|
185
|
+
chart.getZr().on(event.slice(3), handler);
|
|
186
|
+
} else {
|
|
187
|
+
chart.on(event, handler);
|
|
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, {
|
|
159
209
|
width: {
|
|
160
|
-
configurable:
|
|
161
|
-
get: () =>
|
|
210
|
+
configurable: true,
|
|
211
|
+
get: () => {
|
|
212
|
+
return this.delegateGet("getWidth");
|
|
213
|
+
}
|
|
162
214
|
},
|
|
163
215
|
height: {
|
|
164
|
-
configurable:
|
|
165
|
-
get: () =>
|
|
216
|
+
configurable: true,
|
|
217
|
+
get: () => {
|
|
218
|
+
return this.delegateGet("getHeight");
|
|
219
|
+
}
|
|
166
220
|
},
|
|
167
221
|
isDisposed: {
|
|
168
|
-
configurable:
|
|
169
|
-
get: () =>
|
|
222
|
+
configurable: true,
|
|
223
|
+
get: () => {
|
|
224
|
+
return !!this.delegateGet("isDisposed");
|
|
225
|
+
}
|
|
170
226
|
},
|
|
171
227
|
computedOptions: {
|
|
172
|
-
configurable:
|
|
173
|
-
get: () =>
|
|
228
|
+
configurable: true,
|
|
229
|
+
get: () => {
|
|
230
|
+
return this.delegateGet("getOption");
|
|
231
|
+
}
|
|
174
232
|
}
|
|
175
|
-
})
|
|
233
|
+
});
|
|
234
|
+
this.chart = chart;
|
|
176
235
|
},
|
|
177
236
|
initOptionsWatcher() {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
237
|
+
if (this.__unwatchOptions) {
|
|
238
|
+
this.__unwatchOptions();
|
|
239
|
+
this.__unwatchOptions = null;
|
|
240
|
+
}
|
|
241
|
+
if (!this.manualUpdate) {
|
|
242
|
+
this.__unwatchOptions = this.$watch(
|
|
243
|
+
"options",
|
|
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
|
+
}
|
|
185
254
|
},
|
|
186
255
|
destroy() {
|
|
187
|
-
|
|
256
|
+
if (this.autoResize) {
|
|
257
|
+
removeListener(this.$el, this.__resizeHandler);
|
|
258
|
+
}
|
|
259
|
+
this.dispose();
|
|
260
|
+
this.chart = null;
|
|
188
261
|
},
|
|
189
262
|
refresh() {
|
|
190
|
-
|
|
263
|
+
if (this.chart) {
|
|
264
|
+
this.destroy();
|
|
265
|
+
this.init();
|
|
266
|
+
}
|
|
191
267
|
}
|
|
192
268
|
},
|
|
193
|
-
connect(
|
|
194
|
-
|
|
269
|
+
connect(group) {
|
|
270
|
+
if (!isString(group)) {
|
|
271
|
+
group = group.map((chart) => chart.chart);
|
|
272
|
+
}
|
|
273
|
+
echarts.connect(group);
|
|
195
274
|
},
|
|
196
|
-
disconnect(
|
|
197
|
-
|
|
275
|
+
disconnect(group) {
|
|
276
|
+
echarts.disConnect(group);
|
|
198
277
|
},
|
|
199
|
-
getMap(
|
|
200
|
-
return
|
|
278
|
+
getMap(mapName) {
|
|
279
|
+
return echarts.getMap(mapName);
|
|
201
280
|
},
|
|
202
|
-
registerMap(
|
|
203
|
-
|
|
281
|
+
registerMap(mapName, geoJSON, specialAreas) {
|
|
282
|
+
echarts.registerMap(mapName, geoJSON, specialAreas);
|
|
204
283
|
},
|
|
205
|
-
registerTheme(
|
|
206
|
-
|
|
284
|
+
registerTheme(name, theme) {
|
|
285
|
+
echarts.registerTheme(name, theme);
|
|
207
286
|
},
|
|
208
|
-
graphic:
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
287
|
+
graphic: echarts.graphic
|
|
288
|
+
};
|
|
289
|
+
const __cssModules = {};
|
|
290
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
291
|
+
__vue2_script,
|
|
292
|
+
render,
|
|
293
|
+
staticRenderFns,
|
|
294
|
+
false,
|
|
295
|
+
__vue2_injectStyles,
|
|
216
296
|
null,
|
|
217
297
|
null,
|
|
218
298
|
null
|
|
219
299
|
);
|
|
220
|
-
function
|
|
221
|
-
for (let
|
|
222
|
-
this[
|
|
300
|
+
function __vue2_injectStyles(context) {
|
|
301
|
+
for (let o in __cssModules) {
|
|
302
|
+
this[o] = __cssModules[o];
|
|
303
|
+
}
|
|
223
304
|
}
|
|
224
|
-
const
|
|
225
|
-
return
|
|
305
|
+
const ECharts = /* @__PURE__ */ function() {
|
|
306
|
+
return __component__.exports;
|
|
226
307
|
}();
|
|
227
308
|
export {
|
|
228
|
-
|
|
309
|
+
ECharts as default
|
|
229
310
|
};
|
|
@@ -1,64 +1,68 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
2
|
+
var render = function() {
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
6
|
+
return _c("div", {
|
|
5
7
|
staticClass: "editable-progress",
|
|
6
8
|
on: {
|
|
7
|
-
mouseover:
|
|
8
|
-
mousedown:
|
|
9
|
-
mouseleave:
|
|
10
|
-
click:
|
|
9
|
+
"mouseover": _vm.onMouseOver,
|
|
10
|
+
"mousedown": _vm.onMouseDown,
|
|
11
|
+
"mouseleave": _vm.onMouseLeave,
|
|
12
|
+
"click": _vm.wrapperClick
|
|
11
13
|
}
|
|
12
|
-
}, [
|
|
14
|
+
}, [_c("ElProgress", {
|
|
13
15
|
directives: [{
|
|
14
16
|
name: "show",
|
|
15
17
|
rawName: "v-show",
|
|
16
|
-
value: !
|
|
18
|
+
value: !_vm.slider,
|
|
17
19
|
expression: "!slider"
|
|
18
20
|
}],
|
|
19
|
-
class:
|
|
21
|
+
class: _vm.percent === 100 ? "progress__success" : "",
|
|
20
22
|
attrs: {
|
|
21
|
-
"stroke-width":
|
|
23
|
+
"stroke-width": _vm.strokeWidth,
|
|
22
24
|
"text-inside": "",
|
|
23
|
-
percentage:
|
|
25
|
+
"percentage": _vm.percent
|
|
24
26
|
}
|
|
25
|
-
}),
|
|
27
|
+
}), !_vm.disabled ? _c("ElSlider", {
|
|
26
28
|
directives: [{
|
|
27
29
|
name: "show",
|
|
28
30
|
rawName: "v-show",
|
|
29
|
-
value:
|
|
31
|
+
value: _vm.slider,
|
|
30
32
|
expression: "slider"
|
|
31
33
|
}],
|
|
32
34
|
ref: "slider",
|
|
33
35
|
style: {
|
|
34
|
-
width: `${
|
|
36
|
+
width: `${_vm.max === 100 ? 100 : _vm.max - 1}%`
|
|
35
37
|
},
|
|
36
38
|
attrs: {
|
|
37
|
-
"tooltip-class":
|
|
38
|
-
max:
|
|
39
|
-
"format-tooltip":
|
|
40
|
-
disabled:
|
|
41
|
-
step:
|
|
39
|
+
"tooltip-class": _vm.tooltipClass,
|
|
40
|
+
"max": _vm.max,
|
|
41
|
+
"format-tooltip": _vm.formatTooltip,
|
|
42
|
+
"disabled": _vm.disabled,
|
|
43
|
+
"step": _vm.step
|
|
42
44
|
},
|
|
43
45
|
on: {
|
|
44
|
-
input:
|
|
45
|
-
change:
|
|
46
|
+
"input": _vm.onInput,
|
|
47
|
+
"change": _vm.onChange
|
|
46
48
|
},
|
|
47
49
|
model: {
|
|
48
|
-
value:
|
|
49
|
-
callback: function(
|
|
50
|
-
|
|
50
|
+
value: _vm.percent,
|
|
51
|
+
callback: function($$v) {
|
|
52
|
+
_vm.percent = $$v;
|
|
51
53
|
},
|
|
52
54
|
expression: "percent"
|
|
53
55
|
}
|
|
54
|
-
})], 1);
|
|
55
|
-
}
|
|
56
|
-
|
|
56
|
+
}) : _vm._e()], 1);
|
|
57
|
+
};
|
|
58
|
+
var staticRenderFns = [];
|
|
59
|
+
const EditableProgress_vue_vue_type_style_index_0_lang = "";
|
|
60
|
+
const __vue2_script = {
|
|
57
61
|
name: "EditableProgress",
|
|
58
62
|
props: {
|
|
59
63
|
disabled: {
|
|
60
64
|
type: Boolean,
|
|
61
|
-
default:
|
|
65
|
+
default: false
|
|
62
66
|
},
|
|
63
67
|
strokeWidth: {
|
|
64
68
|
type: Number,
|
|
@@ -79,63 +83,92 @@ const a = {
|
|
|
79
83
|
},
|
|
80
84
|
data() {
|
|
81
85
|
return {
|
|
82
|
-
slider:
|
|
83
|
-
mouseDown:
|
|
86
|
+
slider: false,
|
|
87
|
+
mouseDown: false,
|
|
84
88
|
tooltipClass: "hide-tooltip",
|
|
85
89
|
percent: this.value
|
|
86
90
|
};
|
|
87
91
|
},
|
|
88
92
|
watch: {
|
|
89
|
-
value(
|
|
90
|
-
|
|
93
|
+
value(val) {
|
|
94
|
+
if (this.percent !== val) {
|
|
95
|
+
this.percent = val;
|
|
96
|
+
}
|
|
91
97
|
}
|
|
92
98
|
},
|
|
93
99
|
methods: {
|
|
94
|
-
formatTooltip(
|
|
95
|
-
return `${
|
|
100
|
+
formatTooltip(val) {
|
|
101
|
+
return `${val}%`;
|
|
96
102
|
},
|
|
97
|
-
onInput(
|
|
98
|
-
this.value !==
|
|
103
|
+
onInput(percent) {
|
|
104
|
+
if (this.value !== percent) {
|
|
105
|
+
this.$emit("input", percent);
|
|
106
|
+
}
|
|
99
107
|
},
|
|
100
|
-
onChange(
|
|
101
|
-
this.slider =
|
|
108
|
+
onChange(percent) {
|
|
109
|
+
this.slider = false;
|
|
110
|
+
this.tooltipClass = "hide-tooltip";
|
|
111
|
+
this.$emit("change", percent);
|
|
102
112
|
},
|
|
103
113
|
onMouseOver() {
|
|
104
|
-
this.disabled || this.slider
|
|
105
|
-
|
|
106
|
-
}
|
|
114
|
+
if (this.disabled || this.slider) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
this.slider = true;
|
|
118
|
+
this.$nextTick(() => {
|
|
119
|
+
this.$refs.slider.$refs.button1.$refs.tooltip.updatePopper();
|
|
120
|
+
this.tooltipClass = "";
|
|
121
|
+
});
|
|
107
122
|
},
|
|
108
123
|
onMouseDown() {
|
|
109
|
-
|
|
124
|
+
if (this.disabled) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
this.mouseDown = true;
|
|
128
|
+
window.addEventListener("mouseup", this.onMouseUp);
|
|
110
129
|
},
|
|
111
130
|
onMouseUp() {
|
|
112
|
-
|
|
131
|
+
if (this.disabled) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this.mouseDown = false;
|
|
135
|
+
this.tooltipClass = "hide-tooltip";
|
|
136
|
+
window.removeEventListener("mouseup", this.onMouseUp);
|
|
113
137
|
},
|
|
114
138
|
onMouseLeave() {
|
|
115
|
-
this.disabled || this.mouseDown
|
|
139
|
+
if (this.disabled || this.mouseDown) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
this.tooltipClass = "hide-tooltip";
|
|
143
|
+
this.slider = false;
|
|
116
144
|
},
|
|
117
145
|
wrapperClick() {
|
|
118
|
-
|
|
146
|
+
if (this.disabled) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this.slider = true;
|
|
119
150
|
}
|
|
120
151
|
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
152
|
+
};
|
|
153
|
+
const __cssModules = {};
|
|
154
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
155
|
+
__vue2_script,
|
|
156
|
+
render,
|
|
157
|
+
staticRenderFns,
|
|
158
|
+
false,
|
|
159
|
+
__vue2_injectStyles,
|
|
128
160
|
null,
|
|
129
161
|
null,
|
|
130
162
|
null
|
|
131
163
|
);
|
|
132
|
-
function
|
|
133
|
-
for (let
|
|
134
|
-
this[
|
|
164
|
+
function __vue2_injectStyles(context) {
|
|
165
|
+
for (let o in __cssModules) {
|
|
166
|
+
this[o] = __cssModules[o];
|
|
167
|
+
}
|
|
135
168
|
}
|
|
136
|
-
const
|
|
137
|
-
return
|
|
169
|
+
const EditableProgress = /* @__PURE__ */ function() {
|
|
170
|
+
return __component__.exports;
|
|
138
171
|
}();
|
|
139
172
|
export {
|
|
140
|
-
|
|
173
|
+
EditableProgress as default
|
|
141
174
|
};
|
|
@@ -1 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.editable-progress {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: flex-start;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
width: 100%;
|
|
13
|
+
background-color: #e4e7ed;
|
|
14
|
+
border-radius: 100px;
|
|
15
|
+
}
|
|
16
|
+
.editable-progress .el-progress, .editable-progress .el-slider {
|
|
17
|
+
width: 100%;
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
}
|
|
20
|
+
.editable-progress .el-slider__runway {
|
|
21
|
+
margin: 0;
|
|
22
|
+
}
|
|
23
|
+
.editable-progress .el-progress-bar__outer {
|
|
24
|
+
background-color: #e4e7ed;
|
|
25
|
+
}
|
|
26
|
+
.editable-progress .el-slider__bar, .editable-progress .el-slider__runway {
|
|
27
|
+
height: 22px;
|
|
28
|
+
border-radius: 100px;
|
|
29
|
+
}
|
|
30
|
+
.editable-progress .el-slider__button-wrapper {
|
|
31
|
+
width: 52px;
|
|
32
|
+
height: 52px;
|
|
33
|
+
}
|
|
34
|
+
.editable-progress .el-slider__button-wrapper .el-slider__button {
|
|
35
|
+
width: 24px;
|
|
36
|
+
height: 24px;
|
|
37
|
+
}
|