@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.
Files changed (172) hide show
  1. package/dist/chunks/3a79781b.js +75 -0
  2. package/dist/chunks/{44b78389.js → 41a066be.js} +8 -8
  3. package/dist/chunks/{e1939731.js → 5a78e0db.js} +5 -6
  4. package/dist/chunks/5d4282fb.js +30 -0
  5. package/dist/chunks/{822300f3.js → 61ad06b2.js} +3 -3
  6. package/dist/chunks/76680a03.js +24 -0
  7. package/dist/chunks/8c0142e0.js +81 -0
  8. package/dist/chunks/97652d86.js +26 -0
  9. package/dist/chunks/b4acd3a6.js +126 -0
  10. package/dist/chunks/f71045fc.js +184 -0
  11. package/dist/components/address-input/index.js +43 -56
  12. package/dist/components/address-input/style.css +1 -15
  13. package/dist/components/aside-menu/index.js +30 -36
  14. package/dist/components/aside-menu/style.css +1 -9
  15. package/dist/components/awesome-button/index.js +32 -35
  16. package/dist/components/base.css +1 -66
  17. package/dist/components/capsule-tab/index.js +27 -33
  18. package/dist/components/capsule-tab/style.css +1 -32
  19. package/dist/components/chunk-file-uploader/index.js +54 -88
  20. package/dist/components/chunk-file-uploader/style.css +1 -4
  21. package/dist/components/chunk-file-uploader-button/index.js +25 -31
  22. package/dist/components/chunk-file-uploader-button/style.css +1 -17
  23. package/dist/components/chunk-file-uploader-drop/index.js +28 -42
  24. package/dist/components/chunk-file-uploader-drop/style.css +1 -12
  25. package/dist/components/chunk-file-uploader-file/index.js +134 -211
  26. package/dist/components/chunk-file-uploader-file/style.css +1 -125
  27. package/dist/components/chunk-file-uploader-files/index.js +28 -34
  28. package/dist/components/chunk-file-uploader-files/style.css +1 -9
  29. package/dist/components/chunk-file-uploader-list/index.js +29 -35
  30. package/dist/components/chunk-file-uploader-list/style.css +1 -9
  31. package/dist/components/chunk-file-uploader-un-support/index.js +30 -38
  32. package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
  33. package/dist/components/code-mirror-editor/index.js +153 -181
  34. package/dist/components/code-mirror-editor/style.css +1 -17
  35. package/dist/components/color-picker/index.js +49 -68
  36. package/dist/components/confirm-button/index.js +19 -21
  37. package/dist/components/confirmable/index.js +18 -19
  38. package/dist/components/context-menu/index.js +108 -130
  39. package/dist/components/context-menu/style.css +1 -88
  40. package/dist/components/custom-scrollbar/index.js +49 -67
  41. package/dist/components/data-table-picker/index.js +62 -81
  42. package/dist/components/dynamic-table/index.js +89 -113
  43. package/dist/components/dynamic-table/style.css +1 -30
  44. package/dist/components/e-charts/index.js +120 -201
  45. package/dist/components/e-charts/style.css +1 -10
  46. package/dist/components/editable-progress/index.js +60 -93
  47. package/dist/components/editable-progress/style.css +1 -37
  48. package/dist/components/editable-tree/index.js +423 -638
  49. package/dist/components/editable-tree/style.css +1 -82
  50. package/dist/components/egd-collapse/index.js +33 -46
  51. package/dist/components/egd-collapse-item/index.js +60 -76
  52. package/dist/components/element-dialog/index.js +95 -147
  53. package/dist/components/element-dialog/style.css +1 -102
  54. package/dist/components/empty-view/index.js +28 -34
  55. package/dist/components/empty-view/style.css +1 -17
  56. package/dist/components/error-view/index.js +26 -32
  57. package/dist/components/error-view/style.css +1 -17
  58. package/dist/components/flex-column/index.js +25 -40
  59. package/dist/components/flex-item/index.js +29 -57
  60. package/dist/components/flex-row/index.js +25 -40
  61. package/dist/components/flex-scroller/index.js +26 -32
  62. package/dist/components/flex-scroller/style.css +1 -20
  63. package/dist/components/form-button/index.js +34 -38
  64. package/dist/components/form-cascader/index.js +71 -81
  65. package/dist/components/form-checkbox-group/index.js +88 -113
  66. package/dist/components/form-checkbox-group/style.css +1 -51
  67. package/dist/components/form-date-picker/index.js +70 -132
  68. package/dist/components/form-holder/index.js +32 -39
  69. package/dist/components/form-input/index.js +56 -62
  70. package/dist/components/form-input-email/index.js +48 -60
  71. package/dist/components/form-input-id-card/index.js +53 -59
  72. package/dist/components/form-input-number/index.js +61 -68
  73. package/dist/components/form-input-number/style.css +1 -12
  74. package/dist/components/form-input-phone-number/index.js +49 -55
  75. package/dist/components/form-input-time/index.js +53 -59
  76. package/dist/components/form-item/index.js +80 -123
  77. package/dist/components/form-item/style.css +1 -11
  78. package/dist/components/form-item-config-provider/index.js +25 -26
  79. package/dist/components/form-item-group/index.js +85 -111
  80. package/dist/components/form-item-group/style.css +1 -30
  81. package/dist/components/form-radio-group/index.js +85 -104
  82. package/dist/components/form-radio-group/style.css +1 -53
  83. package/dist/components/form-select/index.js +76 -91
  84. package/dist/components/form-switch/index.js +51 -57
  85. package/dist/components/form-textarea/index.js +51 -57
  86. package/dist/components/form-view/index.js +165 -232
  87. package/dist/components/form-view/style.css +1 -158
  88. package/dist/components/guide-steps/index.js +44 -58
  89. package/dist/components/guide-steps/style.css +1 -34
  90. package/dist/components/icon-card/index.js +29 -35
  91. package/dist/components/icon-card/style.css +1 -56
  92. package/dist/components/iframe-window/index.js +29 -35
  93. package/dist/components/iframe-window/style.css +1 -20
  94. package/dist/components/image-viewer/index.js +48 -66
  95. package/dist/components/image-viewer/style.css +1 -21
  96. package/dist/components/input-number/index.js +127 -193
  97. package/dist/components/input-number/style.css +1 -15
  98. package/dist/components/input-number-range/index.js +45 -57
  99. package/dist/components/input-number-range/style.css +1 -12
  100. package/dist/components/j-s-x-component/index.js +4 -4
  101. package/dist/components/keep-view-alive/index.js +73 -120
  102. package/dist/components/loading-view/index.js +26 -32
  103. package/dist/components/loading-view/style.css +1 -17
  104. package/dist/components/nav-bar/index.js +27 -37
  105. package/dist/components/nav-bar/style.css +1 -17
  106. package/dist/components/not-implement/index.js +23 -31
  107. package/dist/components/not-implement/style.css +1 -15
  108. package/dist/components/page/index.js +22 -28
  109. package/dist/components/page/style.css +1 -12
  110. package/dist/components/page-header/index.js +30 -36
  111. package/dist/components/page-header/style.css +1 -14
  112. package/dist/components/page-index/index.js +62 -83
  113. package/dist/components/page-index/style.css +1 -23
  114. package/dist/components/page-index-top/index.js +53 -68
  115. package/dist/components/page-skeleton/index.js +31 -37
  116. package/dist/components/page-skeleton/style.css +1 -23
  117. package/dist/components/page-skeleton-new/index.js +42 -48
  118. package/dist/components/page-skeleton-new/style.css +1 -42
  119. package/dist/components/pageable-table/index.js +186 -253
  120. package/dist/components/pageable-table/style.css +1 -72
  121. package/dist/components/pageable-view/index.js +129 -199
  122. package/dist/components/pageable-view/style.css +1 -69
  123. package/dist/components/photo-swipe/index.js +110 -151
  124. package/dist/components/photo-swipe/style.css +1 -20
  125. package/dist/components/resize-observer/index.js +34 -68
  126. package/dist/components/resize-observer/style.css +1 -31
  127. package/dist/components/search-popover/index.js +153 -211
  128. package/dist/components/search-popover/style.css +1 -93
  129. package/dist/components/sign-panel/index.js +92 -142
  130. package/dist/components/sign-panel/style.css +1 -97
  131. package/dist/components/split-pane/index.js +101 -162
  132. package/dist/components/split-pane/style.css +1 -100
  133. package/dist/components/stateful/index.js +31 -34
  134. package/dist/components/stateful/style.css +1 -33
  135. package/dist/components/static-pageable-table/index.js +37 -44
  136. package/dist/components/static-pageable-table/style.css +1 -9
  137. package/dist/components/swiper/index.js +85 -150
  138. package/dist/components/swiper/style.css +1 -43
  139. package/dist/components/tab/index.js +54 -72
  140. package/dist/components/tab/style.css +1 -122
  141. package/dist/components/tab-item/index.js +30 -35
  142. package/dist/components/table-column/index.js +30 -32
  143. package/dist/components/table-view/index.js +156 -227
  144. package/dist/components/table-view/style.css +1 -95
  145. package/dist/components/tag-render/index.js +44 -58
  146. package/dist/components/tag-render/style.css +1 -33
  147. package/dist/components/tinymce-editor/index.js +79 -95
  148. package/dist/components/tinymce-editor/style.css +1 -43
  149. package/dist/components/tinymce-wrapper/index.js +92 -121
  150. package/dist/components/tinymce-wrapper/style.css +1 -36
  151. package/dist/components/toolbar/index.js +63 -84
  152. package/dist/components/toolbar/style.css +1 -39
  153. package/dist/components/toolbar-button/index.js +41 -48
  154. package/dist/components/toolbar-button/style.css +1 -21
  155. package/dist/components/trigger/index.js +29 -36
  156. package/dist/components/vue-tags-input/index.js +188 -308
  157. package/dist/components/vue-tags-input/style.css +1 -682
  158. package/dist/components/watermark/index.js +25 -37
  159. package/dist/components/watermark/style.css +1 -11
  160. package/dist/components/x-dialog/index.js +67 -93
  161. package/dist/components/x-dialog/style.css +1 -15
  162. package/dist/index.css +193 -1105
  163. package/dist/index.es.js +4790 -7243
  164. package/package.json +1 -1
  165. package/web-types.json +1 -1
  166. package/dist/chunks/3d28cc08.js +0 -57
  167. package/dist/chunks/5d33812d.js +0 -147
  168. package/dist/chunks/9d848bf6.js +0 -99
  169. package/dist/chunks/a0bb327b.js +0 -96
  170. package/dist/chunks/a8891d2c.js +0 -30
  171. package/dist/chunks/c69d5628.js +0 -248
  172. package/dist/chunks/de9fe802.js +0 -24
