@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,117 +1,94 @@
1
- import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
2
- function oneOf(value, validList) {
3
- for (let i = 0; i < validList.length; i++) {
4
- if (value === validList[i]) {
5
- return true;
6
- }
7
- }
8
- return false;
1
+ import { n as h } from "../../chunks/5d4282fb.js";
2
+ function l(t, e) {
3
+ for (let s = 0; s < e.length; s++)
4
+ if (t === e[s])
5
+ return !0;
6
+ return !1;
9
7
  }
10
- const on = function() {
11
- if (document.addEventListener) {
12
- return function(element, event, handler) {
13
- if (element && event && handler) {
14
- element.addEventListener(event, handler, false);
15
- }
16
- };
17
- } else {
18
- return function(element, event, handler) {
19
- if (element && event && handler) {
20
- element.attachEvent(`on${event}`, handler);
21
- }
22
- };
23
- }
24
- }();
25
- const off = function() {
26
- if (document.removeEventListener) {
27
- return function(element, event, handler) {
28
- if (element && event) {
29
- element.removeEventListener(event, handler, false);
30
- }
31
- };
32
- } else {
33
- return function(element, event, handler) {
34
- if (element && event) {
35
- element.detachEvent(`on${event}`, handler);
36
- }
37
- };
38
- }
8
+ const n = function() {
9
+ return document.addEventListener ? function(t, e, s) {
10
+ t && e && s && t.addEventListener(e, s, !1);
11
+ } : function(t, e, s) {
12
+ t && e && s && t.attachEvent(`on${e}`, s);
13
+ };
14
+ }(), a = function() {
15
+ return document.removeEventListener ? function(t, e, s) {
16
+ t && e && t.removeEventListener(e, s, !1);
17
+ } : function(t, e, s) {
18
+ t && e && t.detachEvent(`on${e}`, s);
19
+ };
39
20
  }();
40
- var render = function() {
41
- var _vm = this;
42
- var _h = _vm.$createElement;
43
- var _c = _vm._self._c || _h;
44
- return _c("div", {
21
+ var p = function() {
22
+ var t = this, e = t.$createElement, s = t._self._c || e;
23
+ return s("div", {
45
24
  ref: "outerWrapper",
46
- class: _vm.wrapperClasses
47
- }, [_vm.isHorizontal ? _c("div", {
48
- class: `${_vm.prefix}-horizontal`
49
- }, [!_vm.hideLeft ? [_c("div", {
50
- class: [`${_vm.prefix}-pane`, "left-pane"],
25
+ class: t.wrapperClasses
26
+ }, [t.isHorizontal ? s("div", {
27
+ class: `${t.prefix}-horizontal`
28
+ }, [t.hideLeft ? s("div", {
29
+ class: [`${t.prefix}-pane`, "right-pane"],
30
+ staticStyle: {
31
+ left: "0"
32
+ }
33
+ }, [t._t("right")], 2) : [s("div", {
34
+ class: [`${t.prefix}-pane`, "left-pane"],
51
35
  style: {
52
- right: `${_vm.anotherOffset}%`
36
+ right: `${t.anotherOffset}%`
53
37
  }
54
- }, [_vm._t("left")], 2), _c("div", {
55
- class: `${_vm.prefix}-trigger-con`,
38
+ }, [t._t("left")], 2), s("div", {
39
+ class: `${t.prefix}-trigger-con`,
56
40
  style: {
57
- left: `calc(${_vm.offset}% + ${_vm.triggerSize / 2}px)`,
58
- width: `${_vm.triggerSize}px`
41
+ left: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
42
+ width: `${t.triggerSize}px`
59
43
  },
60
44
  on: {
61
- "mousedown": _vm.handleMousedown
45
+ mousedown: t.handleMousedown
62
46
  }
63
- }, [_vm._t("trigger", function() {
64
- return [_c("Trigger", {
47
+ }, [t._t("trigger", function() {
48
+ return [s("Trigger", {
65
49
  attrs: {
66
- "mode": "vertical"
50
+ mode: "vertical"
67
51
  }
68
52
  })];
69
- })], 2), _c("div", {
70
- class: [`${_vm.prefix}-pane`, "right-pane"],
53
+ })], 2), s("div", {
54
+ class: [`${t.prefix}-pane`, "right-pane"],
71
55
  style: {
72
- left: `calc(${_vm.offset}% + ${_vm.triggerSize}px)`
73
- }
74
- }, [_vm._t("right")], 2)] : _c("div", {
75
- class: [`${_vm.prefix}-pane`, "right-pane"],
76
- staticStyle: {
77
- "left": "0"
56
+ left: `calc(${t.offset}% + ${t.triggerSize}px)`
78
57
  }
79
- }, [_vm._t("right")], 2)], 2) : _c("div", {
80
- class: `${_vm.prefix}-vertical`
81
- }, [_c("div", {
82
- class: [`${_vm.prefix}-pane`, "top-pane"],
58
+ }, [t._t("right")], 2)]], 2) : s("div", {
59
+ class: `${t.prefix}-vertical`
60
+ }, [s("div", {
61
+ class: [`${t.prefix}-pane`, "top-pane"],
83
62
  style: {
84
- bottom: `${_vm.anotherOffset}%`
63
+ bottom: `${t.anotherOffset}%`
85
64
  }
86
- }, [_vm._t("top")], 2), _c("div", {
87
- class: `${_vm.prefix}-trigger-con`,
65
+ }, [t._t("top")], 2), s("div", {
66
+ class: `${t.prefix}-trigger-con`,
88
67
  style: {
89
- top: `calc(${_vm.offset}% + ${_vm.triggerSize / 2}px)`,
90
- height: `${_vm.triggerSize}px`
68
+ top: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
69
+ height: `${t.triggerSize}px`
91
70
  },
92
71
  on: {
93
- "mousedown": _vm.handleMousedown
72
+ mousedown: t.handleMousedown
94
73
  }
95
- }, [_vm._t("trigger", function() {
96
- return [_c("Trigger", {
74
+ }, [t._t("trigger", function() {
75
+ return [s("Trigger", {
97
76
  attrs: {
98
- "mode": "horizontal"
77
+ mode: "horizontal"
99
78
  }
100
79
  })];
101
- })], 2), _c("div", {
102
- class: [`${_vm.prefix}-pane`, "bottom-pane"],
80
+ })], 2), s("div", {
81
+ class: [`${t.prefix}-pane`, "bottom-pane"],
103
82
  style: {
104
- top: `calc(${_vm.offset}% + ${_vm.triggerSize}px)`
83
+ top: `calc(${t.offset}% + ${t.triggerSize}px)`
105
84
  }
106
- }, [_vm._t("bottom")], 2)]), _c("ResizeObserver", {
85
+ }, [t._t("bottom")], 2)]), s("ResizeObserver", {
107
86
  on: {
108
- "notify": _vm.resetOffset
87
+ notify: t.resetOffset
109
88
  }
110
89
  })], 1);
111
- };
112
- var staticRenderFns = [];
113
- const SplitPane_vue_vue_type_style_index_0_lang = "";
114
- const __vue2_script = {
90
+ }, u = [];
91
+ const d = {
115
92
  name: "SplitPane",
116
93
  props: {
117
94
  value: {
@@ -119,8 +96,8 @@ const __vue2_script = {
119
96
  default: 0.5
120
97
  },
121
98
  mode: {
122
- validator(value) {
123
- return oneOf(value, ["horizontal", "vertical"]);
99
+ validator(t) {
100
+ return l(t, ["horizontal", "vertical"]);
124
101
  },
125
102
  default: "horizontal"
126
103
  },
@@ -143,7 +120,7 @@ const __vue2_script = {
143
120
  prefix: "egd-split",
144
121
  offset: 0,
145
122
  oldOffset: 0,
146
- isMoving: false
123
+ isMoving: !1
147
124
  };
148
125
  },
149
126
  computed: {
@@ -157,7 +134,7 @@ const __vue2_script = {
157
134
  return 100 - this.offset;
158
135
  },
159
136
  valueIsPx() {
160
- return typeof this.value === "string";
137
+ return typeof this.value == "string";
161
138
  },
162
139
  offsetSize() {
163
140
  return this.isHorizontal ? "offsetWidth" : "offsetHeight";
@@ -173,98 +150,60 @@ const __vue2_script = {
173
150
  value: "resetOffset"
174
151
  },
175
152
  async mounted() {
176
- await this.$nextTick();
177
- this.resetOffset();
153
+ await this.$nextTick(), this.resetOffset();
178
154
  },
179
155
  methods: {
180
156
  resetOffset() {
181
157
  this.offset = (this.valueIsPx ? this.px2percent(this.value, this.$refs.outerWrapper[this.offsetSize]) : this.value) * 1e4 / 100;
182
158
  },
183
- px2percent(numerator, denominator) {
184
- return parseFloat(numerator) / parseFloat(denominator);
159
+ px2percent(t, e) {
160
+ return parseFloat(t) / parseFloat(e);
185
161
  },
186
- getComputedThresholdValue(type) {
187
- const size = this.$refs.outerWrapper[this.offsetSize];
188
- if (this.valueIsPx) {
189
- return typeof this[type] === "string" ? this[type] : size * this[type];
190
- } else {
191
- return typeof this[type] === "string" ? this.px2percent(this[type], size) : this[type];
192
- }
162
+ getComputedThresholdValue(t) {
163
+ const e = this.$refs.outerWrapper[this.offsetSize];
164
+ return this.valueIsPx ? typeof this[t] == "string" ? this[t] : e * this[t] : typeof this[t] == "string" ? this.px2percent(this[t], e) : this[t];
193
165
  },
194
- getMin(value1, value2) {
195
- if (this.valueIsPx) {
196
- return `${Math.min(parseFloat(value1), parseFloat(value2))}px`;
197
- } else {
198
- return Math.min(value1, value2);
199
- }
166
+ getMin(t, e) {
167
+ return this.valueIsPx ? `${Math.min(parseFloat(t), parseFloat(e))}px` : Math.min(t, e);
200
168
  },
201
- getMax(value1, value2) {
202
- if (this.valueIsPx) {
203
- return `${Math.max(parseFloat(value1), parseFloat(value2))}px`;
204
- } else {
205
- return Math.max(value1, value2);
206
- }
169
+ getMax(t, e) {
170
+ return this.valueIsPx ? `${Math.max(parseFloat(t), parseFloat(e))}px` : Math.max(t, e);
207
171
  },
208
- getAnotherOffset(value) {
209
- let res = 0;
210
- if (this.valueIsPx) {
211
- res = `${this.$refs.outerWrapper[this.offsetSize] - parseFloat(value)}px`;
212
- } else {
213
- res = 1 - value;
214
- }
215
- return res;
172
+ getAnotherOffset(t) {
173
+ let e = 0;
174
+ return this.valueIsPx ? e = `${this.$refs.outerWrapper[this.offsetSize] - parseFloat(t)}px` : e = 1 - t, e;
216
175
  },
217
- handleMove(e) {
218
- const pageOffset = this.isHorizontal ? e.pageX : e.pageY;
219
- const offset = pageOffset - this.initOffset;
220
- const outerWidth = this.$refs.outerWrapper[this.offsetSize];
221
- let value = this.valueIsPx ? `${parseFloat(this.oldOffset) + offset}px` : this.px2percent(outerWidth * this.oldOffset + offset, outerWidth);
222
- const anotherValue = this.getAnotherOffset(value);
223
- if (parseFloat(value) <= parseFloat(this.computedMin))
224
- value = this.getMax(value, this.computedMin);
225
- if (parseFloat(anotherValue) <= parseFloat(this.computedMax)) {
226
- value = this.getAnotherOffset(this.getMax(anotherValue, this.computedMax));
227
- }
228
- e.atMin = this.value === this.computedMin;
229
- e.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5);
230
- this.$emit("input", value);
231
- this.$emit("on-moving", e);
176
+ handleMove(t) {
177
+ const s = (this.isHorizontal ? t.pageX : t.pageY) - this.initOffset, r = this.$refs.outerWrapper[this.offsetSize];
178
+ let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(r * this.oldOffset + s, r);
179
+ const o = this.getAnotherOffset(i);
180
+ parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(o) <= parseFloat(this.computedMax) && (i = this.getAnotherOffset(this.getMax(o, this.computedMax))), t.atMin = this.value === this.computedMin, t.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5), this.$emit("input", i), this.$emit("on-moving", t);
232
181
  },
233
182
  handleUp() {
234
- this.isMoving = false;
235
- off(window, "mousemove", this.handleMove);
236
- off(window, "mouseup", this.handleUp);
237
- this.$emit("on-move-end");
183
+ this.isMoving = !1, a(window, "mousemove", this.handleMove), a(window, "mouseup", this.handleUp), this.$emit("on-move-end");
238
184
  },
239
- handleMousedown(e) {
240
- this.initOffset = this.isHorizontal ? e.pageX : e.pageY;
241
- this.oldOffset = this.value;
242
- this.isMoving = true;
243
- on(window, "mousemove", this.handleMove);
244
- on(window, "mouseup", this.handleUp);
245
- this.$emit("on-move-start");
185
+ handleMousedown(t) {
186
+ this.initOffset = this.isHorizontal ? t.pageX : t.pageY, this.oldOffset = this.value, this.isMoving = !0, n(window, "mousemove", this.handleMove), n(window, "mouseup", this.handleUp), this.$emit("on-move-start");
246
187
  }
247
188
  }
248
- };
249
- const __cssModules = {};
250
- var __component__ = /* @__PURE__ */ normalizeComponent(
251
- __vue2_script,
252
- render,
253
- staticRenderFns,
254
- false,
255
- __vue2_injectStyles,
189
+ }, f = {};
190
+ var c = /* @__PURE__ */ h(
191
+ d,
192
+ p,
193
+ u,
194
+ !1,
195
+ g,
256
196
  null,
257
197
  null,
258
198
  null
259
199
  );
260
- function __vue2_injectStyles(context) {
261
- for (let o in __cssModules) {
262
- this[o] = __cssModules[o];
263
- }
200
+ function g(t) {
201
+ for (let e in f)
202
+ this[e] = f[e];
264
203
  }
265
- const SplitPane = /* @__PURE__ */ function() {
266
- return __component__.exports;
204
+ const x = /* @__PURE__ */ function() {
205
+ return c.exports;
267
206
  }();
268
207
  export {
269
- SplitPane as default
208
+ x as default
270
209
  };
@@ -1,100 +1 @@
1
- /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */ /* 应用头部高度 */ /* 页面宽度 */ /* 侧栏宽度 */ /* 标签高度 */ /* 页面头部工具条高度 */
2
- .egd-split-wrapper {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- }
7
- .egd-split-pane {
8
- position: absolute;
9
- }
10
- .egd-split-pane.left-pane, .egd-split-pane.right-pane {
11
- top: 0;
12
- bottom: 0;
13
- }
14
- .egd-split-pane.left-pane {
15
- left: 0;
16
- }
17
- .egd-split-pane.right-pane {
18
- right: 0;
19
- }
20
- .egd-split-pane.top-pane, .egd-split-pane.bottom-pane {
21
- right: 0;
22
- left: 0;
23
- }
24
- .egd-split-pane.top-pane {
25
- top: 0;
26
- }
27
- .egd-split-pane.bottom-pane {
28
- bottom: 0;
29
- }
30
- .egd-split-trigger-con {
31
- position: absolute;
32
- z-index: 10;
33
- transform: translate(-50%, -50%);
34
- }
35
- .egd-split-trigger-bar-con {
36
- position: absolute;
37
- overflow: hidden;
38
- }
39
- .egd-split-trigger-bar-con.vertical {
40
- top: 50%;
41
- left: 1px;
42
- height: 32px;
43
- transform: translate(0, -50%);
44
- }
45
- .egd-split-trigger-bar-con.horizontal {
46
- top: 1px;
47
- left: 50%;
48
- width: 32px;
49
- transform: translate(-50%, 0);
50
- }
51
- .egd-split-trigger-vertical {
52
- width: 6px;
53
- height: 100%;
54
- background: #f8f8f9;
55
- box-shadow: 0 0 4px 0 rgba(28, 36, 56, 0.4);
56
- cursor: ew-resize;
57
- }
58
- .egd-split-trigger-vertical .egd-split-trigger-bar {
59
- float: left;
60
- width: 4px;
61
- height: 1px;
62
- margin-top: 3px;
63
- background: rgba(23, 35, 61, 0.25);
64
- }
65
- .egd-split-trigger-horizontal {
66
- width: 100%;
67
- height: 6px;
68
- background: #f8f8f9;
69
- box-shadow: 0 0 4px 0 rgba(28, 36, 56, 0.4);
70
- cursor: ns-resize;
71
- }
72
- .egd-split-trigger-horizontal .egd-split-trigger-bar {
73
- float: left;
74
- width: 1px;
75
- height: 4px;
76
- margin-right: 3px;
77
- background: rgba(23, 35, 61, 0.25);
78
- }
79
- .egd-split-horizontal .egd-split-trigger-con {
80
- top: 50%;
81
- height: 100%;
82
- border-right: 1px solid #d7dae0;
83
- }
84
- .egd-split-vertical .egd-split-trigger-con {
85
- left: 50%;
86
- width: 100%;
87
- border-bottom: 1px solid #d7dae0;
88
- }
89
- .egd-split-trigger-vertical-line {
90
- background-color: transparent;
91
- box-shadow: none;
92
- }
93
- .egd-split-trigger-horizontal-line {
94
- background-color: transparent;
95
- box-shadow: none;
96
- }
97
- .egd-split .no-select {
98
- -webkit-touch-callout: none;
99
- user-select: none;
100
- }
1
+ .egd-split-wrapper{position:relative;width:100%;height:100%}.egd-split-pane{position:absolute}.egd-split-pane.left-pane,.egd-split-pane.right-pane{top:0;bottom:0}.egd-split-pane.left-pane{left:0}.egd-split-pane.right-pane{right:0}.egd-split-pane.top-pane,.egd-split-pane.bottom-pane{right:0;left:0}.egd-split-pane.top-pane{top:0}.egd-split-pane.bottom-pane{bottom:0}.egd-split-trigger-con{position:absolute;z-index:10;transform:translate(-50%,-50%)}.egd-split-trigger-bar-con{position:absolute;overflow:hidden}.egd-split-trigger-bar-con.vertical{top:50%;left:1px;height:32px;transform:translateY(-50%)}.egd-split-trigger-bar-con.horizontal{top:1px;left:50%;width:32px;transform:translate(-50%)}.egd-split-trigger-vertical{width:6px;height:100%;background:#f8f8f9;box-shadow:0 0 4px #1c243866;cursor:ew-resize}.egd-split-trigger-vertical .egd-split-trigger-bar{float:left;width:4px;height:1px;margin-top:3px;background:rgba(23,35,61,.25)}.egd-split-trigger-horizontal{width:100%;height:6px;background:#f8f8f9;box-shadow:0 0 4px #1c243866;cursor:ns-resize}.egd-split-trigger-horizontal .egd-split-trigger-bar{float:left;width:1px;height:4px;margin-right:3px;background:rgba(23,35,61,.25)}.egd-split-horizontal .egd-split-trigger-con{top:50%;height:100%;border-right:1px solid #d7dae0}.egd-split-vertical .egd-split-trigger-con{left:50%;width:100%;border-bottom:1px solid #d7dae0}.egd-split-trigger-vertical-line,.egd-split-trigger-horizontal-line{background-color:transparent;box-shadow:none}.egd-split .no-select{-webkit-touch-callout:none;user-select:none}
@@ -1,8 +1,7 @@
1
- import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
2
- const Stateful_vue_vue_type_style_index_0_lang = "";
3
- const __vue2_script = {
1
+ import { n as A } from "../../chunks/5d4282fb.js";
2
+ const v = {
4
3
  name: "Stateful",
5
- functional: true,
4
+ functional: !0,
6
5
  props: {
7
6
  tag: {
8
7
  type: String,
@@ -34,7 +33,7 @@ const __vue2_script = {
34
33
  },
35
34
  type: {
36
35
  type: String,
37
- validator: (value) => ["doing", "overdue", "error", "done", "closed"].indexOf(value) > -1
36
+ validator: (r) => ["doing", "overdue", "error", "done", "closed"].indexOf(r) > -1
38
37
  },
39
38
  status: {
40
39
  type: [String, Number]
@@ -43,45 +42,43 @@ const __vue2_script = {
43
42
  type: String
44
43
  }
45
44
  },
46
- render(createElement, { props, data, children }) {
47
- const { draft, doing, overdue, error, done, closed, status, tag, size, type } = props;
48
- const statusClass = {
49
- draft: Array.isArray(draft) ? draft.includes(status) : draft,
50
- doing: Array.isArray(doing) ? doing.includes(status) : doing,
51
- overdue: Array.isArray(overdue) ? overdue.includes(status) : overdue,
52
- error: Array.isArray(error) ? error.includes(status) : error,
53
- done: Array.isArray(done) ? done.includes(status) : done,
54
- closed: Array.isArray(closed) ? closed.includes(status) : closed
45
+ render(r, { props: t, data: y, children: c }) {
46
+ const { draft: n, doing: a, overdue: o, error: s, done: l, closed: d, status: e, tag: _, size: u, type: f } = t, p = {
47
+ draft: Array.isArray(n) ? n.includes(e) : n,
48
+ doing: Array.isArray(a) ? a.includes(e) : a,
49
+ overdue: Array.isArray(o) ? o.includes(e) : o,
50
+ error: Array.isArray(s) ? s.includes(e) : s,
51
+ done: Array.isArray(l) ? l.includes(e) : l,
52
+ closed: Array.isArray(d) ? d.includes(e) : d
55
53
  };
56
- return createElement(tag, data, [
57
- createElement("span", {
58
- style: { width: size, height: size },
59
- class: ["stateful", type, statusClass]
54
+ return r(_, y, [
55
+ r("span", {
56
+ style: { width: u, height: u },
57
+ class: ["stateful", f, p]
60
58
  }),
61
- children
59
+ c
62
60
  ]);
63
61
  }
64
62
  };
65
- let __vue2_render, __vue2_staticRenderFns;
66
- const __cssModules = {};
67
- var __component__ = /* @__PURE__ */ normalizeComponent(
68
- __vue2_script,
69
- __vue2_render,
70
- __vue2_staticRenderFns,
71
- false,
72
- __vue2_injectStyles,
63
+ let g, S;
64
+ const i = {};
65
+ var m = /* @__PURE__ */ A(
66
+ v,
67
+ g,
68
+ S,
69
+ !1,
70
+ B,
73
71
  null,
74
72
  null,
75
73
  null
76
74
  );
77
- function __vue2_injectStyles(context) {
78
- for (let o in __cssModules) {
79
- this[o] = __cssModules[o];
80
- }
75
+ function B(r) {
76
+ for (let t in i)
77
+ this[t] = i[t];
81
78
  }
82
- const Stateful = /* @__PURE__ */ function() {
83
- return __component__.exports;
79
+ const h = /* @__PURE__ */ function() {
80
+ return m.exports;
84
81
  }();
85
82
  export {
86
- Stateful as default
83
+ h as default
87
84
  };
@@ -1,33 +1 @@
1
- /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
2
- /* 应用头部高度 */
3
- /* 页面宽度 */
4
- /* 侧栏宽度 */
5
- /* 标签高度 */
6
- /* 页面头部工具条高度 */
7
- .stateful {
8
- display: inline-block;
9
- width: 14px;
10
- height: 14px;
11
- margin-right: 6px;
12
- vertical-align: middle;
13
- border-radius: 2px;
14
- content: "";
15
- }
16
- .stateful.draft {
17
- background-color: #d7d7d7;
18
- }
19
- .stateful.doing {
20
- background-color: #14ca7a;
21
- }
22
- .stateful.overdue {
23
- background-color: #feae3d;
24
- }
25
- .stateful.error {
26
- background-color: #f00;
27
- }
28
- .stateful.done {
29
- background-color: #45a3e7;
30
- }
31
- .stateful.closed {
32
- background-color: #d7d7d7;
33
- }
1
+ .stateful{display:inline-block;width:14px;height:14px;margin-right:6px;vertical-align:middle;border-radius:2px;content:""}.stateful.draft{background-color:#d7d7d7}.stateful.doing{background-color:#14ca7a}.stateful.overdue{background-color:#feae3d}.stateful.error{background-color:red}.stateful.done{background-color:#45a3e7}.stateful.closed{background-color:#d7d7d7}