@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,94 +1,117 @@
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;
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;
7
9
  }
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
- };
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
+ }
20
39
  }();
21
- var p = function() {
22
- var t = this, e = t.$createElement, s = t._self._c || e;
23
- return s("div", {
40
+ var render = function() {
41
+ var _vm = this;
42
+ var _h = _vm.$createElement;
43
+ var _c = _vm._self._c || _h;
44
+ return _c("div", {
24
45
  ref: "outerWrapper",
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"],
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"],
35
51
  style: {
36
- right: `${t.anotherOffset}%`
52
+ right: `${_vm.anotherOffset}%`
37
53
  }
38
- }, [t._t("left")], 2), s("div", {
39
- class: `${t.prefix}-trigger-con`,
54
+ }, [_vm._t("left")], 2), _c("div", {
55
+ class: `${_vm.prefix}-trigger-con`,
40
56
  style: {
41
- left: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
42
- width: `${t.triggerSize}px`
57
+ left: `calc(${_vm.offset}% + ${_vm.triggerSize / 2}px)`,
58
+ width: `${_vm.triggerSize}px`
43
59
  },
44
60
  on: {
45
- mousedown: t.handleMousedown
61
+ "mousedown": _vm.handleMousedown
46
62
  }
47
- }, [t._t("trigger", function() {
48
- return [s("Trigger", {
63
+ }, [_vm._t("trigger", function() {
64
+ return [_c("Trigger", {
49
65
  attrs: {
50
- mode: "vertical"
66
+ "mode": "vertical"
51
67
  }
52
68
  })];
53
- })], 2), s("div", {
54
- class: [`${t.prefix}-pane`, "right-pane"],
69
+ })], 2), _c("div", {
70
+ class: [`${_vm.prefix}-pane`, "right-pane"],
55
71
  style: {
56
- left: `calc(${t.offset}% + ${t.triggerSize}px)`
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"
57
78
  }
58
- }, [t._t("right")], 2)]], 2) : s("div", {
59
- class: `${t.prefix}-vertical`
60
- }, [s("div", {
61
- class: [`${t.prefix}-pane`, "top-pane"],
79
+ }, [_vm._t("right")], 2)], 2) : _c("div", {
80
+ class: `${_vm.prefix}-vertical`
81
+ }, [_c("div", {
82
+ class: [`${_vm.prefix}-pane`, "top-pane"],
62
83
  style: {
63
- bottom: `${t.anotherOffset}%`
84
+ bottom: `${_vm.anotherOffset}%`
64
85
  }
65
- }, [t._t("top")], 2), s("div", {
66
- class: `${t.prefix}-trigger-con`,
86
+ }, [_vm._t("top")], 2), _c("div", {
87
+ class: `${_vm.prefix}-trigger-con`,
67
88
  style: {
68
- top: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
69
- height: `${t.triggerSize}px`
89
+ top: `calc(${_vm.offset}% + ${_vm.triggerSize / 2}px)`,
90
+ height: `${_vm.triggerSize}px`
70
91
  },
71
92
  on: {
72
- mousedown: t.handleMousedown
93
+ "mousedown": _vm.handleMousedown
73
94
  }
74
- }, [t._t("trigger", function() {
75
- return [s("Trigger", {
95
+ }, [_vm._t("trigger", function() {
96
+ return [_c("Trigger", {
76
97
  attrs: {
77
- mode: "horizontal"
98
+ "mode": "horizontal"
78
99
  }
79
100
  })];
80
- })], 2), s("div", {
81
- class: [`${t.prefix}-pane`, "bottom-pane"],
101
+ })], 2), _c("div", {
102
+ class: [`${_vm.prefix}-pane`, "bottom-pane"],
82
103
  style: {
83
- top: `calc(${t.offset}% + ${t.triggerSize}px)`
104
+ top: `calc(${_vm.offset}% + ${_vm.triggerSize}px)`
84
105
  }
85
- }, [t._t("bottom")], 2)]), s("ResizeObserver", {
106
+ }, [_vm._t("bottom")], 2)]), _c("ResizeObserver", {
86
107
  on: {
87
- notify: t.resetOffset
108
+ "notify": _vm.resetOffset
88
109
  }
89
110
  })], 1);
90
- }, u = [];
91
- const d = {
111
+ };
112
+ var staticRenderFns = [];
113
+ const SplitPane_vue_vue_type_style_index_0_lang = "";
114
+ const __vue2_script = {
92
115
  name: "SplitPane",
93
116
  props: {
94
117
  value: {
@@ -96,8 +119,8 @@ const d = {
96
119
  default: 0.5
97
120
  },
98
121
  mode: {
99
- validator(t) {
100
- return l(t, ["horizontal", "vertical"]);
122
+ validator(value) {
123
+ return oneOf(value, ["horizontal", "vertical"]);
101
124
  },
102
125
  default: "horizontal"
103
126
  },
@@ -120,7 +143,7 @@ const d = {
120
143
  prefix: "egd-split",
121
144
  offset: 0,
122
145
  oldOffset: 0,
123
- isMoving: !1
146
+ isMoving: false
124
147
  };
125
148
  },
126
149
  computed: {
@@ -134,7 +157,7 @@ const d = {
134
157
  return 100 - this.offset;
135
158
  },
136
159
  valueIsPx() {
137
- return typeof this.value == "string";
160
+ return typeof this.value === "string";
138
161
  },
139
162
  offsetSize() {
140
163
  return this.isHorizontal ? "offsetWidth" : "offsetHeight";
@@ -150,60 +173,98 @@ const d = {
150
173
  value: "resetOffset"
151
174
  },
152
175
  async mounted() {
153
- await this.$nextTick(), this.resetOffset();
176
+ await this.$nextTick();
177
+ this.resetOffset();
154
178
  },
155
179
  methods: {
156
180
  resetOffset() {
157
181
  this.offset = (this.valueIsPx ? this.px2percent(this.value, this.$refs.outerWrapper[this.offsetSize]) : this.value) * 1e4 / 100;
158
182
  },
159
- px2percent(t, e) {
160
- return parseFloat(t) / parseFloat(e);
183
+ px2percent(numerator, denominator) {
184
+ return parseFloat(numerator) / parseFloat(denominator);
161
185
  },
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];
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
+ }
165
193
  },
166
- getMin(t, e) {
167
- return this.valueIsPx ? `${Math.min(parseFloat(t), parseFloat(e))}px` : Math.min(t, e);
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
+ }
168
200
  },
169
- getMax(t, e) {
170
- return this.valueIsPx ? `${Math.max(parseFloat(t), parseFloat(e))}px` : Math.max(t, e);
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
+ }
171
207
  },
172
- getAnotherOffset(t) {
173
- let e = 0;
174
- return this.valueIsPx ? e = `${this.$refs.outerWrapper[this.offsetSize] - parseFloat(t)}px` : e = 1 - t, e;
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;
175
216
  },
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);
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);
181
232
  },
182
233
  handleUp() {
183
- this.isMoving = !1, a(window, "mousemove", this.handleMove), a(window, "mouseup", this.handleUp), this.$emit("on-move-end");
234
+ this.isMoving = false;
235
+ off(window, "mousemove", this.handleMove);
236
+ off(window, "mouseup", this.handleUp);
237
+ this.$emit("on-move-end");
184
238
  },
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");
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");
187
246
  }
