@aplus-frontend/ui 0.0.1-beta.9 → 0.0.1

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 (561) hide show
  1. package/es/index.mjs +196 -138
  2. package/es/src/ap-action/group/index.vue.mjs +35 -27
  3. package/es/src/ap-action/interface.d.ts +2 -1
  4. package/es/src/ap-action/item/index.vue2.mjs +19 -19
  5. package/es/src/ap-action/item-dropdown/index.vue.mjs +34 -34
  6. package/es/src/ap-action/style/item.css +6 -1
  7. package/es/src/ap-custom-column/column-select.vue.d.ts +18 -0
  8. package/es/src/ap-custom-column/column-select.vue.mjs +102 -0
  9. package/es/src/ap-custom-column/column-select.vue2.mjs +4 -0
  10. package/es/src/ap-custom-column/custom-column.vue.d.ts +18 -0
  11. package/es/src/ap-custom-column/custom-column.vue.mjs +86 -0
  12. package/es/src/ap-custom-column/custom-column.vue2.mjs +4 -0
  13. package/es/src/ap-custom-column/index.d.ts +7 -0
  14. package/es/src/ap-custom-column/index.mjs +9 -0
  15. package/es/src/ap-custom-column/interfaces.d.ts +41 -0
  16. package/es/src/ap-custom-column/interfaces.mjs +1 -0
  17. package/es/src/ap-custom-column/storage.d.ts +8 -0
  18. package/es/src/ap-custom-column/storage.mjs +29 -0
  19. package/es/src/ap-custom-column/styles/column-select.css +44 -0
  20. package/es/src/ap-custom-column/styles/custom-column.css +46 -0
  21. package/es/src/ap-custom-column/useCacheColumnSetting.d.ts +10 -0
  22. package/es/src/ap-custom-column/useCacheColumnSetting.mjs +9 -0
  23. package/es/src/ap-custom-column/utils.d.ts +3 -0
  24. package/es/src/ap-custom-column/utils.mjs +17 -0
  25. package/es/src/ap-download/ap-download.vue.d.ts +41 -0
  26. package/es/src/ap-download/ap-download.vue.mjs +56 -0
  27. package/es/src/ap-download/ap-download.vue2.mjs +4 -0
  28. package/es/src/ap-download/hooks/index.d.ts +9 -0
  29. package/es/src/ap-download/hooks/index.mjs +20 -0
  30. package/es/src/ap-download/index.d.ts +4 -0
  31. package/es/src/ap-download/index.mjs +2 -0
  32. package/es/src/ap-download/interface.d.ts +33 -0
  33. package/es/src/ap-download/interface.mjs +1 -0
  34. package/es/src/ap-download/style/ap-download.css +51 -0
  35. package/es/src/ap-field/checkbox/index.vue.mjs +16 -16
  36. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  37. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  38. package/es/src/ap-field/date-range/index.vue.mjs +54 -48
  39. package/es/src/ap-field/interface.d.ts +3 -3
  40. package/es/src/ap-field/number/index.vue.mjs +8 -8
  41. package/es/src/ap-field/radio/index.vue.mjs +6 -6
  42. package/es/src/ap-field/switch/index.vue.d.ts +2 -2
  43. package/es/src/ap-field/switch/index.vue.mjs +31 -31
  44. package/es/src/ap-field/text/index.vue.d.ts +4 -1
  45. package/es/src/ap-field/text/index.vue.mjs +11 -10
  46. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  47. package/es/src/ap-field/text-area/index.vue.mjs +8 -8
  48. package/es/src/ap-form/ap-form-item-group/helper.d.ts +10 -0
  49. package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -11
  50. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +60 -2
  51. package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +2 -56
  52. package/es/src/ap-form/ap-form-item.vue.d.ts +23 -5
  53. package/es/src/ap-form/ap-form-item.vue.mjs +149 -2
  54. package/es/src/ap-form/ap-form-item.vue2.mjs +2 -80
  55. package/es/src/ap-form/ap-form-list.vue.d.ts +35 -0
  56. package/es/src/ap-form/ap-form-list.vue.mjs +41 -0
  57. package/es/src/ap-form/ap-form-list.vue2.mjs +4 -0
  58. package/es/src/ap-form/ap-form.vue.d.ts +66 -0
  59. package/es/src/ap-form/ap-form.vue.mjs +4 -0
  60. package/es/src/ap-form/ap-form.vue2.mjs +89 -0
  61. package/es/src/ap-form/context.d.ts +11 -0
  62. package/es/src/ap-form/context.mjs +17 -0
  63. package/es/src/ap-form/index.d.ts +15 -939
  64. package/es/src/ap-form/index.mjs +24 -11
  65. package/es/src/ap-form/interface.d.ts +62 -1
  66. package/es/src/ap-form/interface.mjs +1 -0
  67. package/es/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
  68. package/es/src/ap-form/items/checkbox/index.vue.mjs +61 -0
  69. package/es/src/ap-form/items/checkbox/index.vue2.mjs +4 -0
  70. package/es/src/ap-form/items/date/index.vue.d.ts +65 -0
  71. package/es/src/ap-form/items/date/index.vue.mjs +80 -0
  72. package/es/src/ap-form/items/date/index.vue2.mjs +4 -0
  73. package/es/src/ap-form/items/date-range/index.vue.d.ts +64 -0
  74. package/es/src/ap-form/items/date-range/index.vue.mjs +80 -0
  75. package/es/src/ap-form/items/date-range/index.vue2.mjs +4 -0
  76. package/es/src/ap-form/items/index.d.ts +9 -1
  77. package/es/src/ap-form/items/index.mjs +8 -0
  78. package/es/src/ap-form/items/interface.d.ts +39 -6
  79. package/es/src/ap-form/items/number/index.vue.d.ts +63 -0
  80. package/es/src/ap-form/items/number/index.vue.mjs +84 -0
  81. package/es/src/ap-form/items/number/index.vue2.mjs +4 -0
  82. package/es/src/ap-form/items/radio/index.vue.d.ts +50 -0
  83. package/es/src/ap-form/items/radio/index.vue.mjs +74 -0
  84. package/es/src/ap-form/items/radio/index.vue2.mjs +4 -0
  85. package/es/src/ap-form/items/select/index.vue.d.ts +69 -0
  86. package/es/src/ap-form/items/select/index.vue.mjs +89 -0
  87. package/es/src/ap-form/items/select/index.vue2.mjs +4 -0
  88. package/es/src/ap-form/items/switch/index.vue.d.ts +60 -0
  89. package/es/src/ap-form/items/switch/index.vue.mjs +68 -0
  90. package/es/src/ap-form/items/switch/index.vue2.mjs +4 -0
  91. package/es/src/ap-form/items/text/index.vue.d.ts +0 -3
  92. package/es/src/ap-form/items/text/index.vue.mjs +24 -31
  93. package/es/src/ap-form/items/text-area/index.vue.d.ts +52 -0
  94. package/es/src/ap-form/items/text-area/index.vue.mjs +79 -0
  95. package/es/src/ap-form/items/text-area/index.vue2.mjs +4 -0
  96. package/es/src/ap-form/modal-form/index.vue.d.ts +378 -0
  97. package/es/src/ap-form/modal-form/index.vue.mjs +239 -0
  98. package/es/src/ap-form/modal-form/index.vue2.mjs +4 -0
  99. package/es/src/ap-form/search-form/index.vue.d.ts +79 -0
  100. package/es/src/ap-form/search-form/index.vue.mjs +209 -0
  101. package/es/src/ap-form/search-form/index.vue2.mjs +4 -0
  102. package/es/src/ap-form/style/ap-form-item.css +46 -0
  103. package/es/src/ap-form/style/modal-form.css +17 -0
  104. package/es/src/ap-form/style/search-form.css +3 -0
  105. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +42 -0
  106. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs +62 -0
  107. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue2.mjs +4 -0
  108. package/es/src/ap-layout/index.d.ts +3 -0
  109. package/es/src/ap-layout/index.mjs +1 -0
  110. package/es/src/ap-layout/interface.d.ts +4 -0
  111. package/es/src/ap-layout/style/ap-info-layout.css +19 -0
  112. package/es/src/ap-table/ap-table.vue.d.ts +189 -0
  113. package/es/src/ap-table/ap-table.vue.mjs +267 -0
  114. package/es/src/ap-table/ap-table.vue2.mjs +4 -0
  115. package/es/src/ap-table/components/index/index.vue.d.ts +28 -0
  116. package/es/src/ap-table/components/index/index.vue.mjs +4 -0
  117. package/es/src/ap-table/components/index/index.vue2.mjs +21 -0
  118. package/es/src/ap-table/components/interface.d.ts +20 -0
  119. package/es/src/ap-table/components/style/index.css +12 -0
  120. package/es/src/ap-table/components/style/pagination.css +12 -0
  121. package/es/src/ap-table/constants.d.ts +11075 -0
  122. package/es/src/ap-table/constants.mjs +55 -0
  123. package/es/src/ap-table/hooks/use-table-paging.d.ts +82 -0
  124. package/es/src/ap-table/hooks/use-table-paging.mjs +142 -0
  125. package/es/src/ap-table/index.d.ts +5 -0
  126. package/es/src/ap-table/index.mjs +6 -0
  127. package/es/src/ap-table/interface.d.ts +184 -0
  128. package/es/src/ap-table/interface.mjs +1 -0
  129. package/es/src/ap-table/style/ap-table.css +46 -0
  130. package/es/src/ap-table/utils.d.ts +14 -0
  131. package/es/src/ap-table/utils.mjs +35 -0
  132. package/es/src/ap-tag/ap-tag-group.vue.d.ts +34 -0
  133. package/es/src/ap-tag/ap-tag-group.vue.mjs +137 -0
  134. package/es/src/ap-tag/ap-tag-group.vue2.mjs +4 -0
  135. package/es/src/ap-tag/ap-tag.vue.d.ts +34 -0
  136. package/es/src/ap-tag/ap-tag.vue.mjs +41 -0
  137. package/es/src/ap-tag/ap-tag.vue2.mjs +4 -0
  138. package/es/src/ap-tag/index.d.ts +5 -0
  139. package/es/src/ap-tag/index.mjs +3 -0
  140. package/es/src/ap-tag/interface.d.ts +35 -0
  141. package/es/src/ap-tag/interface.mjs +1 -0
  142. package/es/src/ap-tag/style/ap-tag-group.css +6 -0
  143. package/es/src/ap-tag/style/ap-tag.css +40 -0
  144. package/es/src/ap-upload/apUpload.vue.d.ts +111 -0
  145. package/es/src/ap-upload/apUpload.vue.mjs +95 -0
  146. package/es/src/ap-upload/apUpload.vue2.mjs +4 -0
  147. package/es/src/ap-upload/apUploadTypes.d.ts +90 -0
  148. package/es/src/ap-upload/apUploadTypes.mjs +4 -0
  149. package/es/src/ap-upload/assets/single-file-icon.png.mjs +4 -0
  150. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +4 -0
  151. package/es/src/ap-upload/components/MultipleFile.vue.mjs +4 -0
  152. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +197 -0
  153. package/es/src/ap-upload/components/Picture.vue.d.ts +4 -0
  154. package/es/src/ap-upload/components/Picture.vue.mjs +4 -0
  155. package/es/src/ap-upload/components/Picture.vue2.mjs +219 -0
  156. package/es/src/ap-upload/components/SingleFile.vue.d.ts +4 -0
  157. package/es/src/ap-upload/components/SingleFile.vue.mjs +4 -0
  158. package/es/src/ap-upload/components/SingleFile.vue2.mjs +213 -0
  159. package/es/src/ap-upload/hooks/useOss.d.ts +19 -0
  160. package/es/src/ap-upload/hooks/useOss.mjs +62 -0
  161. package/es/src/ap-upload/index.d.ts +5 -0
  162. package/es/src/ap-upload/index.mjs +11 -0
  163. package/es/src/ap-upload/styles/multiple-file.css +58 -0
  164. package/es/src/ap-upload/styles/picture.css +112 -0
  165. package/es/src/ap-upload/styles/single-file.css +98 -0
  166. package/es/src/ap-upload/styles/upload.css +6 -0
  167. package/es/src/ap-upload/utils/accept.d.ts +13 -0
  168. package/es/src/ap-upload/utils/accept.mjs +51 -0
  169. package/es/src/ap-upload/utils/returnData.d.ts +19 -0
  170. package/es/src/ap-upload/utils/returnData.mjs +21 -0
  171. package/es/src/basic/help.vue.d.ts +4 -4
  172. package/es/src/basic/index.d.ts +8 -8
  173. package/es/src/components.d.ts +2 -0
  174. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  175. package/es/src/config-provider/config-provider.d.ts +11 -11
  176. package/es/src/config-provider/config-provider.mjs +26 -33
  177. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
  178. package/es/src/config-provider/index.d.ts +31 -31
  179. package/es/src/design-token/index.mjs +8 -2
  180. package/es/src/hooks/useControllableValue.mjs +11 -14
  181. package/es/src/icon-picker/icon-picker.vue.d.ts +1 -1
  182. package/es/src/icon-picker/index.d.ts +15 -15
  183. package/es/src/index.d.ts +7 -0
  184. package/es/src/index.mjs +226 -161
  185. package/es/src/locale/lang/en.mjs +14 -1
  186. package/es/src/locale/lang/zh-cn.mjs +14 -1
  187. package/es/src/modal/basic.vue.d.ts +1 -2
  188. package/es/src/modal/basic.vue2.mjs +10 -11
  189. package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
  190. package/es/src/modal/index.d.ts +2 -2
  191. package/es/src/modal/style/index.css +0 -103
  192. package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  193. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  194. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  195. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  196. package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  197. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  198. package/es/src/pro-form/hooks/use-label-width.d.ts +3 -3
  199. package/es/src/pro-form/index.d.ts +4 -1
  200. package/es/src/pro-form/index.mjs +12 -9
  201. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  202. package/es/src/pro-form/style/index.css +0 -3
  203. package/es/src/pro-form/style/table-form.css +104 -0
  204. package/es/src/pro-form/table-form-inner.vue.d.ts +44 -0
  205. package/es/src/pro-form/table-form-inner.vue.mjs +176 -0
  206. package/es/src/pro-form/table-form-inner.vue2.mjs +4 -0
  207. package/es/src/pro-form/table-form.vue.d.ts +42 -0
  208. package/es/src/pro-form/table-form.vue.mjs +41 -0
  209. package/es/src/pro-form/table-form.vue2.mjs +4 -0
  210. package/es/src/pro-form/types/form.d.ts +1 -1
  211. package/es/src/pro-form/types/table-form.d.ts +37 -0
  212. package/es/src/pro-form/types/table-form.mjs +1 -0
  213. package/es/src/pro-table/hooks/use-data-source.mjs +45 -46
  214. package/es/src/prompt/utils.d.ts +1 -1
  215. package/es/src/scroll-bar/index.d.ts +12 -12
  216. package/es/src/theme/antd-global-overwrite/admin/alert.css +47 -0
  217. package/es/src/theme/antd-global-overwrite/admin/button.css +38 -0
  218. package/es/src/theme/antd-global-overwrite/admin/form.css +65 -0
  219. package/es/src/theme/antd-global-overwrite/admin/index.css +536 -0
  220. package/es/src/theme/antd-global-overwrite/admin/message.css +17 -0
  221. package/es/src/theme/antd-global-overwrite/admin/modal.css +117 -0
  222. package/es/src/theme/antd-global-overwrite/admin/pagination.css +68 -0
  223. package/es/src/theme/antd-global-overwrite/admin/steps.css +103 -0
  224. package/es/src/theme/antd-global-overwrite/admin/table.css +81 -0
  225. package/es/src/theme/antd-global-overwrite/aplus/alert.css +47 -0
  226. package/es/src/theme/antd-global-overwrite/aplus/button.css +38 -0
  227. package/es/src/theme/antd-global-overwrite/aplus/form.css +90 -0
  228. package/es/src/theme/antd-global-overwrite/aplus/index.css +565 -0
  229. package/es/src/theme/antd-global-overwrite/aplus/message.css +17 -0
  230. package/es/src/theme/antd-global-overwrite/aplus/modal.css +111 -0
  231. package/es/src/theme/antd-global-overwrite/aplus/pagination.css +81 -0
  232. package/es/src/theme/antd-global-overwrite/aplus/steps.css +103 -0
  233. package/es/src/theme/antd-global-overwrite/aplus/table.css +78 -0
  234. package/es/src/theme/ap-action/item.css +6 -1
  235. package/es/src/theme/ap-download/ap-download.css +51 -0
  236. package/es/src/theme/ap-form/ap-form-item.css +46 -0
  237. package/es/src/theme/ap-form/modal-form.css +17 -0
  238. package/es/src/theme/ap-form/search-form.css +3 -0
  239. package/es/src/theme/ap-layout/ap-info-layout.css +19 -0
  240. package/es/src/theme/ap-table/ap-table-index.css +12 -0
  241. package/es/src/theme/ap-table/ap-table-pagination.css +12 -0
  242. package/es/src/theme/ap-table/ap-table.css +46 -0
  243. package/es/src/theme/ap-tag/ap-tag-group.css +6 -0
  244. package/es/src/theme/ap-tag/ap-tag.css +40 -0
  245. package/es/src/theme/ap-upload/multiple-file.css +58 -0
  246. package/es/src/theme/ap-upload/picture.css +112 -0
  247. package/es/src/theme/ap-upload/single-file.css +98 -0
  248. package/es/src/theme/ap-upload/upload.css +6 -0
  249. package/es/src/theme/custom-column/column-select.css +44 -0
  250. package/es/src/theme/custom-column/custom-column.css +46 -0
  251. package/es/src/theme/modal/index.css +0 -103
  252. package/es/src/theme/pro-form/form.css +0 -3
  253. package/es/src/theme/pro-form/table-form-inner.css +104 -0
  254. package/es/src/theme/work-order-modal/index.css +3 -0
  255. package/es/src/utils/config-provider-preset.d.ts +79 -0
  256. package/es/src/utils/config-provider-preset.mjs +30 -0
  257. package/es/src/utils/index.d.ts +8 -0
  258. package/es/src/utils/index.mjs +29 -17
  259. package/es/src/utils/slot.d.ts +7 -1
  260. package/es/src/utils/slot.mjs +25 -15
  261. package/es/src/work-order-modal/createWorkOrder.d.ts +1 -0
  262. package/es/src/work-order-modal/createWorkOrder.mjs +19 -0
  263. package/es/src/work-order-modal/help-message.vue.d.ts +3 -0
  264. package/es/src/work-order-modal/help-message.vue.mjs +4 -0
  265. package/es/src/work-order-modal/help-message.vue2.mjs +33 -0
  266. package/es/src/work-order-modal/index.d.ts +5 -0
  267. package/es/src/work-order-modal/index.mjs +7 -0
  268. package/es/src/work-order-modal/interfaces.d.ts +23 -0
  269. package/es/src/work-order-modal/interfaces.mjs +4 -0
  270. package/es/src/work-order-modal/style/index.css +3 -0
  271. package/es/src/work-order-modal/work-order-modal.vue.d.ts +18 -0
  272. package/es/src/work-order-modal/work-order-modal.vue.mjs +182 -0
  273. package/es/src/work-order-modal/work-order-modal.vue2.mjs +4 -0
  274. package/lib/index.js +1 -1
  275. package/lib/src/ap-action/group/index.vue.js +1 -1
  276. package/lib/src/ap-action/interface.d.ts +2 -1
  277. package/lib/src/ap-action/item/index.vue2.js +1 -1
  278. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  279. package/lib/src/ap-action/style/item.css +6 -1
  280. package/lib/src/ap-custom-column/column-select.vue.d.ts +18 -0
  281. package/lib/src/ap-custom-column/column-select.vue.js +1 -0
  282. package/lib/src/ap-custom-column/column-select.vue2.js +1 -0
  283. package/lib/src/ap-custom-column/custom-column.vue.d.ts +18 -0
  284. package/lib/src/ap-custom-column/custom-column.vue.js +1 -0
  285. package/lib/src/ap-custom-column/custom-column.vue2.js +1 -0
  286. package/lib/src/ap-custom-column/index.d.ts +7 -0
  287. package/lib/src/ap-custom-column/index.js +1 -0
  288. package/lib/src/ap-custom-column/interfaces.d.ts +41 -0
  289. package/lib/src/ap-custom-column/interfaces.js +1 -0
  290. package/lib/src/ap-custom-column/storage.d.ts +8 -0
  291. package/lib/src/ap-custom-column/storage.js +1 -0
  292. package/lib/src/ap-custom-column/styles/column-select.css +44 -0
  293. package/lib/src/ap-custom-column/styles/custom-column.css +46 -0
  294. package/lib/src/ap-custom-column/useCacheColumnSetting.d.ts +10 -0
  295. package/lib/src/ap-custom-column/useCacheColumnSetting.js +1 -0
  296. package/lib/src/ap-custom-column/utils.d.ts +3 -0
  297. package/lib/src/ap-custom-column/utils.js +1 -0
  298. package/lib/src/ap-download/ap-download.vue.d.ts +41 -0
  299. package/lib/src/ap-download/ap-download.vue.js +1 -0
  300. package/lib/src/ap-download/ap-download.vue2.js +1 -0
  301. package/lib/src/ap-download/hooks/index.d.ts +9 -0
  302. package/lib/src/ap-download/hooks/index.js +1 -0
  303. package/lib/src/ap-download/index.d.ts +4 -0
  304. package/lib/src/ap-download/index.js +1 -0
  305. package/lib/src/ap-download/interface.d.ts +33 -0
  306. package/lib/src/ap-download/interface.js +1 -0
  307. package/lib/src/ap-download/style/ap-download.css +51 -0
  308. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  309. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  310. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  311. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  312. package/lib/src/ap-field/interface.d.ts +3 -3
  313. package/lib/src/ap-field/number/index.vue.js +1 -1
  314. package/lib/src/ap-field/radio/index.vue.js +1 -1
  315. package/lib/src/ap-field/switch/index.vue.d.ts +2 -2
  316. package/lib/src/ap-field/switch/index.vue.js +1 -1
  317. package/lib/src/ap-field/text/index.vue.d.ts +4 -1
  318. package/lib/src/ap-field/text/index.vue.js +1 -1
  319. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  320. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  321. package/lib/src/ap-form/ap-form-item-group/helper.d.ts +10 -0
  322. package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
  323. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  324. package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
  325. package/lib/src/ap-form/ap-form-item.vue.d.ts +23 -5
  326. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  327. package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
  328. package/lib/src/ap-form/ap-form-list.vue.d.ts +35 -0
  329. package/lib/src/ap-form/ap-form-list.vue.js +1 -0
  330. package/lib/src/ap-form/ap-form-list.vue2.js +1 -0
  331. package/lib/src/ap-form/ap-form.vue.d.ts +66 -0
  332. package/lib/src/ap-form/ap-form.vue.js +1 -0
  333. package/lib/src/ap-form/ap-form.vue2.js +1 -0
  334. package/lib/src/ap-form/context.d.ts +11 -0
  335. package/lib/src/ap-form/context.js +1 -0
  336. package/lib/src/ap-form/index.d.ts +15 -939
  337. package/lib/src/ap-form/index.js +1 -1
  338. package/lib/src/ap-form/interface.d.ts +62 -1
  339. package/lib/src/ap-form/interface.js +1 -0
  340. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
  341. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -0
  342. package/lib/src/ap-form/items/checkbox/index.vue2.js +1 -0
  343. package/lib/src/ap-form/items/date/index.vue.d.ts +65 -0
  344. package/lib/src/ap-form/items/date/index.vue.js +1 -0
  345. package/lib/src/ap-form/items/date/index.vue2.js +1 -0
  346. package/lib/src/ap-form/items/date-range/index.vue.d.ts +64 -0
  347. package/lib/src/ap-form/items/date-range/index.vue.js +1 -0
  348. package/lib/src/ap-form/items/date-range/index.vue2.js +1 -0
  349. package/lib/src/ap-form/items/index.d.ts +9 -1
  350. package/lib/src/ap-form/items/index.js +1 -1
  351. package/lib/src/ap-form/items/interface.d.ts +39 -6
  352. package/lib/src/ap-form/items/number/index.vue.d.ts +63 -0
  353. package/lib/src/ap-form/items/number/index.vue.js +1 -0
  354. package/lib/src/ap-form/items/number/index.vue2.js +1 -0
  355. package/lib/src/ap-form/items/radio/index.vue.d.ts +50 -0
  356. package/lib/src/ap-form/items/radio/index.vue.js +1 -0
  357. package/lib/src/ap-form/items/radio/index.vue2.js +1 -0
  358. package/lib/src/ap-form/items/select/index.vue.d.ts +69 -0
  359. package/lib/src/ap-form/items/select/index.vue.js +1 -0
  360. package/lib/src/ap-form/items/select/index.vue2.js +1 -0
  361. package/lib/src/ap-form/items/switch/index.vue.d.ts +60 -0
  362. package/lib/src/ap-form/items/switch/index.vue.js +1 -0
  363. package/lib/src/ap-form/items/switch/index.vue2.js +1 -0
  364. package/lib/src/ap-form/items/text/index.vue.d.ts +0 -3
  365. package/lib/src/ap-form/items/text/index.vue.js +1 -1
  366. package/lib/src/ap-form/items/text-area/index.vue.d.ts +52 -0
  367. package/lib/src/ap-form/items/text-area/index.vue.js +1 -0
  368. package/lib/src/ap-form/items/text-area/index.vue2.js +1 -0
  369. package/lib/src/ap-form/modal-form/index.vue.d.ts +378 -0
  370. package/lib/src/ap-form/modal-form/index.vue.js +1 -0
  371. package/lib/src/ap-form/modal-form/index.vue2.js +1 -0
  372. package/lib/src/ap-form/search-form/index.vue.d.ts +79 -0
  373. package/lib/src/ap-form/search-form/index.vue.js +1 -0
  374. package/lib/src/ap-form/search-form/index.vue2.js +1 -0
  375. package/lib/src/ap-form/style/ap-form-item.css +46 -0
  376. package/lib/src/ap-form/style/modal-form.css +17 -0
  377. package/lib/src/ap-form/style/search-form.css +3 -0
  378. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +42 -0
  379. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.js +1 -0
  380. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue2.js +1 -0
  381. package/lib/src/ap-layout/index.d.ts +3 -0
  382. package/lib/src/ap-layout/index.js +1 -0
  383. package/lib/src/ap-layout/interface.d.ts +4 -0
  384. package/lib/src/ap-layout/style/ap-info-layout.css +19 -0
  385. package/lib/src/ap-table/ap-table.vue.d.ts +189 -0
  386. package/lib/src/ap-table/ap-table.vue.js +1 -0
  387. package/lib/src/ap-table/ap-table.vue2.js +1 -0
  388. package/lib/src/ap-table/components/index/index.vue.d.ts +28 -0
  389. package/lib/src/ap-table/components/index/index.vue.js +1 -0
  390. package/lib/src/ap-table/components/index/index.vue2.js +1 -0
  391. package/lib/src/ap-table/components/interface.d.ts +20 -0
  392. package/lib/src/ap-table/components/style/index.css +12 -0
  393. package/lib/src/ap-table/components/style/pagination.css +12 -0
  394. package/lib/src/ap-table/constants.d.ts +11075 -0
  395. package/lib/src/ap-table/constants.js +1 -0
  396. package/lib/src/ap-table/hooks/use-table-paging.d.ts +82 -0
  397. package/lib/src/ap-table/hooks/use-table-paging.js +1 -0
  398. package/lib/src/ap-table/index.d.ts +5 -0
  399. package/lib/src/ap-table/index.js +1 -0
  400. package/lib/src/ap-table/interface.d.ts +184 -0
  401. package/lib/src/ap-table/interface.js +1 -0
  402. package/lib/src/ap-table/style/ap-table.css +46 -0
  403. package/lib/src/ap-table/utils.d.ts +14 -0
  404. package/lib/src/ap-table/utils.js +1 -0
  405. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +34 -0
  406. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -0
  407. package/lib/src/ap-tag/ap-tag-group.vue2.js +1 -0
  408. package/lib/src/ap-tag/ap-tag.vue.d.ts +34 -0
  409. package/lib/src/ap-tag/ap-tag.vue.js +1 -0
  410. package/lib/src/ap-tag/ap-tag.vue2.js +1 -0
  411. package/lib/src/ap-tag/index.d.ts +5 -0
  412. package/lib/src/ap-tag/index.js +1 -0
  413. package/lib/src/ap-tag/interface.d.ts +35 -0
  414. package/lib/src/ap-tag/interface.js +1 -0
  415. package/lib/src/ap-tag/style/ap-tag-group.css +6 -0
  416. package/lib/src/ap-tag/style/ap-tag.css +40 -0
  417. package/lib/src/ap-upload/apUpload.vue.d.ts +111 -0
  418. package/lib/src/ap-upload/apUpload.vue.js +1 -0
  419. package/lib/src/ap-upload/apUpload.vue2.js +1 -0
  420. package/lib/src/ap-upload/apUploadTypes.d.ts +90 -0
  421. package/lib/src/ap-upload/apUploadTypes.js +1 -0
  422. package/lib/src/ap-upload/assets/single-file-icon.png.js +1 -0
  423. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +4 -0
  424. package/lib/src/ap-upload/components/MultipleFile.vue.js +1 -0
  425. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -0
  426. package/lib/src/ap-upload/components/Picture.vue.d.ts +4 -0
  427. package/lib/src/ap-upload/components/Picture.vue.js +1 -0
  428. package/lib/src/ap-upload/components/Picture.vue2.js +1 -0
  429. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +4 -0
  430. package/lib/src/ap-upload/components/SingleFile.vue.js +1 -0
  431. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -0
  432. package/lib/src/ap-upload/hooks/useOss.d.ts +19 -0
  433. package/lib/src/ap-upload/hooks/useOss.js +1 -0
  434. package/lib/src/ap-upload/index.d.ts +5 -0
  435. package/lib/src/ap-upload/index.js +1 -0
  436. package/lib/src/ap-upload/styles/multiple-file.css +58 -0
  437. package/lib/src/ap-upload/styles/picture.css +112 -0
  438. package/lib/src/ap-upload/styles/single-file.css +98 -0
  439. package/lib/src/ap-upload/styles/upload.css +6 -0
  440. package/lib/src/ap-upload/utils/accept.d.ts +13 -0
  441. package/lib/src/ap-upload/utils/accept.js +1 -0
  442. package/lib/src/ap-upload/utils/returnData.d.ts +19 -0
  443. package/lib/src/ap-upload/utils/returnData.js +1 -0
  444. package/lib/src/basic/help.vue.d.ts +4 -4
  445. package/lib/src/basic/help.vue2.js +1 -1
  446. package/lib/src/basic/index.d.ts +8 -8
  447. package/lib/src/components.d.ts +2 -0
  448. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  449. package/lib/src/config-provider/config-provider.d.ts +11 -11
  450. package/lib/src/config-provider/config-provider.js +1 -1
  451. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
  452. package/lib/src/config-provider/index.d.ts +31 -31
  453. package/lib/src/design-token/index.js +1 -1
  454. package/lib/src/hooks/useControllableValue.js +1 -1
  455. package/lib/src/hooks/useMessage.js +1 -1
  456. package/lib/src/icon-picker/icon-picker.vue.d.ts +1 -1
  457. package/lib/src/icon-picker/index.d.ts +15 -15
  458. package/lib/src/index.d.ts +7 -0
  459. package/lib/src/index.js +1 -1
  460. package/lib/src/locale/lang/en.js +1 -1
  461. package/lib/src/locale/lang/zh-cn.js +1 -1
  462. package/lib/src/modal/basic.vue.d.ts +1 -2
  463. package/lib/src/modal/basic.vue2.js +1 -1
  464. package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
  465. package/lib/src/modal/index.d.ts +2 -2
  466. package/lib/src/modal/style/index.css +0 -103
  467. package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  468. package/lib/src/pro-form/components/api-cascader.vue.js +1 -1
  469. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  470. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  471. package/lib/src/pro-form/components/api-select.vue.js +1 -1
  472. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  473. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  474. package/lib/src/pro-form/components/api-tree-select.vue.js +1 -1
  475. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  476. package/lib/src/pro-form/hooks/use-label-width.d.ts +3 -3
  477. package/lib/src/pro-form/index.d.ts +4 -1
  478. package/lib/src/pro-form/index.js +1 -1
  479. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  480. package/lib/src/pro-form/style/index.css +0 -3
  481. package/lib/src/pro-form/style/table-form.css +104 -0
  482. package/lib/src/pro-form/table-form-inner.vue.d.ts +44 -0
  483. package/lib/src/pro-form/table-form-inner.vue.js +1 -0
  484. package/lib/src/pro-form/table-form-inner.vue2.js +1 -0
  485. package/lib/src/pro-form/table-form.vue.d.ts +42 -0
  486. package/lib/src/pro-form/table-form.vue.js +1 -0
  487. package/lib/src/pro-form/table-form.vue2.js +1 -0
  488. package/lib/src/pro-form/types/form.d.ts +1 -1
  489. package/lib/src/pro-form/types/table-form.d.ts +37 -0
  490. package/lib/src/pro-form/types/table-form.js +1 -0
  491. package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
  492. package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
  493. package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
  494. package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
  495. package/lib/src/pro-table/components/table-action.vue.js +1 -1
  496. package/lib/src/pro-table/hooks/use-data-source.js +1 -1
  497. package/lib/src/prompt/utils.d.ts +1 -1
  498. package/lib/src/scroll-bar/index.d.ts +12 -12
  499. package/lib/src/theme/antd-global-overwrite/admin/alert.css +47 -0
  500. package/lib/src/theme/antd-global-overwrite/admin/button.css +38 -0
  501. package/lib/src/theme/antd-global-overwrite/admin/form.css +65 -0
  502. package/lib/src/theme/antd-global-overwrite/admin/index.css +536 -0
  503. package/lib/src/theme/antd-global-overwrite/admin/message.css +17 -0
  504. package/lib/src/theme/antd-global-overwrite/admin/modal.css +117 -0
  505. package/lib/src/theme/antd-global-overwrite/admin/pagination.css +68 -0
  506. package/lib/src/theme/antd-global-overwrite/admin/steps.css +103 -0
  507. package/lib/src/theme/antd-global-overwrite/admin/table.css +81 -0
  508. package/lib/src/theme/antd-global-overwrite/aplus/alert.css +47 -0
  509. package/lib/src/theme/antd-global-overwrite/aplus/button.css +38 -0
  510. package/lib/src/theme/antd-global-overwrite/aplus/form.css +90 -0
  511. package/lib/src/theme/antd-global-overwrite/aplus/index.css +565 -0
  512. package/lib/src/theme/antd-global-overwrite/aplus/message.css +17 -0
  513. package/lib/src/theme/antd-global-overwrite/aplus/modal.css +111 -0
  514. package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +81 -0
  515. package/lib/src/theme/antd-global-overwrite/aplus/steps.css +103 -0
  516. package/lib/src/theme/antd-global-overwrite/aplus/table.css +78 -0
  517. package/lib/src/theme/ap-action/item.css +6 -1
  518. package/lib/src/theme/ap-download/ap-download.css +51 -0
  519. package/lib/src/theme/ap-form/ap-form-item.css +46 -0
  520. package/lib/src/theme/ap-form/modal-form.css +17 -0
  521. package/lib/src/theme/ap-form/search-form.css +3 -0
  522. package/lib/src/theme/ap-layout/ap-info-layout.css +19 -0
  523. package/lib/src/theme/ap-table/ap-table-index.css +12 -0
  524. package/lib/src/theme/ap-table/ap-table-pagination.css +12 -0
  525. package/lib/src/theme/ap-table/ap-table.css +46 -0
  526. package/lib/src/theme/ap-tag/ap-tag-group.css +6 -0
  527. package/lib/src/theme/ap-tag/ap-tag.css +40 -0
  528. package/lib/src/theme/ap-upload/multiple-file.css +58 -0
  529. package/lib/src/theme/ap-upload/picture.css +112 -0
  530. package/lib/src/theme/ap-upload/single-file.css +98 -0
  531. package/lib/src/theme/ap-upload/upload.css +6 -0
  532. package/lib/src/theme/custom-column/column-select.css +44 -0
  533. package/lib/src/theme/custom-column/custom-column.css +46 -0
  534. package/lib/src/theme/modal/index.css +0 -103
  535. package/lib/src/theme/pro-form/form.css +0 -3
  536. package/lib/src/theme/pro-form/table-form-inner.css +104 -0
  537. package/lib/src/theme/work-order-modal/index.css +3 -0
  538. package/lib/src/utils/config-provider-preset.d.ts +79 -0
  539. package/lib/src/utils/config-provider-preset.js +1 -0
  540. package/lib/src/utils/index.d.ts +8 -0
  541. package/lib/src/utils/index.js +1 -1
  542. package/lib/src/utils/slot.d.ts +7 -1
  543. package/lib/src/utils/slot.js +1 -1
  544. package/lib/src/work-order-modal/createWorkOrder.d.ts +1 -0
  545. package/lib/src/work-order-modal/createWorkOrder.js +1 -0
  546. package/lib/src/work-order-modal/help-message.vue.d.ts +3 -0
  547. package/lib/src/work-order-modal/help-message.vue.js +1 -0
  548. package/lib/src/work-order-modal/help-message.vue2.js +1 -0
  549. package/lib/src/work-order-modal/index.d.ts +5 -0
  550. package/lib/src/work-order-modal/index.js +1 -0
  551. package/lib/src/work-order-modal/interfaces.d.ts +23 -0
  552. package/lib/src/work-order-modal/interfaces.js +1 -0
  553. package/lib/src/work-order-modal/style/index.css +3 -0
  554. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +18 -0
  555. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -0
  556. package/lib/src/work-order-modal/work-order-modal.vue2.js +1 -0
  557. package/package.json +17 -7
  558. package/es/src/ap-form/ap-form.d.ts +0 -1681
  559. package/es/src/ap-form/ap-form.mjs +0 -5
  560. package/lib/src/ap-form/ap-form.d.ts +0 -1681
  561. package/lib/src/ap-form/ap-form.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./apUpload.vue.js");exports.default=e.default;
