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