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

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 (567) 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 +63 -5
  37. package/es/src/ap-field/date/index.vue.mjs +115 -46
  38. package/es/src/ap-field/date-range/index.vue.d.ts +68 -6
  39. package/es/src/ap-field/date-range/index.vue.mjs +137 -58
  40. package/es/src/ap-field/interface.d.ts +4 -8
  41. package/es/src/ap-field/number/index.vue.mjs +8 -8
  42. package/es/src/ap-field/radio/index.vue.mjs +6 -6
  43. package/es/src/ap-field/select/index.vue.d.ts +45 -179
  44. package/es/src/ap-field/select/index.vue.mjs +137 -66
  45. package/es/src/ap-field/switch/index.vue.d.ts +2 -2
  46. package/es/src/ap-field/switch/index.vue.mjs +31 -31
  47. package/es/src/ap-field/text/index.vue.d.ts +4 -1
  48. package/es/src/ap-field/text/index.vue.mjs +11 -10
  49. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  50. package/es/src/ap-field/text-area/index.vue.mjs +8 -8
  51. package/es/src/ap-form/ap-form-item-group/helper.d.ts +10 -0
  52. package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -11
  53. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +60 -2
  54. package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +2 -56
  55. package/es/src/ap-form/ap-form-item.vue.d.ts +23 -5
  56. package/es/src/ap-form/ap-form-item.vue.mjs +149 -2
  57. package/es/src/ap-form/ap-form-item.vue2.mjs +2 -80
  58. package/es/src/ap-form/ap-form-list.vue.d.ts +35 -0
  59. package/es/src/ap-form/ap-form-list.vue.mjs +41 -0
  60. package/es/src/ap-form/ap-form-list.vue2.mjs +4 -0
  61. package/es/src/ap-form/ap-form.vue.d.ts +66 -0
  62. package/es/src/ap-form/ap-form.vue.mjs +4 -0
  63. package/es/src/ap-form/ap-form.vue2.mjs +89 -0
  64. package/es/src/ap-form/context.d.ts +11 -0
  65. package/es/src/ap-form/context.mjs +17 -0
  66. package/es/src/ap-form/index.d.ts +15 -939
  67. package/es/src/ap-form/index.mjs +24 -11
  68. package/es/src/ap-form/interface.d.ts +62 -1
  69. package/es/src/ap-form/interface.mjs +1 -0
  70. package/es/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
  71. package/es/src/ap-form/items/checkbox/index.vue.mjs +61 -0
  72. package/es/src/ap-form/items/checkbox/index.vue2.mjs +4 -0
  73. package/es/src/ap-form/items/date/index.vue.d.ts +65 -0
  74. package/es/src/ap-form/items/date/index.vue.mjs +78 -0
  75. package/es/src/ap-form/items/date/index.vue2.mjs +4 -0
  76. package/es/src/ap-form/items/date-range/index.vue.d.ts +64 -0
  77. package/es/src/ap-form/items/date-range/index.vue.mjs +78 -0
  78. package/es/src/ap-form/items/date-range/index.vue2.mjs +4 -0
  79. package/es/src/ap-form/items/index.d.ts +9 -1
  80. package/es/src/ap-form/items/index.mjs +8 -0
  81. package/es/src/ap-form/items/interface.d.ts +39 -6
  82. package/es/src/ap-form/items/number/index.vue.d.ts +63 -0
  83. package/es/src/ap-form/items/number/index.vue.mjs +84 -0
  84. package/es/src/ap-form/items/number/index.vue2.mjs +4 -0
  85. package/es/src/ap-form/items/radio/index.vue.d.ts +50 -0
  86. package/es/src/ap-form/items/radio/index.vue.mjs +74 -0
  87. package/es/src/ap-form/items/radio/index.vue2.mjs +4 -0
  88. package/es/src/ap-form/items/select/index.vue.d.ts +69 -0
  89. package/es/src/ap-form/items/select/index.vue.mjs +89 -0
  90. package/es/src/ap-form/items/select/index.vue2.mjs +4 -0
  91. package/es/src/ap-form/items/switch/index.vue.d.ts +60 -0
  92. package/es/src/ap-form/items/switch/index.vue.mjs +68 -0
  93. package/es/src/ap-form/items/switch/index.vue2.mjs +4 -0
  94. package/es/src/ap-form/items/text/index.vue.d.ts +0 -3
  95. package/es/src/ap-form/items/text/index.vue.mjs +24 -31
  96. package/es/src/ap-form/items/text-area/index.vue.d.ts +52 -0
  97. package/es/src/ap-form/items/text-area/index.vue.mjs +79 -0
  98. package/es/src/ap-form/items/text-area/index.vue2.mjs +4 -0
  99. package/es/src/ap-form/modal-form/index.vue.d.ts +378 -0
  100. package/es/src/ap-form/modal-form/index.vue.mjs +239 -0
  101. package/es/src/ap-form/modal-form/index.vue2.mjs +4 -0
  102. package/es/src/ap-form/search-form/index.vue.d.ts +79 -0
  103. package/es/src/ap-form/search-form/index.vue.mjs +209 -0
  104. package/es/src/ap-form/search-form/index.vue2.mjs +4 -0
  105. package/es/src/ap-form/style/ap-form-item.css +46 -0
  106. package/es/src/ap-form/style/modal-form.css +17 -0
  107. package/es/src/ap-form/style/search-form.css +3 -0
  108. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +42 -0
  109. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs +62 -0
  110. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue2.mjs +4 -0
  111. package/es/src/ap-layout/index.d.ts +3 -0
  112. package/es/src/ap-layout/index.mjs +1 -0
  113. package/es/src/ap-layout/interface.d.ts +4 -0
  114. package/es/src/ap-layout/style/ap-info-layout.css +19 -0
  115. package/es/src/ap-table/ap-table.vue.d.ts +193 -0
  116. package/es/src/ap-table/ap-table.vue.mjs +277 -0
  117. package/es/src/ap-table/ap-table.vue2.mjs +4 -0
  118. package/es/src/ap-table/components/index/index.vue.d.ts +28 -0
  119. package/es/src/ap-table/components/index/index.vue.mjs +4 -0
  120. package/es/src/ap-table/components/index/index.vue2.mjs +21 -0
  121. package/es/src/ap-table/components/interface.d.ts +20 -0
  122. package/es/src/ap-table/components/style/index.css +12 -0
  123. package/es/src/ap-table/components/style/pagination.css +12 -0
  124. package/es/src/ap-table/constants.d.ts +12340 -0
  125. package/es/src/ap-table/constants.mjs +55 -0
  126. package/es/src/ap-table/hooks/use-table-paging.d.ts +82 -0
  127. package/es/src/ap-table/hooks/use-table-paging.mjs +142 -0
  128. package/es/src/ap-table/index.d.ts +5 -0
  129. package/es/src/ap-table/index.mjs +6 -0
  130. package/es/src/ap-table/interface.d.ts +180 -0
  131. package/es/src/ap-table/interface.mjs +1 -0
  132. package/es/src/ap-table/style/ap-table.css +46 -0
  133. package/es/src/ap-table/utils.d.ts +32 -0
  134. package/es/src/ap-table/utils.mjs +63 -0
  135. package/es/src/ap-tag/ap-tag-group.vue.d.ts +34 -0
  136. package/es/src/ap-tag/ap-tag-group.vue.mjs +137 -0
  137. package/es/src/ap-tag/ap-tag-group.vue2.mjs +4 -0
  138. package/es/src/ap-tag/ap-tag.vue.d.ts +34 -0
  139. package/es/src/ap-tag/ap-tag.vue.mjs +41 -0
  140. package/es/src/ap-tag/ap-tag.vue2.mjs +4 -0
  141. package/es/src/ap-tag/index.d.ts +5 -0
  142. package/es/src/ap-tag/index.mjs +3 -0
  143. package/es/src/ap-tag/interface.d.ts +35 -0
  144. package/es/src/ap-tag/interface.mjs +1 -0
  145. package/es/src/ap-tag/style/ap-tag-group.css +6 -0
  146. package/es/src/ap-tag/style/ap-tag.css +40 -0
  147. package/es/src/ap-upload/apUpload.vue.d.ts +111 -0
  148. package/es/src/ap-upload/apUpload.vue.mjs +95 -0
  149. package/es/src/ap-upload/apUpload.vue2.mjs +4 -0
  150. package/es/src/ap-upload/apUploadTypes.d.ts +90 -0
  151. package/es/src/ap-upload/apUploadTypes.mjs +4 -0
  152. package/es/src/ap-upload/assets/single-file-icon.png.mjs +4 -0
  153. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +4 -0
  154. package/es/src/ap-upload/components/MultipleFile.vue.mjs +4 -0
  155. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +197 -0
  156. package/es/src/ap-upload/components/Picture.vue.d.ts +4 -0
  157. package/es/src/ap-upload/components/Picture.vue.mjs +4 -0
  158. package/es/src/ap-upload/components/Picture.vue2.mjs +219 -0
  159. package/es/src/ap-upload/components/SingleFile.vue.d.ts +4 -0
  160. package/es/src/ap-upload/components/SingleFile.vue.mjs +4 -0
  161. package/es/src/ap-upload/components/SingleFile.vue2.mjs +213 -0
  162. package/es/src/ap-upload/hooks/useOss.d.ts +19 -0
  163. package/es/src/ap-upload/hooks/useOss.mjs +62 -0
  164. package/es/src/ap-upload/index.d.ts +5 -0
  165. package/es/src/ap-upload/index.mjs +11 -0
  166. package/es/src/ap-upload/styles/multiple-file.css +58 -0
  167. package/es/src/ap-upload/styles/picture.css +112 -0
  168. package/es/src/ap-upload/styles/single-file.css +98 -0
  169. package/es/src/ap-upload/styles/upload.css +6 -0
  170. package/es/src/ap-upload/utils/accept.d.ts +13 -0
  171. package/es/src/ap-upload/utils/accept.mjs +51 -0
  172. package/es/src/ap-upload/utils/returnData.d.ts +19 -0
  173. package/es/src/ap-upload/utils/returnData.mjs +21 -0
  174. package/es/src/basic/help.vue.d.ts +4 -4
  175. package/es/src/basic/index.d.ts +8 -8
  176. package/es/src/components.d.ts +2 -0
  177. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  178. package/es/src/config-provider/config-provider.d.ts +11 -11
  179. package/es/src/config-provider/config-provider.mjs +26 -33
  180. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
  181. package/es/src/config-provider/index.d.ts +31 -31
  182. package/es/src/design-token/index.mjs +8 -2
  183. package/es/src/hooks/useControllableValue.mjs +11 -14
  184. package/es/src/icon-picker/icon-picker.vue.d.ts +1 -1
  185. package/es/src/icon-picker/index.d.ts +15 -15
  186. package/es/src/index.d.ts +7 -0
  187. package/es/src/index.mjs +226 -161
  188. package/es/src/locale/lang/en.mjs +14 -1
  189. package/es/src/locale/lang/zh-cn.mjs +14 -1
  190. package/es/src/modal/basic.vue.d.ts +1 -2
  191. package/es/src/modal/basic.vue2.mjs +10 -11
  192. package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
  193. package/es/src/modal/index.d.ts +2 -2
  194. package/es/src/modal/style/index.css +0 -103
  195. package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  196. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  197. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  198. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  199. package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  200. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  201. package/es/src/pro-form/hooks/use-label-width.d.ts +3 -3
  202. package/es/src/pro-form/index.d.ts +4 -1
  203. package/es/src/pro-form/index.mjs +12 -9
  204. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  205. package/es/src/pro-form/style/index.css +0 -3
  206. package/es/src/pro-form/style/table-form.css +104 -0
  207. package/es/src/pro-form/table-form-inner.vue.d.ts +44 -0
  208. package/es/src/pro-form/table-form-inner.vue.mjs +176 -0
  209. package/es/src/pro-form/table-form-inner.vue2.mjs +4 -0
  210. package/es/src/pro-form/table-form.vue.d.ts +42 -0
  211. package/es/src/pro-form/table-form.vue.mjs +41 -0
  212. package/es/src/pro-form/table-form.vue2.mjs +4 -0
  213. package/es/src/pro-form/types/form.d.ts +1 -1
  214. package/es/src/pro-form/types/table-form.d.ts +37 -0
  215. package/es/src/pro-form/types/table-form.mjs +1 -0
  216. package/es/src/pro-table/hooks/use-data-source.mjs +45 -46
  217. package/es/src/prompt/utils.d.ts +1 -1
  218. package/es/src/scroll-bar/index.d.ts +12 -12
  219. package/es/src/theme/antd-global-overwrite/admin/alert.css +47 -0
  220. package/es/src/theme/antd-global-overwrite/admin/button.css +27 -0
  221. package/es/src/theme/antd-global-overwrite/admin/form.css +65 -0
  222. package/es/src/theme/antd-global-overwrite/admin/index.css +525 -0
  223. package/es/src/theme/antd-global-overwrite/admin/message.css +17 -0
  224. package/es/src/theme/antd-global-overwrite/admin/modal.css +117 -0
  225. package/es/src/theme/antd-global-overwrite/admin/pagination.css +68 -0
  226. package/es/src/theme/antd-global-overwrite/admin/steps.css +103 -0
  227. package/es/src/theme/antd-global-overwrite/admin/table.css +81 -0
  228. package/es/src/theme/antd-global-overwrite/aplus/alert.css +47 -0
  229. package/es/src/theme/antd-global-overwrite/aplus/button.css +27 -0
  230. package/es/src/theme/antd-global-overwrite/aplus/form.css +90 -0
  231. package/es/src/theme/antd-global-overwrite/aplus/index.css +554 -0
  232. package/es/src/theme/antd-global-overwrite/aplus/message.css +17 -0
  233. package/es/src/theme/antd-global-overwrite/aplus/modal.css +111 -0
  234. package/es/src/theme/antd-global-overwrite/aplus/pagination.css +81 -0
  235. package/es/src/theme/antd-global-overwrite/aplus/steps.css +103 -0
  236. package/es/src/theme/antd-global-overwrite/aplus/table.css +78 -0
  237. package/es/src/theme/ap-action/item.css +6 -1
  238. package/es/src/theme/ap-download/ap-download.css +51 -0
  239. package/es/src/theme/ap-form/ap-form-item.css +46 -0
  240. package/es/src/theme/ap-form/modal-form.css +17 -0
  241. package/es/src/theme/ap-form/search-form.css +3 -0
  242. package/es/src/theme/ap-layout/ap-info-layout.css +19 -0
  243. package/es/src/theme/ap-table/ap-table-index.css +12 -0
  244. package/es/src/theme/ap-table/ap-table-pagination.css +12 -0
  245. package/es/src/theme/ap-table/ap-table.css +46 -0
  246. package/es/src/theme/ap-tag/ap-tag-group.css +6 -0
  247. package/es/src/theme/ap-tag/ap-tag.css +40 -0
  248. package/es/src/theme/ap-upload/multiple-file.css +58 -0
  249. package/es/src/theme/ap-upload/picture.css +112 -0
  250. package/es/src/theme/ap-upload/single-file.css +98 -0
  251. package/es/src/theme/ap-upload/upload.css +6 -0
  252. package/es/src/theme/custom-column/column-select.css +44 -0
  253. package/es/src/theme/custom-column/custom-column.css +46 -0
  254. package/es/src/theme/modal/index.css +0 -103
  255. package/es/src/theme/pro-form/form.css +0 -3
  256. package/es/src/theme/pro-form/table-form-inner.css +104 -0
  257. package/es/src/theme/work-order-modal/index.css +3 -0
  258. package/es/src/utils/config-provider-preset.d.ts +79 -0
  259. package/es/src/utils/config-provider-preset.mjs +30 -0
  260. package/es/src/utils/index.d.ts +16 -0
  261. package/es/src/utils/index.mjs +40 -20
  262. package/es/src/utils/slot.d.ts +7 -1
  263. package/es/src/utils/slot.mjs +25 -15
  264. package/es/src/work-order-modal/createWorkOrder.d.ts +1 -0
  265. package/es/src/work-order-modal/createWorkOrder.mjs +19 -0
  266. package/es/src/work-order-modal/help-message.vue.d.ts +3 -0
  267. package/es/src/work-order-modal/help-message.vue.mjs +4 -0
  268. package/es/src/work-order-modal/help-message.vue2.mjs +33 -0
  269. package/es/src/work-order-modal/index.d.ts +5 -0
  270. package/es/src/work-order-modal/index.mjs +7 -0
  271. package/es/src/work-order-modal/interfaces.d.ts +23 -0
  272. package/es/src/work-order-modal/interfaces.mjs +4 -0
  273. package/es/src/work-order-modal/style/index.css +3 -0
  274. package/es/src/work-order-modal/work-order-modal.vue.d.ts +18 -0
  275. package/es/src/work-order-modal/work-order-modal.vue.mjs +180 -0
  276. package/es/src/work-order-modal/work-order-modal.vue2.mjs +4 -0
  277. package/lib/index.js +1 -1
  278. package/lib/src/ap-action/group/index.vue.js +1 -1
  279. package/lib/src/ap-action/interface.d.ts +2 -1
  280. package/lib/src/ap-action/item/index.vue2.js +1 -1
  281. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  282. package/lib/src/ap-action/style/item.css +6 -1
  283. package/lib/src/ap-custom-column/column-select.vue.d.ts +18 -0
  284. package/lib/src/ap-custom-column/column-select.vue.js +1 -0
  285. package/lib/src/ap-custom-column/column-select.vue2.js +1 -0
  286. package/lib/src/ap-custom-column/custom-column.vue.d.ts +18 -0
  287. package/lib/src/ap-custom-column/custom-column.vue.js +1 -0
  288. package/lib/src/ap-custom-column/custom-column.vue2.js +1 -0
  289. package/lib/src/ap-custom-column/index.d.ts +7 -0
  290. package/lib/src/ap-custom-column/index.js +1 -0
  291. package/lib/src/ap-custom-column/interfaces.d.ts +41 -0
  292. package/lib/src/ap-custom-column/interfaces.js +1 -0
  293. package/lib/src/ap-custom-column/storage.d.ts +8 -0
  294. package/lib/src/ap-custom-column/storage.js +1 -0
  295. package/lib/src/ap-custom-column/styles/column-select.css +44 -0
  296. package/lib/src/ap-custom-column/styles/custom-column.css +46 -0
  297. package/lib/src/ap-custom-column/useCacheColumnSetting.d.ts +10 -0
  298. package/lib/src/ap-custom-column/useCacheColumnSetting.js +1 -0
  299. package/lib/src/ap-custom-column/utils.d.ts +3 -0
  300. package/lib/src/ap-custom-column/utils.js +1 -0
  301. package/lib/src/ap-download/ap-download.vue.d.ts +41 -0
  302. package/lib/src/ap-download/ap-download.vue.js +1 -0
  303. package/lib/src/ap-download/ap-download.vue2.js +1 -0
  304. package/lib/src/ap-download/hooks/index.d.ts +9 -0
  305. package/lib/src/ap-download/hooks/index.js +1 -0
  306. package/lib/src/ap-download/index.d.ts +4 -0
  307. package/lib/src/ap-download/index.js +1 -0
  308. package/lib/src/ap-download/interface.d.ts +33 -0
  309. package/lib/src/ap-download/interface.js +1 -0
  310. package/lib/src/ap-download/style/ap-download.css +51 -0
  311. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  312. package/lib/src/ap-field/date/index.vue.d.ts +63 -5
  313. package/lib/src/ap-field/date/index.vue.js +1 -1
  314. package/lib/src/ap-field/date-range/index.vue.d.ts +68 -6
  315. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  316. package/lib/src/ap-field/interface.d.ts +4 -8
  317. package/lib/src/ap-field/number/index.vue.js +1 -1
  318. package/lib/src/ap-field/radio/index.vue.js +1 -1
  319. package/lib/src/ap-field/select/index.vue.d.ts +45 -179
  320. package/lib/src/ap-field/select/index.vue.js +1 -1
  321. package/lib/src/ap-field/switch/index.vue.d.ts +2 -2
  322. package/lib/src/ap-field/switch/index.vue.js +1 -1
  323. package/lib/src/ap-field/text/index.vue.d.ts +4 -1
  324. package/lib/src/ap-field/text/index.vue.js +1 -1
  325. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  326. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  327. package/lib/src/ap-form/ap-form-item-group/helper.d.ts +10 -0
  328. package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
  329. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  330. package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
  331. package/lib/src/ap-form/ap-form-item.vue.d.ts +23 -5
  332. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  333. package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
  334. package/lib/src/ap-form/ap-form-list.vue.d.ts +35 -0
  335. package/lib/src/ap-form/ap-form-list.vue.js +1 -0
  336. package/lib/src/ap-form/ap-form-list.vue2.js +1 -0
  337. package/lib/src/ap-form/ap-form.vue.d.ts +66 -0
  338. package/lib/src/ap-form/ap-form.vue.js +1 -0
  339. package/lib/src/ap-form/ap-form.vue2.js +1 -0
  340. package/lib/src/ap-form/context.d.ts +11 -0
  341. package/lib/src/ap-form/context.js +1 -0
  342. package/lib/src/ap-form/index.d.ts +15 -939
  343. package/lib/src/ap-form/index.js +1 -1
  344. package/lib/src/ap-form/interface.d.ts +62 -1
  345. package/lib/src/ap-form/interface.js +1 -0
  346. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
  347. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -0
  348. package/lib/src/ap-form/items/checkbox/index.vue2.js +1 -0
  349. package/lib/src/ap-form/items/date/index.vue.d.ts +65 -0
  350. package/lib/src/ap-form/items/date/index.vue.js +1 -0
  351. package/lib/src/ap-form/items/date/index.vue2.js +1 -0
  352. package/lib/src/ap-form/items/date-range/index.vue.d.ts +64 -0
  353. package/lib/src/ap-form/items/date-range/index.vue.js +1 -0
  354. package/lib/src/ap-form/items/date-range/index.vue2.js +1 -0
  355. package/lib/src/ap-form/items/index.d.ts +9 -1
  356. package/lib/src/ap-form/items/index.js +1 -1
  357. package/lib/src/ap-form/items/interface.d.ts +39 -6
  358. package/lib/src/ap-form/items/number/index.vue.d.ts +63 -0
  359. package/lib/src/ap-form/items/number/index.vue.js +1 -0
  360. package/lib/src/ap-form/items/number/index.vue2.js +1 -0
  361. package/lib/src/ap-form/items/radio/index.vue.d.ts +50 -0
  362. package/lib/src/ap-form/items/radio/index.vue.js +1 -0
  363. package/lib/src/ap-form/items/radio/index.vue2.js +1 -0
  364. package/lib/src/ap-form/items/select/index.vue.d.ts +69 -0
  365. package/lib/src/ap-form/items/select/index.vue.js +1 -0
  366. package/lib/src/ap-form/items/select/index.vue2.js +1 -0
  367. package/lib/src/ap-form/items/switch/index.vue.d.ts +60 -0
  368. package/lib/src/ap-form/items/switch/index.vue.js +1 -0
  369. package/lib/src/ap-form/items/switch/index.vue2.js +1 -0
  370. package/lib/src/ap-form/items/text/index.vue.d.ts +0 -3
  371. package/lib/src/ap-form/items/text/index.vue.js +1 -1
  372. package/lib/src/ap-form/items/text-area/index.vue.d.ts +52 -0
  373. package/lib/src/ap-form/items/text-area/index.vue.js +1 -0
  374. package/lib/src/ap-form/items/text-area/index.vue2.js +1 -0
  375. package/lib/src/ap-form/modal-form/index.vue.d.ts +378 -0
  376. package/lib/src/ap-form/modal-form/index.vue.js +1 -0
  377. package/lib/src/ap-form/modal-form/index.vue2.js +1 -0
  378. package/lib/src/ap-form/search-form/index.vue.d.ts +79 -0
  379. package/lib/src/ap-form/search-form/index.vue.js +1 -0
  380. package/lib/src/ap-form/search-form/index.vue2.js +1 -0
  381. package/lib/src/ap-form/style/ap-form-item.css +46 -0
  382. package/lib/src/ap-form/style/modal-form.css +17 -0
  383. package/lib/src/ap-form/style/search-form.css +3 -0
  384. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +42 -0
  385. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.js +1 -0
  386. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue2.js +1 -0
  387. package/lib/src/ap-layout/index.d.ts +3 -0
  388. package/lib/src/ap-layout/index.js +1 -0
  389. package/lib/src/ap-layout/interface.d.ts +4 -0
  390. package/lib/src/ap-layout/style/ap-info-layout.css +19 -0
  391. package/lib/src/ap-table/ap-table.vue.d.ts +193 -0
  392. package/lib/src/ap-table/ap-table.vue.js +1 -0
  393. package/lib/src/ap-table/ap-table.vue2.js +1 -0
  394. package/lib/src/ap-table/components/index/index.vue.d.ts +28 -0
  395. package/lib/src/ap-table/components/index/index.vue.js +1 -0
  396. package/lib/src/ap-table/components/index/index.vue2.js +1 -0
  397. package/lib/src/ap-table/components/interface.d.ts +20 -0
  398. package/lib/src/ap-table/components/style/index.css +12 -0
  399. package/lib/src/ap-table/components/style/pagination.css +12 -0
  400. package/lib/src/ap-table/constants.d.ts +12340 -0
  401. package/lib/src/ap-table/constants.js +1 -0
  402. package/lib/src/ap-table/hooks/use-table-paging.d.ts +82 -0
  403. package/lib/src/ap-table/hooks/use-table-paging.js +1 -0
  404. package/lib/src/ap-table/index.d.ts +5 -0
  405. package/lib/src/ap-table/index.js +1 -0
  406. package/lib/src/ap-table/interface.d.ts +180 -0
  407. package/lib/src/ap-table/interface.js +1 -0
  408. package/lib/src/ap-table/style/ap-table.css +46 -0
  409. package/lib/src/ap-table/utils.d.ts +32 -0
  410. package/lib/src/ap-table/utils.js +1 -0
  411. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +34 -0
  412. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -0
  413. package/lib/src/ap-tag/ap-tag-group.vue2.js +1 -0
  414. package/lib/src/ap-tag/ap-tag.vue.d.ts +34 -0
  415. package/lib/src/ap-tag/ap-tag.vue.js +1 -0
  416. package/lib/src/ap-tag/ap-tag.vue2.js +1 -0
  417. package/lib/src/ap-tag/index.d.ts +5 -0
  418. package/lib/src/ap-tag/index.js +1 -0
  419. package/lib/src/ap-tag/interface.d.ts +35 -0
  420. package/lib/src/ap-tag/interface.js +1 -0
  421. package/lib/src/ap-tag/style/ap-tag-group.css +6 -0
  422. package/lib/src/ap-tag/style/ap-tag.css +40 -0
  423. package/lib/src/ap-upload/apUpload.vue.d.ts +111 -0
  424. package/lib/src/ap-upload/apUpload.vue.js +1 -0
  425. package/lib/src/ap-upload/apUpload.vue2.js +1 -0
  426. package/lib/src/ap-upload/apUploadTypes.d.ts +90 -0
  427. package/lib/src/ap-upload/apUploadTypes.js +1 -0
  428. package/lib/src/ap-upload/assets/single-file-icon.png.js +1 -0
  429. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +4 -0
  430. package/lib/src/ap-upload/components/MultipleFile.vue.js +1 -0
  431. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -0
  432. package/lib/src/ap-upload/components/Picture.vue.d.ts +4 -0
  433. package/lib/src/ap-upload/components/Picture.vue.js +1 -0
  434. package/lib/src/ap-upload/components/Picture.vue2.js +1 -0
  435. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +4 -0
  436. package/lib/src/ap-upload/components/SingleFile.vue.js +1 -0
  437. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -0
  438. package/lib/src/ap-upload/hooks/useOss.d.ts +19 -0
  439. package/lib/src/ap-upload/hooks/useOss.js +1 -0
  440. package/lib/src/ap-upload/index.d.ts +5 -0
  441. package/lib/src/ap-upload/index.js +1 -0
  442. package/lib/src/ap-upload/styles/multiple-file.css +58 -0
  443. package/lib/src/ap-upload/styles/picture.css +112 -0
  444. package/lib/src/ap-upload/styles/single-file.css +98 -0
  445. package/lib/src/ap-upload/styles/upload.css +6 -0
  446. package/lib/src/ap-upload/utils/accept.d.ts +13 -0
  447. package/lib/src/ap-upload/utils/accept.js +1 -0
  448. package/lib/src/ap-upload/utils/returnData.d.ts +19 -0
  449. package/lib/src/ap-upload/utils/returnData.js +1 -0
  450. package/lib/src/basic/help.vue.d.ts +4 -4
  451. package/lib/src/basic/help.vue2.js +1 -1
  452. package/lib/src/basic/index.d.ts +8 -8
  453. package/lib/src/components.d.ts +2 -0
  454. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  455. package/lib/src/config-provider/config-provider.d.ts +11 -11
  456. package/lib/src/config-provider/config-provider.js +1 -1
  457. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
  458. package/lib/src/config-provider/index.d.ts +31 -31
  459. package/lib/src/design-token/index.js +1 -1
  460. package/lib/src/hooks/useControllableValue.js +1 -1
  461. package/lib/src/hooks/useMessage.js +1 -1
  462. package/lib/src/icon-picker/icon-picker.vue.d.ts +1 -1
  463. package/lib/src/icon-picker/index.d.ts +15 -15
  464. package/lib/src/index.d.ts +7 -0
  465. package/lib/src/index.js +1 -1
  466. package/lib/src/locale/lang/en.js +1 -1
  467. package/lib/src/locale/lang/zh-cn.js +1 -1
  468. package/lib/src/modal/basic.vue.d.ts +1 -2
  469. package/lib/src/modal/basic.vue2.js +1 -1
  470. package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
  471. package/lib/src/modal/index.d.ts +2 -2
  472. package/lib/src/modal/style/index.css +0 -103
  473. package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  474. package/lib/src/pro-form/components/api-cascader.vue.js +1 -1
  475. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  476. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  477. package/lib/src/pro-form/components/api-select.vue.js +1 -1
  478. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  479. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  480. package/lib/src/pro-form/components/api-tree-select.vue.js +1 -1
  481. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  482. package/lib/src/pro-form/hooks/use-label-width.d.ts +3 -3
  483. package/lib/src/pro-form/index.d.ts +4 -1
  484. package/lib/src/pro-form/index.js +1 -1
  485. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  486. package/lib/src/pro-form/style/index.css +0 -3
  487. package/lib/src/pro-form/style/table-form.css +104 -0
  488. package/lib/src/pro-form/table-form-inner.vue.d.ts +44 -0
  489. package/lib/src/pro-form/table-form-inner.vue.js +1 -0
  490. package/lib/src/pro-form/table-form-inner.vue2.js +1 -0
  491. package/lib/src/pro-form/table-form.vue.d.ts +42 -0
  492. package/lib/src/pro-form/table-form.vue.js +1 -0
  493. package/lib/src/pro-form/table-form.vue2.js +1 -0
  494. package/lib/src/pro-form/types/form.d.ts +1 -1
  495. package/lib/src/pro-form/types/table-form.d.ts +37 -0
  496. package/lib/src/pro-form/types/table-form.js +1 -0
  497. package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
  498. package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
  499. package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
  500. package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
  501. package/lib/src/pro-table/components/table-action.vue.js +1 -1
  502. package/lib/src/pro-table/hooks/use-data-source.js +1 -1
  503. package/lib/src/prompt/utils.d.ts +1 -1
  504. package/lib/src/scroll-bar/index.d.ts +12 -12
  505. package/lib/src/theme/antd-global-overwrite/admin/alert.css +47 -0
  506. package/lib/src/theme/antd-global-overwrite/admin/button.css +27 -0
  507. package/lib/src/theme/antd-global-overwrite/admin/form.css +65 -0
  508. package/lib/src/theme/antd-global-overwrite/admin/index.css +525 -0
  509. package/lib/src/theme/antd-global-overwrite/admin/message.css +17 -0
  510. package/lib/src/theme/antd-global-overwrite/admin/modal.css +117 -0
  511. package/lib/src/theme/antd-global-overwrite/admin/pagination.css +68 -0
  512. package/lib/src/theme/antd-global-overwrite/admin/steps.css +103 -0
  513. package/lib/src/theme/antd-global-overwrite/admin/table.css +81 -0
  514. package/lib/src/theme/antd-global-overwrite/aplus/alert.css +47 -0
  515. package/lib/src/theme/antd-global-overwrite/aplus/button.css +27 -0
  516. package/lib/src/theme/antd-global-overwrite/aplus/form.css +90 -0
  517. package/lib/src/theme/antd-global-overwrite/aplus/index.css +554 -0
  518. package/lib/src/theme/antd-global-overwrite/aplus/message.css +17 -0
  519. package/lib/src/theme/antd-global-overwrite/aplus/modal.css +111 -0
  520. package/lib/src/theme/antd-global-overwrite/aplus/pagination.css +81 -0
  521. package/lib/src/theme/antd-global-overwrite/aplus/steps.css +103 -0
  522. package/lib/src/theme/antd-global-overwrite/aplus/table.css +78 -0
  523. package/lib/src/theme/ap-action/item.css +6 -1
  524. package/lib/src/theme/ap-download/ap-download.css +51 -0
  525. package/lib/src/theme/ap-form/ap-form-item.css +46 -0
  526. package/lib/src/theme/ap-form/modal-form.css +17 -0
  527. package/lib/src/theme/ap-form/search-form.css +3 -0
  528. package/lib/src/theme/ap-layout/ap-info-layout.css +19 -0
  529. package/lib/src/theme/ap-table/ap-table-index.css +12 -0
  530. package/lib/src/theme/ap-table/ap-table-pagination.css +12 -0
  531. package/lib/src/theme/ap-table/ap-table.css +46 -0
  532. package/lib/src/theme/ap-tag/ap-tag-group.css +6 -0
  533. package/lib/src/theme/ap-tag/ap-tag.css +40 -0
  534. package/lib/src/theme/ap-upload/multiple-file.css +58 -0
  535. package/lib/src/theme/ap-upload/picture.css +112 -0
  536. package/lib/src/theme/ap-upload/single-file.css +98 -0
  537. package/lib/src/theme/ap-upload/upload.css +6 -0
  538. package/lib/src/theme/custom-column/column-select.css +44 -0
  539. package/lib/src/theme/custom-column/custom-column.css +46 -0
  540. package/lib/src/theme/modal/index.css +0 -103
  541. package/lib/src/theme/pro-form/form.css +0 -3
  542. package/lib/src/theme/pro-form/table-form-inner.css +104 -0
  543. package/lib/src/theme/work-order-modal/index.css +3 -0
  544. package/lib/src/utils/config-provider-preset.d.ts +79 -0
  545. package/lib/src/utils/config-provider-preset.js +1 -0
  546. package/lib/src/utils/index.d.ts +16 -0
  547. package/lib/src/utils/index.js +1 -1
  548. package/lib/src/utils/slot.d.ts +7 -1
  549. package/lib/src/utils/slot.js +1 -1
  550. package/lib/src/work-order-modal/createWorkOrder.d.ts +1 -0
  551. package/lib/src/work-order-modal/createWorkOrder.js +1 -0
  552. package/lib/src/work-order-modal/help-message.vue.d.ts +3 -0
  553. package/lib/src/work-order-modal/help-message.vue.js +1 -0
  554. package/lib/src/work-order-modal/help-message.vue2.js +1 -0
  555. package/lib/src/work-order-modal/index.d.ts +5 -0
  556. package/lib/src/work-order-modal/index.js +1 -0
  557. package/lib/src/work-order-modal/interfaces.d.ts +23 -0
  558. package/lib/src/work-order-modal/interfaces.js +1 -0
  559. package/lib/src/work-order-modal/style/index.css +3 -0
  560. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +18 -0
  561. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -0
  562. package/lib/src/work-order-modal/work-order-modal.vue2.js +1 -0
  563. package/package.json +17 -7
  564. package/es/src/ap-form/ap-form.d.ts +0 -1681
  565. package/es/src/ap-form/ap-form.mjs +0 -5
  566. package/lib/src/ap-form/ap-form.d.ts +0 -1681
  567. package/lib/src/ap-form/ap-form.js +0 -1
