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