@web-utils/component 3.0.6 → 3.1.0

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/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,33 +1,6 @@
1
- import { chunk as n } from "@web-utils/integrations/lodash";
2
- import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var o = function() {
4
- var e = this, t = e.$createElement, a = e._self._c || t;
5
- return a("div", {
6
- staticClass: "static-pageable-table"
7
- }, [a("ElTable", e._g(e._b({
8
- attrs: {
9
- size: "mini",
10
- data: e.records
11
- }
12
- }, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
13
- return [e._v("请添加表格列")];
14
- })], 2), a("ElPagination", {
15
- 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"
22
- },
23
- on: {
24
- "current-change": function(s) {
25
- e.page.page = s;
26
- }
27
- }
28
- })], 1);
29
- }, l = [];
30
- const c = {
1
+ import { chunk as r } from "@web-utils/integrations/lodash";
2
+ import { n as s } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const l = {
31
4
  name: "StaticPageableTable",
32
5
  props: {
33
6
  rows: {
@@ -66,27 +39,28 @@ const c = {
66
39
  },
67
40
  methods: {
68
41
  fetchData() {
69
- this.records = n(this.rows, this.page.limit)[this.page.page - 1];
42
+ this.records = r(this.rows, this.page.limit)[this.page.page - 1];
70
43
  }
71
44
  }
72
- }, r = {};
73
- var p = /* @__PURE__ */ i(
74
- c,
75
- o,
45
+ };
46
+ var n = function() {
47
+ var e = this, t = e._self._c;
48
+ return t("div", { staticClass: "static-pageable-table" }, [t("ElTable", e._g(e._b({ attrs: { size: "mini", data: e.records } }, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
49
+ return [e._v("请添加表格列")];
50
+ })], 2), t("ElPagination", { attrs: { "current-page": e.page.page, "hide-on-single-page": !0, "page-size": e.page.limit, total: e.page.total, background: "", layout: "total, prev, pager, next" }, on: { "current-change": (a) => {
51
+ e.page.page = a;
52
+ } } })], 1);
53
+ }, i = [], o = /* @__PURE__ */ s(
76
54
  l,
55
+ n,
56
+ i,
77
57
  !1,
78
- g,
58
+ null,
79
59
  null,
80
60
  null,
81
61
  null
82
62
  );
83
- function g(e) {
84
- for (let t in r)
85
- this[t] = r[t];
86
- }
87
- const h = /* @__PURE__ */ function() {
88
- return p.exports;
89
- }();
63
+ const _ = o.exports;
90
64
  export {
91
- h as default
65
+ _ as default
92
66
  };
package/swiper/index.mjs CHANGED
@@ -1,67 +1,27 @@
1
- var h = (t, e, s) => new Promise((i, r) => {
2
- var d = (n) => {
1
+ var h = (e, t, s) => new Promise((i, r) => {
2
+ var l = (n) => {
3
3
  try {
4
4
  a(s.next(n));
5
5
  } catch (o) {
6
6
  r(o);
7
7
  }
8
- }, c = (n) => {
8
+ }, d = (n) => {
9
9
  try {
10
10
  a(s.throw(n));
11
11
  } catch (o) {
12
12
  r(o);
13
13
  }
14
- }, a = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(d, c);
15
- a((s = s.apply(t, e)).next());
14
+ }, a = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(l, d);
15
+ a((s = s.apply(e, t)).next());
16
16
  });
17
- import { getEleWidth as u } from "@web-utils/core";
18
- import p from "@web-utils/component/resize-observer";
17
+ import { getEleWidth as c } from "@web-utils/core";
18
+ import u from "@web-utils/component/resize-observer";
19
19
  import "@web-utils/component/resize-observer/style.css";
20
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
- var w = function() {
22
- var t = this, e = t.$createElement, s = t._self._c || e;
23
- return s("div", {
24
- staticClass: "egd-swiper"
25
- }, [s("ElButton", {
26
- staticClass: "el-carousel__arrow el-carousel__arrow--left",
27
- attrs: {
28
- disabled: t.reachedLeft,
29
- icon: "el-icon-arrow-left"
30
- },
31
- on: {
32
- click: t.clickLeft
33
- }
34
- }), s("div", {
35
- ref: "swiperBox",
36
- staticClass: "egd-swiper-box",
37
- on: {
38
- wheel: function(i) {
39
- return i.stopPropagation(), i.preventDefault(), t.onMouseWheel.apply(null, arguments);
40
- }
41
- }
42
- }, [s("div", {
43
- ref: "swiperContent",
44
- staticClass: "egd-swiper-content",
45
- style: t.swiperContentStyle
46
- }, [t._t("default")], 2)]), s("ElButton", {
47
- staticClass: "el-carousel__arrow el-carousel__arrow--right",
48
- attrs: {
49
- disabled: t.reachedRight,
50
- icon: "el-icon-arrow-right"
51
- },
52
- on: {
53
- click: t.clickRight
54
- }
55
- }), s("ResizeObserver", {
56
- on: {
57
- notify: t.resize
58
- }
59
- })], 1);
60
- }, m = [];
61
- const v = {
20
+ import { n as p } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
21
+ const f = {
62
22
  name: "Swiper",
63
23
  components: {
64
- ResizeObserver: p
24
+ ResizeObserver: u
65
25
  },
66
26
  data() {
67
27
  return {
@@ -96,63 +56,63 @@ const v = {
96
56
  this.swiperBoxWith = this.$refs.swiperBox.offsetWidth;
97
57
  },
98
58
  computeContentWidth() {
99
- let t = 0;
100
- const e = [], { children: s } = this.$refs.swiperContent;
59
+ let e = 0;
60
+ const t = [], { children: s } = this.$refs.swiperContent;
101
61
  Array.prototype.forEach.call(s, (i) => {
102
- const r = u(i);
103
- t += r, e.push(r);
104
- }), this.childrenWidth = e, this.swiperContentWidth = t;
62
+ const r = c(i);
63
+ e += r, t.push(r);
64
+ }), this.childrenWidth = t, this.swiperContentWidth = e;
105
65
  },
106
- updateDuration(t) {
107
- this.swiperContentStyle.transitionDuration = t ? "300ms" : "0ms";
66
+ updateDuration(e) {
67
+ this.swiperContentStyle.transitionDuration = e ? "300ms" : "0ms";
108
68
  },
109
- setTranslateX(t) {
110
- 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)`);
69
+ setTranslateX(e) {
70
+ this.swiperContentWidth <= this.swiperBoxWith || (e > 0 ? (this.translateX = 0, this.reachedLeft = !0, this.reachedRight = !1) : e - this.swiperBoxWith < -this.swiperContentWidth ? (this.translateX = -this.swiperContentWidth + this.swiperBoxWith, this.reachedLeft = !1, this.reachedRight = !0) : (this.translateX = e, this.reachedLeft = !1, this.reachedRight = !1), this.swiperContentStyle.transform = `translate3d(${this.translateX}px, 0px, 0px)`);
111
71
  },
112
72
  clickLeft() {
113
73
  this.updateDuration(!0);
114
- let t = this.translateX + this.swiperBoxWith, e = t;
115
- if (t < 0) {
116
- e = 0, t = -t;
117
- for (let s = 0, i = this.childrenWidth.length; s < i && (e += this.childrenWidth[s], !(e >= t)); s++)
74
+ let e = this.translateX + this.swiperBoxWith, t = e;
75
+ if (e < 0) {
76
+ t = 0, e = -e;
77
+ for (let s = 0, i = this.childrenWidth.length; s < i && (t += this.childrenWidth[s], !(t >= e)); s++)
118
78
  ;
119
- e = -e;
79
+ t = -t;
120
80
  }
121
- this.setTranslateX(e);
81
+ this.setTranslateX(t);
122
82
  },
123
83
  clickRight() {
124
84
  this.updateDuration(!0);
125
- const t = Math.abs(this.translateX - this.swiperBoxWith);
126
- let e = 0;
85
+ const e = Math.abs(this.translateX - this.swiperBoxWith);
86
+ let t = 0;
127
87
  for (let s = 0, i = this.childrenWidth.length; s < i; s++)
128
- if (e += this.childrenWidth[s], e >= t) {
129
- e > t && (e -= this.childrenWidth[s]);
88
+ if (t += this.childrenWidth[s], t >= e) {
89
+ t > e && (t -= this.childrenWidth[s]);
130
90
  break;
131
91
  }
132
- this.setTranslateX(-e);
92
+ this.setTranslateX(-t);
133
93
  },
134
- onMouseWheel(t) {
135
- 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);
94
+ onMouseWheel(e) {
95
+ this.updateDuration(!0), e.deltaMode === WheelEvent.DOM_DELTA_LINE ? this.setTranslateX(this.translateX - e.deltaY * 30) : e.deltaMode === WheelEvent.DOM_DELTA_PAGE ? e.deltaY > 0 ? this.clickRight() : this.clickLeft() : this.setTranslateX(this.translateX - e.deltaY);
136
96
  },
137
- onMouseDown(t) {
138
- 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 });
97
+ onMouseDown(e) {
98
+ this.mouseDown = !0, this.startX = e.clientX, this.translateXRaw = this.translateX, window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("mouseup", this.onMouseUp, { passive: !1 });
139
99
  },
140
- onMouseUp(t) {
100
+ onMouseUp(e) {
141
101
  this.mouseDown = !1, this.updateDuration(!0), this.$refs.swiperContent.addEventListener("transitionend", this.transitionend), this.$refs.swiperContent.addEventListener("webkitTransitionEnd", this.transitionend);
142
- const e = t.clientX - this.startX;
143
- if (e < 0) {
144
- const s = this.translateX + e;
102
+ const t = e.clientX - this.startX;
103
+ if (t < 0) {
104
+ const s = this.translateX + t;
145
105
  this.setTranslateX(s);
146
106
  }
147
- if (e > 0) {
148
- const s = this.translateX + e;
107
+ if (t > 0) {
108
+ const s = this.translateX + t;
149
109
  this.setTranslateX(s);
150
110
  }
151
111
  window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp);
152
112
  },
153
- onMouseMove(t) {
113
+ onMouseMove(e) {
154
114
  this.mouseDown && requestAnimationFrame(() => {
155
- const e = t.clientX - this.startX, s = this.translateXRaw + e;
115
+ const t = e.clientX - this.startX, s = this.translateXRaw + t;
156
116
  this.setTranslateX(s);
157
117
  });
158
118
  },
@@ -160,24 +120,23 @@ const v = {
160
120
  this.updateDuration(!1), this.$refs.swiperContent.removeEventListener("transitionend", this.transitionend), this.$refs.swiperContent.removeEventListener("webkitTransitionEnd", this.transitionend);
161
121
  }
162
122
  }
163
- }, l = {};
164
- var _ = /* @__PURE__ */ f(
165
- v,
123
+ };
124
+ var w = function() {
125
+ var t = this, s = t._self._c;
126
+ return s("div", { staticClass: "egd-swiper" }, [s("ElButton", { staticClass: "el-carousel__arrow el-carousel__arrow--left", attrs: { disabled: t.reachedLeft, icon: "el-icon-arrow-left" }, on: { click: t.clickLeft } }), s("div", { ref: "swiperBox", staticClass: "egd-swiper-box", on: { wheel: function(i) {
127
+ return i.stopPropagation(), i.preventDefault(), t.onMouseWheel.apply(null, arguments);
128
+ } } }, [s("div", { ref: "swiperContent", staticClass: "egd-swiper-content", style: t.swiperContentStyle }, [t._t("default")], 2)]), s("ElButton", { staticClass: "el-carousel__arrow el-carousel__arrow--right", attrs: { disabled: t.reachedRight, icon: "el-icon-arrow-right" }, on: { click: t.clickRight } }), s("ResizeObserver", { on: { notify: t.resize } })], 1);
129
+ }, m = [], _ = /* @__PURE__ */ p(
130
+ f,
166
131
  w,
167
132
  m,
168
133
  !1,
169
- X,
134
+ null,
170
135
  null,
171
136
  null,
172
137
  null
173
138
  );
174
- function X(t) {
175
- for (let e in l)
176
- this[e] = l[e];
177
- }
178
- const L = /* @__PURE__ */ function() {
179
- return _.exports;
180
- }();
139
+ const E = _.exports;
181
140
  export {
182
- L as default
141
+ E as default
183
142
  };
package/tab/index.mjs CHANGED
@@ -1,31 +1,8 @@
1
- import { p as a } from "../chunks/tab-mixin.e2b9c6a4.mjs";
2
- import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var o = function() {
4
- var t = this, r = t.$createElement, e = t._self._c || r;
5
- return e("div", {
6
- staticClass: "vux-tab-wrap",
7
- class: t.barPosition === "top" ? "vux-tab-bar-top" : ""
8
- }, [e("div", {
9
- staticClass: "vux-tab-container"
10
- }, [e("div", {
11
- ref: "nav",
12
- staticClass: "vux-tab",
13
- class: [{
14
- "vux-tab-no-animate": !t.animate,
15
- scrollable: t.scrollable
16
- }]
17
- }, [t._t("default"), t.animate ? e("div", {
18
- staticClass: "vux-tab-ink-bar",
19
- class: t.barClass,
20
- style: t.barStyle
21
- }, [t.customBarWidth ? e("span", {
22
- staticClass: "vux-tab-bar-inner",
23
- style: t.innerBarStyle
24
- }) : t._e()]) : t._e()], 2)])]);
25
- }, l = [];
26
- const c = {
1
+ import { p as n } from "../chunks/tab-mixin.e2b9c6a4.mjs";
2
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const s = {
27
4
  name: "Tab",
28
- mixins: [a],
5
+ mixins: [n],
29
6
  props: {
30
7
  lineWidth: {
31
8
  type: Number,
@@ -124,24 +101,21 @@ const c = {
124
101
  window.requestAnimationFrame(e);
125
102
  }
126
103
  }
127
- }, n = {};
128
- var h = /* @__PURE__ */ s(
129
- c,
104
+ };
105
+ var o = function() {
106
+ var r = this, e = r._self._c;
107
+ return e("div", { staticClass: "vux-tab-wrap", class: r.barPosition === "top" ? "vux-tab-bar-top" : "" }, [e("div", { staticClass: "vux-tab-container" }, [e("div", { ref: "nav", staticClass: "vux-tab", class: [{ "vux-tab-no-animate": !r.animate, scrollable: r.scrollable }] }, [r._t("default"), r.animate ? e("div", { staticClass: "vux-tab-ink-bar", class: r.barClass, style: r.barStyle }, [r.customBarWidth ? e("span", { staticClass: "vux-tab-bar-inner", style: r.innerBarStyle }) : r._e()]) : r._e()], 2)])]);
108
+ }, l = [], c = /* @__PURE__ */ a(
109
+ s,
130
110
  o,
131
111
  l,
132
112
  !1,
133
- u,
113
+ null,
134
114
  null,
135
115
  null,
136
116
  null
137
117
  );
138
- function u(t) {
139
- for (let r in n)
140
- this[r] = n[r];
141
- }
142
- const m = /* @__PURE__ */ function() {
143
- return h.exports;
144
- }();
118
+ const b = c.exports;
145
119
  export {
146
- m as default
120
+ b as default
147
121
  };
@@ -1,28 +1,8 @@
1
- import { c as n } from "../chunks/tab-mixin.e2b9c6a4.mjs";
2
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var o = function() {
4
- var e = this, t = e.$createElement, a = e._self._c || t;
5
- return a("div", {
6
- staticClass: "vux-tab-item",
7
- class: [e.currentSelected ? e.activeClass : "", {
8
- "vux-tab-selected": e.currentSelected,
9
- "vux-tab-disabled": e.disabled
10
- }],
11
- style: e.style,
12
- on: {
13
- click: e.onItemClick
14
- }
15
- }, [e._t("default"), typeof e.badgeLabel != "undefined" && e.badgeLabel !== "" ? a("span", {
16
- staticClass: "vux-tab-item-badge",
17
- style: {
18
- background: e.badgeBackground,
19
- color: e.badgeColor
20
- }
21
- }, [e._v(" " + e._s(e.badgeLabel) + " ")]) : e._e()], 2);
22
- }, s = [];
23
- const i = {
1
+ import { c as a } from "../chunks/tab-mixin.e2b9c6a4.mjs";
2
+ import { n as r } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const l = {
24
4
  name: "TabItem",
25
- mixins: [n],
5
+ mixins: [a],
26
6
  props: {
27
7
  activeClass: {
28
8
  type: String
@@ -50,24 +30,30 @@ const i = {
50
30
  };
51
31
  }
52
32
  }
53
- }, r = {};
54
- var d = /* @__PURE__ */ l(
55
- i,
56
- o,
33
+ };
34
+ var n = function() {
35
+ var e = this, t = e._self._c;
36
+ return t("div", { staticClass: "vux-tab-item", class: [
37
+ e.currentSelected ? e.activeClass : "",
38
+ {
39
+ "vux-tab-selected": e.currentSelected,
40
+ "vux-tab-disabled": e.disabled
41
+ }
42
+ ], style: e.style, on: { click: e.onItemClick } }, [e._t("default"), typeof e.badgeLabel != "undefined" && e.badgeLabel !== "" ? t("span", { staticClass: "vux-tab-item-badge", style: {
43
+ background: e.badgeBackground,
44
+ color: e.badgeColor
45
+ } }, [e._v(" " + e._s(e.badgeLabel) + " ")]) : e._e()], 2);
46
+ }, s = [], o = /* @__PURE__ */ r(
47
+ l,
48
+ n,
57
49
  s,
58
50
  !1,
59
- c,
51
+ null,
60
52
  null,
61
53
  null,
62
54
  null
63
55
  );
64
- function c(e) {
65
- for (let t in r)
66
- this[t] = r[t];
67
- }
68
- const p = /* @__PURE__ */ function() {
69
- return d.exports;
70
- }();
56
+ const b = o.exports;
71
57
  export {
72
- p as default
58
+ b as default
73
59
  };
@@ -1,17 +1,17 @@
1
- var u = Object.defineProperty, d = Object.defineProperties;
2
- var c = Object.getOwnPropertyDescriptors;
1
+ var s = Object.defineProperty, u = Object.defineProperties;
2
+ var d = Object.getOwnPropertyDescriptors;
3
3
  var o = Object.getOwnPropertySymbols;
4
- var f = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
5
- var i = (n, e, t) => e in n ? u(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, l = (n, e) => {
6
- for (var t in e || (e = {}))
7
- f.call(e, t) && i(n, t, e[t]);
4
+ var c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
5
+ var i = (t, e, n) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, l = (t, e) => {
6
+ for (var n in e || (e = {}))
7
+ c.call(e, n) && i(t, n, e[n]);
8
8
  if (o)
9
- for (var t of o(e))
10
- p.call(e, t) && i(n, t, e[t]);
11
- return n;
12
- }, r = (n, e) => d(n, c(e));
13
- import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
14
- const m = {
9
+ for (var n of o(e))
10
+ f.call(e, n) && i(t, n, e[n]);
11
+ return t;
12
+ }, r = (t, e) => u(t, d(e));
13
+ import { n as p } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
14
+ const g = {
15
15
  props: {
16
16
  type: {
17
17
  type: String,
@@ -61,46 +61,38 @@ const m = {
61
61
  default() {
62
62
  return ["ascending", "descending", null];
63
63
  },
64
- validator(n) {
65
- return n.every((e) => ["ascending", "descending", null].indexOf(e) > -1);
64
+ validator(t) {
65
+ return t.every((e) => ["ascending", "descending", null].indexOf(e) > -1);
66
66
  }
67
67
  }
68
68
  }
69
- }, _ = {
69
+ }, m = {
70
70
  name: "TableColumn",
71
71
  functional: !0,
72
- mixins: [m],
73
- render(n, { data: e, props: t, children: s }) {
74
- return n(
72
+ mixins: [g],
73
+ render(t, { data: e, props: n, children: a }) {
74
+ return t(
75
75
  "ElTableColumn",
76
76
  r(l({}, e), {
77
- props: r(l({}, t), {
78
- showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(t.type) ? !1 : t.showOverflowTooltip
77
+ props: r(l({}, n), {
78
+ showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(n.type) ? !1 : n.showOverflowTooltip
79
79
  })
80
80
  }),
81
- s
81
+ a
82
82
  );
83
83
  }
84
- };
85
- let y, S;
86
- const a = {};
87
- var v = /* @__PURE__ */ g(
88
- _,
84
+ }, y = null, S = null;
85
+ var b = /* @__PURE__ */ p(
86
+ m,
89
87
  y,
90
88
  S,
91
89
  !1,
92
- h,
90
+ null,
93
91
  null,
94
92
  null,
95
93
  null
96
94
  );
97
- function h(n) {
98
- for (let e in a)
99
- this[e] = a[e];
100
- }
101
- const x = /* @__PURE__ */ function() {
102
- return v.exports;
103
- }();
95
+ const w = b.exports;
104
96
  export {
105
- x as default
97
+ w as default
106
98
  };