188
247
  }
189
- }, f = {};
190
- var c = /* @__PURE__ */ h(
191
- d,
192
- p,
193
- u,
194
- !1,
195
- g,
248
+ };
249
+ const __cssModules = {};
250
+ var __component__ = /* @__PURE__ */ normalizeComponent(
251
+ __vue2_script,
252
+ render,
253
+ staticRenderFns,
254
+ false,
255
+ __vue2_injectStyles,
196
256
  null,
197
257
  null,
198
258
  null
199
259
  );
200
- function g(t) {
201
- for (let e in f)
202
- this[e] = f[e];
260
+ function __vue2_injectStyles(context) {
261
+ for (let o in __cssModules) {
262
+ this[o] = __cssModules[o];
263
+ }
203
264
  }
204
- const x = /* @__PURE__ */ function() {
205
- return c.exports;
265
+ const SplitPane = /* @__PURE__ */ function() {
266
+ return __component__.exports;
206
267
  }();
207
268
  export {
208
- x as default
269
+ SplitPane as default
209
270
  };
@@ -1 +1,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
+ /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */ /* 应用头部高度 */ /* 页面宽度 */ /* 侧栏宽度 */ /* 标签高度 */ /* 页面头部工具条高度 */
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,7 +1,8 @@
1
- import { n as A } from "../../chunks/5d4282fb.js";
2
- const v = {
1
+ import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
2
+ const Stateful_vue_vue_type_style_index_0_lang = "";
3
+ const __vue2_script = {
3
4
  name: "Stateful",
4
- functional: !0,
5
+ functional: true,
5
6
  props: {
6
7
  tag: {
7
8
  type: String,
@@ -33,7 +34,7 @@ const v = {
33
34
  },
34
35
  type: {
35
36
  type: String,
36
- validator: (r) => ["doing", "overdue", "error", "done", "closed"].indexOf(r) > -1
37
+ validator: (value) => ["doing", "overdue", "error", "done", "closed"].indexOf(value) > -1
37
38
  },
38
39
  status: {
39
40
  type: [String, Number]
@@ -42,43 +43,45 @@ const v = {
42
43
  type: String
43
44
  }
44
45
  },
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
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
53
55
  };
54
- return r(_, y, [
55
- r("span", {
56
- style: { width: u, height: u },
57
- class: ["stateful", f, p]
56
+ return createElement(tag, data, [
57
+ createElement("span", {
58
+ style: { width: size, height: size },
59
+ class: ["stateful", type, statusClass]
58
60
  }),
59
- c
61
+ children
60
62
  ]);
61
63
  }
62
64
  };
63
- let g, S;
64
- const i = {};
65
- var m = /* @__PURE__ */ A(
66
- v,
67
- g,
68
- S,
69
- !1,
70
- B,
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,
71
73
  null,
72
74
  null,
73
75
  null
74
76
  );
75
- function B(r) {
76
- for (let t in i)
77
- this[t] = i[t];
77
+ function __vue2_injectStyles(context) {
78
+ for (let o in __cssModules) {
79
+ this[o] = __cssModules[o];
80
+ }
78
81
  }
79
- const h = /* @__PURE__ */ function() {
80
- return m.exports;
82
+ const Stateful = /* @__PURE__ */ function() {
83
+ return __component__.exports;
81
84
  }();
82
85
  export {
83
- h as default
86
+ Stateful as default
84
87
  };
@@ -1 +1,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}
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
+ }