@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.
- package/address-input/index.mjs +20 -57
- package/affix/index.mjs +26 -47
- package/aside-menu/index.mjs +18 -43
- package/avatar/index.mjs +27 -49
- package/awesome-button/index.mjs +35 -43
- package/capsule-tab/index.mjs +16 -34
- package/card/index.mjs +21 -76
- package/carousel/index.mjs +14 -49
- package/chat/index.mjs +104 -414
- package/chunk-file-uploader/index.mjs +21 -38
- package/chunks/FormTemp.aa57efb4.mjs +125 -0
- package/code-mirror-editor/index.mjs +69 -79
- package/color-picker/index.mjs +29 -60
- package/comment/index.mjs +17 -48
- package/confirm-button/index.mjs +11 -19
- package/confirmable/index.mjs +12 -20
- package/context-menu/index.mjs +42 -144
- package/count-up/index.mjs +18 -25
- package/custom-scrollbar/index.mjs +13 -22
- package/data-box/index.mjs +15 -66
- package/data-card/index.mjs +16 -65
- package/data-cardtext/index.mjs +16 -52
- package/data-display/index.mjs +18 -62
- package/data-icons/index.mjs +16 -68
- package/data-imgtext/index.mjs +18 -79
- package/data-operatext/index.mjs +18 -75
- package/data-panel/index.mjs +16 -63
- package/data-pay/index.mjs +20 -122
- package/data-price/index.mjs +18 -60
- package/data-progress/index.mjs +16 -67
- package/data-rotate/index.mjs +16 -66
- package/data-table-picker/index.mjs +25 -88
- package/data-tabs/index.mjs +16 -64
- package/dialog-form/index.mjs +48 -94
- package/dynamic-table/index.mjs +43 -127
- package/e-charts/index.mjs +21 -34
- package/easy-popup/index.mjs +35 -61
- package/editable-progress/index.mjs +22 -77
- package/editable-tree/index.mjs +235 -546
- package/egd-collapse/index.mjs +13 -26
- package/egd-collapse-item/index.mjs +27 -87
- package/element-dialog/index.mjs +69 -133
- package/empty-view/index.mjs +13 -33
- package/error-view/index.mjs +14 -34
- package/flex-column/index.mjs +15 -23
- package/flex-item/index.mjs +18 -26
- package/flex-row/index.mjs +23 -31
- package/flex-scroller/index.mjs +16 -27
- package/flow/index.mjs +70 -110
- package/flow-designer/index.mjs +1215 -4804
- package/flow-node/index.mjs +15 -51
- package/flow-viewer/index.mjs +64 -89
- package/form-block/index.mjs +43 -62
- package/form-button/index.mjs +10 -18
- package/form-cascader/index.mjs +49 -100
- package/form-checkbox-group/index.mjs +43 -110
- package/form-date-picker/index.mjs +51 -97
- package/form-holder/index.mjs +25 -42
- package/form-input/index.mjs +40 -90
- package/form-input-email/index.mjs +35 -79
- package/form-input-id-card/index.mjs +40 -87
- package/form-input-number/index.mjs +42 -102
- package/form-input-phone-number/index.mjs +34 -75
- package/form-input-tag/index.mjs +31 -73
- package/form-input-time/index.mjs +42 -87
- package/form-item/index.mjs +70 -89
- package/form-item-config-provider/index.mjs +12 -20
- package/form-item-group/index.mjs +46 -65
- package/form-radio-group/index.mjs +50 -108
- package/form-select/index.mjs +44 -95
- package/form-switch/index.mjs +38 -85
- package/form-textarea/index.mjs +31 -75
- package/form-view/index.mjs +112 -260
- package/fy-array/index.mjs +35 -121
- package/fy-article/index.mjs +12 -43
- package/fy-cascader/index.mjs +26 -67
- package/fy-checkbox/index.mjs +27 -77
- package/fy-code/index.mjs +19 -33
- package/fy-curd/index.mjs +810 -2017
- package/fy-date/index.mjs +18 -59
- package/fy-draggable/index.mjs +81 -140
- package/fy-dynamic/index.mjs +85 -204
- package/fy-empty/index.mjs +14 -35
- package/fy-form/index.mjs +254 -571
- package/fy-form-design/index.mjs +1489 -6084
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +34 -104
- package/fy-input-color/index.mjs +22 -67
- package/fy-input-icon/index.mjs +37 -122
- package/fy-input-map/index.mjs +57 -149
- package/fy-input-number/index.mjs +18 -53
- package/fy-input-table/index.mjs +36 -102
- package/fy-input-tree/index.mjs +51 -138
- package/fy-progress/index.mjs +12 -31
- package/fy-radio/index.mjs +20 -51
- package/fy-rate/index.mjs +18 -51
- package/fy-select/index.mjs +49 -134
- package/fy-slider/index.mjs +19 -52
- package/fy-switch/index.mjs +18 -48
- package/fy-tabs/index.mjs +19 -51
- package/fy-time/index.mjs +22 -62
- package/fy-title/index.mjs +14 -25
- package/fy-tree/index.mjs +74 -216
- package/fy-u-editor/index.mjs +50 -64
- package/fy-upload/index.mjs +167 -338
- package/guide-steps/index.mjs +33 -53
- package/highlight-j-s/index.mjs +13 -27
- package/icon-card/index.mjs +12 -36
- package/icon-temp/index.mjs +12 -34
- package/iframe-window/index.mjs +13 -40
- package/image-cropper/index.mjs +46 -171
- package/image-preview/index.mjs +54 -168
- package/image-viewer/index.mjs +24 -50
- package/index.css +1 -0
- package/index.mjs +3973 -501
- package/input-number/index.mjs +84 -173
- package/input-number-range/index.mjs +20 -70
- package/j-s-x-component/index.mjs +3 -3
- package/keep-view-alive/index.mjs +47 -55
- package/keyboard/index.mjs +100 -113
- package/license/index.mjs +34 -51
- package/loading-view/index.mjs +14 -34
- package/login/index.mjs +33 -161
- package/monaco-editor/index.mjs +13 -21
- package/name-avatar/index.mjs +13 -32
- package/nav-bar/index.mjs +12 -31
- package/not-implement/index.mjs +14 -25
- package/notice/index.mjs +32 -80
- package/package.json +1 -1
- package/page/index.mjs +11 -23
- package/page-header/index.mjs +16 -37
- package/page-index/index.mjs +42 -93
- package/page-index-top/index.mjs +42 -84
- package/page-skeleton/index.mjs +24 -39
- package/page-skeleton-new/index.mjs +21 -68
- package/pageable-table/index.mjs +105 -227
- package/pageable-view/index.mjs +30 -83
- package/photo-swipe/index.mjs +62 -87
- package/present-view/index.mjs +114 -267
- package/queue/index.mjs +14 -29
- package/record-video/index.mjs +29 -66
- package/resize-observer/index.mjs +18 -30
- package/search/index.mjs +47 -81
- package/search-popover/index.mjs +57 -329
- package/sign/index.mjs +43 -60
- package/sign-panel/index.mjs +40 -151
- package/skeleton/index.mjs +18 -44
- package/split-pane/index.mjs +45 -129
- package/stateful/index.mjs +18 -26
- package/static-pageable-table/index.mjs +18 -44
- package/swiper/index.mjs +53 -94
- package/tab/index.mjs +13 -39
- package/tab-item/index.mjs +23 -37
- package/table-column/index.mjs +27 -35
- package/table-view/index.mjs +89 -209
- package/tag-render/index.mjs +34 -69
- package/text-ellipsis/index.mjs +22 -47
- package/tinymce-editor/index.mjs +174 -285
- package/toolbar/index.mjs +21 -42
- package/toolbar-button/index.mjs +25 -54
- package/verify/index.mjs +16 -29
- package/vue-cron/index.mjs +272 -1089
- package/vue-qr-code/index.mjs +19 -27
- package/vue-quill-editor/index.mjs +15 -27
- package/vue-tags-input/index.mjs +104 -224
- package/vue-tree-select/index.mjs +595 -742
- package/vue-video-player/index.mjs +42 -57
- package/watermark/index.mjs +27 -35
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +50 -112
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
|
@@ -1,33 +1,6 @@
|
|
|
1
|
-
import { chunk as
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
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 =
|
|
42
|
+
this.records = r(this.rows, this.page.limit)[this.page.page - 1];
|
|
70
43
|
}
|
|
71
44
|
}
|
|
72
|
-
}
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
58
|
+
null,
|
|
79
59
|
null,
|
|
80
60
|
null,
|
|
81
61
|
null
|
|
82
62
|
);
|
|
83
|
-
|
|
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
|
-
|
|
65
|
+
_ as default
|
|
92
66
|
};
|
package/swiper/index.mjs
CHANGED
|
@@ -1,67 +1,27 @@
|
|
|
1
|
-
var h = (
|
|
2
|
-
var
|
|
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
|
-
},
|
|
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(
|
|
15
|
-
a((s = s.apply(
|
|
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
|
|
18
|
-
import
|
|
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
|
|
21
|
-
|
|
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:
|
|
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
|
|
100
|
-
const
|
|
59
|
+
let e = 0;
|
|
60
|
+
const t = [], { children: s } = this.$refs.swiperContent;
|
|
101
61
|
Array.prototype.forEach.call(s, (i) => {
|
|
102
|
-
const r =
|
|
103
|
-
|
|
104
|
-
}), this.childrenWidth =
|
|
62
|
+
const r = c(i);
|
|
63
|
+
e += r, t.push(r);
|
|
64
|
+
}), this.childrenWidth = t, this.swiperContentWidth = e;
|
|
105
65
|
},
|
|
106
|
-
updateDuration(
|
|
107
|
-
this.swiperContentStyle.transitionDuration =
|
|
66
|
+
updateDuration(e) {
|
|
67
|
+
this.swiperContentStyle.transitionDuration = e ? "300ms" : "0ms";
|
|
108
68
|
},
|
|
109
|
-
setTranslateX(
|
|
110
|
-
this.swiperContentWidth <= this.swiperBoxWith || (
|
|
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
|
|
115
|
-
if (
|
|
116
|
-
|
|
117
|
-
for (let s = 0, i = this.childrenWidth.length; s < i && (
|
|
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
|
-
|
|
79
|
+
t = -t;
|
|
120
80
|
}
|
|
121
|
-
this.setTranslateX(
|
|
81
|
+
this.setTranslateX(t);
|
|
122
82
|
},
|
|
123
83
|
clickRight() {
|
|
124
84
|
this.updateDuration(!0);
|
|
125
|
-
const
|
|
126
|
-
let
|
|
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 (
|
|
129
|
-
|
|
88
|
+
if (t += this.childrenWidth[s], t >= e) {
|
|
89
|
+
t > e && (t -= this.childrenWidth[s]);
|
|
130
90
|
break;
|
|
131
91
|
}
|
|
132
|
-
this.setTranslateX(-
|
|
92
|
+
this.setTranslateX(-t);
|
|
133
93
|
},
|
|
134
|
-
onMouseWheel(
|
|
135
|
-
this.updateDuration(!0),
|
|
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(
|
|
138
|
-
this.mouseDown = !0, this.startX =
|
|
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(
|
|
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
|
|
143
|
-
if (
|
|
144
|
-
const s = this.translateX +
|
|
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 (
|
|
148
|
-
const s = this.translateX +
|
|
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(
|
|
113
|
+
onMouseMove(e) {
|
|
154
114
|
this.mouseDown && requestAnimationFrame(() => {
|
|
155
|
-
const
|
|
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
|
-
}
|
|
164
|
-
var
|
|
165
|
-
|
|
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
|
-
|
|
134
|
+
null,
|
|
170
135
|
null,
|
|
171
136
|
null,
|
|
172
137
|
null
|
|
173
138
|
);
|
|
174
|
-
|
|
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
|
-
|
|
141
|
+
E as default
|
|
183
142
|
};
|
package/tab/index.mjs
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
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: [
|
|
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
|
-
}
|
|
128
|
-
var
|
|
129
|
-
|
|
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
|
-
|
|
113
|
+
null,
|
|
134
114
|
null,
|
|
135
115
|
null,
|
|
136
116
|
null
|
|
137
117
|
);
|
|
138
|
-
|
|
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
|
-
|
|
120
|
+
b as default
|
|
147
121
|
};
|
package/tab-item/index.mjs
CHANGED
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
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: [
|
|
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
|
-
}
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
51
|
+
null,
|
|
60
52
|
null,
|
|
61
53
|
null,
|
|
62
54
|
null
|
|
63
55
|
);
|
|
64
|
-
|
|
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
|
-
|
|
58
|
+
b as default
|
|
73
59
|
};
|
package/table-column/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var s = Object.defineProperty, u = Object.defineProperties;
|
|
2
|
+
var d = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var o = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var i = (
|
|
6
|
-
for (var
|
|
7
|
-
|
|
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
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, r = (
|
|
13
|
-
import { n as
|
|
14
|
-
const
|
|
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(
|
|
65
|
-
return
|
|
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: [
|
|
73
|
-
render(
|
|
74
|
-
return
|
|
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({},
|
|
78
|
-
showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(
|
|
77
|
+
props: r(l({}, n), {
|
|
78
|
+
showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(n.type) ? !1 : n.showOverflowTooltip
|
|
79
79
|
})
|
|
80
80
|
}),
|
|
81
|
-
|
|
81
|
+
a
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
90
|
+
null,
|
|
93
91
|
null,
|
|
94
92
|
null,
|
|
95
93
|
null
|
|
96
94
|
);
|
|
97
|
-
|
|
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
|
-
|
|
97
|
+
w as default
|
|
106
98
|
};
|