@web-utils/component 2.7.35 → 2.7.37

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 (513) hide show
  1. package/dist/chunks/{config.75161c38.js → config.46422d7f.mjs} +31 -31
  2. package/dist/chunks/confirmable-mixin.2bfe1ab9.mjs +105 -0
  3. package/dist/chunks/dataformat.5f95e59e.mjs +158 -0
  4. package/dist/chunks/detail.81ecaefa.mjs +29 -0
  5. package/dist/chunks/dic.5c08c9fb.mjs +135 -0
  6. package/dist/chunks/{event.812c361c.js → event.e4e57889.mjs} +47 -78
  7. package/dist/chunks/form-input-mixin.e3b4c68c.mjs +24 -0
  8. package/dist/chunks/form-item-mixin.149d5844.mjs +140 -0
  9. package/dist/chunks/{form-pick-mixin.822300f3.js → form-pick-mixin.61ad06b2.mjs} +3 -3
  10. package/dist/chunks/index.9b7a65d1.mjs +185 -0
  11. package/dist/chunks/init.07b0cebe.mjs +122 -0
  12. package/dist/chunks/{input-number-mixin.44b78389.js → input-number-mixin.41a066be.mjs} +8 -8
  13. package/dist/chunks/{mixins.e1939731.js → mixins.5a78e0db.mjs} +5 -6
  14. package/dist/chunks/{packages.c4ea639d.js → packages.1fc9ccba.mjs} +9 -15
  15. package/dist/chunks/permission.ce5d2121.mjs +16 -0
  16. package/dist/chunks/slot.4b391395.mjs +27 -0
  17. package/dist/chunks/tab-mixin.e2b9c6a4.mjs +81 -0
  18. package/dist/chunks/util.eca708b6.mjs +261 -0
  19. package/dist/chunks/utils.97652d86.mjs +26 -0
  20. package/dist/chunks/vueComponentNormalizer.446f5dc4.mjs +32 -0
  21. package/dist/components/address-input/index.mjs +113 -0
  22. package/dist/components/address-input/style.css +1 -15
  23. package/dist/components/affix/index.mjs +102 -0
  24. package/dist/components/affix/style.css +1 -5
  25. package/dist/components/aside-menu/index.mjs +58 -0
  26. package/dist/components/aside-menu/style.css +1 -9
  27. package/dist/components/avatar/index.mjs +106 -0
  28. package/dist/components/avatar/style.css +1 -57
  29. package/dist/components/awesome-button/index.mjs +112 -0
  30. package/dist/components/base.css +1 -410
  31. package/dist/components/capsule-tab/index.mjs +52 -0
  32. package/dist/components/capsule-tab/style.css +1 -32
  33. package/dist/components/card/index.mjs +130 -0
  34. package/dist/components/card/style.css +1 -90
  35. package/dist/components/carousel/index.mjs +70 -0
  36. package/dist/components/carousel/style.css +1 -41
  37. package/dist/components/chat/index.mjs +567 -0
  38. package/dist/components/chat/style.css +1 -279
  39. package/dist/components/chunk-file-uploader/index.mjs +119 -0
  40. package/dist/components/chunk-file-uploader/style.css +1 -4
  41. package/dist/components/chunk-file-uploader-button/index.mjs +60 -0
  42. package/dist/components/chunk-file-uploader-button/style.css +1 -17
  43. package/dist/components/chunk-file-uploader-drop/index.mjs +83 -0
  44. package/dist/components/chunk-file-uploader-drop/style.css +1 -12
  45. package/dist/components/chunk-file-uploader-file/index.mjs +311 -0
  46. package/dist/components/chunk-file-uploader-file/style.css +1 -125
  47. package/dist/components/chunk-file-uploader-files/index.mjs +49 -0
  48. package/dist/components/chunk-file-uploader-files/style.css +1 -9
  49. package/dist/components/chunk-file-uploader-list/index.mjs +50 -0
  50. package/dist/components/chunk-file-uploader-list/style.css +1 -9
  51. package/dist/components/chunk-file-uploader-un-support/index.mjs +51 -0
  52. package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
  53. package/dist/components/code-mirror-editor/index.mjs +313 -0
  54. package/dist/components/code-mirror-editor/style.css +1 -17
  55. package/dist/components/color-picker/index.mjs +128 -0
  56. package/dist/components/column/index.mjs +115 -0
  57. package/dist/components/column-default/index.mjs +106 -0
  58. package/dist/components/column-dynamic/index.mjs +93 -0
  59. package/dist/components/column-menu/index.mjs +286 -0
  60. package/dist/components/column-slot/index.mjs +266 -0
  61. package/dist/components/comment/index.mjs +94 -0
  62. package/dist/components/comment/style.css +1 -92
  63. package/dist/components/confirm-button/index.mjs +57 -0
  64. package/dist/components/confirmable/index.mjs +28 -0
  65. package/dist/components/context-menu/index.mjs +253 -0
  66. package/dist/components/context-menu/style.css +1 -88
  67. package/dist/components/count-up/index.mjs +131 -0
  68. package/dist/components/custom-scrollbar/index.mjs +167 -0
  69. package/dist/components/data-box/index.mjs +97 -0
  70. package/dist/components/data-box/style.css +1 -58
  71. package/dist/components/data-card/index.mjs +98 -0
  72. package/dist/components/data-card/style.css +1 -46
  73. package/dist/components/data-cardtext/index.mjs +82 -0
  74. package/dist/components/data-cardtext/style.css +1 -36
  75. package/dist/components/data-display/index.mjs +93 -0
  76. package/dist/components/data-display/style.css +1 -37
  77. package/dist/components/data-icons/index.mjs +104 -0
  78. package/dist/components/data-icons/style.css +1 -53
  79. package/dist/components/data-imgtext/index.mjs +106 -0
  80. package/dist/components/data-imgtext/style.css +1 -70
  81. package/dist/components/data-operatext/index.mjs +99 -0
  82. package/dist/components/data-operatext/style.css +1 -81
  83. package/dist/components/data-panel/index.mjs +93 -0
  84. package/dist/components/data-panel/style.css +1 -37
  85. package/dist/components/data-pay/index.mjs +149 -0
  86. package/dist/components/data-pay/style.css +1 -102
  87. package/dist/components/data-price/index.mjs +84 -0
  88. package/dist/components/data-price/style.css +1 -81
  89. package/dist/components/data-progress/index.mjs +97 -0
  90. package/dist/components/data-progress/style.css +1 -30
  91. package/dist/components/data-rotate/index.mjs +96 -0
  92. package/dist/components/data-rotate/style.css +1 -50
  93. package/dist/components/data-table-picker/index.mjs +137 -0
  94. package/dist/components/data-tabs/index.mjs +94 -0
  95. package/dist/components/data-tabs/style.css +1 -70
  96. package/dist/components/dialog-column/index.mjs +139 -0
  97. package/dist/components/dialog-excel/index.mjs +211 -0
  98. package/dist/components/dialog-filter/index.mjs +246 -0
  99. package/dist/components/dialog-form/index.mjs +143 -0
  100. package/dist/components/dialog-form/style.css +1 -10
  101. package/dist/components/dynamic-table/index.mjs +195 -0
  102. package/dist/components/dynamic-table/style.css +1 -30
  103. package/dist/components/e-charts/index.mjs +216 -0
  104. package/dist/components/e-charts/style.css +1 -10
  105. package/dist/components/easy-popup/index.mjs +87 -0
  106. package/dist/components/easy-popup/style.css +1 -18
  107. package/dist/components/editable-progress/index.mjs +141 -0
  108. package/dist/components/editable-progress/style.css +1 -37
  109. package/dist/components/editable-tree/index.mjs +844 -0
  110. package/dist/components/editable-tree/style.css +1 -82
  111. package/dist/components/egd-collapse/index.mjs +79 -0
  112. package/dist/components/egd-collapse-item/index.mjs +132 -0
  113. package/dist/components/element-dialog/index.mjs +249 -0
  114. package/dist/components/element-dialog/style.css +1 -88
  115. package/dist/components/empty-view/index.mjs +69 -0
  116. package/dist/components/empty-view/style.css +1 -17
  117. package/dist/components/error-view/index.mjs +61 -0
  118. package/dist/components/error-view/style.css +1 -17
  119. package/dist/components/flex-column/index.mjs +62 -0
  120. package/dist/components/flex-item/index.mjs +81 -0
  121. package/dist/components/flex-row/index.mjs +62 -0
  122. package/dist/components/flex-scroller/index.mjs +47 -0
  123. package/dist/components/flex-scroller/style.css +1 -20
  124. package/dist/components/flow/index.mjs +277 -0
  125. package/dist/components/flow/style.css +1 -44
  126. package/dist/components/flow-node/index.mjs +102 -0
  127. package/dist/components/flow-viewer/index.mjs +162 -0
  128. package/dist/components/flow-viewer/style.css +1 -19
  129. package/dist/components/form-button/index.mjs +80 -0
  130. package/dist/components/form-cascader/index.mjs +163 -0
  131. package/dist/components/form-checkbox-group/index.mjs +203 -0
  132. package/dist/components/form-checkbox-group/style.css +1 -51
  133. package/dist/components/form-date-picker/index.mjs +191 -0
  134. package/dist/components/form-group/index.mjs +122 -0
  135. package/dist/components/form-group/style.css +1 -76
  136. package/dist/components/form-holder/index.mjs +129 -0
  137. package/dist/components/form-input/index.mjs +117 -0
  138. package/dist/components/form-input-email/index.mjs +108 -0
  139. package/dist/components/form-input-id-card/index.mjs +115 -0
  140. package/dist/components/form-input-number/index.mjs +134 -0
  141. package/dist/components/form-input-number/style.css +1 -12
  142. package/dist/components/form-input-phone-number/index.mjs +109 -0
  143. package/dist/components/form-input-time/index.mjs +135 -0
  144. package/dist/components/form-item/index.mjs +147 -0
  145. package/dist/components/form-item/style.css +1 -11
  146. package/dist/components/form-item-config-provider/index.mjs +63 -0
  147. package/dist/components/form-item-group/index.mjs +169 -0
  148. package/dist/components/form-item-group/style.css +1 -30
  149. package/dist/components/form-radio-group/index.mjs +181 -0
  150. package/dist/components/form-radio-group/style.css +1 -53
  151. package/dist/components/form-select/index.mjs +165 -0
  152. package/dist/components/form-switch/index.mjs +108 -0
  153. package/dist/components/form-temp/index.mjs +149 -0
  154. package/dist/components/form-textarea/index.mjs +113 -0
  155. package/dist/components/form-view/index.mjs +366 -0
  156. package/dist/components/form-view/style.css +1 -158
  157. package/dist/components/fy-array/index.mjs +156 -0
  158. package/dist/components/fy-array/style.css +1 -18
  159. package/dist/components/fy-article/index.mjs +93 -0
  160. package/dist/components/fy-article/style.css +1 -40
  161. package/dist/components/fy-cascader/index.mjs +132 -0
  162. package/dist/components/fy-checkbox/index.mjs +116 -0
  163. package/dist/components/fy-checkbox/style.css +1 -15
  164. package/dist/components/fy-code/index.mjs +66 -0
  165. package/dist/components/fy-curd/index.mjs +751 -0
  166. package/dist/components/fy-curd/style.css +1 -239
  167. package/dist/components/fy-date/index.mjs +84 -0
  168. package/dist/components/fy-date/style.css +1 -21
  169. package/dist/components/fy-dialog-form/index.mjs +278 -0
  170. package/dist/components/fy-draggable/index.mjs +382 -0
  171. package/dist/components/fy-draggable/style.css +1 -136
  172. package/dist/components/fy-dynamic/index.mjs +337 -0
  173. package/dist/components/fy-dynamic/style.css +1 -35
  174. package/dist/components/fy-empty/{index.js → index.mjs} +28 -34
  175. package/dist/components/fy-empty/style.css +1 -24
  176. package/dist/components/fy-form/index.mjs +786 -0
  177. package/dist/components/fy-form/style.css +1 -79
  178. package/dist/components/fy-form-design/index.mjs +7775 -0
  179. package/dist/components/fy-form-design/style.css +1 -578
  180. package/dist/components/fy-form-menu/index.mjs +95 -0
  181. package/dist/components/fy-input/index.mjs +176 -0
  182. package/dist/components/fy-input-color/index.mjs +101 -0
  183. package/dist/components/fy-input-icon/index.mjs +161 -0
  184. package/dist/components/fy-input-icon/style.css +1 -39
  185. package/dist/components/fy-input-map/index.mjs +275 -0
  186. package/dist/components/fy-input-map/style.css +1 -50
  187. package/dist/components/fy-input-number/index.mjs +87 -0
  188. package/dist/components/fy-input-table/index.mjs +172 -0
  189. package/dist/components/fy-input-table/style.css +1 -10
  190. package/dist/components/fy-input-tree/index.mjs +265 -0
  191. package/dist/components/fy-input-tree/style.css +1 -25
  192. package/dist/components/fy-progress/index.mjs +60 -0
  193. package/dist/components/fy-radio/index.mjs +68 -0
  194. package/dist/components/fy-radio/style.css +1 -12
  195. package/dist/components/fy-rate/index.mjs +105 -0
  196. package/dist/components/fy-rate/style.css +1 -9
  197. package/dist/components/fy-select/index.mjs +224 -0
  198. package/dist/components/fy-select/style.css +1 -25
  199. package/dist/components/fy-slider/index.mjs +79 -0
  200. package/dist/components/fy-switch/index.mjs +73 -0
  201. package/dist/components/fy-tabs/index.mjs +90 -0
  202. package/dist/components/fy-tabs/style.css +0 -6
  203. package/dist/components/fy-time/index.mjs +95 -0
  204. package/dist/components/fy-title/index.mjs +40 -0
  205. package/dist/components/fy-title/style.css +1 -11
  206. package/dist/components/fy-tree/index.mjs +428 -0
  207. package/dist/components/fy-tree/style.css +1 -46
  208. package/dist/components/fy-u-editor/index.mjs +409 -0
  209. package/dist/components/fy-u-editor/style.css +1 -15
  210. package/dist/components/fy-upload/index.mjs +591 -0
  211. package/dist/components/fy-upload/style.css +1 -60
  212. package/dist/components/guide-steps/index.mjs +94 -0
  213. package/dist/components/guide-steps/style.css +1 -34
  214. package/dist/components/header-menu/index.mjs +238 -0
  215. package/dist/components/header-search/index.mjs +253 -0
  216. package/dist/components/highlight-j-s/index.mjs +76 -0
  217. package/dist/components/highlight-j-s/style.css +1 -21
  218. package/dist/components/icon-card/index.mjs +62 -0
  219. package/dist/components/icon-card/style.css +1 -56
  220. package/dist/components/icon-temp/index.mjs +50 -0
  221. package/dist/components/icon-temp/style.css +1 -21
  222. package/dist/components/iframe-window/index.mjs +61 -0
  223. package/dist/components/iframe-window/style.css +1 -20
  224. package/dist/components/image-cropper/index.mjs +199 -0
  225. package/dist/components/image-cropper/style.css +1 -34
  226. package/dist/components/image-preview/index.mjs +233 -0
  227. package/dist/components/image-preview/style.css +1 -72
  228. package/dist/components/image-viewer/index.mjs +95 -0
  229. package/dist/components/image-viewer/style.css +1 -21
  230. package/dist/components/input-number/index.mjs +274 -0
  231. package/dist/components/input-number/style.css +1 -15
  232. package/dist/components/input-number-range/index.mjs +110 -0
  233. package/dist/components/input-number-range/style.css +1 -12
  234. package/dist/components/j-s-x-component/{index.js → index.mjs} +4 -4
  235. package/dist/components/keep-view-alive/index.mjs +123 -0
  236. package/dist/components/keyboard/index.mjs +384 -0
  237. package/dist/components/keyboard/style.css +1 -547
  238. package/dist/components/license/index.mjs +134 -0
  239. package/dist/components/loading-view/index.mjs +61 -0
  240. package/dist/components/loading-view/style.css +1 -17
  241. package/dist/components/login/index.mjs +250 -0
  242. package/dist/components/login/style.css +1 -25
  243. package/dist/components/name-avatar/index.mjs +66 -0
  244. package/dist/components/name-avatar/style.css +1 -35
  245. package/dist/components/nav-bar/index.mjs +52 -0
  246. package/dist/components/nav-bar/style.css +1 -17
  247. package/dist/components/not-implement/index.mjs +35 -0
  248. package/dist/components/not-implement/style.css +1 -15
  249. package/dist/components/notice/index.mjs +143 -0
  250. package/dist/components/notice/style.css +1 -54
  251. package/dist/components/page/index.mjs +40 -0
  252. package/dist/components/page/style.css +1 -12
  253. package/dist/components/page-header/index.mjs +56 -0
  254. package/dist/components/page-header/style.css +1 -14
  255. package/dist/components/page-index/index.mjs +175 -0
  256. package/dist/components/page-index/style.css +1 -23
  257. package/dist/components/page-index-top/index.mjs +141 -0
  258. package/dist/components/page-skeleton/index.mjs +56 -0
  259. package/dist/components/page-skeleton/style.css +1 -23
  260. package/dist/components/page-skeleton-new/index.mjs +98 -0
  261. package/dist/components/page-skeleton-new/style.css +1 -42
  262. package/dist/components/pageable-table/index.mjs +478 -0
  263. package/dist/components/pageable-table/style.css +1 -72
  264. package/dist/components/pageable-view/index.mjs +378 -0
  265. package/dist/components/pageable-view/style.css +1 -69
  266. package/dist/components/photo-swipe/index.mjs +129 -0
  267. package/dist/components/process-designer/{index.js → index.mjs} +1022 -1211
  268. package/dist/components/process-designer/style.css +1 -1186
  269. package/dist/components/properties-panel/index.mjs +4791 -0
  270. package/dist/components/properties-panel/style.css +1 -122
  271. package/dist/components/queue/index.mjs +76 -0
  272. package/dist/components/record-video/index.mjs +173 -0
  273. package/dist/components/record-video/style.css +1 -53
  274. package/dist/components/resize-observer/index.mjs +62 -0
  275. package/dist/components/resize-observer/style.css +1 -31
  276. package/dist/components/search/index.mjs +143 -0
  277. package/dist/components/search/style.css +1 -57
  278. package/dist/components/search-popover/index.mjs +411 -0
  279. package/dist/components/search-popover/style.css +1 -93
  280. package/dist/components/sign/index.mjs +133 -0
  281. package/dist/components/sign/style.css +1 -12
  282. package/dist/components/sign-panel/index.mjs +255 -0
  283. package/dist/components/sign-panel/style.css +1 -97
  284. package/dist/components/skeleton/index.mjs +82 -0
  285. package/dist/components/skeleton/style.css +1 -61
  286. package/dist/components/split-pane/index.mjs +233 -0
  287. package/dist/components/split-pane/style.css +1 -100
  288. package/dist/components/stateful/index.mjs +84 -0
  289. package/dist/components/stateful/style.css +1 -33
  290. package/dist/components/static-pageable-table/index.mjs +92 -0
  291. package/dist/components/static-pageable-table/style.css +1 -9
  292. package/dist/components/swiper/index.mjs +178 -0
  293. package/dist/components/swiper/style.css +1 -43
  294. package/dist/components/tab/index.mjs +147 -0
  295. package/dist/components/tab/style.css +1 -122
  296. package/dist/components/tab-item/index.mjs +73 -0
  297. package/dist/components/table-column/index.mjs +102 -0
  298. package/dist/components/table-page/index.mjs +132 -0
  299. package/dist/components/table-view/index.mjs +390 -0
  300. package/dist/components/table-view/style.css +1 -95
  301. package/dist/components/tag-render/index.mjs +108 -0
  302. package/dist/components/tag-render/style.css +1 -33
  303. package/dist/components/text-ellipsis/index.mjs +108 -0
  304. package/dist/components/text-ellipsis/style.css +1 -9
  305. package/dist/components/tinymce-editor/index.mjs +191 -0
  306. package/dist/components/tinymce-editor/style.css +1 -43
  307. package/dist/components/tinymce-wrapper/{index.js → index.mjs} +102 -138
  308. package/dist/components/tinymce-wrapper/style.css +1 -36
  309. package/dist/components/toolbar/index.mjs +217 -0
  310. package/dist/components/toolbar/style.css +1 -39
  311. package/dist/components/toolbar-button/index.mjs +108 -0
  312. package/dist/components/toolbar-button/style.css +1 -21
  313. package/dist/components/trigger/index.mjs +71 -0
  314. package/dist/components/verify/index.mjs +80 -0
  315. package/dist/components/verify/style.css +1 -15
  316. package/dist/components/vue-tags-input/index.mjs +553 -0
  317. package/dist/components/vue-tags-input/style.css +1 -688
  318. package/dist/components/watermark/index.mjs +95 -0
  319. package/dist/components/watermark/style.css +1 -11
  320. package/dist/index.cjs +85 -0
  321. package/dist/index.css +1 -8521
  322. package/dist/index.mjs +45819 -0
  323. package/package.json +6 -6
  324. package/web-types.json +3 -3
  325. package/dist/chunks/confirmable-mixin.851d6299.js +0 -137
  326. package/dist/chunks/dataformat.b8c8c01a.js +0 -237
  327. package/dist/chunks/detail.6135ade5.js +0 -55
  328. package/dist/chunks/dic.e57b75f2.js +0 -215
  329. package/dist/chunks/form-input-mixin.3e63b57f.js +0 -24
  330. package/dist/chunks/form-item-mixin.a56c101a.js +0 -166
  331. package/dist/chunks/init.38cbb3a2.js +0 -142
  332. package/dist/chunks/permission.9c766972.js +0 -21
  333. package/dist/chunks/slot.55598d0f.js +0 -35
  334. package/dist/chunks/tab-mixin.9d848bf6.js +0 -99
  335. package/dist/chunks/util.b0d0b0ad.js +0 -478
  336. package/dist/chunks/utils.2a3ffac9.js +0 -250
  337. package/dist/chunks/utils.a8891d2c.js +0 -30
  338. package/dist/chunks/vueComponentNormalizer.9c6b8b3d.js +0 -59
  339. package/dist/components/address-input/index.js +0 -126
  340. package/dist/components/affix/index.js +0 -152
  341. package/dist/components/aside-menu/index.js +0 -64
  342. package/dist/components/avatar/index.js +0 -124
  343. package/dist/components/awesome-button/index.js +0 -126
  344. package/dist/components/capsule-tab/index.js +0 -58
  345. package/dist/components/card/index.js +0 -143
  346. package/dist/components/carousel/index.js +0 -76
  347. package/dist/components/chat/index.js +0 -673
  348. package/dist/components/chunk-file-uploader/index.js +0 -153
  349. package/dist/components/chunk-file-uploader-button/index.js +0 -66
  350. package/dist/components/chunk-file-uploader-drop/index.js +0 -101
  351. package/dist/components/chunk-file-uploader-file/index.js +0 -388
  352. package/dist/components/chunk-file-uploader-files/index.js +0 -55
  353. package/dist/components/chunk-file-uploader-list/index.js +0 -56
  354. package/dist/components/chunk-file-uploader-un-support/index.js +0 -59
  355. package/dist/components/code-mirror-editor/index.js +0 -341
  356. package/dist/components/color-picker/index.js +0 -151
  357. package/dist/components/column/index.js +0 -140
  358. package/dist/components/column-default/index.js +0 -120
  359. package/dist/components/column-dynamic/index.js +0 -100
  360. package/dist/components/column-menu/index.js +0 -298
  361. package/dist/components/column-slot/index.js +0 -326
  362. package/dist/components/comment/index.js +0 -107
  363. package/dist/components/confirm-button/index.js +0 -59
  364. package/dist/components/confirmable/index.js +0 -29
  365. package/dist/components/context-menu/index.js +0 -275
  366. package/dist/components/count-up/index.js +0 -148
  367. package/dist/components/custom-scrollbar/index.js +0 -191
  368. package/dist/components/data-box/index.js +0 -103
  369. package/dist/components/data-card/index.js +0 -104
  370. package/dist/components/data-cardtext/index.js +0 -88
  371. package/dist/components/data-display/index.js +0 -99
  372. package/dist/components/data-icons/index.js +0 -110
  373. package/dist/components/data-imgtext/index.js +0 -112
  374. package/dist/components/data-operatext/index.js +0 -105
  375. package/dist/components/data-panel/index.js +0 -99
  376. package/dist/components/data-pay/index.js +0 -155
  377. package/dist/components/data-price/index.js +0 -90
  378. package/dist/components/data-progress/index.js +0 -103
  379. package/dist/components/data-rotate/index.js +0 -102
  380. package/dist/components/data-table-picker/index.js +0 -156
  381. package/dist/components/data-tabs/index.js +0 -100
  382. package/dist/components/dialog-column/index.js +0 -152
  383. package/dist/components/dialog-excel/index.js +0 -260
  384. package/dist/components/dialog-filter/index.js +0 -259
  385. package/dist/components/dialog-form/index.js +0 -163
  386. package/dist/components/dynamic-table/index.js +0 -219
  387. package/dist/components/e-charts/index.js +0 -297
  388. package/dist/components/easy-popup/index.js +0 -105
  389. package/dist/components/editable-progress/index.js +0 -174
  390. package/dist/components/editable-tree/index.js +0 -1070
  391. package/dist/components/egd-collapse/index.js +0 -92
  392. package/dist/components/egd-collapse-item/index.js +0 -148
  393. package/dist/components/element-dialog/index.js +0 -302
  394. package/dist/components/empty-view/index.js +0 -75
  395. package/dist/components/error-view/index.js +0 -67
  396. package/dist/components/flex-column/index.js +0 -84
  397. package/dist/components/flex-item/index.js +0 -116
  398. package/dist/components/flex-row/index.js +0 -84
  399. package/dist/components/flex-scroller/index.js +0 -53
  400. package/dist/components/flow/index.js +0 -329
  401. package/dist/components/flow-node/index.js +0 -110
  402. package/dist/components/flow-viewer/index.js +0 -207
  403. package/dist/components/form-button/index.js +0 -84
  404. package/dist/components/form-cascader/index.js +0 -178
  405. package/dist/components/form-checkbox-group/index.js +0 -233
  406. package/dist/components/form-date-picker/index.js +0 -260
  407. package/dist/components/form-group/index.js +0 -128
  408. package/dist/components/form-holder/index.js +0 -140
  409. package/dist/components/form-input/index.js +0 -128
  410. package/dist/components/form-input-email/index.js +0 -125
  411. package/dist/components/form-input-id-card/index.js +0 -126
  412. package/dist/components/form-input-number/index.js +0 -146
  413. package/dist/components/form-input-phone-number/index.js +0 -120
  414. package/dist/components/form-input-time/index.js +0 -146
  415. package/dist/components/form-item/index.js +0 -199
  416. package/dist/components/form-item-config-provider/index.js +0 -64
  417. package/dist/components/form-item-group/index.js +0 -195
  418. package/dist/components/form-radio-group/index.js +0 -205
  419. package/dist/components/form-select/index.js +0 -185
  420. package/dist/components/form-switch/index.js +0 -119
  421. package/dist/components/form-temp/index.js +0 -169
  422. package/dist/components/form-textarea/index.js +0 -124
  423. package/dist/components/form-view/index.js +0 -437
  424. package/dist/components/fy-array/index.js +0 -164
  425. package/dist/components/fy-article/index.js +0 -104
  426. package/dist/components/fy-cascader/index.js +0 -142
  427. package/dist/components/fy-checkbox/index.js +0 -127
  428. package/dist/components/fy-code/index.js +0 -73
  429. package/dist/components/fy-curd/index.js +0 -889
  430. package/dist/components/fy-date/index.js +0 -90
  431. package/dist/components/fy-dialog-form/index.js +0 -351
  432. package/dist/components/fy-draggable/index.js +0 -505
  433. package/dist/components/fy-dynamic/index.js +0 -380
  434. package/dist/components/fy-form/index.js +0 -964
  435. package/dist/components/fy-form-design/index.js +0 -8412
  436. package/dist/components/fy-form-menu/index.js +0 -103
  437. package/dist/components/fy-input/index.js +0 -187
  438. package/dist/components/fy-input-color/index.js +0 -108
  439. package/dist/components/fy-input-icon/index.js +0 -182
  440. package/dist/components/fy-input-map/index.js +0 -320
  441. package/dist/components/fy-input-number/index.js +0 -92
  442. package/dist/components/fy-input-table/index.js +0 -206
  443. package/dist/components/fy-input-tree/index.js +0 -309
  444. package/dist/components/fy-progress/index.js +0 -65
  445. package/dist/components/fy-radio/index.js +0 -74
  446. package/dist/components/fy-rate/index.js +0 -111
  447. package/dist/components/fy-select/index.js +0 -242
  448. package/dist/components/fy-slider/index.js +0 -84
  449. package/dist/components/fy-switch/index.js +0 -78
  450. package/dist/components/fy-tabs/index.js +0 -98
  451. package/dist/components/fy-time/index.js +0 -106
  452. package/dist/components/fy-title/index.js +0 -48
  453. package/dist/components/fy-tree/index.js +0 -491
  454. package/dist/components/fy-u-editor/index.js +0 -514
  455. package/dist/components/fy-upload/index.js +0 -760
  456. package/dist/components/guide-steps/index.js +0 -108
  457. package/dist/components/header-menu/index.js +0 -258
  458. package/dist/components/header-search/index.js +0 -285
  459. package/dist/components/highlight-j-s/index.js +0 -89
  460. package/dist/components/icon-card/index.js +0 -68
  461. package/dist/components/icon-temp/index.js +0 -56
  462. package/dist/components/iframe-window/index.js +0 -67
  463. package/dist/components/image-cropper/index.js +0 -217
  464. package/dist/components/image-preview/index.js +0 -264
  465. package/dist/components/image-viewer/index.js +0 -113
  466. package/dist/components/input-number/index.js +0 -340
  467. package/dist/components/input-number-range/index.js +0 -122
  468. package/dist/components/keep-view-alive/index.js +0 -170
  469. package/dist/components/keyboard/index.js +0 -469
  470. package/dist/components/license/index.js +0 -180
  471. package/dist/components/loading-view/index.js +0 -67
  472. package/dist/components/login/index.js +0 -279
  473. package/dist/components/name-avatar/index.js +0 -88
  474. package/dist/components/nav-bar/index.js +0 -62
  475. package/dist/components/not-implement/index.js +0 -43
  476. package/dist/components/notice/index.js +0 -156
  477. package/dist/components/page/index.js +0 -46
  478. package/dist/components/page-header/index.js +0 -62
  479. package/dist/components/page-index/index.js +0 -200
  480. package/dist/components/page-index-top/index.js +0 -160
  481. package/dist/components/page-skeleton/index.js +0 -62
  482. package/dist/components/page-skeleton-new/index.js +0 -104
  483. package/dist/components/pageable-table/index.js +0 -559
  484. package/dist/components/pageable-view/index.js +0 -462
  485. package/dist/components/photo-swipe/index.js +0 -175
  486. package/dist/components/properties-panel/index.js +0 -5235
  487. package/dist/components/queue/index.js +0 -88
  488. package/dist/components/record-video/index.js +0 -199
  489. package/dist/components/resize-observer/index.js +0 -96
  490. package/dist/components/search/index.js +0 -162
  491. package/dist/components/search-popover/index.js +0 -473
  492. package/dist/components/sign/index.js +0 -236
  493. package/dist/components/sign-panel/index.js +0 -305
  494. package/dist/components/skeleton/index.js +0 -92
  495. package/dist/components/split-pane/index.js +0 -298
  496. package/dist/components/stateful/index.js +0 -87
  497. package/dist/components/static-pageable-table/index.js +0 -99
  498. package/dist/components/swiper/index.js +0 -247
  499. package/dist/components/tab/index.js +0 -165
  500. package/dist/components/tab-item/index.js +0 -78
  501. package/dist/components/table-column/index.js +0 -111
  502. package/dist/components/table-page/index.js +0 -151
  503. package/dist/components/table-view/index.js +0 -465
  504. package/dist/components/tag-render/index.js +0 -127
  505. package/dist/components/text-ellipsis/index.js +0 -130
  506. package/dist/components/tinymce-editor/index.js +0 -211
  507. package/dist/components/toolbar/index.js +0 -238
  508. package/dist/components/toolbar-button/index.js +0 -119
  509. package/dist/components/trigger/index.js +0 -78
  510. package/dist/components/verify/index.js +0 -87
  511. package/dist/components/vue-tags-input/index.js +0 -673
  512. package/dist/components/watermark/index.js +0 -114
  513. package/dist/index.es.js +0 -52436
