@web-utils/component 2.0.10 → 2.0.12

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