@@ -0,0 +1,62 @@
1
+ import { client as o, createOssInstance as w } from "@aplus-frontend/oss";
2
+ async function f({
3
+ file: t,
4
+ dirName: s,
5
+ oss: e,
6
+ successCallBack: c,
7
+ errorCallBack: i,
8
+ progressCallBack: u
9
+ }) {
10
+ try {
11
+ const n = await e.put({
12
+ fileName: t.name,
13
+ dirName: s,
14
+ data: t,
15
+ progressCallBack: (a) => {
16
+ u(a);
17
+ }
18
+ });
19
+ if (n.status === 204)
20
+ return;
21
+ if (n.status === 200) {
22
+ const { saveUrl: a, previewUrl: r } = n;
23
+ c(a, r);
24
+ } else
25
+ i((n == null ? void 0 : n.message) || "网络异常");
26
+ } catch (n) {
27
+ i(n);
28
+ }
29
+ }
30
+ function g() {
31
+ return { client: o, put: f };
32
+ }
33
+ async function p(t) {
34
+ if (!t)
35
+ throw new Error("请传入getOssAccess");
36
+ return await o.initOssClient({
37
+ getOssAccess: t,
38
+ onFailure: (s) => {
39
+ throw new Error(
40
+ typeof (s == null ? void 0 : s.message) == "string" ? s.message : "获取oss临时权限失败"
41
+ );
42
+ }
43
+ }), g();
44
+ }
45
+ async function l(t) {
46
+ if (!t)
47
+ throw new Error("请传入getOssAccess");
48
+ const s = w();
49
+ return await s.initOssClient({
50
+ getOssAccess: t,
51
+ onFailure: (e) => {
52
+ throw new Error(
53
+ typeof (e == null ? void 0 : e.message) == "string" ? e.message : "获取oss临时权限失败"
54
+ );
55
+ }
56
+ }), s;
57
+ }
58
+ export {
59
+ l as getOssInstance,
60
+ g as useOss,
61
+ p as useOssInit
62
+ };
@@ -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,11 @@
1
+ import "./apUpload.vue2.mjs";
2
+ import { NeedNameKeyDefault as r } from "./apUploadTypes.mjs";
3
+ import e from "./apUpload.vue.mjs";
4
+ e.install = function(o) {
5
+ return o.component(e.name, e), o;
6
+ };
7
+ export {
8
+ e as ApUpload,
9
+ r as NeedNameKeyDefault,
10
+ e as default
11
+ };
@@ -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,51 @@
1
+ import p from "mime";
2
+ function f(n, i) {
3
+ var s, o, u, a;
4
+ const e = i.split(",").map((t) => t.trim());
5
+ for (const t of e) {
6
+ if (t === "*")
7
+ return !0;
8
+ if (t.endsWith("/*")) {
9
+ const [r] = t.split("/"), [c] = n.type.split("/");
10
+ if (r === c)
11
+ return !0;
12
+ } else if (/^\./.test(t)) {
13
+ if (n.type === p.getType(t))
14
+ return !0;
15
+ const r = (s = n.name) == null ? void 0 : s.lastIndexOf(".");
16
+ if (r > -1 && ((o = n.name) == null ? void 0 : o.slice(r)) === t)
17
+ return !0;
18
+ } else {
19
+ if (n.type === t)
20
+ return !0;
21
+ const r = (u = n.name) == null ? void 0 : u.lastIndexOf(".");
22
+ if (r > -1 && [...p.getAllExtensions(t) || []].map(
23
+ (l) => `.${l}`
24
+ ).includes((a = n.name) == null ? void 0 : a.slice(r)))
25
+ return !0;
26
+ }
27
+ }
28
+ return !1;
29
+ }
30
+ function y(n) {
31
+ const i = {
32
+ image: "图片类型",
33
+ video: "视频类型",
34
+ audio: "音频类型",
35
+ application: "文档类型",
36
+ "*": "全部类型"
37
+ };
38
+ return n.split(",").map((e) => e.trim()).map((e) => {
39
+ if (e === "*")
40
+ return i[e];
41
+ if (e.endsWith("/*")) {
42
+ const [s] = e.split("/");
43
+ return i[s] || s;
44
+ } else
45
+ return /^\./.test(e) ? e : [...p.getAllExtensions(e) || []].map((s) => `.${s}`).join(",") || e;
46
+ }).join(",");
47
+ }
48
+ export {
49
+ f as fileMatchesAccept,
50
+ y as getAcceptText
51
+ };
@@ -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,21 @@
1
+ import { NeedNameKeyDefault as f } from "../apUploadTypes.mjs";
2
+ function p(t, y, K) {
3
+ return t === !0 ? {
4
+ [f.nameKey]: K,
5
+ [f.pathKey]: y
6
+ } : typeof t == "object" ? {
7
+ [(t == null ? void 0 : t.nameKey) || f.nameKey]: K,
8
+ [(t == null ? void 0 : t.pathKey) || f.pathKey]: y
9
+ } : y;
10
+ }
11
+ function l(t, y) {
12
+ return t === !0 ? y == null ? void 0 : y[f.pathKey] : typeof t == "object" ? y == null ? void 0 : y[(t == null ? void 0 : t.pathKey) || f.pathKey] : y;
13
+ }
14
+ function h(t, y) {
15
+ return t === !0 ? y == null ? void 0 : y[f.nameKey] : typeof t == "object" ? y == null ? void 0 : y[(t == null ? void 0 : t.nameKey) || f.nameKey] : y;
16
+ }
17
+ export {
18
+ h as getName,
19
+ l as getPath,
20
+ p as getReturnData
21
+ };
@@ -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;
@@ -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>;
@@ -12,7 +12,7 @@ import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig } from './constants'
12
12
  export declare const ConfigProvider: DefineComponent<{
13
13
  iconPrefixCls: StringConstructor;
14
14
  getTargetContainer: {
15
- type: PropType<() => Window | HTMLElement>;
15
+ type: PropType<() => HTMLElement | Window>;
16
16
  };
17
17
  getPopupContainer: {
18
18
  type: PropType<(triggerNode?: HTMLElement | undefined) => HTMLElement>;
@@ -149,7 +149,7 @@ export declare const ConfigProvider: DefineComponent<{
149
149
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
150
150
  iconPrefixCls: StringConstructor;
151
151
  getTargetContainer: {
152
- type: PropType<() => Window | HTMLElement>;
152
+ type: PropType<() => HTMLElement | Window>;
153
153
  };
154
154
  getPopupContainer: {
155
155
  type: PropType<(triggerNode?: HTMLElement | undefined) => HTMLElement>;
@@ -286,18 +286,10 @@ export declare const ConfigProvider: DefineComponent<{
286
286
  }>>, {
287
287
  theme: ThemeConfig;
288
288
  direction: "ltr" | "rtl";
289
+ csp: CSPConfig;
289
290
  input: {
290
291
  autocomplete?: string | undefined;
291
292
  };
292
- select: {
293
- showSearch?: boolean | undefined;
294
- };
295
- form: {
296
- validateMessages?: ValidateMessages | undefined;
297
- requiredMark?: RequiredMark | undefined;
298
- colon?: boolean | undefined;
299
- };
300
- csp: CSPConfig;
301
293
  autoInsertSpaceInButton: boolean;
302
294
  locale: Locale;
303
295
  pageHeader: {
@@ -309,9 +301,17 @@ export declare const ConfigProvider: DefineComponent<{
309
301
  };
310
302
  virtual: boolean;
311
303
  dropdownMatchSelectWidth: number | boolean;
304
+ form: {
305
+ validateMessages?: ValidateMessages | undefined;
306
+ requiredMark?: RequiredMark | undefined;
307
+ colon?: boolean | undefined;
308
+ };
312
309
  pagination: {
313
310
  showSizeChanger?: boolean | undefined;
314
311
  };
312
+ select: {
313
+ showSearch?: boolean | undefined;
314
+ };
315
315
  wave: {
316
316
  disabled?: boolean | undefined;
317
317
  };
@@ -1,46 +1,39 @@
1
- import { isVNode as m, defineComponent as a, createVNode as u, renderSlot as c } from "vue";
2
- import { ConfigProvider as g } from "ant-design-vue";
3
- import { provideGlobalConfig as s } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as v } from "./config-provider-props.mjs";
5
- import { tableDefaultConfig as C } from "./constants.mjs";
1
+ import { isVNode as n, defineComponent as a, computed as l, createVNode as f, renderSlot as c } from "vue";
2
+ import { ConfigProvider as m } from "ant-design-vue";
3
+ import { provideGlobalConfig as d } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as u } from "./config-provider-props.mjs";
5
+ import { tableDefaultConfig as p } from "./constants.mjs";
6
+ import { mergeAntdProvideConfig as g } from "../utils/config-provider-preset.mjs";
6
7
  function b(o) {
7
- return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !m(o);
8
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !n(o);
8
9
  }
9
- const O = /* @__PURE__ */ a({
10
+ const y = /* @__PURE__ */ a({
10
11
  name: "AplusConfigProvider",
11
- props: v(),
12
- setup({
13
- namespace: o,
14
- aplusLocale: t,
15
- api: i,
16
- table: n,
17
- scrollbar: f,
18
- uiMode: p,
19
- ...l
20
- }, {
21
- slots: d
12
+ props: u(),
13
+ setup(o, {
14
+ slots: r
22
15
  }) {
23
- const r = s({
24
- namespace: o,
25
- aplusLocale: t,
26
- api: i,
16
+ const i = l(() => ({
17
+ namespace: o.namespace,
18
+ aplusLocale: o.aplusLocale,
19
+ api: o.api,
27
20
  table: {
28
- ...C,
29
- ...n || {}
21
+ ...p,
22
+ ...o.table || {}
30
23
  },
31
- scrollbar: f,
32
- uiMode: p
33
- });
24
+ scrollbar: o.scrollbar,
25
+ uiMode: o.uiMode
26
+ })), e = d(i);
34
27
  return () => {
35
- let e;
36
- return u(g, l, b(e = c(d, "default", {
37
- config: r == null ? void 0 : r.value
38
- })) ? e : {
39
- default: () => [e]
28
+ let t;
29
+ return f(m, g(o), b(t = c(r, "default", {
30
+ config: e == null ? void 0 : e.value
31
+ })) ? t : {
32
+ default: () => [t]
40
33
  });
41
34
  };
42
35
  }
43
36
  });
44
37
  export {
45
- O as ConfigProvider
38
+ y as ConfigProvider
46
39
  };