@@ -1,37 +1,33 @@
1
- import { chunk } from "lodash";
2
- import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
3
- var render = function() {
4
- var _vm = this;
5
- var _h = _vm.$createElement;
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
- }, [_c("ElTable", _vm._g(_vm._b({
7
+ }, [a("ElTable", e._g(e._b({
10
8
  attrs: {
11
- "size": "mini",
12
- "data": _vm.records
9
+ size: "mini",
10
+ data: e.records
13
11
  }
14
- }, "ElTable", _vm.$attrs, false), _vm.$listeners), [_vm._t("default", function() {
15
- return [_vm._v("请添加表格列")];
16
- })], 2), _c("ElPagination", {
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": _vm.page.page,
19
- "hide-on-single-page": true,
20
- "page-size": _vm.page.limit,
21
- "total": _vm.page.total,
22
- "background": "",
23
- "layout": "total, prev, pager, next"
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(curPage) {
27
- _vm.page.page = curPage;
24
+ "current-change": function(s) {
25
+ e.page.page = s;
28
26
  }
29
27
  }
30
28
  })], 1);
31
- };
32
- var staticRenderFns = [];
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: true,
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 = chunk(this.rows, this.page.limit)[this.page.page - 1];
69
+ this.records = n(this.rows, this.page.limit)[this.page.page - 1];
75
70
  }
76
71
  }
