@web-utils/component 2.0.14 → 2.7.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 (248) hide show
  1. package/dist/chunks/config.46422d7f.js +73 -0
  2. package/dist/chunks/{3a79781b.js → confirmable-mixin.3a79781b.js} +0 -0
  3. package/dist/chunks/dataformat.fb35ee10.js +61 -0
  4. package/dist/chunks/detail.a3249549.js +28 -0
  5. package/dist/chunks/dic.5f7e3523.js +132 -0
  6. package/dist/chunks/event.50c365eb.js +235 -0
  7. package/dist/chunks/{76680a03.js → form-input-mixin.ff5b58f7.js} +2 -2
  8. package/dist/chunks/{b4acd3a6.js → form-item-mixin.79f6eaff.js} +3 -1
  9. package/dist/chunks/{61ad06b2.js → form-pick-mixin.61ad06b2.js} +0 -0
  10. package/dist/chunks/init.352281f5.js +121 -0
  11. package/dist/chunks/{41a066be.js → input-number-mixin.41a066be.js} +0 -0
  12. package/dist/chunks/{5a78e0db.js → mixins.5a78e0db.js} +0 -0
  13. package/dist/chunks/packages.5d7a86c4.js +114 -0
  14. package/dist/chunks/permission.ce5d2121.js +16 -0
  15. package/dist/chunks/slot.1b8d2b1b.js +27 -0
  16. package/dist/chunks/{8c0142e0.js → tab-mixin.8c0142e0.js} +0 -0
  17. package/dist/chunks/util.5053d54e.js +264 -0
  18. package/dist/chunks/{97652d86.js → utils.97652d86.js} +0 -0
  19. package/dist/chunks/{f71045fc.js → utils.fa73de78.js} +1 -0
  20. package/dist/chunks/{5d4282fb.js → vueComponentNormalizer.71e2aa87.js} +3 -1
  21. package/dist/components/address-input/index.js +1 -1
  22. package/dist/components/affix/index.js +102 -0
  23. package/dist/components/affix/style.css +1 -0
  24. package/dist/components/array/index.js +156 -0
  25. package/dist/components/array/style.css +1 -0
  26. package/dist/components/article/index.js +93 -0
  27. package/dist/components/article/style.css +1 -0
  28. package/dist/components/aside-menu/index.js +1 -1
  29. package/dist/components/avatar/index.js +106 -0
  30. package/dist/components/avatar/style.css +1 -0
  31. package/dist/components/awesome-button/index.js +1 -1
  32. package/dist/components/base.css +1 -1
  33. package/dist/components/capsule-tab/index.js +1 -1
  34. package/dist/components/card/index.js +130 -0
  35. package/dist/components/card/style.css +1 -0
  36. package/dist/components/carousel/index.js +70 -0
  37. package/dist/components/carousel/style.css +1 -0
  38. package/dist/components/chat/index.js +567 -0
  39. package/dist/components/chat/style.css +1 -0
  40. package/dist/components/chunk-file-uploader/index.js +2 -2
  41. package/dist/components/chunk-file-uploader-button/index.js +2 -2
  42. package/dist/components/chunk-file-uploader-drop/index.js +2 -2
  43. package/dist/components/chunk-file-uploader-file/index.js +2 -2
  44. package/dist/components/chunk-file-uploader-files/index.js +2 -2
  45. package/dist/components/chunk-file-uploader-list/index.js +2 -2
  46. package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
  47. package/dist/components/code/index.js +66 -0
  48. package/dist/components/code-mirror-editor/index.js +4 -1
  49. package/dist/components/color-picker/index.js +1 -1
  50. package/dist/components/column/index.js +114 -0
  51. package/dist/components/column-default/index.js +105 -0
  52. package/dist/components/column-dynamic/index.js +93 -0
  53. package/dist/components/column-menu/index.js +286 -0
  54. package/dist/components/column-slot/index.js +265 -0
  55. package/dist/components/comment/index.js +94 -0
  56. package/dist/components/comment/style.css +1 -0
  57. package/dist/components/confirm-button/index.js +2 -2
  58. package/dist/components/confirmable/index.js +2 -2
  59. package/dist/components/context-menu/index.js +11 -1
  60. package/dist/components/count-up/index.js +120 -0
  61. package/dist/components/custom-scrollbar/index.js +2 -2
  62. package/dist/components/data-box/index.js +97 -0
  63. package/dist/components/data-box/style.css +1 -0
  64. package/dist/components/data-card/index.js +98 -0
  65. package/dist/components/data-card/style.css +1 -0
  66. package/dist/components/data-cardtext/index.js +82 -0
  67. package/dist/components/data-cardtext/style.css +1 -0
  68. package/dist/components/data-display/index.js +93 -0
  69. package/dist/components/data-display/style.css +1 -0
  70. package/dist/components/data-icons/index.js +104 -0
  71. package/dist/components/data-icons/style.css +1 -0
  72. package/dist/components/data-imgtext/index.js +106 -0
  73. package/dist/components/data-imgtext/style.css +1 -0
  74. package/dist/components/data-operatext/index.js +99 -0
  75. package/dist/components/data-operatext/style.css +1 -0
  76. package/dist/components/data-panel/index.js +93 -0
  77. package/dist/components/data-panel/style.css +1 -0
  78. package/dist/components/data-pay/index.js +149 -0
  79. package/dist/components/data-pay/style.css +1 -0
  80. package/dist/components/data-price/index.js +84 -0
  81. package/dist/components/data-price/style.css +1 -0
  82. package/dist/components/data-progress/index.js +97 -0
  83. package/dist/components/data-progress/style.css +1 -0
  84. package/dist/components/data-rotate/index.js +96 -0
  85. package/dist/components/data-rotate/style.css +1 -0
  86. package/dist/components/data-table-picker/index.js +2 -2
  87. package/dist/components/data-tabs/index.js +94 -0
  88. package/dist/components/data-tabs/style.css +1 -0
  89. package/dist/components/dialog-column/index.js +138 -0
  90. package/dist/components/dialog-excel/index.js +214 -0
  91. package/dist/components/dialog-filter/index.js +245 -0
  92. package/dist/components/dialog-form/index.js +275 -0
  93. package/dist/components/draggable/index.js +384 -0
  94. package/dist/components/draggable/style.css +1 -0
  95. package/dist/components/dynamic-table/index.js +1 -1
  96. package/dist/components/e-charts/index.js +7 -1
  97. package/dist/components/editable-progress/index.js +1 -1
  98. package/dist/components/editable-tree/index.js +2 -2
  99. package/dist/components/egd-collapse/index.js +1 -1
  100. package/dist/components/egd-collapse-item/index.js +1 -1
  101. package/dist/components/element-dialog/index.js +1 -1
  102. package/dist/components/empty/index.js +59 -0
  103. package/dist/components/empty/style.css +1 -0
  104. package/dist/components/empty-view/index.js +1 -1
  105. package/dist/components/error-view/index.js +1 -1
  106. package/dist/components/flex-column/index.js +2 -2
  107. package/dist/components/flex-item/index.js +2 -2
  108. package/dist/components/flex-row/index.js +2 -2
  109. package/dist/components/flex-scroller/index.js +1 -1
  110. package/dist/components/flow/index.js +278 -0
  111. package/dist/components/flow/style.css +1 -0
  112. package/dist/components/flow-node/index.js +102 -0
  113. package/dist/components/form-button/index.js +2 -2
  114. package/dist/components/form-cascader/index.js +4 -4
  115. package/dist/components/form-checkbox-group/index.js +4 -4
  116. package/dist/components/form-date-picker/index.js +4 -4
  117. package/dist/components/form-group/index.js +122 -0
  118. package/dist/components/form-group/style.css +1 -0
  119. package/dist/components/form-holder/index.js +23 -2
  120. package/dist/components/form-input/index.js +3 -3
  121. package/dist/components/form-input-email/index.js +3 -3
  122. package/dist/components/form-input-id-card/index.js +3 -3
  123. package/dist/components/form-input-number/index.js +4 -4
  124. package/dist/components/form-input-phone-number/index.js +3 -3
  125. package/dist/components/form-input-time/index.js +3 -3
  126. package/dist/components/form-item/index.js +2 -2
  127. package/dist/components/form-item-config-provider/index.js +1 -1
  128. package/dist/components/form-item-group/index.js +1 -1
  129. package/dist/components/form-radio-group/index.js +4 -4
  130. package/dist/components/form-select/index.js +4 -4
  131. package/dist/components/form-switch/index.js +3 -3
  132. package/dist/components/form-temp/index.js +149 -0
  133. package/dist/components/form-textarea/index.js +3 -3
  134. package/dist/components/form-view/index.js +1 -1
  135. package/dist/components/fy-cascader/index.js +132 -0
  136. package/dist/components/fy-checkbox/index.js +116 -0
  137. package/dist/components/fy-checkbox/style.css +1 -0
  138. package/dist/components/fy-curd/index.js +846 -0
  139. package/dist/components/fy-curd/style.css +1 -0
  140. package/dist/components/fy-date/index.js +84 -0
  141. package/dist/components/fy-date/style.css +1 -0
  142. package/dist/components/fy-dialog-form/index.js +278 -0
  143. package/dist/components/fy-dialog-form/style.css +1 -0
  144. package/dist/components/fy-dynamic/index.js +335 -0
  145. package/dist/components/fy-dynamic/style.css +1 -0
  146. package/dist/components/fy-form/index.js +754 -0
  147. package/dist/components/fy-form/style.css +1 -0
  148. package/dist/components/fy-form-menu/index.js +95 -0
  149. package/dist/components/fy-input/index.js +162 -0
  150. package/dist/components/fy-input-color/index.js +96 -0
  151. package/dist/components/fy-input-icon/index.js +161 -0
  152. package/dist/components/fy-input-icon/style.css +1 -0
  153. package/dist/components/fy-input-map/index.js +275 -0
  154. package/dist/components/fy-input-map/style.css +1 -0
  155. package/dist/components/fy-input-number/index.js +87 -0
  156. package/dist/components/fy-input-table/index.js +172 -0
  157. package/dist/components/fy-input-table/style.css +1 -0
  158. package/dist/components/fy-input-tree/index.js +265 -0
  159. package/dist/components/fy-input-tree/style.css +1 -0
  160. package/dist/components/fy-radio/index.js +68 -0
  161. package/dist/components/fy-radio/style.css +1 -0
  162. package/dist/components/fy-rate/index.js +105 -0
  163. package/dist/components/fy-rate/style.css +1 -0
  164. package/dist/components/fy-select/index.js +223 -0
  165. package/dist/components/fy-select/style.css +1 -0
  166. package/dist/components/fy-slider/index.js +79 -0
  167. package/dist/components/fy-switch/index.js +73 -0
  168. package/dist/components/fy-time/index.js +95 -0
  169. package/dist/components/fy-title/index.js +40 -0
  170. package/dist/components/fy-title/style.css +1 -0
  171. package/dist/components/fy-upload/index.js +704 -0
  172. package/dist/components/fy-upload/style.css +1 -0
  173. package/dist/components/guide-steps/index.js +1 -1
  174. package/dist/components/header-menu/index.js +238 -0
  175. package/dist/components/header-search/index.js +246 -0
  176. package/dist/components/icon-card/index.js +1 -1
  177. package/dist/components/icon-temp/index.js +50 -0
  178. package/dist/components/icon-temp/style.css +1 -0
  179. package/dist/components/iframe-window/index.js +1 -1
  180. package/dist/components/image-viewer/index.js +1 -1
  181. package/dist/components/input-number/index.js +2 -2
  182. package/dist/components/input-number-range/index.js +1 -1
  183. package/dist/components/keep-view-alive/index.js +6 -2
  184. package/dist/components/keyboard/index.js +389 -0
  185. package/dist/components/keyboard/style.css +1 -0
  186. package/dist/components/license/index.js +134 -0
  187. package/dist/components/loading-view/index.js +1 -1
  188. package/dist/components/login/index.js +244 -0
  189. package/dist/components/login/style.css +1 -0
  190. package/dist/components/name-avatar/index.js +66 -0
  191. package/dist/components/name-avatar/style.css +1 -0
  192. package/dist/components/nav-bar/index.js +1 -1
  193. package/dist/components/not-implement/index.js +1 -1
  194. package/dist/components/notice/index.js +143 -0
  195. package/dist/components/notice/style.css +1 -0
  196. package/dist/components/page/index.js +1 -1
  197. package/dist/components/page-header/index.js +1 -1
  198. package/dist/components/page-index/index.js +1 -1
  199. package/dist/components/page-index-top/index.js +1 -1
  200. package/dist/components/page-skeleton/index.js +1 -1
  201. package/dist/components/page-skeleton-new/index.js +1 -1
  202. package/dist/components/pageable-table/index.js +6 -2
  203. package/dist/components/pageable-view/index.js +7 -2
  204. package/dist/components/photo-swipe/index.js +7 -1
  205. package/dist/components/progress/index.js +60 -0
  206. package/dist/components/queue/index.js +76 -0
  207. package/dist/components/record-video/index.js +173 -0
  208. package/dist/components/record-video/style.css +1 -0
  209. package/dist/components/resize-observer/index.js +2 -2
  210. package/dist/components/search/index.js +142 -0
  211. package/dist/components/search/style.css +1 -0
  212. package/dist/components/search-popover/index.js +1 -1
  213. package/dist/components/sign/index.js +128 -0
  214. package/dist/components/sign/style.css +1 -0
  215. package/dist/components/sign-panel/index.js +14 -1
  216. package/dist/components/skeleton/index.js +82 -0
  217. package/dist/components/skeleton/style.css +1 -0
  218. package/dist/components/split-pane/index.js +7 -1
  219. package/dist/components/stateful/index.js +1 -1
  220. package/dist/components/static-pageable-table/index.js +1 -1
  221. package/dist/components/swiper/index.js +1 -1
  222. package/dist/components/tab/index.js +4 -2
  223. package/dist/components/tab-item/index.js +2 -2
  224. package/dist/components/table-column/index.js +1 -1
  225. package/dist/components/table-page/index.js +129 -0
  226. package/dist/components/table-view/index.js +2 -2
  227. package/dist/components/tabs/index.js +90 -0
  228. package/dist/components/tabs/style.css +0 -0
  229. package/dist/components/tag-render/index.js +1 -1
  230. package/dist/components/text-ellipsis/index.js +107 -0
  231. package/dist/components/text-ellipsis/style.css +1 -0
  232. package/dist/components/tinymce-editor/index.js +1 -1
  233. package/dist/components/tinymce-wrapper/index.js +1 -1
  234. package/dist/components/toolbar/index.js +1 -1
  235. package/dist/components/toolbar-button/index.js +1 -1
  236. package/dist/components/tree/index.js +427 -0
  237. package/dist/components/tree/style.css +1 -0
  238. package/dist/components/trigger/index.js +1 -1
  239. package/dist/components/verify/index.js +80 -0
  240. package/dist/components/verify/style.css +1 -0
  241. package/dist/components/vue-tags-input/index.js +115 -1
  242. package/dist/components/watermark/index.js +20 -2
  243. package/dist/index.css +4128 -745
  244. package/dist/index.es.js +21634 -7064
  245. package/package.json +20 -4
  246. package/web-types.json +12777 -2788
  247. package/dist/components/x-dialog/index.js +0 -173
  248. package/dist/components/x-dialog/style.css +0 -1
