@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.
- 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 -212
- 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 -2
- 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,37 +1,33 @@
|
|
|
1
|
-
import { chunk } from "lodash";
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var _c = _vm._self._c || _h;
|
|
7
|
-
return _c("div", {
|
|
1
|
+
import { chunk as n } from "lodash";
|
|
2
|
+
import { n as i } from "../../chunks/5d4282fb.js";
|
|
3
|
+
var o = function() {
|
|
4
|
+
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
5
|
+
return a("div", {
|
|
8
6
|
staticClass: "static-pageable-table"
|
|
9
|
-
}, [
|
|
7
|
+
}, [a("ElTable", e._g(e._b({
|
|
10
8
|
attrs: {
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
size: "mini",
|
|
10
|
+
data: e.records
|
|
13
11
|
}
|
|
14
|
-
}, "ElTable",
|
|
15
|
-
return [
|
|
16
|
-
})], 2),
|
|
12
|
+
}, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
|
|
13
|
+
return [e._v("请添加表格列")];
|
|
14
|
+
})], 2), a("ElPagination", {
|
|
17
15
|
attrs: {
|
|
18
|
-
"current-page":
|
|
19
|
-
"hide-on-single-page":
|
|
20
|
-
"page-size":
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
"current-page": e.page.page,
|
|
17
|
+
"hide-on-single-page": !0,
|
|
18
|
+
"page-size": e.page.limit,
|
|
19
|
+
total: e.page.total,
|
|
20
|
+
background: "",
|
|
21
|
+
layout: "total, prev, pager, next"
|
|
24
22
|
},
|
|
25
23
|
on: {
|
|
26
|
-
"current-change": function(
|
|
27
|
-
|
|
24
|
+
"current-change": function(s) {
|
|
25
|
+
e.page.page = s;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
})], 1);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const StaticPageableTable_vue_vue_type_style_index_0_lang = "";
|
|
34
|
-
const __vue2_script = {
|
|
29
|
+
}, l = [];
|
|
30
|
+
const c = {
|
|
35
31
|
name: "StaticPageableTable",
|
|
36
32
|
props: {
|
|
37
33
|
rows: {
|
|
@@ -62,38 +58,35 @@ const __vue2_script = {
|
|
|
62
58
|
this.page.page = 1;
|
|
63
59
|
},
|
|
64
60
|
observer: {
|
|
65
|
-
immediate:
|
|
61
|
+
immediate: !0,
|
|
66
62
|
handler() {
|
|
67
|
-
this.page.total = this.rows.length;
|
|
68
|
-
this.fetchData();
|
|
63
|
+
this.page.total = this.rows.length, this.fetchData();
|
|
69
64
|
}
|
|
70
65
|
}
|
|
71
66
|
},
|
|
72
67
|
methods: {
|
|
73
68
|
fetchData() {
|
|
74
|
-
this.records =
|
|
69
|
+
this.records = n(this.rows, this.page.limit)[this.page.page - 1];
|
|
75
70
|
}
|
|
76
71
|
}
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
__vue2_injectStyles,
|
|
72
|
+
}, r = {};
|
|
73
|
+
var p = /* @__PURE__ */ i(
|
|
74
|
+
c,
|
|
75
|
+
o,
|
|
76
|
+
l,
|
|
77
|
+
!1,
|
|
78
|
+
g,
|
|
85
79
|
null,
|
|
86
80
|
null,
|
|
87
81
|
null
|
|
88
82
|
);
|
|
89
|
-
function
|
|
90
|
-
for (let
|
|
91
|
-
this[
|
|
92
|
-
}
|
|
83
|
+
function g(e) {
|
|
84
|
+
for (let t in r)
|
|
85
|
+
this[t] = r[t];
|
|
93
86
|
}
|
|
94
|
-
const
|
|
95
|
-
return
|
|
87
|
+
const h = /* @__PURE__ */ function() {
|
|
88
|
+
return p.exports;
|
|
96
89
|
}();
|
|
97
90
|
export {
|
|
98
|
-
|
|
91
|
+
h as default
|
|
99
92
|
};
|
|
@@ -1,61 +1,55 @@
|
|
|
1
|
-
import { getEleWidth } from "@web-utils/core";
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var _c = _vm._self._c || _h;
|
|
7
|
-
return _c("div", {
|
|
1
|
+
import { getEleWidth as a } from "@web-utils/core";
|
|
2
|
+
import { n as o } from "../../chunks/5d4282fb.js";
|
|
3
|
+
var h = function() {
|
|
4
|
+
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
5
|
+
return s("div", {
|
|
8
6
|
staticClass: "egd-swiper"
|
|
9
|
-
}, [
|
|
7
|
+
}, [s("ElButton", {
|
|
10
8
|
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
|
11
9
|
attrs: {
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
disabled: t.reachedLeft,
|
|
11
|
+
icon: "el-icon-arrow-left"
|
|
14
12
|
},
|
|
15
13
|
on: {
|
|
16
|
-
|
|
14
|
+
click: t.clickLeft
|
|
17
15
|
}
|
|
18
|
-
}),
|
|
16
|
+
}), s("div", {
|
|
19
17
|
ref: "swiperBox",
|
|
20
18
|
staticClass: "egd-swiper-box",
|
|
21
19
|
on: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$event.preventDefault();
|
|
25
|
-
return _vm.onMouseWheel.apply(null, arguments);
|
|
20
|
+
wheel: function(i) {
|
|
21
|
+
return i.stopPropagation(), i.preventDefault(), t.onMouseWheel.apply(null, arguments);
|
|
26
22
|
}
|
|
27
23
|
}
|
|
28
|
-
}, [
|
|
24
|
+
}, [s("div", {
|
|
29
25
|
ref: "swiperContent",
|
|
30
26
|
staticClass: "egd-swiper-content",
|
|
31
|
-
style:
|
|
32
|
-
}, [
|
|
27
|
+
style: t.swiperContentStyle
|
|
28
|
+
}, [t._t("default")], 2)]), s("ElButton", {
|
|
33
29
|
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
|
34
30
|
attrs: {
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
disabled: t.reachedRight,
|
|
32
|
+
icon: "el-icon-arrow-right"
|
|
37
33
|
},
|
|
38
34
|
on: {
|
|
39
|
-
|
|
35
|
+
click: t.clickRight
|
|
40
36
|
}
|
|
41
|
-
}),
|
|
37
|
+
}), s("ResizeObserver", {
|
|
42
38
|
on: {
|
|
43
|
-
|
|
39
|
+
notify: t.resize
|
|
44
40
|
}
|
|
45
41
|
})], 1);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const Swiper_vue_vue_type_style_index_0_lang = "";
|
|
49
|
-
const __vue2_script = {
|
|
42
|
+
}, l = [];
|
|
43
|
+
const d = {
|
|
50
44
|
name: "Swiper",
|
|
51
45
|
data() {
|
|
52
46
|
return {
|
|
53
|
-
mouseDown:
|
|
47
|
+
mouseDown: !1,
|
|
54
48
|
swiperBoxWith: 0,
|
|
55
49
|
swiperContentWidth: 0,
|
|
56
50
|
translateX: 0,
|
|
57
|
-
reachedLeft:
|
|
58
|
-
reachedRight:
|
|
51
|
+
reachedLeft: !0,
|
|
52
|
+
reachedRight: !1,
|
|
59
53
|
childrenWidth: [],
|
|
60
54
|
swiperContentStyle: {
|
|
61
55
|
transitionDuration: "0ms",
|
|
@@ -71,153 +65,94 @@ const __vue2_script = {
|
|
|
71
65
|
},
|
|
72
66
|
methods: {
|
|
73
67
|
async layout() {
|
|
74
|
-
await this.$nextTick();
|
|
75
|
-
this.computeContentWidth();
|
|
76
|
-
this.resize();
|
|
68
|
+
await this.$nextTick(), this.computeContentWidth(), this.resize();
|
|
77
69
|
},
|
|
78
70
|
resize() {
|
|
79
|
-
console.log(1);
|
|
80
|
-
this.swiperBoxWith = this.$refs.swiperBox.offsetWidth;
|
|
71
|
+
console.log(1), this.swiperBoxWith = this.$refs.swiperBox.offsetWidth;
|
|
81
72
|
},
|
|
82
73
|
computeContentWidth() {
|
|
83
|
-
let
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
childrenWidth.push(cw);
|
|
90
|
-
});
|
|
91
|
-
this.childrenWidth = childrenWidth;
|
|
92
|
-
this.swiperContentWidth = width;
|
|
74
|
+
let t = 0;
|
|
75
|
+
const e = [], { children: s } = this.$refs.swiperContent;
|
|
76
|
+
Array.prototype.forEach.call(s, (i) => {
|
|
77
|
+
const n = a(i);
|
|
78
|
+
t += n, e.push(n);
|
|
79
|
+
}), this.childrenWidth = e, this.swiperContentWidth = t;
|
|
93
80
|
},
|
|
94
|
-
updateDuration(
|
|
95
|
-
this.swiperContentStyle.transitionDuration =
|
|
81
|
+
updateDuration(t) {
|
|
82
|
+
this.swiperContentStyle.transitionDuration = t ? "300ms" : "0ms";
|
|
96
83
|
},
|
|
97
|
-
setTranslateX(
|
|
98
|
-
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
if (translateX > 0) {
|
|
102
|
-
this.translateX = 0;
|
|
103
|
-
this.reachedLeft = true;
|
|
104
|
-
this.reachedRight = false;
|
|
105
|
-
} else if (translateX - this.swiperBoxWith < -this.swiperContentWidth) {
|
|
106
|
-
this.translateX = -this.swiperContentWidth + this.swiperBoxWith;
|
|
107
|
-
this.reachedLeft = false;
|
|
108
|
-
this.reachedRight = true;
|
|
109
|
-
} else {
|
|
110
|
-
this.translateX = translateX;
|
|
111
|
-
this.reachedLeft = false;
|
|
112
|
-
this.reachedRight = false;
|
|
113
|
-
}
|
|
114
|
-
this.swiperContentStyle.transform = `translate3d(${this.translateX}px, 0px, 0px)`;
|
|
84
|
+
setTranslateX(t) {
|
|
85
|
+
this.swiperContentWidth <= this.swiperBoxWith || (t > 0 ? (this.translateX = 0, this.reachedLeft = !0, this.reachedRight = !1) : t - this.swiperBoxWith < -this.swiperContentWidth ? (this.translateX = -this.swiperContentWidth + this.swiperBoxWith, this.reachedLeft = !1, this.reachedRight = !0) : (this.translateX = t, this.reachedLeft = !1, this.reachedRight = !1), this.swiperContentStyle.transform = `translate3d(${this.translateX}px, 0px, 0px)`);
|
|
115
86
|
},
|
|
116
87
|
clickLeft() {
|
|
117
|
-
this.updateDuration(
|
|
118
|
-
let
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
width += this.childrenWidth[i];
|
|
125
|
-
if (width >= translateX) {
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
width = -width;
|
|
88
|
+
this.updateDuration(!0);
|
|
89
|
+
let t = this.translateX + this.swiperBoxWith, e = t;
|
|
90
|
+
if (t < 0) {
|
|
91
|
+
e = 0, t = -t;
|
|
92
|
+
for (let s = 0, i = this.childrenWidth.length; s < i && (e += this.childrenWidth[s], !(e >= t)); s++)
|
|
93
|
+
;
|
|
94
|
+
e = -e;
|
|
130
95
|
}
|
|
131
|
-
this.setTranslateX(
|
|
96
|
+
this.setTranslateX(e);
|
|
132
97
|
},
|
|
133
98
|
clickRight() {
|
|
134
|
-
this.updateDuration(
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
for (let
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
if (width > translateX) {
|
|
141
|
-
width -= this.childrenWidth[i];
|
|
142
|
-
}
|
|
99
|
+
this.updateDuration(!0);
|
|
100
|
+
const t = Math.abs(this.translateX - this.swiperBoxWith);
|
|
101
|
+
let e = 0;
|
|
102
|
+
for (let s = 0, i = this.childrenWidth.length; s < i; s++)
|
|
103
|
+
if (e += this.childrenWidth[s], e >= t) {
|
|
104
|
+
e > t && (e -= this.childrenWidth[s]);
|
|
143
105
|
break;
|
|
144
106
|
}
|
|
145
|
-
|
|
146
|
-
this.setTranslateX(-width);
|
|
107
|
+
this.setTranslateX(-e);
|
|
147
108
|
},
|
|
148
|
-
onMouseWheel(
|
|
149
|
-
this.updateDuration(
|
|
150
|
-
if (e.deltaMode === WheelEvent.DOM_DELTA_LINE) {
|
|
151
|
-
this.setTranslateX(this.translateX - e.deltaY * 30);
|
|
152
|
-
} else if (e.deltaMode === WheelEvent.DOM_DELTA_PAGE) {
|
|
153
|
-
if (e.deltaY > 0) {
|
|
154
|
-
this.clickRight();
|
|
155
|
-
} else {
|
|
156
|
-
this.clickLeft();
|
|
157
|
-
}
|
|
158
|
-
} else {
|
|
159
|
-
this.setTranslateX(this.translateX - e.deltaY);
|
|
160
|
-
}
|
|
109
|
+
onMouseWheel(t) {
|
|
110
|
+
this.updateDuration(!0), t.deltaMode === WheelEvent.DOM_DELTA_LINE ? this.setTranslateX(this.translateX - t.deltaY * 30) : t.deltaMode === WheelEvent.DOM_DELTA_PAGE ? t.deltaY > 0 ? this.clickRight() : this.clickLeft() : this.setTranslateX(this.translateX - t.deltaY);
|
|
161
111
|
},
|
|
162
|
-
onMouseDown(
|
|
163
|
-
this.mouseDown =
|
|
164
|
-
this.startX = e.clientX;
|
|
165
|
-
this.translateXRaw = this.translateX;
|
|
166
|
-
window.addEventListener("mousemove", this.onMouseMove, { passive: false });
|
|
167
|
-
window.addEventListener("mouseup", this.onMouseUp, { passive: false });
|
|
112
|
+
onMouseDown(t) {
|
|
113
|
+
this.mouseDown = !0, this.startX = t.clientX, this.translateXRaw = this.translateX, window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("mouseup", this.onMouseUp, { passive: !1 });
|
|
168
114
|
},
|
|
169
|
-
onMouseUp(
|
|
170
|
-
this.mouseDown =
|
|
171
|
-
this.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
if (t < 0) {
|
|
176
|
-
const translateX = this.translateX + t;
|
|
177
|
-
this.setTranslateX(translateX);
|
|
115
|
+
onMouseUp(t) {
|
|
116
|
+
this.mouseDown = !1, this.updateDuration(!0), this.$refs.swiperContent.addEventListener("transitionend", this.transitionend), this.$refs.swiperContent.addEventListener("webkitTransitionEnd", this.transitionend);
|
|
117
|
+
const e = t.clientX - this.startX;
|
|
118
|
+
if (e < 0) {
|
|
119
|
+
const s = this.translateX + e;
|
|
120
|
+
this.setTranslateX(s);
|
|
178
121
|
}
|
|
179
|
-
if (
|
|
180
|
-
const
|
|
181
|
-
this.setTranslateX(
|
|
122
|
+
if (e > 0) {
|
|
123
|
+
const s = this.translateX + e;
|
|
124
|
+
this.setTranslateX(s);
|
|
182
125
|
}
|
|
183
|
-
window.removeEventListener("mousemove", this.onMouseMove);
|
|
184
|
-
window.removeEventListener("mouseup", this.onMouseUp);
|
|
126
|
+
window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp);
|
|
185
127
|
},
|
|
186
|
-
onMouseMove(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
this.setTranslateX(translateX);
|
|
192
|
-
});
|
|
193
|
-
}
|
|
128
|
+
onMouseMove(t) {
|
|
129
|
+
this.mouseDown && requestAnimationFrame(() => {
|
|
130
|
+
const e = t.clientX - this.startX, s = this.translateXRaw + e;
|
|
131
|
+
this.setTranslateX(s);
|
|
132
|
+
});
|
|
194
133
|
},
|
|
195
134
|
transitionend() {
|
|
196
|
-
this.updateDuration(
|
|
197
|
-
this.$refs.swiperContent.removeEventListener("transitionend", this.transitionend);
|
|
198
|
-
this.$refs.swiperContent.removeEventListener("webkitTransitionEnd", this.transitionend);
|
|
135
|
+
this.updateDuration(!1), this.$refs.swiperContent.removeEventListener("transitionend", this.transitionend), this.$refs.swiperContent.removeEventListener("webkitTransitionEnd", this.transitionend);
|
|
199
136
|
}
|
|
200
137
|
}
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
__vue2_injectStyles,
|
|
138
|
+
}, r = {};
|
|
139
|
+
var c = /* @__PURE__ */ o(
|
|
140
|
+
d,
|
|
141
|
+
h,
|
|
142
|
+
l,
|
|
143
|
+
!1,
|
|
144
|
+
u,
|
|
209
145
|
null,
|
|
210
146
|
null,
|
|
211
147
|
null
|
|
212
148
|
);
|
|
213
|
-
function
|
|
214
|
-
for (let
|
|
215
|
-
this[
|
|
216
|
-
}
|
|
149
|
+
function u(t) {
|
|
150
|
+
for (let e in r)
|
|
151
|
+
this[e] = r[e];
|
|
217
152
|
}
|
|
218
|
-
const
|
|
219
|
-
return
|
|
153
|
+
const w = /* @__PURE__ */ function() {
|
|
154
|
+
return c.exports;
|
|
220
155
|
}();
|
|
221
156
|
export {
|
|
222
|
-
|
|
157
|
+
w as default
|
|
223
158
|
};
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* 应用头部高度 */
|
|
3
|
-
/* 页面宽度 */
|
|
4
|
-
/* 侧栏宽度 */
|
|
5
|
-
/* 标签高度 */
|
|
6
|
-
/* 页面头部工具条高度 */
|
|
7
|
-
.egd-swiper {
|
|
8
|
-
position: relative;
|
|
9
|
-
height: 100%;
|
|
10
|
-
padding: 0 60px;
|
|
11
|
-
}
|
|
12
|
-
.egd-swiper .el-button.el-carousel__arrow {
|
|
13
|
-
padding: 0;
|
|
14
|
-
color: #fff;
|
|
15
|
-
font-size: 12px;
|
|
16
|
-
background-color: rgba(31, 45, 61, 0.11);
|
|
17
|
-
border-color: rgba(31, 45, 61, 0.01);
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
}
|
|
20
|
-
.egd-swiper .el-button.el-carousel__arrow i {
|
|
21
|
-
cursor: unset;
|
|
22
|
-
}
|
|
23
|
-
.egd-swiper .el-button.el-carousel__arrow.is-disabled {
|
|
24
|
-
color: white;
|
|
25
|
-
background-color: rgba(31, 45, 61, 0.11);
|
|
26
|
-
border-color: rgba(31, 45, 61, 0.01);
|
|
27
|
-
}
|
|
28
|
-
.egd-swiper .egd-swiper-box {
|
|
29
|
-
height: 100%;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
user-select: none;
|
|
32
|
-
}
|
|
33
|
-
.egd-swiper .egd-swiper-box .egd-swiper-content {
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: row;
|
|
36
|
-
flex-wrap: nowrap;
|
|
37
|
-
width: 100%;
|
|
38
|
-
height: 100%;
|
|
39
|
-
padding-top: 14px;
|
|
40
|
-
overflow: visible;
|
|
41
|
-
transform: translate3d(0, 0, 0);
|
|
42
|
-
transition-property: transform;
|
|
43
|
-
}
|
|
1
|
+
.egd-swiper{position:relative;height:100%;padding:0 60px}.egd-swiper .el-button.el-carousel__arrow{padding:0;color:#fff;font-size:12px;background-color:#1f2d3d1c;border-color:#1f2d3d03;border-radius:50%}.egd-swiper .el-button.el-carousel__arrow i{cursor:unset}.egd-swiper .el-button.el-carousel__arrow.is-disabled{color:#fff;background-color:#1f2d3d1c;border-color:#1f2d3d03}.egd-swiper .egd-swiper-box{height:100%;overflow:hidden;user-select:none}.egd-swiper .egd-swiper-box .egd-swiper-content{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;height:100%;padding-top:14px;overflow:visible;transform:translateZ(0);transition-property:transform}
|