@@ -0,0 +1,90 @@
1
+ import { VNode } from 'vue';
2
+
3
+ export type FileUploadType = 'picture' | 'singleFile' | 'multipleFile';
4
+ /**
5
+ * 是否需要返回图片名称
6
+ */
7
+ export type NeedNameModel = boolean & {
8
+ nameKey?: string;
9
+ pathKey?: string;
10
+ };
11
+ /**
12
+ * 是否需要返回图片名称 - 默认值
13
+ */
14
+ export declare enum NeedNameKeyDefault {
15
+ nameKey = "name",
16
+ pathKey = "path"
17
+ }
18
+ export type FileUploadProps = {
19
+ /**
20
+ * oss DirName 必填
21
+ */
22
+ dirName: string;
23
+ /**
24
+ * 组件类型
25
+ * singlePicture - 单图片
26
+ * multiplePicture - 多图片
27
+ * singleFile - 单文件
28
+ * multipleFile - 多文件
29
+ * 默认单文件
30
+ */
31
+ type?: FileUploadType;
32
+ /**
33
+ * 文件大小限制,单位(MB)
34
+ * 默认500MB
35
+ */
36
+ maxSize?: number;
37
+ /**
38
+ * 接受上传的文件类型
39
+ * 默认不限制
40
+ */
41
+ accept?: string;
42
+ /**
43
+ * 是否需要返回图片名称
44
+ * 默认false
45
+ * 可以传配置项nameKey,pathKey
46
+ * 默认为name,path
47
+ */
48
+ needName?: NeedNameModel;
49
+ };
50
+ export type SingleFileProps = FileUploadProps & {
51
+ /**
52
+ * 主标题
53
+ */
54
+ title?: string;
55
+ /**
56
+ * 副标题
57
+ */
58
+ subTitle?: string;
59
+ };
60
+ export type MultipleFileProps = FileUploadProps & {
61
+ /**
62
+ * 主标题
63
+ */
64
+ title?: string;
65
+ /**
66
+ * 副标题
67
+ */
68
+ subTitle?: string | VNode;
69
+ /**
70
+ * 限制上传数量
71
+ */
72
+ maxCount?: number;
73
+ };
74
+ export type PictureProps = FileUploadProps & {
75
+ /**
76
+ * 标题
77
+ */
78
+ title?: string;
79
+ /**
80
+ * 限制上传数量
81
+ */
82
+ maxCount?: number;
83
+ };
84
+ export type BeforeUpload = (file: File) => boolean;
85
+ export type CustomRequest = (cb: {
86
+ onProgress: (p: number) => void;
87
+ onError: (msg: string) => void;
88
+ onSuccess: (saveUrl: string) => void;
89
+ file: File;
90
+ }) => void;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=(e=>(e.nameKey="name",e.pathKey="path",e))(t||{});exports.NeedNameKeyDefault=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAXtSURBVHic7Z3NbxtFGMafWW/sfDjBtKEp4suFIIrEwT5QWolDe0Kc6AEkEBJtkDhwa/6Ckr8g7RUkWigIaEHkxJHAAVFailMOVSWQ6p6golSu2rQ0ifflsHE8s+vY61l7d8Z+f9Jm/K73Y/I++3g+1psADMMwDMMwDMMwDMMwTDKIdm9+W6GiJ3BcCJQIKAIoJFMtbWqbyxJ5+PH1slhKu0L9ZlsBv7lMiwQcS7IyvUYANc/DwhtlcSLtuvSLlgKeW6EKgFLCdeknP2wQ5t4qi2raFek1TnDFOd95JdqMSVosjg9mBJbPVmiQLkoAAQeerVCJgIr8JgU2tj32gPk3B+gjVXEgAUcCMQYtFsDiV5foAwwIigO//I2uwe9tDj4Cp+8D83NlUUu7KnFQHOgBBbkNGeiFcHSMsPxFhYqxMpgyaieGUCAChmXxCCXysHzmIh1MJ/3xUT5CP79EwWZjmFhaczA/Z9lQQxHws1+HWsAGVQGskECVPNxO+uRC4JrwcPntfWIl0vZycIYFNAYCqiCcfOfF9kMeRcBPL7KAxiFQra/j0NyB1h/toZkYuafGsQExoehksHzq59a9ZcWBpy+wAw2mSvWwE0MOVC4FLk0qiyKD4wigOPDUL/oOdB1gahTIuf5rJsyGB6zXgdp9/7UWHvbILgzOhfqDXEhLhDjjANN5YDwLZET3+w9LnHGAUdfPVcbROx4EXpM1cxUBg7ZFtPih0U3hNPcftjgjgMkccOue1v6HAZxsBG5oO0LzPkzE0s2Ez8m0J+vq5ZtIvdnQ3oERS27zusd1tPNdVI4jB7oO1N1v2EvtvG0roKYDdfcb9lI7bxKKgI2rousLosWBmQjo5lsi9BEa9SLI54DyY8DuKf810z13HwD/3gMuXAfuPPDXdWvClm3g1saidTyRA159noWLSz7nLzvHge+uAHfXECn/MupAnpoupDbxS0+xeL0knwPKj0fPv0zrTkwHdkzErjMTYPdU9PzLhD9CIzDJ7us5kzm9vqCWA5n+kJgDmf7ADrQcaxx4b82fide+J9YljgB25YHRkWTOp4tO/oNf7PWvgk5lTG6uJiceAHjkn9N4NPKvONBrHqdtGRdH+ElNkqTPp4NO/kMOjLTEZMe4L2JSuA4wbcPYVSP/qbSB41ngyWxCJ7OI+L3Qxo9upsOZnqGTf737gUxf0Mk/jwMNYsuBDTo9Mw6eiTGKkIE6xeA20Ci4DbQcbgMtx5q50JurwJ//AP9tJHTChHAd4IVHgcKY3v49mQtNYibm6o3BEw/w53ev3ohxAFtmYlwn2cnsJInze8V2YNQ/zxGX2UcG8+v4oy6wd0Z/f538p+LA6Qng5acTOplFxJ8L5V5oqljTC2VaE9uBoOaAXz5oMGb6hEb+296R324npj/o5D/kQCZFetEG8lx2eujkv2UvlOey00En/9wLNQgeB1pOT8eBs9PAs9P+VwCzalcH129p1I7pyNF9arxWB26tAn/dAa787cdBQg7Mbz59O5FtNpqNBwsN+eMOQ1OOOMCuSWBmEniiAHz/h/9Y9rYCjmSAQ7PA+EhTNIBLE8qHx4BXngO+/h0KioB7Z/ybkTZ8DX0YGc8Cz+xU1ykC7sqzeKazp52A7D7zCX5dQxHQdVhA0wneCFcns1k862ABLYdnYiyHHWg5LKDlsICWwwJaDgtoOaFeqAmz8Fy2L7cVsE7Slg04Ni+W6Mk//uA44Vgi3AbKGwc9y7FZMTp1Yjg2O0ZQwAF9Zm+Q4WGE5bCAlrPtOHBrHcfGxTIhBzZ24NLcsq2AkDbi0sxShttAy2EBLSc4F1oTQCGtyjCdIaAmx8EndKseUEq0RkxXiHYC1oEVEAtoOEtyoAq4jgUng6OJVofpCg/4RI5FcINTF2gRhGPJVYmJjMCJuX1iXl3Vgo/PU4W4LTQKAay8u1+UW6xvzUfn2YnGIHDivf2q85pvteHDn6hEAkcAHBaEAgkeYiSBINQgUIXASh1YeP+AqKZdJ4ZhGIZhGIZhGMYM/gdZdKFsttMx9gAAAABJRU5ErkJggg==";exports.default=A;
@@ -0,0 +1,4 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+
3
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
4
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./MultipleFile.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const d=require("../utils/returnData.js"),N=require("../hooks/useOss.js"),u=require("ant-design-vue"),F=require("@ant-design/icons-vue"),j=require("../utils/accept.js");require("../styles/multiple-file.css");const P=require("../../config-provider/hooks/use-namespace.js"),A={class:"multiple-file-context"},I={key:0},L={key:1},O=e.defineComponent({__name:"MultipleFile",setup(M){const{b:k}=P.useNamespace("ap-upload-multiple-file"),{put:B}=N.useOss(),T=e.inject("theme"),q=e.inject("dirName"),v=e.inject("accept")||"*",C=e.inject("maxSize")||500,R=e.inject("title")||"上传文件",f=e.inject("subTitle"),o=e.inject("maxCount"),i=e.inject("uploadingCount"),y=e.inject("beforeUpload"),_=e.inject("customRequest"),b=e.inject("getOssAccess"),a=e.inject("value"),p=[],c=e.inject("needName"),m=e.ref(null);e.watch(()=>a==null?void 0:a.value,function(t){!m.value.fileList.length&&t&&e.nextTick(()=>{const s=t.map(n=>{const r=d.getPath(c,n),h=d.getName(c,n),x=new File([n],h,{});return x.response=r,x.uid=r,x});if(o&&s.length>o){u.message.warning(`文件初始化个数超过${o}个,后续上传的文件会与数据不同步`);return}s.forEach(n=>{l.push(n),p.push({uid:n.uid,path:n.response})}),m.value.fileList=s})});let l=[],w;function g(t){setTimeout(()=>{const s=m.value.fileList.findIndex(n=>n.uid===t.uid);s>=0&&m.value.fileList.splice(s,1)})}function E(t){if(o&&o>1&&l.length>=o)return clearTimeout(w),w=setTimeout(()=>{u.message.warning(`最多上传${o}个文件`)}),g(t),!1;if(typeof y=="function"){if(y(t)===!1)return g(t),!1}else{if(t.size>C*1024*1024)return u.message.warning(`文件大小不超过${C}MB`),g(t),!1;if(!j.fileMatchesAccept(t,v))return u.message.warning("不支持该格式的文件"),g(t),!1}o&&o===1&&(l=[],a.value=void 0),l.push(t)}async function D(t){if(i.value++,typeof _=="function"){_({onProgress:s=>{setTimeout(()=>{t.onProgress({percent:s})})},onError:s=>{u.message.warning(s||"网络异常"),setTimeout(()=>{t.onError({name:s,message:s})}),i.value--},onSuccess:s=>{setTimeout(()=>{t.onSuccess(s)}),a.value?a.value.push(d.getReturnData(c,s,t.file.name)):a.value=[d.getReturnData(c,s,t.file.name)],p.push({uid:t.file.uid,path:s}),i.value--},file:t.file});return}try{const s=await N.getOssInstance(b);t.file.oss=s,B({file:t.file,dirName:q,oss:s,successCallBack(n){t.onSuccess(n),a.value?a.value.push(d.getReturnData(c,n,t.file.name)):a.value=[d.getReturnData(c,n,t.file.name)],p.push({uid:t.file.uid,path:n}),i.value--},errorCallBack(n){u.message.warning(n||"网络异常"),t.onError({name:n,message:n}),i.value--},progressCallBack(n){t.onProgress({percent:n})}})}catch(s){u.message.warning(typeof(s==null?void 0:s.message)=="string"?s.message:"网络异常"),t.onError({name:(s==null?void 0:s.message)||"网络异常",message:(s==null?void 0:s.message)||"网络异常"}),i.value--}}function S(t){var n;if(t.response){if(Array.isArray(a.value)){const r=p.findIndex(h=>h.uid===t.uid);r>=0&&(a==null||a.value.splice(r,1),p.splice(r,1)),a.value.length===0&&(a.value=void 0)}}else(n=t==null?void 0:t.oss)==null||n.pauseUpload();const s=l.findIndex(r=>r.uid===t.uid);return l.splice(s,1),Promise.resolve(!0)}return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(k)()]:!0,[e.unref(k)("admin")]:e.unref(T)==="admin"})},[e.createVNode(e.unref(u.Upload),{ref_key:"uploadRef",ref:m,accept:e.unref(v),multiple:"",maxCount:e.unref(o),progress:{strokeWidth:3,showInfo:!1,strokeColor:"#0070FF"},beforeUpload:E,customRequest:D,onRemove:S},{default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createVNode(e.unref(u.Button),{class:"file-btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(F.UploadOutlined)),e.createTextVNode(" "+e.toDisplayString(e.unref(R)),1)]),_:1}),e.createElementVNode("div",{class:"sub-title",onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"]))},[typeof e.unref(f)=="string"?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(e.unref(f)||`支持扩展名:${e.unref(j.getAcceptText)(e.unref(v))}`),1)):e.unref(f)?(e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(f))))])):e.createCommentVNode("",!0)])])]),_:1},8,["accept","maxCount"])],2))}});exports.default=O;
@@ -0,0 +1,4 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+
3
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
4
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Picture.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const m=require("../utils/returnData.js"),B=require("@ant-design/icons-vue"),_=require("../hooks/useOss.js"),E=require("../utils/accept.js"),r=require("ant-design-vue");require("../styles/picture.css");const A=require("../../config-provider/hooks/use-namespace.js"),M=["accept"],T={class:"picture-context"},z={class:"picture-item-box"},L=["src"],U={class:"picture-item-shadow"},G=["onClick"],H={key:0,class:"picture-item-uploading"},J=e.createElementVNode("div",null,"上传",-1),K={class:"picture-title"},Q={key:0},W={key:1},X=e.defineComponent({__name:"Picture",setup(Y){const{b:k}=A.useNamespace("ap-upload-picture"),{put:j}=_.useOss(),V=e.inject("theme"),q=e.inject("dirName"),h=e.inject("accept")||"image/*",v=e.inject("maxSize")||5,y=e.inject("title"),o=e.inject("maxCount"),d=e.inject("uploadingCount"),w=e.inject("beforeUpload"),C=e.inject("customRequest"),N=e.inject("getOssAccess"),g=e.ref(null),i=e.inject("value"),f=e.inject("needName");let u=e.ref([]);const p=[];e.watch(()=>i==null?void 0:i.value,async function(t){if(!u.value.length&&t){const c=[];for(let n of t){const s=m.getPath(f,n),a=m.getName(f,n),l=await _.getOssInstance(N),P=await l.getSignatureUrl(s),S={...new File([n],a,{}),uid:`${new Date().getTime()}-${Math.random()}`,thumbUrl:P,status:"success",percent:100,path:s};c.push(S),l.destroy()}if(o&&c.length>o){r.message.warning(`文件初始化个数超过${o}个,后续上传的文件会与数据不同步`);return}c.forEach(n=>{u.value.push(n),p.push({uid:n.uid,path:n.path})})}});function D(){var t;(t=g.value)==null||t.click()}function R(t){const c=t.target;b(c==null?void 0:c.files)}function b(t){if(t!=null&&t.length)for(let c=0;c<t.length;c++)$(t[c]);g.value&&(g.value.value="")}let x;function $(t){if(o&&o>1&&u.value.length>=o)return clearTimeout(x),x=setTimeout(()=>{r.message.warning(`最多上传${o}个图片`)}),!1;if(typeof w=="function"){if(w(t)===!1)return!1}else{if(t.size>v*1024*1024)return r.message.warning(`文件大小不超过${v}MB`),!1;if(!/image\/\w+/.test(t.type)||!E.fileMatchesAccept(t,h))return r.message.warning("不支持该格式的图片"),!1}const c=new FileReader;c.readAsDataURL(t),c.onload=function(){const n={...t,uid:`${new Date().getTime()}-${Math.random()}`,thumbUrl:this.result,status:"uploading",percent:0};I(n,t)},c.onerror=function(){r.message.warning("图片解析失败")}}async function I(t,c){if(d.value++,typeof C=="function"){C({onProgress:n=>{const s=u.value.find(a=>a.uid===t.uid);s&&(s.percent=n)},onError:n=>{r.message.warning(n||"网络异常");const s=u.value.findIndex(a=>a.uid===t.uid);s>-1&&u.value.splice(s,1),d.value--},onSuccess:n=>{const s=u.value.find(a=>a.uid===t.uid);s&&(s.status="success",s.path=n),i.value?i.value.push(m.getReturnData(f,n,c.name)):i.value=[m.getReturnData(f,n,c.name)],p.push({uid:t.uid,path:n}),d.value--},file:c});return}try{const n=await _.getOssInstance(N);t.oss=n,u.value.push(t),j({file:c,dirName:q,oss:n,successCallBack(s){const a=u.value.find(l=>l.uid===t.uid);a&&(a.status="success",a.path=s),i.value?i.value.push(m.getReturnData(f,s,c.name)):i.value=[m.getReturnData(f,s,c.name)],p.push({uid:t.uid,path:s}),d.value--},errorCallBack(s){r.message.warning(s||"网络异常");const a=u.value.findIndex(l=>l.uid===t.uid);a>-1&&u.value.splice(a,1),d.value--},progressCallBack(s){const a=u.value.find(l=>l.uid===t.uid);a&&(a.percent=s)}})}catch(n){r.message.warning(typeof(n==null?void 0:n.message)=="string"?n.message:"网络异常");const s=u.value.findIndex(a=>a.uid===t.uid);s>-1&&u.value.splice(s,1),d.value--}}function O(t){var n;if(t.path){if(Array.isArray(i.value)){const s=p.findIndex(a=>a.uid===t.uid);s>=0&&(i==null||i.value.splice(s,1),p.splice(s,1)),i.value.length===0&&(i.value=void 0)}}else(n=t==null?void 0:t.oss)==null||n.pauseUpload();const c=u.value.findIndex(s=>s.uid===t.uid);return u.value.splice(c,1),Promise.resolve(!0)}return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(k)()]:!0,[e.unref(k)("admin")]:e.unref(V)==="admin"})},[e.createElementVNode("input",{style:{display:"none"},type:"file",ref_key:"fileRef",ref:g,accept:e.unref(h),onChange:R},null,40,M),e.createElementVNode("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),n=>(e.openBlock(),e.createElementBlock("div",{class:"picture-item",key:n.uid},[e.createElementVNode("div",z,[e.createElementVNode("img",{src:n.thumbUrl,alt:""},null,8,L),e.withDirectives(e.createElementVNode("div",U,[e.createElementVNode("div",{class:"picture-item-close",onClick:s=>O(n)},[e.createVNode(e.unref(B.CloseOutlined))],8,G),n.status==="uploading"?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(e.unref(r.Progress),{percent:n.percent,strokeColor:"#ffffff",trailColor:"rgba(255, 255, 255, 0.3)",size:4,showInfo:!1},null,8,["percent"])])):e.createCommentVNode("",!0)],512),[[e.vShow,n.status==="uploading"]])])]))),128)),e.unref(o)===void 0||e.unref(u).length<e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"picture-upload",onClick:D},[e.createVNode(e.unref(B.PlusOutlined)),J])):e.createCommentVNode("",!0)]),e.createElementVNode("div",K,[e.unref(y)?(e.openBlock(),e.createElementBlock("div",Q,e.toDisplayString(e.unref(y)),1)):(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString(`支持扩展名:${e.unref(E.getAcceptText)(e.unref(h))},图片大小小于${e.unref(v)}MB`),1))])],2))}});exports.default=X;
@@ -0,0 +1,4 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+
3
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
4
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SingleFile.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const E=require("../utils/returnData.js"),A=require("../hooks/useOss.js"),O=require("../utils/accept.js"),l=require("ant-design-vue"),J=require("@ant-design/icons-vue"),P=require("../assets/single-file-icon.png.js");require("../styles/single-file.css");const K=require("../../config-provider/hooks/use-namespace.js"),Q=["accept"],W={key:0,class:"state-un"},X=["src"],Y={class:"state-un-title"},Z={class:"state-un-subtitle"},ee={key:1,class:"state-ing"},te={class:"left"},ne=["src"],ae={class:"center"},se={class:"center-progress"},re=e.defineComponent({__name:"SingleFile",setup(le){const{b:p}=K.useNamespace("ap-upload-single-file"),{put:z,client:w}=A.useOss(),g=e.inject("theme"),M=e.inject("dirName"),m=e.inject("accept")||"*",h=e.inject("maxSize")||500,R=e.inject("title")||"点击或将文件拖拽到这里上传",_=e.inject("subTitle"),a=e.inject("value"),D=e.inject("needName"),c=e.inject("uploadingCount"),F=e.inject("beforeUpload"),B=e.inject("customRequest"),T=e.inject("getOssAccess"),s=e.ref(null);e.watch(()=>a==null?void 0:a.value,function(t){const n=E.getName(D,t);s.value===null&&t&&(r.value=3,s.value=new File([t],n,{}))});const r=e.ref(1),f=e.ref(0),v=e.ref(null),j=e.computed(()=>s.value&&(a==null?void 0:a.value));function x(){var t;r.value===1&&((t=v.value)==null||t.click())}function q(t){t.preventDefault(),t.stopPropagation()}function I(t){t.dataTransfer.dropEffect="copy",t.preventDefault(),t.stopPropagation()}function L(t){S(t)}function U(t){if(t.preventDefault(),t.stopPropagation(),r.value!==1)return;var n=t.dataTransfer,o=[],b=0,V=n.files.length;function u(){b===V-1&&L(o),b++}if(n.items!==void 0)for(var k=0;k<n.items.length;k++){var y=n.items[k];if(y.kind==="file"&&y.webkitGetAsEntry().isFile){var H=y.getAsFile();o.push(H),u()}}else for(let N=0;N<V;N++){var d=n.files[N];if(d.type)o.push(d),u();else try{var C=new FileReader;C.readAsDataURL(d.slice(0,3)),C.addEventListener("load",function(i){console.warn(i,"load"),o.push(d),u()},!1),C.addEventListener("error",function(i){console.warn(i,"error"),l.message.warning("不支持上传文件夹"),u()},!1)}catch(i){console.warn(i),l.message.warning("不支持上传文件夹"),u()}}}function $(t){const n=t.target;S(n==null?void 0:n.files),v.value&&(v.value.value="")}async function S(t){if(t!=null&&t.length){if(typeof F=="function"){if(F(t[0])===!1)return}else{if(t[0].size>h*1024*1024){l.message.warning(`文件大小不超过${h}MB`);return}if(!O.fileMatchesAccept(t[0],m)){l.message.warning("不支持该格式的文件");return}}if(s.value=t[0],r.value=2,f.value=0,a.value="",c.value++,typeof B=="function"){B({onProgress:n=>{f.value=n},onError:n=>{l.message.warning(n||"网络异常"),r.value=1,s.value=null,c.value--},onSuccess:n=>{a.value=E.getReturnData(D,n,s.value.name),r.value=3,c.value--},file:t[0]});return}try{await A.useOssInit(T),z({file:s.value,dirName:M,oss:w,successCallBack(n){a.value=E.getReturnData(D,n,s.value.name),r.value=3,c.value--},errorCallBack(n){l.message.warning(n||"网络异常"),r.value=1,s.value=null,c.value--},progressCallBack(n){f.value=n}})}catch(n){l.message.warning(typeof(n==null?void 0:n.message)=="string"?n.message:"网络异常"),r.value=1,s.value=null,c.value--}}}function G(){s.value&&!(a!=null&&a.value)&&w.pauseUpload(),r.value=1,s.value=null,a.value=void 0}return(t,n)=>{var o;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(p)()]:!0,[e.unref(p)("admin")]:e.unref(g)==="admin",[e.unref(p)("un")]:r.value===1}),onClick:x,onDragenter:q,onDragover:I,onDragleave:q,onDrop:U},[e.createElementVNode("input",{style:{display:"none"},type:"file",ref_key:"fileRef",ref:v,accept:e.unref(m),onChange:$},null,40,Q),r.value===1?(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("img",{class:"state-un-icon",src:e.unref(P.default)},null,8,X),e.createElementVNode("div",Y,e.toDisplayString(e.unref(R)),1),e.createElementVNode("div",Z,e.toDisplayString(typeof e.unref(_)=="string"&&e.unref(_).length>0?e.unref(_):`支持扩展名:${e.unref(O.getAcceptText)(e.unref(m))},文件大小小于${e.unref(h)}MB`),1)])):e.createCommentVNode("",!0),[2,3].includes(r.value)?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("img",{src:e.unref(P.default)},null,8,ne)]),e.createElementVNode("div",ae,[e.createElementVNode("div",{class:"center-title",style:e.normalizeStyle({color:j.value?"#0070FF":"#182948"})},e.toDisplayString((o=s.value)==null?void 0:o.name),5),e.createElementVNode("div",se,[j.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(l.Progress),{key:0,percent:f.value,size:4,showInfo:!1,trailColor:e.unref(g)==="admin"?"#D9D9D9":"#DEE4ED",strokeColor:e.unref(g)==="admin"?"#34B77C":"#0070FF"},null,8,["percent","trailColor","strokeColor"]))])]),e.createElementVNode("div",{class:"right",onClick:e.withModifiers(G,["stop"])},[e.createVNode(e.unref(J.DeleteOutlined))])])):e.createCommentVNode("",!0)],34)}}});exports.default=re;
@@ -0,0 +1,19 @@
1
+ import { Oss } from '@aplus-frontend/oss';
2
+ export type { Oss } from '@aplus-frontend/oss';
3
+ declare function put({ file, dirName, oss, successCallBack, errorCallBack, progressCallBack }: {
4
+ file: File;
5
+ dirName: string;
6
+ oss: any;
7
+ successCallBack: (saveUrl: string, previewUrl: string) => void;
8
+ errorCallBack: (msg: string) => void;
9
+ progressCallBack: (p: number) => void;
10
+ }): Promise<void>;
11
+ export declare function useOss(): {
12
+ client: Oss;
13
+ put: typeof put;
14
+ };
15
+ export declare function useOssInit(getOssAccess: any): Promise<{
16
+ client: Oss;
17
+ put: typeof put;
18
+ }>;
19
+ export declare function getOssInstance(getOssAccess: any): Promise< Oss>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@aplus-frontend/oss");async function l({file:t,dirName:s,oss:e,successCallBack:u,errorCallBack:o,progressCallBack:r}){try{const n=await e.put({fileName:t.name,dirName:s,data:t,progressCallBack:i=>{r(i)}});if(n.status===204)return;if(n.status===200){const{saveUrl:i,previewUrl:g}=n;u(i,g)}else o((n==null?void 0:n.message)||"网络异常")}catch(n){o(n)}}function c(){return{client:a.client,put:l}}async function w(t){if(!t)throw new Error("请传入getOssAccess");return await a.client.initOssClient({getOssAccess:t,onFailure:s=>{throw new Error(typeof(s==null?void 0:s.message)=="string"?s.message:"获取oss临时权限失败")}}),c()}async function f(t){if(!t)throw new Error("请传入getOssAccess");const s=a.createOssInstance();return await s.initOssClient({getOssAccess:t,onFailure:e=>{throw new Error(typeof(e==null?void 0:e.message)=="string"?e.message:"获取oss临时权限失败")}}),s}exports.getOssInstance=f;exports.useOss=c;exports.useOssInit=w;
@@ -0,0 +1,5 @@
1
+ import { default as ApUpload } from './apUpload.vue';
2
+
3
+ export * from './apUploadTypes';
4
+ export { ApUpload };
5
+ export default ApUpload;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./apUpload.vue2.js");const u=require("./apUploadTypes.js"),e=require("./apUpload.vue.js");e.default.install=function(t){return t.component(e.default.name,e.default),t};exports.NeedNameKeyDefault=u.NeedNameKeyDefault;exports.ApUpload=e.default;exports.default=e.default;
@@ -0,0 +1,58 @@
1
+ .aplus-ap-upload-multiple-file .multiple-file-context {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+ .aplus-ap-upload-multiple-file .multiple-file-context .file-btn {
6
+ display: flex;
7
+ align-items: center;
8
+ padding: 7px 16px;
9
+ transition: all 0.3s;
10
+ border: 1px solid #dee4ed;
11
+ border-radius: 4px;
12
+ color: #182948;
13
+ }
14
+ .aplus-ap-upload-multiple-file .multiple-file-context .file-btn:hover {
15
+ border-color: #0070ff;
16
+ color: #0070ff;
17
+ }
18
+ .aplus-ap-upload-multiple-file .multiple-file-context .sub-title {
19
+ margin-left: 16px;
20
+ color: #8896b0;
21
+ font-size: 14px;
22
+ }
23
+ .aplus-ap-upload-multiple-file .ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover {
24
+ background: #f5f9fa;
25
+ }
26
+ .aplus-ap-upload-multiple-file .ant-upload-text-icon {
27
+ color: #abb7cc;
28
+ }
29
+ .aplus-ap-upload-multiple-file .ant-upload-wrapper .ant-upload-list .ant-upload-list-item-error .ant-upload-list-item-name,
30
+ .aplus-ap-upload-multiple-file .ant-upload-wrapper .ant-upload-list .ant-upload-list-item-error .ant-upload-icon .anticon,
31
+ .aplus-ap-upload-multiple-file .ant-upload-list-item-error .ant-upload-text-icon {
32
+ color: #ff4d4f;
33
+ }
34
+ .aplus-ap-upload-multiple-file .ant-upload-list-item-done {
35
+ color: #0070ff;
36
+ }
37
+ .aplus-ap-upload-multiple-file .ant-upload-list-item-undefined {
38
+ color: #0070ff;
39
+ }
40
+ .aplus-ap-upload-multiple-file-admin .multiple-file-context .file-btn {
41
+ border: 1px solid #d9d9d9;
42
+ }
43
+ .aplus-ap-upload-multiple-file-admin .multiple-file-context .file-btn:hover {
44
+ border-color: #34b77c;
45
+ color: #34b77c;
46
+ }
47
+ .aplus-ap-upload-multiple-file-admin .ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover {
48
+ background: #fafafa;
49
+ }
50
+ .aplus-ap-upload-multiple-file-admin .ant-upload-text-icon {
51
+ color: #bfbfbf;
52
+ }
53
+ .aplus-ap-upload-multiple-file-admin .ant-upload-list-item-done {
54
+ color: #1890ff;
55
+ }
56
+ .aplus-ap-upload-multiple-file-admin .ant-upload-list-item-undefined {
57
+ color: #1890ff;
58
+ }
@@ -0,0 +1,112 @@
1
+ .aplus-ap-upload-picture .picture-context {
2
+ display: grid;
3
+ grid-gap: 16px;
4
+ grid-template-columns: repeat(auto-fill, 100px);
5
+ -webkit-user-select: none;
6
+ -moz-user-select: none;
7
+ user-select: none;
8
+ }
9
+ .aplus-ap-upload-picture .picture-context .picture-upload {
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: center;
14
+ width: 100px;
15
+ overflow: hidden;
16
+ transition: all 0.2s;
17
+ border: 1px dashed #dee4ed;
18
+ border-radius: 4px;
19
+ background: #f2f6f9;
20
+ color: #abb7cc;
21
+ font-size: 16px;
22
+ cursor: pointer;
23
+ aspect-ratio: 1 / 1;
24
+ }
25
+ .aplus-ap-upload-picture .picture-context .picture-upload > * + * {
26
+ margin-top: 8px;
27
+ font-size: 14px;
28
+ }
29
+ .aplus-ap-upload-picture .picture-context .picture-upload:hover {
30
+ border: 1px dashed #0070ff;
31
+ }
32
+ .aplus-ap-upload-picture .picture-context .picture-item {
33
+ width: 100px;
34
+ padding: 8px;
35
+ overflow: hidden;
36
+ border: 1px solid #dee4ed;
37
+ border-radius: 4px;
38
+ background: #fff;
39
+ aspect-ratio: 1 / 1;
40
+ }
41
+ .aplus-ap-upload-picture .picture-context .picture-item .picture-item-box {
42
+ position: relative;
43
+ width: 100%;
44
+ height: 100%;
45
+ border-radius: 2px;
46
+ }
47
+ .aplus-ap-upload-picture .picture-context .picture-item .picture-item-box > img {
48
+ width: 100%;
49
+ height: 100%;
50
+ border-radius: 2px;
51
+ -o-object-fit: cover;
52
+ object-fit: cover;
53
+ }
54
+ .aplus-ap-upload-picture .picture-context .picture-item .picture-item-box:hover > .picture-item-shadow {
55
+ display: block !important;
56
+ }
57
+ .aplus-ap-upload-picture .picture-context .picture-item .picture-item-box .picture-item-shadow {
58
+ position: absolute;
59
+ top: 0;
60
+ left: 0;
61
+ width: 100%;
62
+ height: 100%;
63
+ border-radius: 2px;
64
+ background: rgba(0, 0, 0, 0.5);
65
+ color: #fff;
66
+ font-size: 14px;
67
+ }
68
+ .aplus-ap-upload-picture .picture-context .picture-item .picture-item-box .picture-item-shadow .picture-item-close {
69
+ display: flex;
70
+ position: absolute;
71
+ top: 0;
72
+ right: 0;
73
+ align-items: center;
74
+ justify-content: center;
75
+ width: 16px;
76
+ overflow: hidden;
77
+ transform: translate(30%, -30%);
78
+ border: 1px solid #fff;
79
+ border-radius: 50%;
80
+ background: #ff4d4f;
81
+ color: #fff;
82
+ font-size: 10px;
83
+ cursor: pointer;
84
+ aspect-ratio: 1 / 1;
85
+ }
86
+ .aplus-ap-upload-picture .picture-context .picture-item .picture-item-box .picture-item-shadow .picture-item-uploading {
87
+ position: absolute;
88
+ top: 50%;
89
+ left: 50%;
90
+ width: 84%;
91
+ transform: translate(-50%, -50%);
92
+ text-align: center;
93
+ }
94
+ .aplus-ap-upload-picture .picture-title {
95
+ margin-top: 8px;
96
+ color: #8896b0;
97
+ font-size: 14px;
98
+ }
99
+ .aplus-ap-upload-picture-admin .picture-context .picture-upload {
100
+ border: 1px dashed #d9d9d9;
101
+ background: #fafafa;
102
+ color: #bfbfbf;
103
+ }
104
+ .aplus-ap-upload-picture-admin .picture-context .picture-upload:hover {
105
+ border: 1px dashed #34b77c;
106
+ }
107
+ .aplus-ap-upload-picture-admin .picture-context .picture-item {
108
+ border: 1px solid #d9d9d9;
109
+ }
110
+ .aplus-ap-upload-picture-admin .picture-context .picture-title {
111
+ color: #999;
112
+ }
@@ -0,0 +1,98 @@
1
+ .aplus-ap-upload-single-file {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: 100%;
6
+ height: 200px;
7
+ overflow: hidden;
8
+ transition: all 0.3s;
9
+ border: 1px dashed #dee4ed;
10
+ border-radius: 4px;
11
+ background: #f2f6f9;
12
+ -webkit-user-select: none;
13
+ -moz-user-select: none;
14
+ user-select: none;
15
+ }
16
+ .aplus-ap-upload-single-file > div {
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ }
21
+ .aplus-ap-upload-single-file .state-un {
22
+ flex-direction: column;
23
+ }
24
+ .aplus-ap-upload-single-file .state-un .state-un-icon {
25
+ display: block;
26
+ width: 56px;
27
+ }
28
+ .aplus-ap-upload-single-file .state-un .state-un-title {
29
+ margin-top: 10px;
30
+ color: #182948;
31
+ font-size: 16px;
32
+ line-height: 22px;
33
+ }
34
+ .aplus-ap-upload-single-file .state-un .state-un-subtitle {
35
+ margin-top: 4px;
36
+ color: #abb7cc;
37
+ font-size: 12px;
38
+ line-height: 18px;
39
+ }
40
+ .aplus-ap-upload-single-file .state-ing {
41
+ display: flex;
42
+ align-items: center;
43
+ width: min(516px, 77.24%);
44
+ height: 96px;
45
+ padding: 0 24px;
46
+ border-radius: 4px;
47
+ background: #fff;
48
+ }
49
+ .aplus-ap-upload-single-file .state-ing .left {
50
+ flex-shrink: 0;
51
+ width: 48px;
52
+ margin-right: 16px;
53
+ }
54
+ .aplus-ap-upload-single-file .state-ing .left img {
55
+ display: block;
56
+ width: 100%;
57
+ }
58
+ .aplus-ap-upload-single-file .state-ing .center {
59
+ flex: 1;
60
+ }
61
+ .aplus-ap-upload-single-file .state-ing .center .center-title {
62
+ display: -webkit-box;
63
+ overflow: hidden;
64
+ font-size: 14px;
65
+ text-align: start;
66
+ text-overflow: ellipsis;
67
+ word-wrap: break-word;
68
+ word-break: break-all;
69
+ -webkit-box-orient: vertical;
70
+ -webkit-line-clamp: 2;
71
+ }
72
+ .aplus-ap-upload-single-file .state-ing .center .center-progress .ant-progress-line {
73
+ margin-right: 0;
74
+ margin-bottom: 0;
75
+ }
76
+ .aplus-ap-upload-single-file .state-ing .right {
77
+ flex-shrink: 0;
78
+ margin-left: 24px;
79
+ color: #ff4d4f;
80
+ font-size: 20px;
81
+ cursor: pointer !important;
82
+ }
83
+ .aplus-ap-upload-single-file-un {
84
+ cursor: pointer;
85
+ }
86
+ .aplus-ap-upload-single-file-un:hover {
87
+ border: 1px dashed #0070ff;
88
+ background: rgba(0, 112, 255, 0.1);
89
+ }
90
+ .aplus-ap-upload-single-file-admin {
91
+ border: 1px dashed #D9D9D9;
92
+ }
93
+ .aplus-ap-upload-single-file-admin .state-un .state-un-title {
94
+ color: #333;
95
+ }
96
+ .aplus-ap-upload-single-file-admin .state-un .state-un-subtitle {
97
+ color: #BFBFBF;
98
+ }
@@ -0,0 +1,6 @@
1
+ .aplus-ap-upload {
2
+ position: relative;
3
+ }
4
+ .aplus-ap-upload .ant-btn {
5
+ min-width: 0;
6
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 校验文件是否满足指定的格式
3
+ * @param file
4
+ * @param accept
5
+ * @returns
6
+ */
7
+ export declare function fileMatchesAccept(file: File, accept: string): boolean;
8
+ /**
9
+ * 根据accept获取支持的后缀名
10
+ * @param accept
11
+ * @returns
12
+ */
13
+ export declare function getAcceptText(accept: string): string;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("mime");function f(n,i){var s,c,o,u;const e=i.split(",").map(t=>t.trim());for(const t of e){if(t==="*")return!0;if(t.endsWith("/*")){const[r]=t.split("/"),[a]=n.type.split("/");if(r===a)return!0}else if(/^\./.test(t)){if(n.type===p.getType(t))return!0;const r=(s=n.name)==null?void 0:s.lastIndexOf(".");if(r>-1&&((c=n.name)==null?void 0:c.slice(r))===t)return!0}else{if(n.type===t)return!0;const r=(o=n.name)==null?void 0:o.lastIndexOf(".");if(r>-1&&[...p.getAllExtensions(t)||[]].map(l=>`.${l}`).includes((u=n.name)==null?void 0:u.slice(r)))return!0}}return!1}function m(n){const i={image:"图片类型",video:"视频类型",audio:"音频类型",application:"文档类型","*":"全部类型"};return n.split(",").map(e=>e.trim()).map(e=>{if(e==="*")return i[e];if(e.endsWith("/*")){const[s]=e.split("/");return i[s]||s}else return/^\./.test(e)?e:[...p.getAllExtensions(e)||[]].map(s=>`.${s}`).join(",")||e}).join(",")}exports.fileMatchesAccept=f;exports.getAcceptText=m;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * 根据needName获取单条数据的数据结构
3
+ */
4
+ export declare function getReturnData(needName: any, path: string, fileName: string): string | {
5
+ name: string;
6
+ path: string;
7
+ } | {
8
+ [x: number]: string;
9
+ name?: undefined;
10
+ path?: undefined;
11
+ };
12
+ /**
13
+ * 根据needName获取path
14
+ */
15
+ export declare function getPath(needName: any, scoure: any): any;
16
+ /**
17
+ * 根据needName获取name
18
+ */
19
+ export declare function getName(needName: any, scoure: any): any;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../apUploadTypes.js");function e(t,y,K){return t===!0?{[f.NeedNameKeyDefault.nameKey]:K,[f.NeedNameKeyDefault.pathKey]:y}:typeof t=="object"?{[(t==null?void 0:t.nameKey)||f.NeedNameKeyDefault.nameKey]:K,[(t==null?void 0:t.pathKey)||f.NeedNameKeyDefault.pathKey]:y}:y}function l(t,y){return t===!0?y==null?void 0:y[f.NeedNameKeyDefault.pathKey]:typeof t=="object"?y==null?void 0:y[(t==null?void 0:t.pathKey)||f.NeedNameKeyDefault.pathKey]:y}function a(t,y){return t===!0?y==null?void 0:y[f.NeedNameKeyDefault.nameKey]:typeof t=="object"?y==null?void 0:y[(t==null?void 0:t.nameKey)||f.NeedNameKeyDefault.nameKey]:y}exports.getName=a;exports.getPath=l;exports.getReturnData=e;
@@ -44,9 +44,9 @@ declare const _default: DefineComponent<{
44
44
  * Help text list
45
45
  */
46
46
  text: {
47
- type: PropType<string[] | VNode< RendererNode, RendererElement, {
47
+ type: PropType<VNode< RendererNode, RendererElement, {
48
48
  [key: string]: any;
49
- }> | VNodeChild>;
49
+ }> | string[] | VNodeChild>;
50
50
  };
51
51
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
52
52
  /**
@@ -91,9 +91,9 @@ declare const _default: DefineComponent<{
91
91
  * Help text list
92
92
  */
93
93
  text: {
94
- type: PropType<string[] | VNode< RendererNode, RendererElement, {
94
+ type: PropType<VNode< RendererNode, RendererElement, {
95
95
  [key: string]: any;
96
- }> | VNodeChild>;
96
+ }> | string[] | VNodeChild>;
97
97
  };
98
98
  }>>, {
99
99
  color: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("ant-design-vue"),f=require("@ant-design/icons-vue"),y=require("../utils/index.js"),u=require("@fruits-chain/utils"),m=require("../utils/slot.js");require("../config-provider/index.js");require("./style/help.css");const g=require("../config-provider/hooks/use-namespace.js"),S={maxWidth:{type:String,default:"600px"},showIndex:{type:Boolean},color:{type:String,default:"#ffffff"},fontSize:{type:String,default:"14px"},placement:{type:String,default:"right"},text:{type:[Array,String,Object]}},x=e.defineComponent({name:"ApBasicHelp",components:{Tooltip:i.Tooltip},props:S,setup(t,{slots:l}){const{b:a,be:n}=g.useNamespace("basic-help"),c=e.computed(()=>({color:t.color,fontSize:t.fontSize})),s=e.computed(()=>({maxWidth:t.maxWidth}));function d(){const r=t.text;return u.isType("String")(r)?r:u.isArray(r)?r.map((o,p)=>e.createVNode("p",{key:o,class:n("content","row")},[t.showIndex?`${p+1}. `:"",o])):r}return()=>e.createVNode(i.Tooltip,{overlayClassName:`${n("wrap")}`,title:e.createVNode("div",{style:e.unref(c)},[d()]),autoAdjustOverflow:!0,overlayStyle:e.unref(s),placement:t.placement,getPopupContainer:()=>y.getPopupContainer()},{default:()=>[e.createVNode("span",{class:a()},[m.getSlot(l)||e.createVNode(f.InfoCircleOutlined,null,null)])]})}});exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("ant-design-vue"),f=require("@ant-design/icons-vue"),y=require("../utils/index.js"),l=require("@fruits-chain/utils"),m=require("../utils/slot.js");require("../config-provider/index.js");require("./style/help.css");const g=require("../config-provider/hooks/use-namespace.js"),S={maxWidth:{type:String,default:"600px"},showIndex:{type:Boolean},color:{type:String,default:"#ffffff"},fontSize:{type:String,default:"14px"},placement:{type:String,default:"right"},text:{type:[Array,String,Object]}},x=e.defineComponent({name:"ApBasicHelp",components:{Tooltip:i.Tooltip},props:S,setup(t,{slots:u}){const{b:a,be:n}=g.useNamespace("basic-help"),c=e.computed(()=>({color:t.color,fontSize:t.fontSize})),s=e.computed(()=>({maxWidth:t.maxWidth}));function d(){const r=t.text;return l.isType("String")(r)?r:l.isArray(r)?r.map((o,p)=>e.createVNode("p",{key:o,class:n("content","row")},[t.showIndex?`${p+1}. `:"",o])):r}return()=>e.createVNode(i.Tooltip,{overlayClassName:`${n("wrap")}`,title:e.createVNode("div",{style:e.unref(c)},[d()]),autoAdjustOverflow:!0,overlayStyle:e.unref(s),placement:t.placement,getPopupContainer:()=>y.getPopupContainer()},{default:()=>[e.createVNode("span",{class:a()},[m.getSlot(u)||e.createVNode(f.InfoCircleOutlined,null,null)])]})}});exports.default=x;
@@ -23,9 +23,9 @@ export declare const BasicHelp: {
23
23
  default: string;
24
24
  };
25
25
  text: {
26
- type: PropType<string[] | VNode<RendererNode, RendererElement, {
26
+ type: PropType< VNode<RendererNode, RendererElement, {
27
27
  [key: string]: any;
28
- }> | VNodeChild>;
28
+ }> | string[] | VNodeChild>;
29
29
  };
30
30
  }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
31
31
  maxWidth: {
@@ -48,9 +48,9 @@ export declare const BasicHelp: {
48
48
  default: string;
49
49
  };
50
50
  text: {
51
- type: PropType<string[] | VNode<RendererNode, RendererElement, {
51
+ type: PropType< VNode<RendererNode, RendererElement, {
52
52
  [key: string]: any;
53
- }> | VNodeChild>;
53
+ }> | string[] | VNodeChild>;
54
54
  };
55
55
  }>>, {
56
56
  color: string;
@@ -86,9 +86,9 @@ export declare const BasicHelp: {
86
86
  default: string;
87
87
  };
88
88
  text: {
89
- type: PropType<string[] | VNode<RendererNode, RendererElement, {
89
+ type: PropType< VNode<RendererNode, RendererElement, {
90
90
  [key: string]: any;
91
- }> | VNodeChild>;
91
+ }> | string[] | VNodeChild>;
92
92
  };
93
93
  }>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
94
94
  color: string;
@@ -121,9 +121,9 @@ export declare const BasicHelp: {
121
121
  default: string;
122
122
  };
123
123
  text: {
124
- type: PropType<string[] | VNode<RendererNode, RendererElement, {
124
+ type: PropType< VNode<RendererNode, RendererElement, {
125
125
  [key: string]: any;
126
- }> | VNodeChild>;
126
+ }> | string[] | VNodeChild>;
127
127
  };
128
128
  }>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
129
129
  color: string;
@@ -34,6 +34,8 @@ declare module '@vue/runtime-core' {
34
34
  ApCountdownButton: typeof components.CountdownButton;
35
35
  ApCountdownInput: typeof components.CountdownInput;
36
36
  ApDropdown: typeof components.Dropdown;
37
+ ProTableForm: typeof components.ProTableForm;
38
+ ProTableFormInner: typeof components.ProTableFormInner;
37
39
  }
38
40
  }
39
41
 
@@ -11,7 +11,7 @@ import { RequiredMark } from 'ant-design-vue/es/form/Form';
11
11
  export declare const configProviderProps: () => {
12
12
  iconPrefixCls: StringConstructor;
13
13
  getTargetContainer: {
14
- type: PropType<() => Window | HTMLElement>;
14
+ type: PropType<() => HTMLElement | Window>;
15
15
  };
16
16
  getPopupContainer: {
17
17
  type: PropType<(triggerNode?: HTMLElement | undefined) => HTMLElement>;