@@ -0,0 +1,591 @@
1
+ import { p as I, e as N } from "../../chunks/event.e4e57889.mjs";
2
+ import { z as B, i as k, g as K } from "../../chunks/util.eca708b6.mjs";
3
+ import { p as F } from "../../chunks/packages.1fc9ccba.mjs";
4
+ import { isBlank as w } from "@web-utils/core";
5
+ import { n as L } from "../../chunks/vueComponentNormalizer.446f5dc4.mjs";
6
+ let d, g;
7
+ const S = {
8
+ width: 200,
9
+ height: 200
10
+ }, n = {
11
+ text: "avueJS",
12
+ // 文字
13
+ fontFamily: "microsoft yahei",
14
+ // 字体
15
+ color: "#999",
16
+ // 颜色
17
+ fontSize: 16,
18
+ // 大小
19
+ opacity: 100,
20
+ // 透明度
21
+ bottom: 10,
22
+ // 下边位置
23
+ right: 10,
24
+ // 右边位置
25
+ ratio: 1
26
+ // 压缩比
27
+ };
28
+ function P(t, e) {
29
+ const i = new FileReader();
30
+ i.readAsDataURL(t), i.onload = function(s) {
31
+ e(s.target.result);
32
+ };
33
+ }
34
+ function D(t, e = {}, i) {
35
+ const { text: s, fontFamily: o, color: a, fontSize: r, opacity: p, bottom: b, right: f, ratio: x } = e;
36
+ v(), P(t, C);
37
+ function v() {
38
+ n.text = s || n.text, n.fontFamily = o || n.fontFamily, n.color = a || n.color, n.fontSize = r || n.fontSize, n.opacity = p || n.opacity, n.bottom = b || n.bottom, n.right = f || n.right, n.ratio = x || n.ratio;
39
+ }
40
+ function C(y) {
41
+ const u = new Image();
42
+ u.src = y, u.onload = function() {
43
+ const m = u.width, l = u.height;
44
+ c(m, l), g.drawImage(u, 0, 0, m, l), E(m, l);
45
+ const _ = document.getElementById("canvas").toDataURL(t.type, n.ratio), O = B(_, t.name);
46
+ i && i(O);
47
+ };
48
+ }
49
+ function c(y, u) {
50
+ d = document.getElementById("canvas"), d === null && (d = document.createElement("canvas"), d.id = "canvas", d.className = "avue-canvas", document.body.appendChild(d)), g = d.getContext("2d"), d.width = y, d.height = u;
51
+ }
52
+ function E(y, u) {
53
+ const m = n.text, l = U(m, y, u);
54
+ g.font = `${l.fontSize}px ${n.fontFamily}`, g.fillStyle = n.color, g.globalAlpha = n.opacity / 100, g.fillText(m, l.x, l.y);
55
+ }
56
+ function U(y, u, m) {
57
+ let l, _;
58
+ const $ = n.fontSize / S.width * u;
59
+ n.bottom ? _ = S.height - n.bottom : _ = n.top, n.right ? l = S.width - n.right : l = n.left, g.font = `${n.fontSize}px ${n.fontFamily}`;
60
+ const z = Number(g.measureText(y).width);
61
+ l = l - z;
62
+ const j = l / S.width, R = _ / S.height;
63
+ return l = j * u, _ = R * m, {
64
+ x: l,
65
+ y: _,
66
+ fontSize: $
67
+ };
68
+ }
69
+ }
70
+ const M = (t, e, i) => {
71
+ const s = JSON.stringify(i);
72
+ window.__ENV__ === "development" && console && console.log("put_policy = ", s);
73
+ const o = V(q(s));
74
+ window.__ENV__ === "development" && console && console.log("encoded = ", o);
75
+ const r = CryptoJS.HmacSHA1(o, e).toString(CryptoJS.enc.Base64);
76
+ window.__ENV__ === "development" && console && console.log("encoded_signed=", r);
77
+ const p = `${t}:${J(r)}:${o}`;
78
+ return window.__ENV__ === "development" && console && console.log("upload_token=", p), p;
79
+ };
80
+ function q(t) {
81
+ let e, i, s;
82
+ e = "";
83
+ const o = t.length;
84
+ for (i = 0; i < o; i++)
85
+ s = t.charCodeAt(i), s >= 1 && s <= 127 ? e += t.charAt(i) : s > 2047 ? (e += String.fromCharCode(224 | s >> 12 & 15), e += String.fromCharCode(128 | s >> 6 & 63), e += String.fromCharCode(128 | s >> 0 & 63)) : (e += String.fromCharCode(192 | s >> 6 & 31), e += String.fromCharCode(128 | s >> 0 & 63));
86
+ return e;
87
+ }
88
+ const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
89
+ function V(t) {
90
+ let e, i, s, o, a, r;
91
+ for (s = t.length, i = 0, e = ""; i < s; ) {
92
+ if (o = t.charCodeAt(i++) & 255, i == s) {
93
+ e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4), e += "==";
94
+ break;
95
+ }
96
+ if (a = t.charCodeAt(i++), i == s) {
97
+ e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (a & 240) >> 4), e += h.charAt((a & 15) << 2), e += "=";
98
+ break;
99
+ }
100
+ r = t.charCodeAt(i++), e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (a & 240) >> 4), e += h.charAt((a & 15) << 2 | (r & 192) >> 6), e += h.charAt(r & 63);
101
+ }
102
+ return e;
103
+ }
104
+ const J = function(t) {
105
+ return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
106
+ }, H = (t) => new OSS(t);
107
+ var Q = function() {
108
+ var t = this, e = t.$createElement, i = t._self._c || e;
109
+ return i("div", {
110
+ directives: [{
111
+ name: "loading",
112
+ rawName: "v-loading.lock",
113
+ value: t.loading,
114
+ expression: "loading",
115
+ modifiers: {
116
+ lock: !0
117
+ }
118
+ }],
119
+ staticClass: "avue-upload",
120
+ attrs: {
121
+ "element-loading-text": t.loadText
122
+ }
123
+ }, [i("ElUpload", {
124
+ key: t.reload,
125
+ class: {
126
+ "avue-upload--list": t.listType === "picture-img",
127
+ "avue-upload--upload": t.disabled
128
+ },
129
+ attrs: {
130
+ action: t.action,
131
+ "on-remove": t.handleRemove,
132
+ accept: t.acceptList,
133
+ "before-remove": t.beforeRemove,
134
+ multiple: t.multiple,
135
+ "on-preview": t.handlePreview,
136
+ limit: t.limit,
137
+ "http-request": t.httpUpload,
138
+ readonly: t.readonly,
139
+ drag: t.dragFile,
140
+ "show-file-list": t.isPictureImg ? !1 : t.showFileList,
141
+ "list-type": t.listType,
142
+ "on-change": t.handleFileChange,
143
+ "on-exceed": t.handleExceed,
144
+ disabled: t.disabled,
145
+ "file-list": t.fileList
146
+ },
147
+ nativeOn: {
148
+ click: function(s) {
149
+ return t.handleClick.apply(null, arguments);
150
+ }
151
+ },
152
+ scopedSlots: t._u([{
153
+ key: "tip",
154
+ fn: function() {
155
+ return [i("div", {
156
+ staticClass: "el-upload__tip",
157
+ domProps: {
158
+ innerHTML: t._s(t.tip)
159
+ }
160
+ })];
161
+ },
162
+ proxy: !0
163
+ }, {
164
+ key: "file",
165
+ fn: function(s) {
166
+ var o = s.file;
167
+ return [t.$scopedSlots.default ? t._t("default", null, {
168
+ file: o
169
+ }) : t.listType === "picture-card" ? i("span", [t.isMediaType(o.url) ? i(o.type, {
170
+ tag: "Component",
171
+ staticClass: "el-upload-list__item-thumbnail",
172
+ attrs: {
173
+ src: o.url
174
+ }
175
+ }) : i("i", {
176
+ staticClass: "avue-upload__avatar el-icon-document"
177
+ }), i("span", {
178
+ staticClass: "el-upload-list__item-actions"
179
+ }, [i("span", {
180
+ staticClass: "el-upload-list__item-preview"
181
+ }, [i("i", {
182
+ staticClass: "el-icon-zoom-in",
183
+ on: {
184
+ click: function(a) {
185
+ return a.stopPropagation(), t.handlePreview(o);
186
+ }
187
+ }
188
+ })]), i("span", {
189
+ staticClass: "el-upload-list__item-delete"
190
+ }, [t.disabled ? t._e() : i("i", {
191
+ staticClass: "el-icon-delete",
192
+ on: {
193
+ click: function(a) {
194
+ return a.stopPropagation(), t.handleRemove(o);
195
+ }
196
+ }
197
+ })])])], 1) : t.listType === "picture" ? i("span", {
198
+ on: {
199
+ click: function(a) {
200
+ return a.stopPropagation(), t.handlePreview(o);
201
+ }
202
+ }
203
+ }, [i(o.type, {
204
+ tag: "Component",
205
+ staticClass: "el-upload-list__item-thumbnail",
206
+ attrs: {
207
+ src: o.url
208
+ }
209
+ }), i("a", {
210
+ staticClass: "el-upload-list__item-name"
211
+ }, [i("i", {
212
+ staticClass: "el-icon-document"
213
+ }), t._v(" " + t._s(o.name) + " ")]), i("i", {
214
+ staticClass: "el-icon-close",
215
+ on: {
216
+ click: function(a) {
217
+ return a.stopPropagation(), t.handleRemove(o);
218
+ }
219
+ }
220
+ })], 1) : i("span", {
221
+ on: {
222
+ click: function(a) {
223
+ return a.stopPropagation(), t.handlePreview(o);
224
+ }
225
+ }
226
+ }, [i("a", {
227
+ staticClass: "el-upload-list__item-name"
228
+ }, [i("i", {
229
+ staticClass: "el-icon-document"
230
+ }), t._v(" " + t._s(o.name) + " ")]), t.disabled ? t._e() : i("i", {
231
+ staticClass: "el-icon-close",
232
+ on: {
233
+ click: function(a) {
234
+ return a.stopPropagation(), t.handleRemove(o);
235
+ }
236
+ }
237
+ })])];
238
+ }
239
+ }], null, !0)
240
+ }, [t.listType === "picture-card" ? [i("i", {
241
+ staticClass: "el-icon-plus"
242
+ })] : t.listType === "picture-img" ? [t.$scopedSlots.default ? t._t("default", null, {
243
+ file: {
244
+ url: t.imgUrl
245
+ }
246
+ }) : [t.isMediaType(t.imgUrl) ? i(t.isMediaType(t.imgUrl), {
247
+ tag: "Component",
248
+ staticClass: "avue-upload__avatar",
249
+ attrs: {
250
+ src: t.imgUrl
251
+ },
252
+ on: {
253
+ mouseover: function(s) {
254
+ t.menu = !0;
255
+ }
256
+ }
257
+ }) : t.imgUrl ? i("i", {
258
+ staticClass: "avue-upload__avatar el-icon-document",
259
+ on: {
260
+ mouseover: function(s) {
261
+ t.menu = !0;
262
+ }
263
+ }
264
+ }) : i("i", {
265
+ staticClass: "el-icon-plus avue-upload__avatar"
266
+ }), t.menu ? i("div", {
267
+ staticClass: "el-upload-list__item-actions avue-upload__menu",
268
+ on: {
269
+ mouseover: function(s) {
270
+ t.menu = !0;
271
+ },
272
+ mouseout: function(s) {
273
+ t.menu = !1;
274
+ },
275
+ click: function(s) {
276
+ s.stopPropagation();
277
+ }
278
+ }
279
+ }, [i("i", {
280
+ staticClass: "el-icon-zoom-in",
281
+ on: {
282
+ click: function(s) {
283
+ return s.stopPropagation(), t.handlePreview({
284
+ url: t.imgUrl
285
+ });
286
+ }
287
+ }
288
+ }), t.disabled ? t._e() : i("i", {
289
+ staticClass: "el-icon-delete",
290
+ on: {
291
+ click: function(s) {
292
+ return s.stopPropagation(), t.handleDelete(t.imgUrl);
293
+ }
294
+ }
295
+ })]) : t._e()]] : t.dragFile ? [i("i", {
296
+ staticClass: "el-icon-upload"
297
+ }), i("div", {
298
+ staticClass: "el-upload__text"
299
+ }, [i("em", [t._v(t._s(t.fileText || "上传"))])])] : [i("ElButton", {
300
+ attrs: {
301
+ icon: "el-icon-upload",
302
+ size: t.size,
303
+ type: "primary"
304
+ }
305
+ }, [t._v(" " + t._s(t.fileText || "上传") + " ")])]], 2)], 1);
306
+ }, W = [];
307
+ function A(t, e = "") {
308
+ return e.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? e : t + e;
309
+ }
310
+ const X = {
311
+ name: "FyUpload",
312
+ mixins: [I, N],
313
+ props: {
314
+ qiniu: Object,
315
+ ali: Object,
316
+ data: {
317
+ type: Object,
318
+ default: () => ({})
319
+ },
320
+ showFileList: {
321
+ type: Boolean,
322
+ default: !0
323
+ },
324
+ fileText: String,
325
+ fileType: {
326
+ type: String
327
+ },
328
+ oss: {
329
+ type: String
330
+ },
331
+ limit: {
332
+ type: Number
333
+ },
334
+ headers: {
335
+ type: Object,
336
+ default: () => ({})
337
+ },
338
+ accept: {
339
+ type: [String, Array],
340
+ default: ""
341
+ },
342
+ canvasOption: {
343
+ type: Object,
344
+ default: () => ({})
345
+ },
346
+ cropperOption: {
347
+ type: Object,
348
+ default: () => ({})
349
+ },
350
+ fileSize: {
351
+ type: Number
352
+ },
353
+ dragFile: {
354
+ type: Boolean,
355
+ default: !1
356
+ },
357
+ drag: {
358
+ type: Boolean,
359
+ default: !1
360
+ },
361
+ loadText: {
362
+ type: String,
363
+ default: "Loading..."
364
+ },
365
+ action: {
366
+ type: String,
367
+ default: ""
368
+ },
369
+ uploadBefore: Function,
370
+ uploadAfter: Function,
371
+ uploadDelete: Function,
372
+ uploadPreview: Function,
373
+ uploadError: Function,
374
+ uploadExceed: Function,
375
+ httpRequest: Function
376
+ },
377
+ data() {
378
+ return {
379
+ res: "",
380
+ loading: !1,
381
+ menu: !1,
382
+ reload: Math.random()
383
+ };
384
+ },
385
+ computed: {
386
+ isObject() {
387
+ return typeof this.text[0] == "object";
388
+ },
389
+ acceptList() {
390
+ return Array.isArray(this.accept) ? this.accept.join(",") : this.accept;
391
+ },
392
+ homeUrl() {
393
+ return this.propsHttp.home || "";
394
+ },
395
+ fileName() {
396
+ return this.propsHttp.fileName || "file";
397
+ },
398
+ isAliOss() {
399
+ return this.oss === "ali";
400
+ },
401
+ isQiniuOss() {
402
+ return this.oss === "qiniu";
403
+ },
404
+ isPictureImg() {
405
+ return this.listType === "picture-img";
406
+ },
407
+ // 单个头像图片
408
+ imgUrl() {
409
+ return w(this.text) ? null : A(this.homeUrl, this.text[0]);
410
+ },
411
+ fileList() {
412
+ const t = [];
413
+ return (this.text || []).forEach((e, i) => {
414
+ if (e) {
415
+ const s = this.isObject ? e[this.labelKey] : e.substring(e.lastIndexOf("/") + 1);
416
+ let o = this.isObject ? e[this.valueKey] : e;
417
+ o = A(this.homeUrl, o), t.push({
418
+ uid: `${i}`,
419
+ status: "done",
420
+ type: this.isMediaType(o),
421
+ name: s,
422
+ url: o
423
+ });
424
+ }
425
+ }), t;
426
+ }
427
+ },
428
+ mounted() {
429
+ this.drag && this.setSort();
430
+ },
431
+ methods: {
432
+ isMediaType(t) {
433
+ return k(t, this.fileType);
434
+ },
435
+ setSort() {
436
+ if (!window.Sortable) {
437
+ F.logs("Sortable");
438
+ return;
439
+ }
440
+ const t = this.$el.querySelectorAll(".avue-upload > ul")[0];
441
+ window.Sortable.create(t, {
442
+ animation: 100,
443
+ onEnd: (e) => {
444
+ const i = this.text.splice(e.oldIndex, 1)[0];
445
+ this.text.splice(e.newIndex, 0, i), this.reload = Math.random(), this.$nextTick(() => this.setSort());
446
+ }
447
+ });
448
+ },
449
+ handleSuccess(t) {
450
+ if (this.isPictureImg)
451
+ this.text.splice(0, 1, t[this.urlKey]);
452
+ else if (this.isObject) {
453
+ const e = {};
454
+ e[this.labelKey] = t[this.nameKey], e[this.valueKey] = t[this.urlKey], this.text.push(e);
455
+ } else
456
+ this.text.push(t[this.urlKey]);
457
+ },
458
+ handleRemove(t) {
459
+ this.beforeRemove(t).then(() => {
460
+ this.delete(t);
461
+ });
462
+ },
463
+ handleError(t) {
464
+ this.uploadError && this.uploadError(t, this.column);
465
+ },
466
+ delete(t) {
467
+ (this.text || []).forEach((e, i) => {
468
+ const s = this.isObject ? e[this.valueKey] : e;
469
+ A(this.homeUrl, s) === t.url && this.text.splice(i, 1);
470
+ });
471
+ },
472
+ show(t) {
473
+ this.loading = !1, this.res = t || this.res, this.handleSuccess(this.res);
474
+ },
475
+ hide(t) {
476
+ this.loading = !1, t && this.handleError(t);
477
+ },
478
+ handleFileChange(t, e) {
479
+ e.splice(e.length - 1, 1);
480
+ },
481
+ httpUpload(t) {
482
+ if (typeof this.httpRequest == "function") {
483
+ this.httpRequest(t);
484
+ return;
485
+ }
486
+ this.loading = !0;
487
+ let e = t.file;
488
+ const i = e.size / 1024;
489
+ if (!w(i) && i > this.fileSize) {
490
+ this.hide("文件太大不符合");
491
+ return;
492
+ }
493
+ const s = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
494
+ let o = {}, a = {};
495
+ const r = new FormData(), p = () => {
496
+ const f = (x) => {
497
+ let v = this.action;
498
+ for (const c in this.data)
499
+ r.append(c, this.data[c]);
500
+ const C = x || e;
501
+ if (r.append(this.fileName, C), this.isQiniuOss) {
502
+ if (!window.CryptoJS) {
503
+ F.logs("CryptoJS"), this.hide();
504
+ return;
505
+ }
506
+ o = this.qiniu || this.$AVUE.qiniu;
507
+ const c = M(o.AK, o.SK, {
508
+ scope: o.scope,
509
+ deadline: new Date().getTime() + o.deadline * 3600
510
+ });
511
+ r.append("token", c), v = o.bucket;
512
+ } else if (this.isAliOss) {
513
+ if (!window.OSS) {
514
+ F.logs("AliOSS"), this.hide();
515
+ return;
516
+ }
517
+ o = this.ali || this.$AVUE.ali, a = H(o);
518
+ }
519
+ (() => this.isAliOss ? a.put(C.name, C, {
520
+ headers: this.headers
521
+ }) : this.$axios.post(v, r, { headers: s }))().then((c) => {
522
+ this.res = {}, this.isQiniuOss && (c.data.key = o.url + c.data.key), this.res = K(this.isAliOss ? c : c.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
523
+ }).catch((c) => {
524
+ this.hide(c);
525
+ });
526
+ };
527
+ typeof this.uploadBefore == "function" ? this.uploadBefore(e, f, this.hide, this.column) : f();
528
+ };
529
+ if (k(e.name) !== "img") {
530
+ p();
531
+ return;
532
+ }
533
+ const b = () => {
534
+ w(this.canvasOption) ? p() : D(e, this.canvasOption, (f) => {
535
+ e = f, p();
536
+ });
537
+ };
538
+ w(this.cropperOption) ? b() : P(e, (f) => {
539
+ const x = Object.assign(this.cropperOption, {
540
+ img: f,
541
+ type: "file",
542
+ callback: (v) => {
543
+ e = v, b();
544
+ },
545
+ cancel: () => {
546
+ this.loading = !1;
547
+ }
548
+ });
549
+ this.$ImageCropper(x);
550
+ });
551
+ },
552
+ handleExceed(t, e) {
553
+ this.uploadExceed && this.uploadExceed(this.limit, t, e, this.column);
554
+ },
555
+ handlePreview(t) {
556
+ const e = () => {
557
+ const i = this.fileList.findIndex((s) => s.url === t.url);
558
+ this.$ImagePreview(this.fileList, i);
559
+ };
560
+ typeof this.uploadPreview == "function" ? this.uploadPreview(t, this.column, e) : e();
561
+ },
562
+ handleDelete(t) {
563
+ this.beforeRemove(t).then(() => {
564
+ this.text = [], this.menu = !1;
565
+ });
566
+ },
567
+ beforeRemove(t) {
568
+ return typeof this.uploadDelete == "function" ? this.uploadDelete(t, this.column) : Promise.resolve();
569
+ }
570
+ }
571
+ }, T = {};
572
+ var Y = /* @__PURE__ */ L(
573
+ X,
574
+ Q,
575
+ W,
576
+ !1,
577
+ G,
578
+ null,
579
+ null,
580
+ null
581
+ );
582
+ function G(t) {
583
+ for (let e in T)
584
+ this[e] = T[e];
585
+ }
586
+ const st = /* @__PURE__ */ function() {
587
+ return Y.exports;
588
+ }();
589
+ export {
590
+ st as default
591
+ };
@@ -1,60 +1 @@
1
- /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
2
- /* 应用头部高度 */
3
- /* 页面宽度 */
4
- /* 侧栏宽度 */
5
- /* 标签高度 */
6
- /* 页面头部工具条高度 */
7
- .avue-upload--upload .el-upload, .avue-upload--upload .el-upload__tip {
8
- display: none;
9
- }
10
- .avue-upload--upload .el-upload--picture-img {
11
- display: inline-block;
12
- }
13
- .avue-upload--upload .el-upload-list {
14
- margin-top: -6px;
15
- }
16
- .avue-upload--list .el-upload {
17
- background-color: #fbfdff;
18
- border: 1px dashed #c0ccda;
19
- border-radius: 6px;
20
- cursor: pointer;
21
- position: relative;
22
- overflow: hidden;
23
- }
24
- .avue-upload--list .el-upload:hover {
25
- border-color: #409eff;
26
- }
27
- .avue-upload__dialog .el-dialog__header {
28
- display: none;
29
- }
30
- .avue-upload__dialog .el-dialog__body {
31
- padding: 10px;
32
- display: flex;
33
- justify-content: center;
34
- }
35
- .avue-upload__menu {
36
- position: absolute;
37
- top: 0;
38
- left: 0;
39
- width: 100%;
40
- height: 100%;
41
- background-color: rgba(0, 0, 0, 0.5);
42
- display: flex;
43
- align-items: center;
44
- justify-content: center;
45
- z-index: 1024;
46
- }
47
- .avue-upload__menu i {
48
- color: #fff;
49
- margin: 0 8px;
50
- font-size: 20px;
51
- }
52
- .avue-upload__avatar {
53
- font-size: 28px;
54
- color: #8c939d;
55
- width: 148px;
56
- height: 148px;
57
- line-height: 148px;
58
- text-align: center;
59
- display: block;
60
- }
1
+ .avue-upload--upload .el-upload,.avue-upload--upload .el-upload__tip{display:none}.avue-upload--upload .el-upload--picture-img{display:inline-block}.avue-upload--upload .el-upload-list{margin-top:-6px}.avue-upload--list .el-upload{background-color:#fbfdff;border:1px dashed #c0ccda;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.avue-upload--list .el-upload:hover{border-color:#409eff}.avue-upload__dialog .el-dialog__header{display:none}.avue-upload__dialog .el-dialog__body{padding:10px;display:flex;justify-content:center}.avue-upload__menu{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1024}.avue-upload__menu i{color:#fff;margin:0 8px;font-size:20px}.avue-upload__avatar{font-size:28px;color:#8c939d;width:148px;height:148px;line-height:148px;text-align:center;display:block}