@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
package/login/index.mjs CHANGED
@@ -1,140 +1,7 @@
1
1
  import { s as l } from "../chunks/util.ae730cde.mjs";
2
- import { isBlank as a } from "@web-utils/core";
3
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var p = function() {
5
- var e = this, s = e.$createElement, t = e._self._c || s;
6
- return t("div", {
7
- staticClass: "avue-login",
8
- style: {
9
- width: e.setPx(e.width)
10
- }
11
- }, [t("ElForm", {
12
- ref: "form",
13
- attrs: {
14
- model: e.form,
15
- "label-suffix": ":",
16
- "label-width": e.setPx(e.labelWidth)
17
- }
18
- }, [e.username.hide ? e._e() : t("ElFormItem", {
19
- attrs: {
20
- label: e.username.label || "用户名",
21
- rules: e.username.rules,
22
- "label-width": e.setPx(e.username.labelWidth),
23
- prop: "username"
24
- }
25
- }, [t("ElTooltip", {
26
- attrs: {
27
- content: e.username.tip,
28
- disabled: e.username.tip === void 0,
29
- placement: "top-start"
30
- }
31
- }, [t("ElInput", {
32
- attrs: {
33
- size: "small",
34
- "prefix-icon": e.username.prefixIcon || "el-icon-user",
35
- placeholder: e.username.placeholder || "请输入用户名",
36
- autocomplete: e.username.autocomplete
37
- },
38
- model: {
39
- value: e.form.username,
40
- callback: function(o) {
41
- e.$set(e.form, "username", o);
42
- },
43
- expression: "form.username"
44
- }
45
- })], 1)], 1), e.password.hide ? e._e() : t("ElFormItem", {
46
- attrs: {
47
- label: e.password.label || "密码",
48
- rules: e.password.rules,
49
- "label-width": e.setPx(e.password.labelWidth),
50
- prop: "password"
51
- }
52
- }, [t("ElTooltip", {
53
- attrs: {
54
- content: e.password.tip,
55
- disabled: e.password.tip === void 0,
56
- placement: "top-start"
57
- }
58
- }, [t("ElInput", {
59
- attrs: {
60
- type: "password",
61
- size: "small",
62
- "prefix-icon": e.password.prefixIcon || "el-icon-unlock",
63
- placeholder: e.password.placeholder || "请输入密码",
64
- "show-password": "",
65
- autocomplete: e.password.autocomplete
66
- },
67
- model: {
68
- value: e.form.password,
69
- callback: function(o) {
70
- e.$set(e.form, "password", o);
71
- },
72
- expression: "form.password"
73
- }
74
- })], 1)], 1), e.code.hide ? e._e() : t("ElFormItem", {
75
- attrs: {
76
- label: e.code.label || "验证码",
77
- rules: e.code.rules,
78
- "label-width": e.setPx(e.code.labelWidth),
79
- prop: "code"
80
- }
81
- }, [t("ElTooltip", {
82
- attrs: {
83
- content: e.code.tip,
84
- disabled: e.code.tip === void 0,
85
- placement: "top-start"
86
- }
87
- }, [t("ElInput", {
88
- attrs: {
89
- size: "small",
90
- "prefix-icon": e.code.prefixIcon || "el-icon-c-scale-to-original",
91
- placeholder: e.code.placeholder || "请输入验证码",
92
- autocomplete: e.code.autocomplete
93
- },
94
- scopedSlots: e._u([{
95
- key: "append",
96
- fn: function() {
97
- return [e.isPhone ? t("ElButton", {
98
- staticClass: "avue-login__send",
99
- attrs: {
100
- type: "primary",
101
- disabled: e.sendDisabled
102
- },
103
- on: {
104
- click: e.onSend
105
- }
106
- }, [e._v(" " + e._s(e.text) + " ")]) : e._e(), e.isImg ? t("span", [t("img", {
107
- attrs: {
108
- src: e.codesrc,
109
- alt: "",
110
- width: "80",
111
- height: "25"
112
- },
113
- on: {
114
- click: e.onRefresh
115
- }
116
- })]) : e._e()];
117
- },
118
- proxy: !0
119
- }], null, !1, 2861735427),
120
- model: {
121
- value: e.form.code,
122
- callback: function(o) {
123
- e.$set(e.form, "code", o);
124
- },
125
- expression: "form.code"
126
- }
127
- })], 1)], 1), t("ElFormItem", [t("ElButton", {
128
- staticClass: "avue-login__submit",
129
- attrs: {
130
- type: "primary"
131
- },
132
- on: {
133
- click: e.onSubmit
134
- }
135
- }, [e._v(" 登录 ")])], 1)], 1)], 1);
136
- }, d = [];
137
- const r = "发送验证码", i = "{{time}}s后重获取", m = {
2
+ import { isBlank as n } from "@web-utils/core";
3
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
4
+ const r = "发送验证码", i = "{{time}}s后重获取", c = {
138
5
  name: "Login",
139
6
  props: {
140
7
  value: {
@@ -162,8 +29,8 @@ const r = "发送验证码", i = "{{time}}s后重获取", m = {
162
29
  get() {
163
30
  return this.value;
164
31
  },
165
- set(e) {
166
- this.$emit("input", e), this.$emit("change", e);
32
+ set(o) {
33
+ this.$emit("input", o), this.$emit("change", o);
167
34
  }
168
35
  },
169
36
  labelWidth() {
@@ -197,54 +64,59 @@ const r = "发送验证码", i = "{{time}}s后重获取", m = {
197
64
  return this.option.column || {};
198
65
  },
199
66
  sendDisabled() {
200
- return !a(this.check);
67
+ return !n(this.check);
201
68
  }
202
69
  },
203
70
  methods: {
204
71
  setPx: l,
205
72
  onSend() {
206
- const e = () => {
73
+ const o = () => {
207
74
  this.nowtime = this.time, this.text = i.replace("{{time}}", this.nowtime), this.check = setInterval(() => {
208
75
  this.nowtime--, this.nowtime === 0 ? (this.text = r, clearInterval(this.check), this.check = null) : this.text = i.replace("{{time}}", this.nowtime);
209
76
  }, 1e3);
210
77
  };
211
- this.sendDisabled || this.$emit("send", e);
78
+ this.sendDisabled || this.$emit("send", o);
212
79
  },
213
80
  onRefresh() {
214
81
  this.$emit("refresh");
215
82
  },
216
83
  onSubmit() {
217
- const e = () => {
218
- const s = {};
84
+ const o = () => {
85
+ const e = {};
219
86
  for (const t in this.form) {
220
- let o = t;
221
- this[t].prop && (o = this[t].prop), s[o] = this.form[t];
87
+ let s = t;
88
+ this[t].prop && (s = this[t].prop), e[s] = this.form[t];
222
89
  }
223
- return s;
90
+ return e;
224
91
  };
225
- this.$refs.form.validate((s) => {
226
- s && this.$emit("submit", e());
92
+ this.$refs.form.validate((e) => {
93
+ e && this.$emit("submit", o());
227
94
  });
228
95
  }
229
96
  }
230
- }, n = {};
231
- var u = /* @__PURE__ */ c(
232
- m,
233
- p,
97
+ };
98
+ var d = function() {
99
+ var e = this, t = e._self._c;
100
+ return t("div", { staticClass: "avue-login", style: { width: e.setPx(e.width) } }, [t("ElForm", { ref: "form", attrs: { model: e.form, "label-suffix": ":", "label-width": e.setPx(e.labelWidth) } }, [e.username.hide ? e._e() : t("ElFormItem", { attrs: { label: e.username.label || "用户名", rules: e.username.rules, "label-width": e.setPx(e.username.labelWidth), prop: "username" } }, [t("ElTooltip", { attrs: { content: e.username.tip, disabled: e.username.tip === void 0, placement: "top-start" } }, [t("ElInput", { attrs: { size: "small", "prefix-icon": e.username.prefixIcon || "el-icon-user", placeholder: e.username.placeholder || "请输入用户名", autocomplete: e.username.autocomplete }, model: { value: e.form.username, callback: function(s) {
101
+ e.$set(e.form, "username", s);
102
+ }, expression: "form.username" } })], 1)], 1), e.password.hide ? e._e() : t("ElFormItem", { attrs: { label: e.password.label || "密码", rules: e.password.rules, "label-width": e.setPx(e.password.labelWidth), prop: "password" } }, [t("ElTooltip", { attrs: { content: e.password.tip, disabled: e.password.tip === void 0, placement: "top-start" } }, [t("ElInput", { attrs: { type: "password", size: "small", "prefix-icon": e.password.prefixIcon || "el-icon-unlock", placeholder: e.password.placeholder || "请输入密码", "show-password": "", autocomplete: e.password.autocomplete }, model: { value: e.form.password, callback: function(s) {
103
+ e.$set(e.form, "password", s);
104
+ }, expression: "form.password" } })], 1)], 1), e.code.hide ? e._e() : t("ElFormItem", { attrs: { label: e.code.label || "验证码", rules: e.code.rules, "label-width": e.setPx(e.code.labelWidth), prop: "code" } }, [t("ElTooltip", { attrs: { content: e.code.tip, disabled: e.code.tip === void 0, placement: "top-start" } }, [t("ElInput", { attrs: { size: "small", "prefix-icon": e.code.prefixIcon || "el-icon-c-scale-to-original", placeholder: e.code.placeholder || "请输入验证码", autocomplete: e.code.autocomplete }, scopedSlots: e._u([{ key: "append", fn: function() {
105
+ return [e.isPhone ? t("ElButton", { staticClass: "avue-login__send", attrs: { type: "primary", disabled: e.sendDisabled }, on: { click: e.onSend } }, [e._v(" " + e._s(e.text) + " ")]) : e._e(), e.isImg ? t("span", [t("img", { attrs: { src: e.codesrc, alt: "", width: "80", height: "25" }, on: { click: e.onRefresh } })]) : e._e()];
106
+ }, proxy: !0 }], null, !1, 2861735427), model: { value: e.form.code, callback: function(s) {
107
+ e.$set(e.form, "code", s);
108
+ }, expression: "form.code" } })], 1)], 1), t("ElFormItem", [t("ElButton", { staticClass: "avue-login__submit", attrs: { type: "primary" }, on: { click: e.onSubmit } }, [e._v(" 登录 ")])], 1)], 1)], 1);
109
+ }, p = [], m = /* @__PURE__ */ a(
110
+ c,
234
111
  d,
112
+ p,
235
113
  !1,
236
- h,
114
+ null,
237
115
  null,
238
116
  null,
239
117
  null
240
118
  );
241
- function h(e) {
242
- for (let s in n)
243
- this[s] = n[s];
244
- }
245
- const w = /* @__PURE__ */ function() {
246
- return u.exports;
247
- }();
119
+ const _ = m.exports;
248
120
  export {
249
- w as default
121
+ _ as default
250
122
  };
@@ -1,20 +1,20 @@
1
- var c = Object.defineProperty;
1
+ var u = Object.defineProperty;
2
2
  var d = Object.getOwnPropertySymbols;
3
- var f = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
- var r = (t, e, i) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, h = (t, e) => {
3
+ var c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
+ var r = (t, e, i) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, h = (t, e) => {
5
5
  for (var i in e || (e = {}))
6
- f.call(e, i) && r(t, i, e[i]);
6
+ c.call(e, i) && r(t, i, e[i]);
7
7
  if (d)
8
8
  for (var i of d(e))
9
- g.call(e, i) && r(t, i, e[i]);
9
+ f.call(e, i) && r(t, i, e[i]);
10
10
  return t;
11
11
  };
12
12
  import * as o from "monaco-editor/esm/vs/editor/editor.api";
13
13
  import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
14
14
  import { c as l } from "../chunks/json-beautifier.21cfffea.mjs";
15
15
  import { NOOP as a } from "@web-utils/core";
16
- import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
- const p = {
16
+ import { n as g } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
17
+ const m = {
18
18
  name: "MonacoEditor",
19
19
  props: {
20
20
  diffEditor: { type: Boolean, default: !1 },
@@ -172,26 +172,18 @@ const p = {
172
172
  }) : ""
173
173
  ]);
174
174
  }
175
- };
176
- let _, y;
177
- const u = {};
178
- var M = /* @__PURE__ */ m(
175
+ }, p = null, _ = null;
176
+ var y = /* @__PURE__ */ g(
177
+ m,
179
178
  p,
180
179
  _,
181
- y,
182
180
  !1,
183
- E,
181
+ null,
184
182
  null,
185
183
  null,
186
184
  null
187
185
  );
188
- function E(t) {
189
- for (let e in u)
190
- this[e] = u[e];
191
- }
192
- const V = /* @__PURE__ */ function() {
193
- return M.exports;
194
- }();
186
+ const w = y.exports;
195
187
  export {
196
- V as default
188
+ w as default
197
189
  };
@@ -1,21 +1,5 @@
1
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
3
- var t = this, e = t.$createElement, a = t._self._c || e;
4
- return a("div", {
5
- staticClass: "name-avatar",
6
- class: t.square ? "square" : "round"
7
- }, [t.faceUrl && !t.num ? a("img", {
8
- staticClass: "name-avatar-image",
9
- attrs: {
10
- src: t.faceUrl,
11
- alt: ""
12
- }
13
- }) : a("div", {
14
- staticClass: "name-avatar-text",
15
- style: t.styles
16
- }, [t._v(" " + t._s(t.text) + " ")])]);
17
- }, o = [];
18
- const i = {
1
+ import { n as r } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const n = {
19
3
  name: "NameAvatar",
20
4
  props: {
21
5
  num: [Number, String],
@@ -39,28 +23,25 @@ const i = {
39
23
  return this.num !== void 0 ? `+${this.num}` : this.name ? this.name.slice(-2) : "";
40
24
  },
41
25
  styles() {
42
- const t = {};
43
- return this.size && (t["font-size"] = "12px"), this.fontColor && (t.color = this.fontColor), this.backgroundColor && (t.background = this.backgroundColor), t;
26
+ const e = {};
27
+ return this.size && (e["font-size"] = "12px"), this.fontColor && (e.color = this.fontColor), this.backgroundColor && (e.background = this.backgroundColor), e;
44
28
  }
45
29
  }
46
- }, n = {};
47
- var l = /* @__PURE__ */ r(
48
- i,
30
+ };
31
+ var s = function() {
32
+ var t = this, a = t._self._c;
33
+ return a("div", { staticClass: "name-avatar", class: t.square ? "square" : "round" }, [t.faceUrl && !t.num ? a("img", { staticClass: "name-avatar-image", attrs: { src: t.faceUrl, alt: "" } }) : a("div", { staticClass: "name-avatar-text", style: t.styles }, [t._v(" " + t._s(t.text) + " ")])]);
34
+ }, o = [], l = /* @__PURE__ */ r(
35
+ n,
49
36
  s,
50
37
  o,
51
38
  !1,
52
- u,
39
+ null,
53
40
  null,
54
41
  null,
55
42
  null
56
43
  );
57
- function u(t) {
58
- for (let e in n)
59
- this[e] = n[e];
60
- }
61
- const f = /* @__PURE__ */ function() {
62
- return l.exports;
63
- }();
44
+ const u = l.exports;
64
45
  export {
65
- f as default
46
+ u as default
66
47
  };
package/nav-bar/index.mjs CHANGED
@@ -1,21 +1,5 @@
1
- import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var r = function() {
3
- var t = this, e = t.$createElement, n = t._self._c || e;
4
- return n("div", {
5
- staticClass: "nav-bar"
6
- }, [t.showBack ? n("ElButton", {
7
- attrs: {
8
- type: "text",
9
- icon: "el-icon-arrow-left"
10
- },
11
- on: {
12
- click: t.goBack
13
- }
14
- }, [t._v(" 返回 ")]) : t._e(), t.$slots.right ? n("div", {
15
- staticClass: "flex-item flex-row-column vertical-center"
16
- }, [t._t("right")], 2) : t._e()], 1);
17
- }, s = [];
18
- const c = {
1
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const n = {
19
3
  name: "NavBar",
20
4
  props: {
21
5
  onGoBack: Function,
@@ -29,24 +13,21 @@ const c = {
29
13
  this.onGoBack ? this.onGoBack() : this.$router.back();
30
14
  }
31
15
  }
32
- }, o = {};
33
- var l = /* @__PURE__ */ a(
34
- c,
16
+ };
17
+ var o = function() {
18
+ var t = this, e = t._self._c;
19
+ return e("div", { staticClass: "nav-bar" }, [t.showBack ? e("ElButton", { attrs: { type: "text", icon: "el-icon-arrow-left" }, on: { click: t.goBack } }, [t._v(" 返回 ")]) : t._e(), t.$slots.right ? e("div", { staticClass: "flex-item flex-row-column vertical-center" }, [t._t("right")], 2) : t._e()], 1);
20
+ }, r = [], s = /* @__PURE__ */ a(
21
+ n,
22
+ o,
35
23
  r,
36
- s,
37
24
  !1,
38
- i,
25
+ null,
39
26
  null,
40
27
  null,
41
28
  null
42
29
  );
43
- function i(t) {
44
- for (let e in o)
45
- this[e] = o[e];
46
- }
47
- const u = /* @__PURE__ */ function() {
48
- return l.exports;
49
- }();
30
+ const _ = s.exports;
50
31
  export {
51
- u as default
32
+ _ as default
52
33
  };
@@ -1,35 +1,24 @@
1
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
3
- var e = this, t = e.$createElement;
4
- return e._self._c, e._m(0);
5
- }, o = [function() {
6
- var e = this, t = e.$createElement, n = e._self._c || t;
7
- return n("div", {
8
- staticClass: "not-implement"
9
- }, [n("div", [n("i", {
10
- staticClass: "fa fa-wrench"
11
- }), e._v(" 建设中...")])]);
12
- }];
13
- const a = {
1
+ import { n as t } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const _ = {
14
3
  name: "NotImplement"
15
- }, _ = {};
16
- var l = /* @__PURE__ */ r(
17
- a,
4
+ };
5
+ var s = function() {
6
+ var n = this;
7
+ return n._self._c, n._m(0);
8
+ }, l = [function() {
9
+ var e = this, n = e._self._c;
10
+ return n("div", { staticClass: "not-implement" }, [n("div", [n("i", { staticClass: "fa fa-wrench" }), e._v(" 建设中...")])]);
11
+ }], a = /* @__PURE__ */ t(
12
+ _,
18
13
  s,
19
- o,
14
+ l,
20
15
  !1,
21
- c,
16
+ null,
22
17
  null,
23
18
  null,
24
19
  null
25
20
  );
26
- function c(e) {
27
- for (let t in _)
28
- this[t] = _[t];
29
- }
30
- const m = /* @__PURE__ */ function() {
31
- return l.exports;
32
- }();
21
+ const m = a.exports;
33
22
  export {
34
23
  m as default
35
24
  };
package/notice/index.mjs CHANGED
@@ -1,60 +1,11 @@
1
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var o = function() {
3
- var t = this, a = t.$createElement, e = t._self._c || a;
4
- return e("div", {
5
- staticClass: "avue-notice"
6
- }, [t._l(t.data, function(s, r) {
7
- return e("div", {
8
- key: r,
9
- staticClass: "avue-notice__item",
10
- on: {
11
- click: function(v) {
12
- return t.click(s);
13
- }
14
- }
15
- }, [s[t.imgKey] ? e("div", {
16
- staticClass: "avue-notice__img"
17
- }, [e("img", {
18
- attrs: {
19
- src: s[t.imgKey],
20
- alt: ""
21
- }
22
- })]) : t._e(), e("div", {
23
- staticClass: "avue-notice__content"
24
- }, [e("div", {
25
- staticClass: "avue-notice__title"
26
- }, [e("span", {
27
- staticClass: "avue-notice__name"
28
- }, [t._v(t._s(s[t.titleKey]))]), s[t.tagKey] ? e("span", {
29
- staticClass: "avue-notice__tag"
30
- }, [e("ElTag", {
31
- attrs: {
32
- size: "small",
33
- type: t.getType(s[t.statusKey])
34
- }
35
- }, [t._v(t._s(s[t.tagKey]))])], 1) : t._e()]), e("div", {
36
- staticClass: "avue-notice__subtitle"
37
- }, [t._v(" " + t._s(s[t.subtitleKey]) + " ")])])]);
38
- }), t.finish ? t._e() : e("div", {
39
- directives: [{
40
- name: "loading",
41
- rawName: "v-loading",
42
- value: !0,
43
- expression: "true"
44
- }],
45
- staticClass: "avue-notice__more",
46
- on: {
47
- click: t.handleClick
48
- }
49
- }, [t._v("加载更多")])], 2);
50
- }, c = [];
51
- const i = {
1
+ import { n as r } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const a = {
52
3
  img: "img",
53
4
  title: "title",
54
5
  subtile: "title",
55
6
  tag: "tag",
56
7
  status: "status"
57
- }, u = {
8
+ }, l = {
58
9
  name: "Notice",
59
10
  props: {
60
11
  finish: {
@@ -78,66 +29,67 @@ const i = {
78
29
  },
79
30
  computed: {
80
31
  props() {
81
- return this.option.props || i;
32
+ return this.option.props || a;
82
33
  },
83
34
  imgKey() {
84
- return this.props.img || i.img;
35
+ return this.props.img || a.img;
85
36
  },
86
37
  titleKey() {
87
- return this.props.title || i.title;
38
+ return this.props.title || a.title;
88
39
  },
89
40
  subtitleKey() {
90
- return this.props.subtitle || i.subtitle;
41
+ return this.props.subtitle || a.subtitle;
91
42
  },
92
43
  tagKey() {
93
- return this.props.tag || i.tag;
44
+ return this.props.tag || a.tag;
94
45
  },
95
46
  statusKey() {
96
- return this.props.status || i.status;
47
+ return this.props.status || a.status;
97
48
  }
98
49
  },
99
50
  methods: {
100
- click(t) {
101
- this.$emit("click", t);
51
+ click(s) {
52
+ this.$emit("click", s);
102
53
  },
103
54
  handleClick() {
104
55
  this.loading = !0;
105
- const t = () => {
56
+ const s = () => {
106
57
  this.loading = !1;
107
58
  };
108
- this.page++, this.$emit("page-change", this.page, t);
59
+ this.page++, this.$emit("page-change", this.page, s);
109
60
  },
110
- getType(t = 0) {
111
- if (t === 0)
61
+ getType(s = 0) {
62
+ if (s === 0)
112
63
  return "info";
113
- if (t === 1)
64
+ if (s === 1)
114
65
  return "";
115
- if (t === 2)
66
+ if (s === 2)
116
67
  return "warning";
117
- if (t === 3)
68
+ if (s === 3)
118
69
  return "danger";
119
- if (t === 4)
70
+ if (s === 4)
120
71
  return "success";
121
72
  }
122
73
  }
123
- }, n = {};
124
- var _ = /* @__PURE__ */ l(
125
- u,
74
+ };
75
+ var o = function() {
76
+ var t = this, e = t._self._c;
77
+ return e("div", { staticClass: "avue-notice" }, [t._l(t.data, function(i, n) {
78
+ return e("div", { key: n, staticClass: "avue-notice__item", on: { click: function(_) {
79
+ return t.click(i);
80
+ } } }, [i[t.imgKey] ? e("div", { staticClass: "avue-notice__img" }, [e("img", { attrs: { src: i[t.imgKey], alt: "" } })]) : t._e(), e("div", { staticClass: "avue-notice__content" }, [e("div", { staticClass: "avue-notice__title" }, [e("span", { staticClass: "avue-notice__name" }, [t._v(t._s(i[t.titleKey]))]), i[t.tagKey] ? e("span", { staticClass: "avue-notice__tag" }, [e("ElTag", { attrs: { size: "small", type: t.getType(i[t.statusKey]) } }, [t._v(t._s(i[t.tagKey]))])], 1) : t._e()]), e("div", { staticClass: "avue-notice__subtitle" }, [t._v(" " + t._s(i[t.subtitleKey]) + " ")])])]);
81
+ }), t.finish ? t._e() : e("div", { directives: [{ name: "loading", rawName: "v-loading", value: !0, expression: "true" }], staticClass: "avue-notice__more", on: { click: t.handleClick } }, [t._v("加载更多")])], 2);
82
+ }, c = [], u = /* @__PURE__ */ r(
83
+ l,
126
84
  o,
127
85
  c,
128
86
  !1,
129
- p,
87
+ null,
130
88
  null,
131
89
  null,
132
90
  null
133
91
  );
134
- function p(t) {
135
- for (let a in n)
136
- this[a] = n[a];
137
- }
138
- const d = /* @__PURE__ */ function() {
139
- return _.exports;
140
- }();
92
+ const g = u.exports;
141
93
  export {
142
- d as default
94
+ g as default
143
95
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "3.0.6",
4
+ "version": "3.1.0",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",