@web-utils/component 2.0.13 → 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.
- package/dist/chunks/3a79781b.js +75 -0
- package/dist/chunks/{44b78389.js → 41a066be.js} +8 -8
- package/dist/chunks/{e1939731.js → 5a78e0db.js} +5 -6
- package/dist/chunks/5d4282fb.js +30 -0
- package/dist/chunks/{822300f3.js → 61ad06b2.js} +3 -3
- package/dist/chunks/76680a03.js +24 -0
- package/dist/chunks/8c0142e0.js +81 -0
- package/dist/chunks/97652d86.js +26 -0
- package/dist/chunks/b4acd3a6.js +126 -0
- package/dist/chunks/f71045fc.js +184 -0
- package/dist/components/address-input/index.js +43 -56
- package/dist/components/address-input/style.css +1 -15
- package/dist/components/aside-menu/index.js +30 -36
- package/dist/components/aside-menu/style.css +1 -9
- package/dist/components/awesome-button/index.js +32 -35
- package/dist/components/base.css +1 -66
- package/dist/components/capsule-tab/index.js +27 -33
- package/dist/components/capsule-tab/style.css +1 -32
- package/dist/components/chunk-file-uploader/index.js +54 -88
- package/dist/components/chunk-file-uploader/style.css +1 -4
- package/dist/components/chunk-file-uploader-button/index.js +25 -31
- package/dist/components/chunk-file-uploader-button/style.css +1 -17
- package/dist/components/chunk-file-uploader-drop/index.js +28 -42
- package/dist/components/chunk-file-uploader-drop/style.css +1 -12
- package/dist/components/chunk-file-uploader-file/index.js +134 -211
- package/dist/components/chunk-file-uploader-file/style.css +1 -125
- package/dist/components/chunk-file-uploader-files/index.js +28 -34
- package/dist/components/chunk-file-uploader-files/style.css +1 -9
- package/dist/components/chunk-file-uploader-list/index.js +29 -35
- package/dist/components/chunk-file-uploader-list/style.css +1 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +30 -38
- package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
- package/dist/components/code-mirror-editor/index.js +153 -181
- package/dist/components/code-mirror-editor/style.css +1 -17
- package/dist/components/color-picker/index.js +49 -68
- package/dist/components/confirm-button/index.js +19 -21
- package/dist/components/confirmable/index.js +18 -19
- package/dist/components/context-menu/index.js +108 -130
- package/dist/components/context-menu/style.css +1 -88
- package/dist/components/custom-scrollbar/index.js +49 -67
- package/dist/components/data-table-picker/index.js +62 -81
- package/dist/components/dynamic-table/index.js +89 -113
- package/dist/components/dynamic-table/style.css +1 -30
- package/dist/components/e-charts/index.js +120 -201
- package/dist/components/e-charts/style.css +1 -10
- package/dist/components/editable-progress/index.js +60 -93
- package/dist/components/editable-progress/style.css +1 -37
- package/dist/components/editable-tree/index.js +423 -638
- package/dist/components/editable-tree/style.css +1 -82
- package/dist/components/egd-collapse/index.js +33 -46
- package/dist/components/egd-collapse-item/index.js +60 -76
- package/dist/components/element-dialog/index.js +95 -147
- package/dist/components/element-dialog/style.css +1 -102
- package/dist/components/empty-view/index.js +28 -34
- package/dist/components/empty-view/style.css +1 -17
- package/dist/components/error-view/index.js +26 -32
- package/dist/components/error-view/style.css +1 -17
- package/dist/components/flex-column/index.js +25 -40
- package/dist/components/flex-item/index.js +29 -57
- package/dist/components/flex-row/index.js +25 -40
- package/dist/components/flex-scroller/index.js +26 -32
- package/dist/components/flex-scroller/style.css +1 -20
- package/dist/components/form-button/index.js +34 -38
- package/dist/components/form-cascader/index.js +71 -81
- package/dist/components/form-checkbox-group/index.js +88 -113
- package/dist/components/form-checkbox-group/style.css +1 -51
- package/dist/components/form-date-picker/index.js +70 -132
- package/dist/components/form-holder/index.js +32 -39
- package/dist/components/form-input/index.js +56 -62
- package/dist/components/form-input-email/index.js +48 -60
- package/dist/components/form-input-id-card/index.js +53 -59
- package/dist/components/form-input-number/index.js +61 -68
- package/dist/components/form-input-number/style.css +1 -12
- package/dist/components/form-input-phone-number/index.js +49 -55
- package/dist/components/form-input-time/index.js +53 -59
- package/dist/components/form-item/index.js +80 -123
- package/dist/components/form-item/style.css +1 -11
- package/dist/components/form-item-config-provider/index.js +25 -26
- package/dist/components/form-item-group/index.js +85 -111
- package/dist/components/form-item-group/style.css +1 -30
- package/dist/components/form-radio-group/index.js +85 -104
- package/dist/components/form-radio-group/style.css +1 -53
- package/dist/components/form-select/index.js +76 -91
- package/dist/components/form-switch/index.js +51 -57
- package/dist/components/form-textarea/index.js +51 -57
- package/dist/components/form-view/index.js +165 -232
- package/dist/components/form-view/style.css +1 -158
- package/dist/components/guide-steps/index.js +44 -58
- package/dist/components/guide-steps/style.css +1 -34
- package/dist/components/icon-card/index.js +29 -35
- package/dist/components/icon-card/style.css +1 -56
- package/dist/components/iframe-window/index.js +29 -35
- package/dist/components/iframe-window/style.css +1 -20
- package/dist/components/image-viewer/index.js +48 -66
- package/dist/components/image-viewer/style.css +1 -21
- package/dist/components/input-number/index.js +127 -193
- package/dist/components/input-number/style.css +1 -15
- package/dist/components/input-number-range/index.js +45 -57
- package/dist/components/input-number-range/style.css +1 -12
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +73 -120
- package/dist/components/loading-view/index.js +26 -32
- package/dist/components/loading-view/style.css +1 -17
- package/dist/components/nav-bar/index.js +27 -37
- package/dist/components/nav-bar/style.css +1 -17
- package/dist/components/not-implement/index.js +23 -31
- package/dist/components/not-implement/style.css +1 -15
- package/dist/components/page/index.js +22 -28
- package/dist/components/page/style.css +1 -12
- package/dist/components/page-header/index.js +30 -36
- package/dist/components/page-header/style.css +1 -14
- package/dist/components/page-index/index.js +62 -83
- package/dist/components/page-index/style.css +1 -23
- package/dist/components/page-index-top/index.js +53 -68
- package/dist/components/page-skeleton/index.js +31 -37
- package/dist/components/page-skeleton/style.css +1 -23
- package/dist/components/page-skeleton-new/index.js +42 -48
- package/dist/components/page-skeleton-new/style.css +1 -42
- package/dist/components/pageable-table/index.js +186 -253
- package/dist/components/pageable-table/style.css +1 -72
- package/dist/components/pageable-view/index.js +129 -199
- package/dist/components/pageable-view/style.css +1 -69
- package/dist/components/photo-swipe/index.js +110 -151
- package/dist/components/photo-swipe/style.css +1 -20
- package/dist/components/resize-observer/index.js +34 -68
- package/dist/components/resize-observer/style.css +1 -31
- package/dist/components/search-popover/index.js +153 -211
- package/dist/components/search-popover/style.css +1 -93
- package/dist/components/sign-panel/index.js +92 -142
- package/dist/components/sign-panel/style.css +1 -97
- package/dist/components/split-pane/index.js +101 -162
- package/dist/components/split-pane/style.css +1 -100
- package/dist/components/stateful/index.js +31 -34
- package/dist/components/stateful/style.css +1 -33
- package/dist/components/static-pageable-table/index.js +37 -44
- package/dist/components/static-pageable-table/style.css +1 -9
- package/dist/components/swiper/index.js +85 -150
- package/dist/components/swiper/style.css +1 -43
- package/dist/components/tab/index.js +54 -72
- package/dist/components/tab/style.css +1 -122
- package/dist/components/tab-item/index.js +30 -35
- package/dist/components/table-column/index.js +30 -32
- package/dist/components/table-view/index.js +156 -227
- package/dist/components/table-view/style.css +1 -95
- package/dist/components/tag-render/index.js +44 -58
- package/dist/components/tag-render/style.css +1 -33
- package/dist/components/tinymce-editor/index.js +79 -95
- package/dist/components/tinymce-editor/style.css +1 -43
- package/dist/components/tinymce-wrapper/index.js +92 -121
- package/dist/components/tinymce-wrapper/style.css +1 -36
- package/dist/components/toolbar/index.js +63 -84
- package/dist/components/toolbar/style.css +1 -39
- package/dist/components/toolbar-button/index.js +41 -48
- package/dist/components/toolbar-button/style.css +1 -21
- package/dist/components/trigger/index.js +29 -36
- package/dist/components/vue-tags-input/index.js +188 -308
- package/dist/components/vue-tags-input/style.css +1 -682
- package/dist/components/watermark/index.js +25 -37
- package/dist/components/watermark/style.css +1 -11
- package/dist/components/x-dialog/index.js +67 -93
- package/dist/components/x-dialog/style.css +1 -15
- package/dist/index.css +193 -1105
- package/dist/index.es.js +4790 -7243
- package/package.json +1 -1
- package/web-types.json +1 -1
- package/dist/chunks/3d28cc08.js +0 -57
- package/dist/chunks/5d33812d.js +0 -147
- package/dist/chunks/9d848bf6.js +0 -99
- package/dist/chunks/a0bb327b.js +0 -96
- package/dist/chunks/a8891d2c.js +0 -30
- package/dist/chunks/c69d5628.js +0 -248
- package/dist/chunks/de9fe802.js +0 -24
|
@@ -1,117 +1,94 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
function
|
|
3
|
-
for (let
|
|
4
|
-
if (
|
|
5
|
-
return
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
41
|
-
var
|
|
42
|
-
|
|
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:
|
|
47
|
-
}, [
|
|
48
|
-
class: `${
|
|
49
|
-
}, [
|
|
50
|
-
class: [`${
|
|
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: `${
|
|
36
|
+
right: `${t.anotherOffset}%`
|
|
53
37
|
}
|
|
54
|
-
}, [
|
|
55
|
-
class: `${
|
|
38
|
+
}, [t._t("left")], 2), s("div", {
|
|
39
|
+
class: `${t.prefix}-trigger-con`,
|
|
56
40
|
style: {
|
|
57
|
-
left: `calc(${
|
|
58
|
-
width: `${
|
|
41
|
+
left: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
|
|
42
|
+
width: `${t.triggerSize}px`
|
|
59
43
|
},
|
|
60
44
|
on: {
|
|
61
|
-
|
|
45
|
+
mousedown: t.handleMousedown
|
|
62
46
|
}
|
|
63
|
-
}, [
|
|
64
|
-
return [
|
|
47
|
+
}, [t._t("trigger", function() {
|
|
48
|
+
return [s("Trigger", {
|
|
65
49
|
attrs: {
|
|
66
|
-
|
|
50
|
+
mode: "vertical"
|
|
67
51
|
}
|
|
68
52
|
})];
|
|
69
|
-
})], 2),
|
|
70
|
-
class: [`${
|
|
53
|
+
})], 2), s("div", {
|
|
54
|
+
class: [`${t.prefix}-pane`, "right-pane"],
|
|
71
55
|
style: {
|
|
72
|
-
left: `calc(${
|
|
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
|
-
}, [
|
|
80
|
-
class: `${
|
|
81
|
-
}, [
|
|
82
|
-
class: [`${
|
|
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: `${
|
|
63
|
+
bottom: `${t.anotherOffset}%`
|
|
85
64
|
}
|
|
86
|
-
}, [
|
|
87
|
-
class: `${
|
|
65
|
+
}, [t._t("top")], 2), s("div", {
|
|
66
|
+
class: `${t.prefix}-trigger-con`,
|
|
88
67
|
style: {
|
|
89
|
-
top: `calc(${
|
|
90
|
-
height: `${
|
|
68
|
+
top: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
|
|
69
|
+
height: `${t.triggerSize}px`
|
|
91
70
|
},
|
|
92
71
|
on: {
|
|
93
|
-
|
|
72
|
+
mousedown: t.handleMousedown
|
|
94
73
|
}
|
|
95
|
-
}, [
|
|
96
|
-
return [
|
|
74
|
+
}, [t._t("trigger", function() {
|
|
75
|
+
return [s("Trigger", {
|
|
97
76
|
attrs: {
|
|
98
|
-
|
|
77
|
+
mode: "horizontal"
|
|
99
78
|
}
|
|
100
79
|
})];
|
|
101
|
-
})], 2),
|
|
102
|
-
class: [`${
|
|
80
|
+
})], 2), s("div", {
|
|
81
|
+
class: [`${t.prefix}-pane`, "bottom-pane"],
|
|
103
82
|
style: {
|
|
104
|
-
top: `calc(${
|
|
83
|
+
top: `calc(${t.offset}% + ${t.triggerSize}px)`
|
|
105
84
|
}
|
|
106
|
-
}, [
|
|
85
|
+
}, [t._t("bottom")], 2)]), s("ResizeObserver", {
|
|
107
86
|
on: {
|
|
108
|
-
|
|
87
|
+
notify: t.resetOffset
|
|
109
88
|
}
|
|
110
89
|
})], 1);
|
|
111
|
-
};
|
|
112
|
-
|
|
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(
|
|
123
|
-
return
|
|
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:
|
|
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
|
|
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(
|
|
184
|
-
return parseFloat(
|
|
159
|
+
px2percent(t, e) {
|
|
160
|
+
return parseFloat(t) / parseFloat(e);
|
|
185
161
|
},
|
|
186
|
-
getComputedThresholdValue(
|
|
187
|
-
const
|
|
188
|
-
|
|
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(
|
|
195
|
-
|
|
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(
|
|
202
|
-
|
|
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(
|
|
209
|
-
let
|
|
210
|
-
|
|
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(
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
-
|
|
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 =
|
|
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(
|
|
240
|
-
this.initOffset = this.isHorizontal ?
|
|
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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
|
261
|
-
for (let
|
|
262
|
-
this[
|
|
263
|
-
}
|
|
200
|
+
function g(t) {
|
|
201
|
+
for (let e in f)
|
|
202
|
+
this[e] = f[e];
|
|
264
203
|
}
|
|
265
|
-
const
|
|
266
|
-
return
|
|
204
|
+
const x = /* @__PURE__ */ function() {
|
|
205
|
+
return c.exports;
|
|
267
206
|
}();
|
|
268
207
|
export {
|
|
269
|
-
|
|
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
|
|
2
|
-
const
|
|
3
|
-
const __vue2_script = {
|
|
1
|
+
import { n as A } from "../../chunks/5d4282fb.js";
|
|
2
|
+
const v = {
|
|
4
3
|
name: "Stateful",
|
|
5
|
-
functional:
|
|
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: (
|
|
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(
|
|
47
|
-
const { draft, doing, overdue, error, done, closed, status, tag, size, type } =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
|
57
|
-
|
|
58
|
-
style: { width:
|
|
59
|
-
class: ["stateful",
|
|
54
|
+
return r(_, y, [
|
|
55
|
+
r("span", {
|
|
56
|
+
style: { width: u, height: u },
|
|
57
|
+
class: ["stateful", f, p]
|
|
60
58
|
}),
|
|
61
|
-
|
|
59
|
+
c
|
|
62
60
|
]);
|
|
63
61
|
}
|
|
64
62
|
};
|
|
65
|
-
let
|
|
66
|
-
const
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
|
78
|
-
for (let
|
|
79
|
-
this[
|
|
80
|
-
}
|
|
75
|
+
function B(r) {
|
|
76
|
+
for (let t in i)
|
|
77
|
+
this[t] = i[t];
|
|
81
78
|
}
|
|
82
|
-
const
|
|
83
|
-
return
|
|
79
|
+
const h = /* @__PURE__ */ function() {
|
|
80
|
+
return m.exports;
|
|
84
81
|
}();
|
|
85
82
|
export {
|
|
86
|
-
|
|
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}
|