77
- };
78
- const __cssModules = {};
79
- var __component__ = /* @__PURE__ */ normalizeComponent(
80
- __vue2_script,
81
- render,
82
- staticRenderFns,
83
- false,
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 __vue2_injectStyles(context) {
90
- for (let o in __cssModules) {
91
- this[o] = __cssModules[o];
92
- }
83
+ function g(e) {
84
+ for (let t in r)
85
+ this[t] = r[t];
93
86
  }
94
- const StaticPageableTable = /* @__PURE__ */ function() {
95
- return __component__.exports;
87
+ const h = /* @__PURE__ */ function() {
88
+ return p.exports;
96
89
  }();
97
90
  export {
98
- StaticPageableTable as default
91
+ h as default
99
92
  };
@@ -1,9 +1 @@
1
- /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
2
- /* 应用头部高度 */
3
- /* 页面宽度 */
4
- /* 侧栏宽度 */
5
- /* 标签高度 */
6
- /* 页面头部工具条高度 */
7
- .static-pageable-table {
8
- flex: 1 1 auto;
9
- }
1
+ .static-pageable-table{flex:1 1 auto}
@@ -1,61 +1,55 @@
1
- import { getEleWidth } from "@web-utils/core";
2
- import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
3
- var render = function() {
4
- var _vm = this;
5
- var _h = _vm.$createElement;
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
- }, [_c("ElButton", {
7
+ }, [s("ElButton", {
10
8
  staticClass: "el-carousel__arrow el-carousel__arrow--left",
11
9
  attrs: {
12
- "disabled": _vm.reachedLeft,
13
- "icon": "el-icon-arrow-left"
10
+ disabled: t.reachedLeft,
11
+ icon: "el-icon-arrow-left"
14
12
  },
15
13
  on: {
16
- "click": _vm.clickLeft
14
+ click: t.clickLeft
17
15
  }
18
- }), _c("div", {
16
+ }), s("div", {
19
17
  ref: "swiperBox",
20
18
  staticClass: "egd-swiper-box",
21
19
  on: {
22
- "wheel": function($event) {
23
- $event.stopPropagation();
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
- }, [_c("div", {
24
+ }, [s("div", {
29
25
  ref: "swiperContent",
30
26
  staticClass: "egd-swiper-content",
31
- style: _vm.swiperContentStyle
32
- }, [_vm._t("default")], 2)]), _c("ElButton", {
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
- "disabled": _vm.reachedRight,
36
- "icon": "el-icon-arrow-right"
31
+ disabled: t.reachedRight,
32
+ icon: "el-icon-arrow-right"
37
33
  },
38
34
  on: {
39
- "click": _vm.clickRight
35
+ click: t.clickRight
40
36
  }
41
- }), _c("ResizeObserver", {
37
+ }), s("ResizeObserver", {
42
38
  on: {
43
- "notify": _vm.resize
39
+ notify: t.resize
44
40
  }
45
41
  })], 1);
46
- };
47
- var staticRenderFns = [];
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: false,
47
+ mouseDown: !1,
54
48
  swiperBoxWith: 0,
55
49
  swiperContentWidth: 0,
56
50
  translateX: 0,
57
- reachedLeft: true,
58
- reachedRight: false,
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 width = 0;
84
- const childrenWidth = [];
85
- const { children } = this.$refs.swiperContent;
86
- Array.prototype.forEach.call(children, (el) => {
87
- const cw = getEleWidth(el);
88
- width += cw;
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(use) {
95
- this.swiperContentStyle.transitionDuration = use ? "300ms" : "0ms";
81
+ updateDuration(t) {
82
+ this.swiperContentStyle.transitionDuration = t ? "300ms" : "0ms";
96
83
  },
97
- setTranslateX(translateX) {
98
- if (this.swiperContentWidth <= this.swiperBoxWith) {
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(true);
118
- let translateX = this.translateX + this.swiperBoxWith;
119
- let width = translateX;
120
- if (translateX < 0) {
121
- width = 0;
122
- translateX = -translateX;
123
- for (let i = 0, len = this.childrenWidth.length; i < len; i++) {
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(width);
96
+ this.setTranslateX(e);
132
97
  },
133
98
  clickRight() {
134
- this.updateDuration(true);
135
- const translateX = Math.abs(this.translateX - this.swiperBoxWith);
136
- let width = 0;
137
- for (let i = 0, len = this.childrenWidth.length; i < len; i++) {
138
- width += this.childrenWidth[i];
139
- if (width >= translateX) {
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(e) {
149
- this.updateDuration(true);
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(e) {
163
- this.mouseDown = true;
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(e) {
170
- this.mouseDown = false;
171
- this.updateDuration(true);
172
- this.$refs.swiperContent.addEventListener("transitionend", this.transitionend);
173
- this.$refs.swiperContent.addEventListener("webkitTransitionEnd", this.transitionend);
174
- const t = e.clientX - this.startX;
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 (t > 0) {
180
- const translateX = this.translateX + t;
181
- this.setTranslateX(translateX);
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(e) {
187
- if (this.mouseDown) {
188
- requestAnimationFrame(() => {
189
- const disX = e.clientX - this.startX;
190
- const translateX = this.translateXRaw + disX;
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(false);
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
- const __cssModules = {};
203
- var __component__ = /* @__PURE__ */ normalizeComponent(
204
- __vue2_script,
205
- render,
206
- staticRenderFns,
207
- false,
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 __vue2_injectStyles(context) {
214
- for (let o in __cssModules) {
215
- this[o] = __cssModules[o];
216
- }
149
+ function u(t) {
150
+ for (let e in r)
151
+ this[e] = r[e];
217
152
  }
218
- const Swiper = /* @__PURE__ */ function() {
219
- return __component__.exports;
153
+ const w = /* @__PURE__ */ function() {
154
+ return c.exports;
220
155
  }();
221
156
  export {
222
- Swiper as default
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}