@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
package/address-input/index.mjs
CHANGED
|
@@ -1,43 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
|
|
3
|
-
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
4
|
-
return t("div", {
|
|
5
|
-
staticClass: "address-input-wrapper flex-row"
|
|
6
|
-
}, [t("div", {
|
|
7
|
-
staticClass: "address-input-item-wrapper"
|
|
8
|
-
}, [t("ElCascader", {
|
|
9
|
-
attrs: {
|
|
10
|
-
options: e.options,
|
|
11
|
-
disabled: e.inputDisabled,
|
|
12
|
-
props: {
|
|
13
|
-
label: "name",
|
|
14
|
-
value: e.labelAsValue ? "name" : "id"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
model: {
|
|
18
|
-
value: e.internalVal.address,
|
|
19
|
-
callback: function(s) {
|
|
20
|
-
e.$set(e.internalVal, "address", s);
|
|
21
|
-
},
|
|
22
|
-
expression: "internalVal.address"
|
|
23
|
-
}
|
|
24
|
-
})], 1), t("div", {
|
|
25
|
-
staticClass: "address-input-item-wrapper flex-item"
|
|
26
|
-
}, [t("ElInput", {
|
|
27
|
-
attrs: {
|
|
28
|
-
placeholder: "请输入详细地址!",
|
|
29
|
-
disabled: e.inputDisabled
|
|
30
|
-
},
|
|
31
|
-
model: {
|
|
32
|
-
value: e.internalVal.detailAddress,
|
|
33
|
-
callback: function(s) {
|
|
34
|
-
e.$set(e.internalVal, "detailAddress", s);
|
|
35
|
-
},
|
|
36
|
-
expression: "internalVal.detailAddress"
|
|
37
|
-
}
|
|
38
|
-
})], 1)]);
|
|
39
|
-
}, n = [];
|
|
40
|
-
const i = {
|
|
1
|
+
import { n as d } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
|
+
const l = {
|
|
41
3
|
name: "AddressInput",
|
|
42
4
|
inject: {
|
|
43
5
|
elForm: {
|
|
@@ -78,36 +40,37 @@ const i = {
|
|
|
78
40
|
value: {
|
|
79
41
|
immediate: !0,
|
|
80
42
|
deep: !0,
|
|
81
|
-
handler(
|
|
82
|
-
|
|
43
|
+
handler(a) {
|
|
44
|
+
a && (this.internalVal.address = a.address, this.internalVal.detailAddress = a.detailAddress);
|
|
83
45
|
}
|
|
84
46
|
},
|
|
85
47
|
internalVal: {
|
|
86
48
|
immediate: !0,
|
|
87
49
|
deep: !0,
|
|
88
|
-
handler(
|
|
89
|
-
!
|
|
50
|
+
handler(a) {
|
|
51
|
+
!a.address && !a.detailAddress ? this.$emit("input", void 0) : this.$emit("input", a);
|
|
90
52
|
}
|
|
91
53
|
}
|
|
92
54
|
}
|
|
93
|
-
}
|
|
94
|
-
var
|
|
95
|
-
|
|
55
|
+
};
|
|
56
|
+
var r = function() {
|
|
57
|
+
var e = this, s = e._self._c;
|
|
58
|
+
return s("div", { staticClass: "address-input-wrapper flex-row" }, [s("div", { staticClass: "address-input-item-wrapper" }, [s("ElCascader", { attrs: { options: e.options, disabled: e.inputDisabled, props: { label: "name", value: e.labelAsValue ? "name" : "id" } }, model: { value: e.internalVal.address, callback: function(t) {
|
|
59
|
+
e.$set(e.internalVal, "address", t);
|
|
60
|
+
}, expression: "internalVal.address" } })], 1), s("div", { staticClass: "address-input-item-wrapper flex-item" }, [s("ElInput", { attrs: { placeholder: "请输入详细地址!", disabled: e.inputDisabled }, model: { value: e.internalVal.detailAddress, callback: function(t) {
|
|
61
|
+
e.$set(e.internalVal, "detailAddress", t);
|
|
62
|
+
}, expression: "internalVal.detailAddress" } })], 1)]);
|
|
63
|
+
}, i = [], n = /* @__PURE__ */ d(
|
|
64
|
+
l,
|
|
96
65
|
r,
|
|
97
|
-
|
|
66
|
+
i,
|
|
98
67
|
!1,
|
|
99
|
-
|
|
68
|
+
null,
|
|
100
69
|
null,
|
|
101
70
|
null,
|
|
102
71
|
null
|
|
103
72
|
);
|
|
104
|
-
|
|
105
|
-
for (let a in d)
|
|
106
|
-
this[a] = d[a];
|
|
107
|
-
}
|
|
108
|
-
const c = /* @__PURE__ */ function() {
|
|
109
|
-
return u.exports;
|
|
110
|
-
}();
|
|
73
|
+
const p = n.exports;
|
|
111
74
|
export {
|
|
112
|
-
|
|
75
|
+
p as default
|
|
113
76
|
};
|
package/affix/index.mjs
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
|
|
3
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
4
|
-
return s("div", [s("div", {
|
|
5
|
-
ref: "point",
|
|
6
|
-
class: {
|
|
7
|
-
affix: t.affix
|
|
8
|
-
},
|
|
9
|
-
style: t.styles
|
|
10
|
-
}, [t._t("default")], 2), s("div", {
|
|
11
|
-
directives: [{
|
|
12
|
-
name: "show",
|
|
13
|
-
rawName: "v-show",
|
|
14
|
-
value: t.slot,
|
|
15
|
-
expression: "slot"
|
|
16
|
-
}],
|
|
17
|
-
style: t.slotStyle
|
|
18
|
-
})]);
|
|
19
|
-
}, c = [];
|
|
20
|
-
const a = {
|
|
1
|
+
import { n as f } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
|
+
const r = {
|
|
21
3
|
name: "Affix",
|
|
22
4
|
props: {
|
|
23
5
|
target: String,
|
|
@@ -40,8 +22,8 @@ const a = {
|
|
|
40
22
|
},
|
|
41
23
|
computed: {
|
|
42
24
|
offsetType() {
|
|
43
|
-
let
|
|
44
|
-
return this.offsetBottom >= 0 && (
|
|
25
|
+
let s = "top";
|
|
26
|
+
return this.offsetBottom >= 0 && (s = "bottom"), s;
|
|
45
27
|
}
|
|
46
28
|
},
|
|
47
29
|
mounted() {
|
|
@@ -51,52 +33,49 @@ const a = {
|
|
|
51
33
|
this.container.removeEventListener("scroll", this.handleScroll, !1), this.container.removeEventListener("resize", this.handleScroll, !1);
|
|
52
34
|
},
|
|
53
35
|
methods: {
|
|
54
|
-
getScroll(
|
|
55
|
-
const
|
|
56
|
-
let o =
|
|
36
|
+
getScroll(s, t) {
|
|
37
|
+
const e = t ? "pageYOffset" : "pageXOffset", i = t ? "scrollTop" : "scrollLeft";
|
|
38
|
+
let o = s[e];
|
|
57
39
|
return typeof o != "number" && (o = document.documentElement[i]), o;
|
|
58
40
|
},
|
|
59
|
-
getOffset(
|
|
60
|
-
const
|
|
41
|
+
getOffset(s) {
|
|
42
|
+
const t = s.getBoundingClientRect(), e = this.getScroll(this.container, !0), i = this.getScroll(this.container), o = document.body, l = o.clientTop || 0, n = o.clientLeft || 0;
|
|
61
43
|
return {
|
|
62
|
-
top:
|
|
63
|
-
left:
|
|
44
|
+
top: t.top + e - l,
|
|
45
|
+
left: t.left + i - n
|
|
64
46
|
};
|
|
65
47
|
},
|
|
66
48
|
handleScroll() {
|
|
67
|
-
const
|
|
68
|
-
|
|
49
|
+
const s = this.affix, t = this.getScroll(this.container, !0), e = this.getOffset(this.$el), i = this.container.innerHeight, o = this.$el.getElementsByTagName("div")[0].offsetHeight;
|
|
50
|
+
e.top - this.offsetTop < t && this.offsetType === "top" && !s ? (this.affix = !0, this.slotStyle = {
|
|
69
51
|
width: `${this.$refs.point.clientWidth}px`,
|
|
70
52
|
height: `${this.$refs.point.clientHeight}px`
|
|
71
53
|
}, this.slot = !0, this.styles = {
|
|
72
54
|
top: `${this.offsetTop}px`,
|
|
73
|
-
left: `${
|
|
55
|
+
left: `${e.left}px`,
|
|
74
56
|
width: `${this.$el.offsetWidth}px`
|
|
75
|
-
}, this.$emit("on-change", !0)) :
|
|
57
|
+
}, this.$emit("on-change", !0)) : e.top - this.offsetTop > t && this.offsetType === "top" && s && (this.slot = !1, this.slotStyle = {}, this.affix = !1, this.styles = null, this.$emit("on-change", !1)), e.top + this.offsetBottom + o > t + i && this.offsetType === "bottom" && !s ? (this.affix = !0, this.styles = {
|
|
76
58
|
bottom: `${this.offsetBottom}px`,
|
|
77
|
-
left: `${
|
|
59
|
+
left: `${e.left}px`,
|
|
78
60
|
width: `${this.$el.offsetWidth}px`
|
|
79
|
-
}, this.$emit("on-change", !0)) :
|
|
61
|
+
}, this.$emit("on-change", !0)) : e.top + this.offsetBottom + o < t + i && this.offsetType === "bottom" && s && (this.affix = !1, this.styles = null, this.$emit("on-change", !1));
|
|
80
62
|
}
|
|
81
63
|
}
|
|
82
|
-
}
|
|
83
|
-
var
|
|
84
|
-
|
|
64
|
+
};
|
|
65
|
+
var h = function() {
|
|
66
|
+
var t = this, e = t._self._c;
|
|
67
|
+
return e("div", [e("div", { ref: "point", class: { affix: t.affix }, style: t.styles }, [t._t("default")], 2), e("div", { directives: [{ name: "show", rawName: "v-show", value: t.slot, expression: "slot" }], style: t.slotStyle })]);
|
|
68
|
+
}, c = [], a = /* @__PURE__ */ f(
|
|
69
|
+
r,
|
|
85
70
|
h,
|
|
86
71
|
c,
|
|
87
72
|
!1,
|
|
88
|
-
|
|
73
|
+
null,
|
|
89
74
|
null,
|
|
90
75
|
null,
|
|
91
76
|
null
|
|
92
77
|
);
|
|
93
|
-
|
|
94
|
-
for (let e in l)
|
|
95
|
-
this[e] = l[e];
|
|
96
|
-
}
|
|
97
|
-
const m = /* @__PURE__ */ function() {
|
|
98
|
-
return p.exports;
|
|
99
|
-
}();
|
|
78
|
+
const d = a.exports;
|
|
100
79
|
export {
|
|
101
|
-
|
|
80
|
+
d as default
|
|
102
81
|
};
|
package/aside-menu/index.mjs
CHANGED
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
|
|
3
|
-
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
4
|
-
return s("div", {
|
|
5
|
-
staticStyle: {
|
|
6
|
-
"padding-top": "4px"
|
|
7
|
-
}
|
|
8
|
-
}, e._l(e.menu, function(n) {
|
|
9
|
-
return s("div", {
|
|
10
|
-
key: n.key,
|
|
11
|
-
staticClass: "aside-menu-item hover-active",
|
|
12
|
-
class: {
|
|
13
|
-
active: e.$route.path === n.path
|
|
14
|
-
},
|
|
15
|
-
on: {
|
|
16
|
-
click: function(l) {
|
|
17
|
-
return e.$router.push(n.path);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}, [e._t("default", function() {
|
|
21
|
-
return [s("i", {
|
|
22
|
-
staticClass: "egd-icon-common",
|
|
23
|
-
class: n.icon
|
|
24
|
-
}), e._v(" " + e._s(n.label) + " ")];
|
|
25
|
-
}, {
|
|
26
|
-
item: n
|
|
27
|
-
})], 2);
|
|
28
|
-
}), 0);
|
|
29
|
-
}, c = [];
|
|
30
|
-
const u = {
|
|
1
|
+
import { n as s } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
|
+
const a = {
|
|
31
3
|
name: "AsideMenu",
|
|
32
4
|
props: {
|
|
33
5
|
menu: {
|
|
@@ -35,24 +7,27 @@ const u = {
|
|
|
35
7
|
default: () => []
|
|
36
8
|
}
|
|
37
9
|
}
|
|
38
|
-
}
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
10
|
+
};
|
|
11
|
+
var r = function() {
|
|
12
|
+
var e = this, t = e._self._c;
|
|
13
|
+
return t("div", { staticStyle: { "padding-top": "4px" } }, e._l(e.menu, function(n) {
|
|
14
|
+
return t("div", { key: n.key, staticClass: "aside-menu-item hover-active", class: { active: e.$route.path === n.path }, on: { click: function(l) {
|
|
15
|
+
return e.$router.push(n.path);
|
|
16
|
+
} } }, [e._t("default", function() {
|
|
17
|
+
return [t("i", { staticClass: "egd-icon-common", class: n.icon }), e._v(" " + e._s(n.label) + " ")];
|
|
18
|
+
}, { item: n })], 2);
|
|
19
|
+
}), 0);
|
|
20
|
+
}, c = [], o = /* @__PURE__ */ s(
|
|
21
|
+
a,
|
|
22
|
+
r,
|
|
42
23
|
c,
|
|
43
24
|
!1,
|
|
44
|
-
|
|
25
|
+
null,
|
|
45
26
|
null,
|
|
46
27
|
null,
|
|
47
28
|
null
|
|
48
29
|
);
|
|
49
|
-
|
|
50
|
-
for (let t in r)
|
|
51
|
-
this[t] = r[t];
|
|
52
|
-
}
|
|
53
|
-
const p = /* @__PURE__ */ function() {
|
|
54
|
-
return i.exports;
|
|
55
|
-
}();
|
|
30
|
+
const i = o.exports;
|
|
56
31
|
export {
|
|
57
|
-
|
|
32
|
+
i as default
|
|
58
33
|
};
|
package/avatar/index.mjs
CHANGED
|
@@ -1,34 +1,15 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
|
|
3
|
-
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
4
|
-
return s("span", {
|
|
5
|
-
class: ["avue-avatar", e.sizeCls, "avue-avatar__icon"],
|
|
6
|
-
style: e.sizeStyle
|
|
7
|
-
}, [e.src ? s("img", {
|
|
8
|
-
staticClass: "avue-avatar__images",
|
|
9
|
-
attrs: {
|
|
10
|
-
src: e.src,
|
|
11
|
-
alt: ""
|
|
12
|
-
}
|
|
13
|
-
}) : e.icon ? s("i", {
|
|
14
|
-
class: e.icon
|
|
15
|
-
}) : s("span", {
|
|
16
|
-
ref: "avatarChildren",
|
|
17
|
-
staticClass: "avue-avatar__string",
|
|
18
|
-
style: e.sizeChildrenStyle
|
|
19
|
-
}, [e._t("default")], 2)]);
|
|
20
|
-
}, l = [];
|
|
21
|
-
const i = "avue-avatar", c = {
|
|
1
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
|
+
const a = "avue-avatar", r = {
|
|
22
3
|
name: "Avatar",
|
|
23
4
|
props: {
|
|
24
5
|
src: String,
|
|
25
6
|
shape: {
|
|
26
|
-
validator: (
|
|
7
|
+
validator: (t) => ["circle", "square"].includes(t),
|
|
27
8
|
type: String,
|
|
28
9
|
default: "circle"
|
|
29
10
|
},
|
|
30
11
|
size: {
|
|
31
|
-
validator: (
|
|
12
|
+
validator: (t) => typeof t == "number" || ["small", "large", "default"].includes(t),
|
|
32
13
|
default: "default"
|
|
33
14
|
},
|
|
34
15
|
icon: String
|
|
@@ -40,19 +21,19 @@ const i = "avue-avatar", c = {
|
|
|
40
21
|
},
|
|
41
22
|
computed: {
|
|
42
23
|
sizeChildrenStyle() {
|
|
43
|
-
let
|
|
44
|
-
const
|
|
45
|
-
return
|
|
46
|
-
msTransform:
|
|
47
|
-
WebkitTransform:
|
|
48
|
-
transform:
|
|
49
|
-
}, typeof size == "number" && (
|
|
24
|
+
let t = {};
|
|
25
|
+
const e = `scale(${this.scale}) translateX(-50%)`;
|
|
26
|
+
return t = {
|
|
27
|
+
msTransform: e,
|
|
28
|
+
WebkitTransform: e,
|
|
29
|
+
transform: e
|
|
30
|
+
}, typeof size == "number" && (t.lineHeight = `${this.size}px`), t;
|
|
50
31
|
},
|
|
51
32
|
sizeCls() {
|
|
52
33
|
return {
|
|
53
|
-
[`${
|
|
54
|
-
[`${
|
|
55
|
-
[`${
|
|
34
|
+
[`${a}--${this.shape}`]: this.shape,
|
|
35
|
+
[`${a}--lg`]: this.size === "large",
|
|
36
|
+
[`${a}--sm`]: this.size === "small"
|
|
56
37
|
};
|
|
57
38
|
},
|
|
58
39
|
sizeStyle() {
|
|
@@ -76,31 +57,28 @@ const i = "avue-avatar", c = {
|
|
|
76
57
|
},
|
|
77
58
|
methods: {
|
|
78
59
|
setScale() {
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
81
|
-
const
|
|
82
|
-
s - 8 <
|
|
60
|
+
const t = this.$refs.avatarChildren;
|
|
61
|
+
if (t) {
|
|
62
|
+
const e = t.offsetWidth, s = this.$el.getBoundingClientRect().width;
|
|
63
|
+
s - 8 < e ? this.scale = (s - 8) / e : this.scale = 1;
|
|
83
64
|
}
|
|
84
65
|
}
|
|
85
66
|
}
|
|
86
|
-
}
|
|
87
|
-
var
|
|
88
|
-
|
|
67
|
+
};
|
|
68
|
+
var n = function() {
|
|
69
|
+
var e = this, s = e._self._c;
|
|
70
|
+
return s("span", { class: ["avue-avatar", e.sizeCls, "avue-avatar__icon"], style: e.sizeStyle }, [e.src ? s("img", { staticClass: "avue-avatar__images", attrs: { src: e.src, alt: "" } }) : e.icon ? s("i", { class: e.icon }) : s("span", { ref: "avatarChildren", staticClass: "avue-avatar__string", style: e.sizeChildrenStyle }, [e._t("default")], 2)]);
|
|
71
|
+
}, l = [], c = /* @__PURE__ */ i(
|
|
72
|
+
r,
|
|
89
73
|
n,
|
|
90
74
|
l,
|
|
91
75
|
!1,
|
|
92
|
-
|
|
76
|
+
null,
|
|
93
77
|
null,
|
|
94
78
|
null,
|
|
95
79
|
null
|
|
96
80
|
);
|
|
97
|
-
|
|
98
|
-
for (let t in a)
|
|
99
|
-
this[t] = a[t];
|
|
100
|
-
}
|
|
101
|
-
const d = /* @__PURE__ */ function() {
|
|
102
|
-
return o.exports;
|
|
103
|
-
}();
|
|
81
|
+
const o = c.exports;
|
|
104
82
|
export {
|
|
105
|
-
|
|
83
|
+
o as default
|
|
106
84
|
};
|
package/awesome-button/index.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var c = (o, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var g = Object.defineProperty, h = Object.defineProperties;
|
|
2
|
+
var _ = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var r = Object.getOwnPropertySymbols;
|
|
4
|
+
var y = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var c = (o, t, n) => t in o ? g(o, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[t] = n, p = (o, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
y.call(t, n) && c(o, n, t[n]);
|
|
8
|
+
if (r)
|
|
9
|
+
for (var n of r(t))
|
|
10
|
+
B.call(t, n) && c(o, n, t[n]);
|
|
11
11
|
return o;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var f = (
|
|
12
|
+
}, d = (o, t) => h(o, _(t));
|
|
13
|
+
var u = (o, t, n) => new Promise((s, l) => {
|
|
14
|
+
var f = (e) => {
|
|
15
15
|
try {
|
|
16
|
-
i(
|
|
17
|
-
} catch (
|
|
18
|
-
a
|
|
16
|
+
i(n.next(e));
|
|
17
|
+
} catch (a) {
|
|
18
|
+
l(a);
|
|
19
19
|
}
|
|
20
|
-
}, m = (
|
|
20
|
+
}, m = (e) => {
|
|
21
21
|
try {
|
|
22
|
-
i(
|
|
23
|
-
} catch (
|
|
24
|
-
a
|
|
22
|
+
i(n.throw(e));
|
|
23
|
+
} catch (a) {
|
|
24
|
+
l(a);
|
|
25
25
|
}
|
|
26
|
-
}, i = (
|
|
27
|
-
i((
|
|
26
|
+
}, i = (e) => e.done ? s(e.value) : Promise.resolve(e.value).then(f, m);
|
|
27
|
+
i((n = n.apply(o, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import { isFunction as x, error as S } from "@web-utils/core";
|
|
30
|
-
import { n as k } from "../chunks/
|
|
30
|
+
import { n as k } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
31
31
|
const L = {
|
|
32
32
|
props: {
|
|
33
33
|
type: {
|
|
@@ -65,48 +65,40 @@ const L = {
|
|
|
65
65
|
},
|
|
66
66
|
methods: {
|
|
67
67
|
onClick(o) {
|
|
68
|
-
return
|
|
68
|
+
return u(this, null, function* () {
|
|
69
69
|
this.isLoading = !0;
|
|
70
70
|
const { click: t } = this.$listeners;
|
|
71
71
|
if (x(t))
|
|
72
72
|
try {
|
|
73
73
|
yield t(o);
|
|
74
|
-
} catch (
|
|
75
|
-
S.call(this,
|
|
74
|
+
} catch (n) {
|
|
75
|
+
S.call(this, n);
|
|
76
76
|
}
|
|
77
77
|
this.isLoading = !1;
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
render(o) {
|
|
82
|
-
var
|
|
83
|
-
const t = (s = (
|
|
82
|
+
var n, s;
|
|
83
|
+
const t = (s = (n = this.$scopedSlots).default) == null ? void 0 : s.call(n);
|
|
84
84
|
return o(
|
|
85
85
|
"ElButton",
|
|
86
|
-
{ on: { click: this.onClick }, props: p(
|
|
86
|
+
{ on: { click: this.onClick }, props: d(p({}, this.$props), { disabled: this.isLoading }) },
|
|
87
87
|
t && (t[0].tag || t[0].text) ? t : this.text
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const _ = {};
|
|
93
|
-
var $ = /* @__PURE__ */ k(
|
|
90
|
+
}, v = null, w = null;
|
|
91
|
+
var C = /* @__PURE__ */ k(
|
|
94
92
|
b,
|
|
93
|
+
v,
|
|
95
94
|
w,
|
|
96
|
-
C,
|
|
97
95
|
!1,
|
|
98
|
-
|
|
96
|
+
null,
|
|
99
97
|
null,
|
|
100
98
|
null,
|
|
101
99
|
null
|
|
102
100
|
);
|
|
103
|
-
|
|
104
|
-
for (let t in _)
|
|
105
|
-
this[t] = _[t];
|
|
106
|
-
}
|
|
107
|
-
const E = /* @__PURE__ */ function() {
|
|
108
|
-
return $.exports;
|
|
109
|
-
}();
|
|
101
|
+
const F = C.exports;
|
|
110
102
|
export {
|
|
111
|
-
|
|
103
|
+
F as default
|
|
112
104
|
};
|
package/capsule-tab/index.mjs
CHANGED
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
|
|
3
|
-
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
4
|
-
return a("ul", {
|
|
5
|
-
staticClass: "capsule-tab"
|
|
6
|
-
}, e._l(e.tabs, function(n) {
|
|
7
|
-
return a("li", {
|
|
8
|
-
key: n.value,
|
|
9
|
-
class: ["tab-item", {
|
|
10
|
-
active: e.value === n.value,
|
|
11
|
-
single: e.tabs.length === 1
|
|
12
|
-
}],
|
|
13
|
-
on: {
|
|
14
|
-
click: function(i) {
|
|
15
|
-
return e.$emit("input", n.value);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}, [e._v(" " + e._s(n.label) + " ")]);
|
|
19
|
-
}), 0);
|
|
20
|
-
}, r = [];
|
|
21
|
-
const _ = {
|
|
1
|
+
import { n as l } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
|
+
const t = {
|
|
22
3
|
name: "CapsuleTab",
|
|
23
4
|
props: {
|
|
24
5
|
tabs: {
|
|
@@ -29,24 +10,25 @@ const _ = {
|
|
|
29
10
|
type: String
|
|
30
11
|
}
|
|
31
12
|
}
|
|
32
|
-
}
|
|
33
|
-
var
|
|
34
|
-
|
|
13
|
+
};
|
|
14
|
+
var s = function() {
|
|
15
|
+
var e = this, n = e._self._c;
|
|
16
|
+
return n("ul", { staticClass: "capsule-tab" }, e._l(e.tabs, function(a) {
|
|
17
|
+
return n("li", { key: a.value, class: ["tab-item", { active: e.value === a.value, single: e.tabs.length === 1 }], on: { click: function(c) {
|
|
18
|
+
return e.$emit("input", a.value);
|
|
19
|
+
} } }, [e._v(" " + e._s(a.label) + " ")]);
|
|
20
|
+
}), 0);
|
|
21
|
+
}, u = [], r = /* @__PURE__ */ l(
|
|
22
|
+
t,
|
|
23
|
+
s,
|
|
35
24
|
u,
|
|
36
|
-
r,
|
|
37
25
|
!1,
|
|
38
|
-
|
|
26
|
+
null,
|
|
39
27
|
null,
|
|
40
28
|
null,
|
|
41
29
|
null
|
|
42
30
|
);
|
|
43
|
-
|
|
44
|
-
for (let t in l)
|
|
45
|
-
this[t] = l[t];
|
|
46
|
-
}
|
|
47
|
-
const p = /* @__PURE__ */ function() {
|
|
48
|
-
return c.exports;
|
|
49
|
-
}();
|
|
31
|
+
const i = r.exports;
|
|
50
32
|
export {
|
|
51
|
-
|
|
33
|
+
i as default
|
|
52
34
|
};
|