@@ -0,0 +1,244 @@
1
+ import { c as n, s as a } from "../../chunks/util.5053d54e.js";
2
+ import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ var d = function() {
4
+ var e = this, s = e.$createElement, t = e._self._c || s;
5
+ return t("div", {
6
+ staticClass: "avue-login",
7
+ style: {
8
+ width: e.setPx(e.width)
9
+ }
10
+ }, [t("ElForm", {
11
+ ref: "form",
12
+ attrs: {
13
+ model: e.form,
14
+ "label-suffix": ":",
15
+ "label-width": e.setPx(e.labelWidth)
16
+ }
17
+ }, [e.username.hide ? e._e() : t("ElFormItem", {
18
+ attrs: {
19
+ label: e.username.label || "用户名",
20
+ rules: e.username.rules,
21
+ "label-width": e.setPx(e.username.labelWidth),
22
+ prop: "username"
23
+ }
24
+ }, [t("ElTooltip", {
25
+ attrs: {
26
+ content: e.username.tip,
27
+ disabled: e.username.tip === void 0,
28
+ placement: "top-start"
29
+ }
30
+ }, [t("ElInput", {
31
+ attrs: {
32
+ size: "small",
33
+ "prefix-icon": e.username.prefixIcon || "el-icon-user",
34
+ placeholder: e.username.placeholder || "请输入用户名",
35
+ autocomplete: e.username.autocomplete
36
+ },
37
+ model: {
38
+ value: e.form.username,
39
+ callback: function(o) {
40
+ e.$set(e.form, "username", o);
41
+ },
42
+ expression: "form.username"
43
+ }
44
+ })], 1)], 1), e.password.hide ? e._e() : t("ElFormItem", {
45
+ attrs: {
46
+ label: e.password.label || "密码",
47
+ rules: e.password.rules,
48
+ "label-width": e.setPx(e.password.labelWidth),
49
+ prop: "password"
50
+ }
51
+ }, [t("ElTooltip", {
52
+ attrs: {
53
+ content: e.password.tip,
54
+ disabled: e.password.tip === void 0,
55
+ placement: "top-start"
56
+ }
57
+ }, [t("ElInput", {
58
+ attrs: {
59
+ type: "password",
60
+ size: "small",
61
+ "prefix-icon": e.password.prefixIcon || "el-icon-unlock",
62
+ placeholder: e.password.placeholder || "请输入密码",
63
+ "show-password": "",
64
+ autocomplete: e.password.autocomplete
65
+ },
66
+ model: {
67
+ value: e.form.password,
68
+ callback: function(o) {
69
+ e.$set(e.form, "password", o);
70
+ },
71
+ expression: "form.password"
72
+ }
73
+ })], 1)], 1), e.code.hide ? e._e() : t("ElFormItem", {
74
+ attrs: {
75
+ label: e.code.label || "验证码",
76
+ rules: e.code.rules,
77
+ "label-width": e.setPx(e.code.labelWidth),
78
+ prop: "code"
79
+ }
80
+ }, [t("ElTooltip", {
81
+ attrs: {
82
+ content: e.code.tip,
83
+ disabled: e.code.tip === void 0,
84
+ placement: "top-start"
85
+ }
86
+ }, [t("ElInput", {
87
+ attrs: {
88
+ size: "small",
89
+ "prefix-icon": e.code.prefixIcon || "el-icon-c-scale-to-original",
90
+ placeholder: e.code.placeholder || "请输入验证码",
91
+ autocomplete: e.code.autocomplete
92
+ },
93
+ model: {
94
+ value: e.form.code,
95
+ callback: function(o) {
96
+ e.$set(e.form, "code", o);
97
+ },
98
+ expression: "form.code"
99
+ }
100
+ }, [t("template", {
101
+ slot: "append"
102
+ }, [e.isPhone ? t("ElButton", {
103
+ staticClass: "avue-login__send",
104
+ attrs: {
105
+ type: "primary",
106
+ disabled: e.sendDisabled
107
+ },
108
+ on: {
109
+ click: e.onSend
110
+ }
111
+ }, [e._v(" " + e._s(e.text) + " ")]) : e._e(), e.isImg ? t("span", [t("img", {
112
+ attrs: {
113
+ src: e.codesrc,
114
+ alt: "",
115
+ width: "80",
116
+ height: "25"
117
+ },
118
+ on: {
119
+ click: e.onRefresh
120
+ }
121
+ })]) : e._e()], 1)], 2)], 1)], 1), t("ElFormItem", [t("ElButton", {
122
+ staticClass: "avue-login__submit",
123
+ attrs: {
124
+ type: "primary"
125
+ },
126
+ on: {
127
+ click: e.onSubmit
128
+ }
129
+ }, [e._v(" 登录 ")])], 1)], 1)], 1);
130
+ }, p = [];
131
+ const r = "发送验证码", i = "{{time}}s后重获取", m = {
132
+ name: "Login",
133
+ props: {
134
+ value: {
135
+ type: Object,
136
+ default: () => ({})
137
+ },
138
+ codesrc: {
139
+ type: String
140
+ },
141
+ option: {
142
+ type: Object,
143
+ default: () => ({})
144
+ }
145
+ },
146
+ data() {
147
+ return {
148
+ text: r,
149
+ nowtime: "",
150
+ check: {},
151
+ flag: !1
152
+ };
153
+ },
154
+ computed: {
155
+ form: {
156
+ get() {
157
+ return this.value;
158
+ },
159
+ set(e) {
160
+ this.$emit("input", e), this.$emit("change", e);
161
+ }
162
+ },
163
+ labelWidth() {
164
+ return this.option.labelWidth || 80;
165
+ },
166
+ time() {
167
+ return this.option.time || 60;
168
+ },
169
+ isImg() {
170
+ return this.codeType === "img";
171
+ },
172
+ isPhone() {
173
+ return this.codeType === "phone";
174
+ },
175
+ codeType() {
176
+ return this.option.codeType || "img";
177
+ },
178
+ width() {
179
+ return this.option.width || "100%";
180
+ },
181
+ username() {
182
+ return this.column.username || {};
183
+ },
184
+ password() {
185
+ return this.column.password || {};
186
+ },
187
+ code() {
188
+ return this.column.code || {};
189
+ },
190
+ column() {
191
+ return this.option.column || {};
192
+ },
193
+ sendDisabled() {
194
+ return !n(this.check);
195
+ }
196
+ },
197
+ methods: {
198
+ setPx: a,
199
+ onSend() {
200
+ const e = () => {
201
+ this.nowtime = this.time, this.text = i.replace("{{time}}", this.nowtime), this.check = setInterval(() => {
202
+ this.nowtime--, this.nowtime === 0 ? (this.text = r, clearInterval(this.check), this.check = null) : this.text = i.replace("{{time}}", this.nowtime);
203
+ }, 1e3);
204
+ };
205
+ this.sendDisabled || this.$emit("send", e);
206
+ },
207
+ onRefresh() {
208
+ this.$emit("refresh");
209
+ },
210
+ onSubmit() {
211
+ const e = () => {
212
+ const s = {};
213
+ for (let t in this.form) {
214
+ let o = t;
215
+ this[t].prop && (o = this[t].prop), s[o] = this.form[t];
216
+ }
217
+ return s;
218
+ };
219
+ this.$refs.form.validate((s) => {
220
+ s && this.$emit("submit", e());
221
+ });
222
+ }
223
+ }
224
+ }, l = {};
225
+ var u = /* @__PURE__ */ c(
226
+ m,
227
+ d,
228
+ p,
229
+ !1,
230
+ h,
231
+ null,
232
+ null,
233
+ null
234
+ );
235
+ function h(e) {
236
+ for (let s in l)
237
+ this[s] = l[s];
238
+ }
239
+ const b = /* @__PURE__ */ function() {
240
+ return u.exports;
241
+ }();
242
+ export {
243
+ b as default
244
+ };
@@ -0,0 +1 @@
1
+ .avue-login .el-form-item{margin-bottom:18px}.avue-login .el-input-group__append{padding:0;overflow:hidden}.avue-login__send{min-width:150px;box-sizing:border-box}.avue-login__send:hover{color:#c0c4cc!important;border-color:#ebeef5!important;background-color:#f5f7fa!important}.avue-login__submit{width:100%}
@@ -0,0 +1,66 @@
1
+ import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
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 = {
19
+ name: "NameAvatar",
20
+ props: {
21
+ num: [Number, String],
22
+ name: String,
23
+ square: Boolean,
24
+ fontColor: {
25
+ type: String,
26
+ default: "#fff"
27
+ },
28
+ backgroundColor: {
29
+ type: String,
30
+ default: "#3696F2"
31
+ },
32
+ faceUrl: {
33
+ type: String,
34
+ default: ""
35
+ }
36
+ },
37
+ computed: {
38
+ text() {
39
+ return this.num !== void 0 ? `+${this.num}` : this.name ? this.name.slice(-2) : "";
40
+ },
41
+ styles() {
42
+ let t = {};
43
+ return this.size && (t["font-size"] = "12px"), this.fontColor && (t.color = this.fontColor), this.backgroundColor && (t.background = this.backgroundColor), t;
44
+ }
45
+ }
46
+ }, n = {};
47
+ var l = /* @__PURE__ */ r(
48
+ i,
49
+ s,
50
+ o,
51
+ !1,
52
+ u,
53
+ null,
54
+ null,
55
+ null
56
+ );
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
+ }();
64
+ export {
65
+ f as default
66
+ };
@@ -0,0 +1 @@
1
+ .name-avatar{overflow:hidden;width:40px;height:40px}.name-avatar .name-avatar-image,.name-avatar .name-avatar-text{width:100%;height:100%}.name-avatar .name-avatar-text{display:flex;justify-content:center;align-items:center}.round{display:inline-block;position:relative;text-align:center;vertical-align:bottom;font-size:8px;user-select:none;z-index:10;border-radius:50%}.square{display:block;border-radius:8px;overflow:hidden}
@@ -1,4 +1,4 @@
1
- import { n as a } from "../../chunks/5d4282fb.js";
1
+ import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var r = function() {
3
3
  var t = this, e = t.$createElement, n = t._self._c || e;
4
4
  return n("div", {
@@ -1,4 +1,4 @@
1
- import { n as r } from "../../chunks/5d4282fb.js";
1
+ import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var s = function() {
3
3
  var e = this, t = e.$createElement;
4
4
  return e._self._c, e._m(0);
@@ -0,0 +1,143 @@
1
+ import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
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(g) {
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: t.loading,
43
+ expression: "loading"
44
+ }],
45
+ staticClass: "avue-notice__more",
46
+ on: {
47
+ click: t.handleClick
48
+ }
49
+ }, [t._v(" 加载更多 ")])], 2);
50
+ }, c = [];
51
+ const i = {
52
+ img: "img",
53
+ title: "title",
54
+ subtile: "title",
55
+ tag: "tag",
56
+ status: "status"
57
+ }, u = {
58
+ name: "Notice",
59
+ props: {
60
+ finish: {
61
+ type: Boolean,
62
+ default: !1
63
+ },
64
+ option: {
65
+ type: Object,
66
+ default: () => ({})
67
+ },
68
+ data: {
69
+ type: Array,
70
+ default: () => []
71
+ }
72
+ },
73
+ data() {
74
+ return {
75
+ page: 1,
76
+ loading: !1
77
+ };
78
+ },
79
+ computed: {
80
+ props() {
81
+ return this.option.props || i;
82
+ },
83
+ imgKey() {
84
+ return this.props.img || i.img;
85
+ },
86
+ titleKey() {
87
+ return this.props.title || i.title;
88
+ },
89
+ subtitleKey() {
90
+ return this.props.subtitle || i.subtitle;
91
+ },
92
+ tagKey() {
93
+ return this.props.tag || i.tag;
94
+ },
95
+ statusKey() {
96
+ return this.props.status || i.status;
97
+ }
98
+ },
99
+ methods: {
100
+ click(t) {
101
+ this.$emit("click", t);
102
+ },
103
+ handleClick() {
104
+ this.loading = !0;
105
+ const t = () => {
106
+ this.loading = !1;
107
+ };
108
+ this.page++, this.$emit("page-change", this.page, t);
109
+ },
110
+ getType(t = 0) {
111
+ if (t === 0)
112
+ return "info";
113
+ if (t === 1)
114
+ return "";
115
+ if (t === 2)
116
+ return "warning";
117
+ if (t === 3)
118
+ return "danger";
119
+ if (t === 4)
120
+ return "success";
121
+ }
122
+ }
123
+ }, n = {};
124
+ var _ = /* @__PURE__ */ l(
125
+ u,
126
+ o,
127
+ c,
128
+ !1,
129
+ p,
130
+ null,
131
+ null,
132
+ null
133
+ );
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
+ }();
141
+ export {
142
+ d as default
143
+ };
@@ -0,0 +1 @@
1
+ .avue-notice__item{padding:12px 24px;border-bottom:1px solid #e8eaec;cursor:pointer;transition:background-color .2s ease-in-out;text-align:left;display:flex;align-items:flex-start}.avue-notice__content{flex:1}.avue-notice__img{width:38px;height:38px;border-radius:100%;margin-top:5px;margin-right:10px;overflow:hidden}.avue-notice__img img{width:100%;height:100%}.avue-notice__name{line-height:25px}.avue-notice__title{font-size:14px;font-weight:400;line-height:22px;color:#515a6e;margin-bottom:4px}.avue-notice__tag{float:right;margin-top:2px}.avue-notice__subtitle{font-size:12px;color:#808695}.avue-notice__more{cursor:pointer;color:#2d8cf0;text-align:center;padding:10px 0}
@@ -1,4 +1,4 @@
1
- import { n as o } from "../../chunks/5d4282fb.js";
1
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var l = function() {
3
3
  var e = this, t = e.$createElement, a = e._self._c || t;
4
4
  return a("div", {
@@ -1,4 +1,4 @@
1
- import { n as a } from "../../chunks/5d4282fb.js";
1
+ import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var r = function() {
3
3
  var e = this, t = e.$createElement, n = e._self._c || t;
4
4
  return n("div", {
@@ -1,5 +1,5 @@
1
1
  import { treeToArray as d, findFirstMatchNode as n } from "@web-utils/core";
2
- import { n as o } from "../../chunks/5d4282fb.js";
2
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var l = function() {
4
4
  var t = this, a = t.$createElement, e = t._self._c || a;
5
5
  return e("div", {
@@ -1,5 +1,5 @@
1
1
  import { treeToArray as u, findFirstMatchNode as s } from "@web-utils/core";
2
- import { n as o } from "../../chunks/5d4282fb.js";
2
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var c = function() {
4
4
  var t = this, e = t.$createElement, a = t._self._c || e;
5
5
  return t.menus && t.menus.length ? a("PageSkeleton", {
@@ -1,4 +1,4 @@
1
- import { n as o } from "../../chunks/5d4282fb.js";
1
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var a = function() {
3
3
  var e = this, t = e.$createElement, n = e._self._c || t;
4
4
  return n("Page", {
@@ -1,4 +1,4 @@
1
- import { n as a } from "../../chunks/5d4282fb.js";
1
+ import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var s = function() {
3
3
  var e = this, l = e.$createElement, t = e._self._c || l;
4
4
  return t("Page", {
@@ -1,6 +1,6 @@
1
1
  import { cloneDeep as n, merge as c, hasOwn as g } from "@web-utils/core";
2
- import { f as d, d as f, e as b } from "../../chunks/f71045fc.js";
3
- import { n as m } from "../../chunks/5d4282fb.js";
2
+ import { f as d, d as f, e as b } from "../../chunks/utils.fa73de78.js";
3
+ import { n as m } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var y = function() {
5
5
  var e = this, t = e.$createElement, a = e._self._c || t;
6
6
  return a("div", {
@@ -324,6 +324,10 @@ const r = {
324
324
  onCurrentChange(e) {
325
325
  this.currentRow = e;
326
326
  },
327
+ /**
328
+ *
329
+ * @param {FilterRule} rule
330
+ */
327
331
  addRule(e) {
328
332
  this.removeRule(e.field), this.page.filters.rules.push(e);
329
333
  },
@@ -1,6 +1,6 @@
1
1
  import { cloneDeep as n, merge as p, hasOwn as u } from "@web-utils/core";
2
- import { f as h, d as f, e as m } from "../../chunks/f71045fc.js";
3
- import { n as b } from "../../chunks/5d4282fb.js";
2
+ import { f as h, d as f, e as m } from "../../chunks/utils.fa73de78.js";
3
+ import { n as b } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var y = function() {
5
5
  var e = this, t = e.$createElement, s = e._self._c || t;
6
6
  return s("div", {
@@ -132,6 +132,7 @@ const a = {
132
132
  this.model && (t = n(this.model));
133
133
  const s = this.pageSize;
134
134
  return {
135
+ // TABLE_STATUS: Object.freeze(TABLE_STATUS),
135
136
  tableStatus: a.empty,
136
137
  records: [],
137
138
  loading: !1,
@@ -223,6 +224,10 @@ const a = {
223
224
  onCurrentChange(e) {
224
225
  this.currentRow = e;
225
226
  },
227
+ /**
228
+ *
229
+ * @param {FilterRule} rule
230
+ */
226
231
  addRule(e) {
227
232
  this.removeRule(e.field), this.page.filters.rules.push(e);
228
233
  },
@@ -2,9 +2,14 @@ import "photoswipe/dist/photoswipe.css";
2
2
  import "photoswipe/dist/default-skin/default-skin.css";
3
3
  import f from "photoswipe";
4
4
  import p from "photoswipe/dist/photoswipe-ui-default";
5
- import { n as u } from "../../chunks/5d4282fb.js";
5
+ import { n as u } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
6
6
  function d(t, r, A, a) {
7
7
  const e = new f(t, r, A, {
8
+ /**
9
+ * 获取缩略图元素在屏幕上的矩形区,用来实现放大动画
10
+ * @param index
11
+ * @returns {{w: number, x: number, y: number}}
12
+ */
8
13
  getThumbBoundsFn: function(s) {
9
14
  const i = A[s].el.getElementsByTagName("img")[0] || A[s].el, l = window.pageYOffset || document.documentElement.scrollTop, o = i.getBoundingClientRect();
10
15
  return { x: o.left, y: o.top + l, w: o.width };
@@ -31,6 +36,7 @@ async function m(t) {
31
36
  const e = t[A], n = e.getAttribute("data-src") || e.getAttribute("src"), s = await b(e, n), i = {
32
37
  src: n,
33
38
  el: e,
39
+ // getThumbBoundsFn 会用到
34
40
  msrc: n,
35
41
  w: s.width,
36
42
  h: s.height,
@@ -0,0 +1,60 @@
1
+ import { n } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
+ var s = function() {
3
+ var e = this, t = e.$createElement, r = e._self._c || t;
4
+ return r("div", {
5
+ staticClass: "avue-progress"
6
+ }, [r("ElProgress", {
7
+ attrs: {
8
+ type: e.type,
9
+ color: e.color,
10
+ width: e.width,
11
+ "text-inside": "",
12
+ "show-text": e.showText,
13
+ "stroke-width": e.strokeWidth,
14
+ percentage: e.percentage
15
+ }
16
+ })], 1);
17
+ }, i = [];
18
+ const a = {
19
+ name: "Progress",
20
+ props: {
21
+ showText: {
22
+ type: Boolean
23
+ },
24
+ width: {
25
+ type: [Number, String]
26
+ },
27
+ strokeWidth: {
28
+ type: [Number, String]
29
+ },
30
+ type: {
31
+ type: String
32
+ },
33
+ color: {
34
+ type: String
35
+ },
36
+ percentage: {
37
+ type: [Number]
38
+ }
39
+ }
40
+ }, o = {};
41
+ var c = /* @__PURE__ */ n(
42
+ a,
43
+ s,
44
+ i,
45
+ !1,
46
+ p,
47
+ null,
48
+ null,
49
+ null
50
+ );
51
+ function p(e) {
52
+ for (let t in o)
53
+ this[t] = o[t];
54
+ }
55
+ const _ = /* @__PURE__ */ function() {
56
+ return c.exports;
57
+ }();
58
+ export {
59
+ _ as default
60
+ };