@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,43 +1,5 @@
1
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var r = function() {
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(e) {
82
- e && (this.internalVal.address = e.address, this.internalVal.detailAddress = e.detailAddress);
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(e) {
89
- !e.address && !e.detailAddress ? this.$emit("input", void 0) : this.$emit("input", e);
50
+ handler(a) {
51
+ !a.address && !a.detailAddress ? this.$emit("input", void 0) : this.$emit("input", a);
90
52
  }
91
53
  }
92
54
  }
93
- }, d = {};
94
- var u = /* @__PURE__ */ l(
95
- i,
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
- n,
66
+ i,
98
67
  !1,
99
- o,
68
+ null,
100
69
  null,
101
70
  null,
102
71
  null
103
72
  );
104
- function o(e) {
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
- c as default
75
+ p as default
113
76
  };
package/affix/index.mjs CHANGED
@@ -1,23 +1,5 @@
1
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var h = function() {
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 t = "top";
44
- return this.offsetBottom >= 0 && (t = "bottom"), t;
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(t, e) {
55
- const s = e ? "pageYOffset" : "pageXOffset", i = e ? "scrollTop" : "scrollLeft";
56
- let o = t[s];
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(t) {
60
- const e = t.getBoundingClientRect(), s = this.getScroll(this.container, !0), i = this.getScroll(this.container), o = document.body, n = o.clientTop || 0, f = o.clientLeft || 0;
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: e.top + s - n,
63
- left: e.left + i - f
44
+ top: t.top + e - l,
45
+ left: t.left + i - n
64
46
  };
65
47
  },
66
48
  handleScroll() {
67
- const t = this.affix, e = this.getScroll(this.container, !0), s = this.getOffset(this.$el), i = this.container.innerHeight, o = this.$el.getElementsByTagName("div")[0].offsetHeight;
68
- s.top - this.offsetTop < e && this.offsetType === "top" && !t ? (this.affix = !0, this.slotStyle = {
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: `${s.left}px`,
55
+ left: `${e.left}px`,
74
56
  width: `${this.$el.offsetWidth}px`
75
- }, this.$emit("on-change", !0)) : s.top - this.offsetTop > e && this.offsetType === "top" && t && (this.slot = !1, this.slotStyle = {}, this.affix = !1, this.styles = null, this.$emit("on-change", !1)), s.top + this.offsetBottom + o > e + i && this.offsetType === "bottom" && !t ? (this.affix = !0, this.styles = {
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: `${s.left}px`,
59
+ left: `${e.left}px`,
78
60
  width: `${this.$el.offsetWidth}px`
79
- }, this.$emit("on-change", !0)) : s.top + this.offsetBottom + o < e + i && this.offsetType === "bottom" && t && (this.affix = !1, this.styles = null, this.$emit("on-change", !1));
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
- }, l = {};
83
- var p = /* @__PURE__ */ r(
84
- a,
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
- u,
73
+ null,
89
74
  null,
90
75
  null,
91
76
  null
92
77
  );
93
- function u(t) {
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
- m as default
80
+ d as default
102
81
  };
@@ -1,33 +1,5 @@
1
- import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var o = function() {
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
- }, r = {};
39
- var i = /* @__PURE__ */ a(
40
- u,
41
- o,
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
- function _(e) {
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
- p as default
32
+ i as default
58
33
  };
package/avatar/index.mjs CHANGED
@@ -1,34 +1,15 @@
1
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var n = function() {
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: (e) => ["circle", "square"].includes(e),
7
+ validator: (t) => ["circle", "square"].includes(t),
27
8
  type: String,
28
9
  default: "circle"
29
10
  },
30
11
  size: {
31
- validator: (e) => typeof e == "number" || ["small", "large", "default"].includes(e),
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 e = {};
44
- const t = `scale(${this.scale}) translateX(-50%)`;
45
- return e = {
46
- msTransform: t,
47
- WebkitTransform: t,
48
- transform: t
49
- }, typeof size == "number" && (e.lineHeight = `${this.size}px`), e;
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
- [`${i}--${this.shape}`]: this.shape,
54
- [`${i}--lg`]: this.size === "large",
55
- [`${i}--sm`]: this.size === "small"
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 e = this.$refs.avatarChildren;
80
- if (e) {
81
- const t = e.offsetWidth, s = this.$el.getBoundingClientRect().width;
82
- s - 8 < t ? this.scale = (s - 8) / t : this.scale = 1;
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
- }, a = {};
87
- var o = /* @__PURE__ */ r(
88
- c,
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
- h,
76
+ null,
93
77
  null,
94
78
  null,
95
79
  null
96
80
  );
97
- function h(e) {
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
- d as default
83
+ o as default
106
84
  };
@@ -1,33 +1,33 @@
1
- var h = Object.defineProperty, g = Object.defineProperties;
2
- var y = Object.getOwnPropertyDescriptors;
3
- var l = Object.getOwnPropertySymbols;
4
- var B = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
- var c = (o, t, e) => t in o ? h(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, u = (o, t) => {
6
- for (var e in t || (t = {}))
7
- B.call(t, e) && c(o, e, t[e]);
8
- if (l)
9
- for (var e of l(t))
10
- v.call(t, e) && c(o, e, t[e]);
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
- }, p = (o, t) => g(o, y(t));
13
- var d = (o, t, e) => new Promise((s, a) => {
14
- var f = (n) => {
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(e.next(n));
17
- } catch (r) {
18
- a(r);
16
+ i(n.next(e));
17
+ } catch (a) {
18
+ l(a);
19
19
  }
20
- }, m = (n) => {
20
+ }, m = (e) => {
21
21
  try {
22
- i(e.throw(n));
23
- } catch (r) {
24
- a(r);
22
+ i(n.throw(e));
23
+ } catch (a) {
24
+ l(a);
25
25
  }
26
- }, i = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(f, m);
27
- i((e = e.apply(o, t)).next());
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/vueComponentNormalizer.446f5dc4.mjs";
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 d(this, null, function* () {
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 (e) {
75
- S.call(this, e);
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 e, s;
83
- const t = (s = (e = this.$scopedSlots).default) == null ? void 0 : s.call(e);
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(u({}, this.$props), { disabled: this.isLoading }) },
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
- let w, C;
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
- z,
96
+ null,
99
97
  null,
100
98
  null,
101
99
  null
102
100
  );
103
- function z(o) {
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
- E as default
103
+ F as default
112
104
  };
@@ -1,24 +1,5 @@
1
- import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var u = function() {
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
- }, l = {};
33
- var c = /* @__PURE__ */ s(
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
- o,
26
+ null,
39
27
  null,
40
28
  null,
41
29
  null
42
30
  );
43
- function o(e) {
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
- p as default
33
+ i as default
52
34
  };