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