@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,156 @@
1
+ import { p as a, e as o } from "../../chunks/event.50c365eb.js";
2
+ import { i as c } from "../../chunks/util.5053d54e.js";
3
+ import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
+ var u = function() {
5
+ var t = this, i = t.$createElement, e = t._self._c || i;
6
+ return e("div", {
7
+ staticClass: "avue-array"
8
+ }, [t.text ? e("ElButton", {
9
+ attrs: {
10
+ type: "primary",
11
+ icon: "el-icon-plus",
12
+ circle: "",
13
+ size: t.size,
14
+ disabled: t.disabled
15
+ },
16
+ on: {
17
+ click: function(r) {
18
+ return t.add();
19
+ }
20
+ }
21
+ }) : t._e(), t._l(t.text, function(r, s) {
22
+ return e("div", {
23
+ key: s,
24
+ staticClass: "avue-array__item"
25
+ }, [e("div", {
26
+ staticClass: "avue-array__input"
27
+ }, [e("ElTooltip", {
28
+ attrs: {
29
+ placement: "bottom",
30
+ disabled: !t.isImg && !t.isUrl || !!r
31
+ }
32
+ }, [e("div", {
33
+ attrs: {
34
+ slot: "content"
35
+ },
36
+ slot: "content"
37
+ }, [t.isImg ? e(t.isMediaType(r), {
38
+ tag: "Component",
39
+ staticStyle: {
40
+ width: "200px"
41
+ },
42
+ attrs: {
43
+ src: r,
44
+ controls: "controls"
45
+ },
46
+ on: {
47
+ click: function(n) {
48
+ return t.openImg(s);
49
+ }
50
+ }
51
+ }) : t.isUrl ? e("ElLink", {
52
+ attrs: {
53
+ type: "primary",
54
+ href: r,
55
+ target: t.target
56
+ }
57
+ }, [t._v(" " + t._s(r) + " ")]) : t._e()], 1), e("ElInput", {
58
+ attrs: {
59
+ size: t.size,
60
+ placeholder: t.placeholder,
61
+ disabled: t.disabled
62
+ },
63
+ model: {
64
+ value: t.text[s],
65
+ callback: function(n) {
66
+ t.$set(t.text, s, n);
67
+ },
68
+ expression: "text[index]"
69
+ }
70
+ })], 1), t.disabled || t.readonly || t.alone ? t._e() : [t.isLimit ? t._e() : e("ElButton", {
71
+ attrs: {
72
+ type: "primary",
73
+ icon: "el-icon-plus",
74
+ circle: "",
75
+ size: t.size,
76
+ disabled: t.disabled
77
+ },
78
+ on: {
79
+ click: function(n) {
80
+ return t.add(s);
81
+ }
82
+ }
83
+ }), e("ElButton", {
84
+ attrs: {
85
+ type: "danger",
86
+ icon: "el-icon-minus",
87
+ circle: "",
88
+ size: t.size,
89
+ disabled: t.disabled
90
+ },
91
+ on: {
92
+ click: function(n) {
93
+ return t.remove(s);
94
+ }
95
+ }
96
+ })]], 2)]);
97
+ })], 2);
98
+ }, d = [];
99
+ const m = {
100
+ name: "Array",
101
+ mixins: [a, o],
102
+ props: {
103
+ fileType: String,
104
+ alone: Boolean,
105
+ type: String,
106
+ limit: Number
107
+ },
108
+ computed: {
109
+ isLimit() {
110
+ return this.limit;
111
+ },
112
+ textLen() {
113
+ return this.text.length;
114
+ },
115
+ isImg() {
116
+ return this.type === "img";
117
+ },
118
+ isUrl() {
119
+ return this.type === "url";
120
+ }
121
+ },
122
+ methods: {
123
+ isMediaType(t) {
124
+ return c(t, this.fileType);
125
+ },
126
+ add(t) {
127
+ this.text.splice(t + 1, 0, "");
128
+ },
129
+ remove(t) {
130
+ this.text.splice(t, 1);
131
+ },
132
+ openImg(t) {
133
+ this.text.map((i) => ({ thumbUrl: i, url: i, type: this.fileType }));
134
+ }
135
+ }
136
+ }, l = {};
137
+ var _ = /* @__PURE__ */ p(
138
+ m,
139
+ u,
140
+ d,
141
+ !1,
142
+ y,
143
+ null,
144
+ null,
145
+ null
146
+ );
147
+ function y(t) {
148
+ for (let i in l)
149
+ this[i] = l[i];
150
+ }
151
+ const b = /* @__PURE__ */ function() {
152
+ return _.exports;
153
+ }();
154
+ export {
155
+ b as default
156
+ };
@@ -0,0 +1 @@
1
+ .avue-array__item{margin-bottom:5px}.avue-array__input{display:flex}.avue-array__input .el-input{flex:auto}.avue-array__input .el-button{margin-left:5px}
@@ -0,0 +1,93 @@
1
+ import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
+ var i = function() {
3
+ var t = this, s = t.$createElement, e = t._self._c || s;
4
+ return e("div", {
5
+ staticClass: "avue-article"
6
+ }, [e("div", {
7
+ staticClass: "avue-article__header"
8
+ }, [t.title ? e("div", {
9
+ staticClass: "avue-article__title",
10
+ domProps: {
11
+ textContent: t._s(t.title)
12
+ }
13
+ }) : t._e(), t.meta ? e("small", {
14
+ staticClass: "avue-article__meta",
15
+ domProps: {
16
+ textContent: t._s(t.meta)
17
+ }
18
+ }) : t._e()]), t.lead ? e("div", {
19
+ staticClass: "avue-article__lead",
20
+ domProps: {
21
+ textContent: t._s(t.lead)
22
+ }
23
+ }) : t._e(), t.body ? e("div", {
24
+ staticClass: "avue-article__body",
25
+ domProps: {
26
+ innerHTML: t._s(t.body)
27
+ }
28
+ }) : t._e()]);
29
+ }, n = [];
30
+ const a = {
31
+ title: "title",
32
+ meta: "meta",
33
+ lead: "lead",
34
+ body: "body"
35
+ }, o = {
36
+ name: "Article",
37
+ props: {
38
+ data: {
39
+ type: Object,
40
+ default: () => ({})
41
+ },
42
+ props: {
43
+ type: Object,
44
+ default: () => a
45
+ }
46
+ },
47
+ computed: {
48
+ titleKey() {
49
+ return this.props.title || a.title;
50
+ },
51
+ metaKey() {
52
+ return this.props.meta || a.meta;
53
+ },
54
+ leadKey() {
55
+ return this.props.lead || a.lead;
56
+ },
57
+ bodyKey() {
58
+ return this.props.body || a.body;
59
+ },
60
+ title() {
61
+ return this.data[this.titleKey];
62
+ },
63
+ meta() {
64
+ return this.data[this.metaKey];
65
+ },
66
+ lead() {
67
+ return this.data[this.leadKey];
68
+ },
69
+ body() {
70
+ return this.data[this.bodyKey];
71
+ }
72
+ }
73
+ }, r = {};
74
+ var d = /* @__PURE__ */ l(
75
+ o,
76
+ i,
77
+ n,
78
+ !1,
79
+ _,
80
+ null,
81
+ null,
82
+ null
83
+ );
84
+ function _(t) {
85
+ for (let s in r)
86
+ this[s] = r[s];
87
+ }
88
+ const u = /* @__PURE__ */ function() {
89
+ return d.exports;
90
+ }();
91
+ export {
92
+ u as default
93
+ };
@@ -0,0 +1 @@
1
+ .avue-article__title{margin-bottom:15px;font-size:32px;line-height:32px;font-weight:400}.avue-article__meta{display:block;margin-bottom:20px;font-size:12px;color:#999}.avue-article__lead{color:#666;font-size:14px;line-height:22px;border:1px solid #dedede;border-radius:2px;background:#f9f9f9;padding:10px}.avue-article__body{padding-top:10px;background:#fff;font-family:Segoe UI,Lucida Grande,Helvetica,Arial,Microsoft YaHei,FreeSans,Arimo,Droid Sans,wenquanyi micro hei,Hiragino Sans GB,Hiragino Sans GB W3,FontAwesome,sans-serif;color:#333;font-size:14px}.avue-article blockquote{margin:0;font-family:Georgia,Times New Roman,Times,Kai,Kaiti SC,KaiTi,BiauKai,FontAwesome,serif;padding:1px 0 1px 15px;border-left:4px solid #ddd}
@@ -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 o = function() {
3
3
  var e = this, t = e.$createElement, s = e._self._c || t;
4
4
  return s("div", {
@@ -0,0 +1,106 @@
1
+ import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
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 = {
22
+ name: "Avatar",
23
+ props: {
24
+ src: String,
25
+ shape: {
26
+ validator: (e) => ["circle", "square"].includes(e),
27
+ type: String,
28
+ default: "circle"
29
+ },
30
+ size: {
31
+ validator: (e) => typeof e == "number" || ["small", "large", "default"].includes(e),
32
+ default: "default"
33
+ },
34
+ icon: String
35
+ },
36
+ data() {
37
+ return {
38
+ scale: 1
39
+ };
40
+ },
41
+ computed: {
42
+ 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;
50
+ },
51
+ sizeCls() {
52
+ return {
53
+ [`${i}--${this.shape}`]: this.shape,
54
+ [`${i}--lg`]: this.size === "large",
55
+ [`${i}--sm`]: this.size === "small"
56
+ };
57
+ },
58
+ sizeStyle() {
59
+ return typeof this.size == "number" ? {
60
+ width: `${this.size}px`,
61
+ height: `${this.size}px`,
62
+ lineHeight: `${this.size}px`,
63
+ fontSize: this.icon ? `${this.size / 2}px` : "18px"
64
+ } : {};
65
+ }
66
+ },
67
+ updated() {
68
+ this.$nextTick(() => {
69
+ this.setScale();
70
+ });
71
+ },
72
+ mounted() {
73
+ this.$nextTick(() => {
74
+ this.setScale();
75
+ });
76
+ },
77
+ methods: {
78
+ 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;
83
+ }
84
+ }
85
+ }
86
+ }, a = {};
87
+ var o = /* @__PURE__ */ r(
88
+ c,
89
+ n,
90
+ l,
91
+ !1,
92
+ h,
93
+ null,
94
+ null,
95
+ null
96
+ );
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
+ }();
104
+ export {
105
+ d as default
106
+ };
@@ -0,0 +1 @@
1
+ .avue-avatar{font-size:14px;font-variant:tabular-nums;line-height:1.5;color:#000000a6;box-sizing:border-box;margin:0;padding:0;list-style:none;display:inline-block;text-align:center;background:#ccc;color:#fff;white-space:nowrap;position:relative;overflow:hidden;vertical-align:middle;width:32px;height:32px;line-height:32px;border-radius:50%}.avue-avatar__images{width:100%;height:100%}.avue-avatar__icon{font-size:18px}.avue-avatar__string{position:absolute;left:50%;transform-origin:0 center}.avue-avatar--lg{width:40px;height:40px;line-height:40px;border-radius:50%;font-size:24px}.avue-avatar--sm{width:24px;height:24px;line-height:24px;border-radius:50%;font-size:14px}.avue-avatar--square{border-radius:4px}
@@ -1,5 +1,5 @@
1
1
  import { isFunction as i, error as r } from "@web-utils/core";
2
- import { n as a } from "../../chunks/5d4282fb.js";
2
+ import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  const l = {
4
4
  props: {
5
5
  type: {
@@ -1 +1 @@
1
- .border-bottom{border-bottom:1px solid #d7dae0}.clear-fix:after{display:block;clear:both;height:0;visibility:hidden;content:" "}.flex-row{display:flex;flex-direction:row;flex-shrink:0}.flex-row.vertical-center{align-items:center}.flex-row.vertical-start{align-items:flex-start}.flex-row.horizon-center{justify-content:center}.text-center{text-align:center}.flex-column{display:flex;flex-direction:column}.flex-column.vertical-center{justify-content:center}.flex-column.horizon-center{align-items:center}.flex-item,.flex-item-relative{flex:1 1 auto}.flex-item-relative{position:relative}.flex-item-relative .flex-content{position:absolute;top:0;right:0;bottom:0;left:0}.flex-not-shrink{flex-shrink:0}
1
+ .border-bottom{border-bottom:1px solid #d7dae0}.clear-fix:after{display:block;clear:both;height:0;visibility:hidden;content:" "}.flex-row{display:flex;flex-direction:row;flex-shrink:0}.flex-row.vertical-center{align-items:center}.flex-row.vertical-start{align-items:flex-start}.flex-row.horizon-center{justify-content:center}.text-center{text-align:center}.flex-column{display:flex;flex-direction:column}.flex-column.vertical-center{justify-content:center}.flex-column.horizon-center{align-items:center}.flex-item,.flex-item-relative{flex:1 1 auto}.flex-item-relative{position:relative}.flex-item-relative .flex-content{position:absolute;top:0;right:0;bottom:0;left:0}.flex-not-shrink{flex-shrink:0}body{font-family:Chinese Quote,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}*{outline:none}.avue-canvas{display:none}.avue-ghost{opacity:.5;background:#c8ebfb}.avue--disabled{color:#ccc}.avue--detail .hover-row td{background-color:#fff!important}.avue--detail .avue-group__header{border-bottom:1px solid #eee;padding-left:10px}.avue--detail .el-collapse-item__header{margin-bottom:0}.avue--detail .el-input.is-disabled .el-input__inner,.avue--detail .el-textarea.is-disabled .el-textarea__inner,.avue--detail .el-range-editor.is-disabled,.avue--detail .el-range-editor.is-disabled input{color:#606266;background-color:#fff;padding-left:0}.avue--detail .el-input-number__decrease,.avue--detail .el-input-number__increase{display:none}.avue--detail .el-input-group__append,.avue--detail .el-input-group__prepend{background-color:transparent;border:none}.avue--detail .el-input__suffix,.avue--detail .el-input__prefix{display:none}.avue--detail .el-input__inner,.avue--detail .el-textarea__inner{border:none}.avue--detail .el-input__inner::-webkit-input-placeholder,.avue--detail .el-textarea__inner::-webkit-input-placeholder{color:transparent!important}.avue--detail .el-input__inner::-moz-placeholder,.avue--detail .el-textarea__inner::-moz-placeholder{color:transparent!important}.avue--detail .el-input__inner::-ms-input-placeholder,.avue--detail .el-textarea__inner::-ms-input-placeholder{color:transparent!important}.avue--detail .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:#409eff;border-color:#409eff}.avue--detail .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:#fff}.avue--detail .el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:#409eff;border-color:#409eff}.avue--detail .el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:#fff}.avue--detail .el-checkbox__input.is-disabled+span.el-checkbox__label,.avue--detail .el-radio__input.is-disabled+span.el-radio__label{color:#606266}.avue--detail .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap>.el-form-item__label:before,.avue--detail .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before{display:none}.avue--detail .el-row{border-top:1px solid #ebeef5;border-left:1px solid #ebeef5}.avue--detail .el-col{margin:0!important;padding:0!important;border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5}.avue--detail .el-form-item--medium.el-form-item,.avue--detail .el-form-item--mini.el-form-item,.avue--detail .el-form-item--small.el-form-item{margin:0;background:#fafafa}.avue--detail .el-form-item__label,.avue--detail .el-form-item__content{padding:2px 0}.avue--detail .el-form-item__label{padding-right:20px;color:#909399;box-sizing:border-box}.avue--detail .el-tag{margin-left:0!important;margin-right:6px!important}.avue--detail .avue-crud .el-form-item__content{border:none}.avue--detail .el-form-item__content{border-left:1px solid #ebeef5;padding-left:20px;box-sizing:border-box;background-color:#fff}.avue--detail__column .el-form-item{background-color:#fff}.avue--detail__column .el-form-item__label{padding-right:12px}.avue--detail__column .el-form-item__content{padding-left:0;border-left:none}.avue-grid{position:absolute;top:0;left:0;width:100%;height:100%;background-size:20px 20px,20px 20px;background-image:linear-gradient(rgba(0,0,0,.1) 1px,transparent 0),linear-gradient(90deg,rgba(0,0,0,.1) 1px,transparent 0)}.avue-mask{position:fixed;top:0;bottom:0;left:0;right:0;background-color:#37373799;height:100%;z-index:1000}.avue--card{box-shadow:2px 1px 8px #00000026;border-radius:5px}.avue-dialog{overflow:visible}.avue-dialog .el-dialog{min-height:180px;display:flex;flex-direction:column;position:absolute;top:0;left:50%;transform:translate(-50%);border-radius:2px;max-height:calc(100% - 200px);max-width:calc(100% - 100px)}.avue-dialog .el-dialog__header{padding:16px 24px;min-height:20px;border-bottom:1px solid #f0f0f0}.avue-dialog .el-dialog__title,.avue-dialog .el-drawer__header{color:#000000d9;font-weight:500;word-wrap:break-word}.avue-dialog .el-dialog__body{padding:30px 20px 20px;margin-bottom:50px}.avue-dialog .el-dialog .el-dialog__body{flex:1;overflow:hidden;overflow-y:auto}.avue-dialog .el-drawer{position:absolute;right:0;top:0;display:flex;flex-direction:column}.avue-dialog .el-drawer__header{margin:0;min-height:20px;padding:16px 10px 16px 24px;border-bottom:1px solid #f0f0f0}.avue-dialog .el-drawer,.avue-dialog .el-drawer__body{flex:1;overflow:auto}.avue-dialog__footer{display:block;padding:10px 16px;box-sizing:border-box;border-top:1px solid #f0f0f0;width:100%;position:absolute;left:0;bottom:0;background-color:#fff;text-align:right}.avue-dialog__footer--left{text-align:left}.avue-dialog__footer--center{text-align:center}.avue-dialog--fullscreen .el-dialog{left:0;top:0;transform:translate(0);width:100%!important;height:100%;max-width:100%;max-height:100%}.avue-dialog--top .el-dialog{top:15%}.avue-dialog--none .el-dialog__body{margin-bottom:0}.avue-queue--block{display:inline-block}.avue-opacity{opacity:0}.avue-opacity--active{opacity:1}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.el-tooltip__popper{max-width:60%}.avue-crud .el-select,.avue-crud .el-date-editor.el-input,.avue-crud .el-date-editor.el-input__inner,.avue-crud .el-cascader,.avue-crud .avue-input-number,.avue-form .el-select,.avue-form .el-date-editor.el-input,.avue-form .el-date-editor.el-input__inner,.avue-form .el-cascader,.avue-form .avue-input-number{width:100%!important}.avue-crud .el-input-number .el-input__inner,.avue-form .el-input-number .el-input__inner{text-align:left}.avue-crud .avue-crud__left .el-button+.el-button,.avue-crud .avue-crud__right .el-button+.el-button,.avue-form .avue-crud__left .el-button+.el-button,.avue-form .avue-crud__right .el-button+.el-button{margin-left:0}.avue-crud .avue-crud__left .el-button,.avue-crud .avue-crud__right .el-button,.avue-form .avue-crud__left .el-button,.avue-form .avue-crud__right .el-button{margin-right:5px;margin-bottom:0}.avue-crud .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content,.avue-form .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{color:#409eff}.avue-crud .el-tree-node__label,.avue-form .el-tree-node__label{margin-left:8px}.avue-crud .el-input__inner,.avue-form .el-input__inner{height:38px;line-height:38px}.avue-crud .el-range-editor--small,.avue-form .el-range-editor--small{height:32px;line-height:32px}.avue-crud .el-range-editor--mini,.avue-form .el-range-editor--mini{height:28px;line-height:28px}.avue-crud .el-input--small input,.avue-form .el-input--small input{height:32px;line-height:32px}.avue-crud .el-input--mini input,.avue-form .el-input--mini input{height:28px;line-height:28px}.avue-crud .el-table--medium td,.avue-form .el-table--medium td{padding:7px 0!important}.avue-crud .el-tooltip__popper,.avue-form .el-tooltip__popper{max-width:60%}.avue-crud .el-dropdown-menu__item,.avue-form .el-dropdown-menu__item{line-height:25px}.avue-crud .el-table-filter__list,.avue-form .el-table-filter__list{width:100%;height:300px;overflow-y:auto}.el-form-item--mini .el-color-picker--mini,.el-form-item--mini .el-color-picker--mini .el-color-picker__trigger{width:23px;height:23px}.el-dropdown-menu .el-button--text{width:100%!important}.el-pagination__editor.el-input .el-input__inner{line-height:28px}.el-drawer .el-drawer__body{height:100%}.el-drawer .avue-form{padding:20px}.el-checkbox:last-of-type{margin-right:8px}.el-table th.gutter,.el-table colgroup.gutter{display:table-cell!important}.el-input-number .el-input__suffix{display:none}.el-input-number__decrease,.el-input-number__increase{background-color:transparent}.el-tree-node.is-current>.el-tree-node__content{color:#409eff;background-color:#f5f7fa}.el-select-dropdown .el-scrollbar .el-scrollbar__view .el-select-dropdown__item{height:auto;padding:0}.el-select-dropdown .el-scrollbar .el-scrollbar__view .el-select-dropdown__item>span{padding:0 20px}.el-select-dropdown__item.selected,.el-select-dropdown .el-tree-node__label{font-weight:400}.el-form-item.is-error .avue-dynamic{border:1px solid #F56C6C;border-radius:3px}.el-dropdown-menu__item{padding-top:3px!important;padding-bottom:3px!important}.el-upload--picture-card .el-upload-dragger,.el-upload--picture-img .el-upload-dragger{width:inherit;height:inherit;background-color:inherit}@media screen and (max-width: 992px){.el-dialog__footer{display:flex;justify-content:center}.el-button+.el-button{margin-left:0}.el-upload-list--picture-card .el-upload-list__item,.avue-upload__avatar,.el-upload--picture-card,.avue-upload__icon{width:100px;height:100px;line-height:100px}.avue-tip{display:none}.avue-crud__menu{display:block!important}.avue-crud .el-form-item{width:100%}.avue-crud .el-form-item__label{flex:1}.avue-crud .el-form-item__content{flex:5}.avue-crud__searchMenu{text-align:center}.avue-crud__title{display:block!important}.avue-crud__title p{margin-bottom:20px}.avue-crud__title .avue-date__group{justify-content:center}.avue-crud__title .avue-date__date{display:none}.avue-crud__title .avue-date__radio{width:100%}.avue-crud__title .avue-date__radio .el-radio-group{display:flex}.avue-crud__title .avue-date__radio .el-radio-group label,.avue-crud__title .avue-date__radio .el-radio-group .el-radio-button__inner{width:100%}.avue-crud__title .avue-date__radio .el-radio-button:last-child .el-radio-button__inner{border-radius:0 4px 4px 0;border-right:1px solid #dcdfe6}}
@@ -1,4 +1,4 @@
1
- import { n as s } from "../../chunks/5d4282fb.js";
1
+ import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var u = function() {
3
3
  var e = this, t = e.$createElement, a = e._self._c || t;
4
4
  return a("ul", {
@@ -0,0 +1,130 @@
1
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
+ var u = function() {
3
+ var t = this, a = t.$createElement, e = t._self._c || a;
4
+ return e("div", {
5
+ staticClass: "avue-card"
6
+ }, [e("ElRow", {
7
+ attrs: {
8
+ span: 24,
9
+ gutter: t.gutter
10
+ }
11
+ }, [t.option.addBtn ? e("ElCol", {
12
+ attrs: {
13
+ span: t.span
14
+ }
15
+ }, [e("div", {
16
+ staticClass: "avue-card__item avue-card__item--add",
17
+ on: {
18
+ click: function(r) {
19
+ return t.rowAdd();
20
+ }
21
+ }
22
+ }, [e("i", {
23
+ staticClass: "el-icon-plus"
24
+ }), e("span", [t._v("添加")])])]) : t._e(), t._l(t.data, function(r, s) {
25
+ return e("ElCol", {
26
+ key: s,
27
+ attrs: {
28
+ span: t.span
29
+ }
30
+ }, [e("div", {
31
+ staticClass: "avue-card__item",
32
+ on: {
33
+ click: function(d) {
34
+ return t.rowClick(r, s);
35
+ }
36
+ }
37
+ }, [e("div", {
38
+ staticClass: "avue-card__body"
39
+ }, [e("div", {
40
+ staticClass: "avue-card__avatar"
41
+ }, [e("img", {
42
+ attrs: {
43
+ src: r[t.imgKey],
44
+ alt: ""
45
+ }
46
+ })]), e("div", {
47
+ staticClass: "avue-card__detail"
48
+ }, [e("div", {
49
+ staticClass: "avue-card__title"
50
+ }, [t._v(" " + t._s(r[t.titleKey]) + " ")]), e("div", {
51
+ staticClass: "avue-card__info"
52
+ }, [t._v(" " + t._s(r[t.infoKey]) + " ")])])]), e("div", {
53
+ staticClass: "avue-card__menu"
54
+ }, [t._t("menu", null, {
55
+ index: s,
56
+ row: r
57
+ })], 2)])]);
58
+ })], 2)], 1);
59
+ }, l = [];
60
+ const n = {
61
+ img: "img",
62
+ title: "title",
63
+ info: "info"
64
+ }, c = {
65
+ name: "Card",
66
+ props: {
67
+ props: {
68
+ type: Object,
69
+ default: () => n
70
+ },
71
+ option: {
72
+ type: Object,
73
+ default: () => ({})
74
+ },
75
+ data: {
76
+ type: Array,
77
+ default: () => []
78
+ }
79
+ },
80
+ data() {
81
+ return {
82
+ propsDefault: n
83
+ };
84
+ },
85
+ computed: {
86
+ imgKey: function() {
87
+ return this.option.props.img || this.propsDefault.img;
88
+ },
89
+ titleKey: function() {
90
+ return this.option.props.title || this.propsDefault.title;
91
+ },
92
+ infoKey: function() {
93
+ return this.option.props.info || this.propsDefault.info;
94
+ },
95
+ span() {
96
+ return this.option.span || 8;
97
+ },
98
+ gutter() {
99
+ return this.option.gutter || 20;
100
+ }
101
+ },
102
+ methods: {
103
+ rowAdd() {
104
+ this.$emit("row-add");
105
+ },
106
+ rowClick(t, a) {
107
+ this.$emit("row-click", t, a);
108
+ }
109
+ }
110
+ }, i = {};
111
+ var _ = /* @__PURE__ */ o(
112
+ c,
113
+ u,
114
+ l,
115
+ !1,
116
+ p,
117
+ null,
118
+ null,
119
+ null
120
+ );
121
+ function p(t) {
122
+ for (let a in i)
123
+ this[a] = i[a];
124
+ }
125
+ const f = /* @__PURE__ */ function() {
126
+ return _.exports;
127
+ }();
128
+ export {
129
+ f as default
130
+ };
@@ -0,0 +1 @@
1
+ .avue-card__item{margin-bottom:16px;border:1px solid #e8e8e8;background-color:#fff;box-sizing:border-box;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;font-feature-settings:"tnum";cursor:pointer;height:200px}.avue-card__item:hover{border-color:#00000017;box-shadow:0 2px 8px #00000017}.avue-card__item--add{border:1px dashed #000;width:100%;color:#00000073;background-color:#fff;border-color:#d9d9d9;border-radius:2px;display:flex;align-items:center;justify-content:center;font-size:16px}.avue-card__item--add i{margin-right:10px}.avue-card__item--add:hover{color:#40a9ff;background-color:#fff;border-color:#40a9ff}.avue-card__body{display:flex;padding:24px}.avue-card__detail{flex:1}.avue-card__avatar{width:48px;height:48px;border-radius:48px;overflow:hidden;margin-right:12px}.avue-card__avatar img{width:100%;height:100%}.avue-card__title{color:#000000d9;margin-bottom:12px;font-size:16px}.avue-card__title:hover{color:#1890ff}.avue-card__info{color:#00000073;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;height:64px}.avue-card__menu{display:flex;justify-content:space-around;height:50px;background:#f7f9fa;color:#00000073;text-align:center;line-height:50px}.avue-card__menu:hover{color:#1890ff}
@@ -0,0 +1,70 @@
1
+ import { n } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
+ var l = function() {
3
+ var t = this, o = t.$createElement, e = t._self._c || o;
4
+ return e("div", {
5
+ class: ["avue-carousel", {
6
+ "avue-carousel--fullscreen": t.option.fullscreen
7
+ }]
8
+ }, [e("ElCarousel", {
9
+ attrs: {
10
+ type: t.option.type,
11
+ height: t.option.height + "px",
12
+ autoplay: t.option.autoplay,
13
+ interval: t.option.interval,
14
+ "indicator-position": "outside"
15
+ }
16
+ }, t._l(t.data, function(a, s) {
17
+ return e("ElCarouselItem", {
18
+ key: s
19
+ }, [e("div", {
20
+ staticClass: "avue-carousel__item"
21
+ }, [e("a", {
22
+ attrs: {
23
+ href: a.href ? a.href : "javascript:void(0);",
24
+ target: a.target
25
+ }
26
+ }, [e("div", {
27
+ staticClass: "avue-carousel__img",
28
+ style: {
29
+ backgroundImage: "url(" + a.src + ")"
30
+ }
31
+ }), a.title ? e("div", {
32
+ staticClass: "avue-carousel__title"
33
+ }, [t._v(t._s(a.title))]) : t._e()])])]);
34
+ }), 1)], 1);
35
+ }, u = [];
36
+ const i = {
37
+ name: "Carousel",
38
+ props: {
39
+ option: {
40
+ type: Object,
41
+ default: () => {
42
+ }
43
+ }
44
+ },
45
+ computed: {
46
+ data() {
47
+ return this.option.data || [];
48
+ }
49
+ }
50
+ }, r = {};
51
+ var c = /* @__PURE__ */ n(
52
+ i,
53
+ l,
54
+ u,
55
+ !1,
56
+ _,
57
+ null,
58
+ null,
59
+ null
60
+ );
61
+ function _(t) {
62
+ for (let o in r)
63
+ this[o] = r[o];
64
+ }
65
+ const v = /* @__PURE__ */ function() {
66
+ return c.exports;
67
+ }();
68
+ export {
69
+ v as default
70
+ };
@@ -0,0 +1 @@
1
+ .avue-carousel--fullscreen{height:100%}.avue-carousel--fullscreen .el-carousel,.avue-carousel--fullscreen .el-carousel__container{height:90%}.avue-carousel__item{position:relative;width:100%;height:100%}.avue-carousel__item a{width:100%;height:100%;display:block}.avue-carousel__img{height:100%;background-size:cover;background-position:center center}.avue-carousel__title{z-index:1024;position:absolute;left:0;bottom:0;width:100%;height:50px;line-height:50px;font-size:16px;text-align:center;color:#fff;background-color:#0009}