@aplus-frontend/ui 7.0.0-beta.2 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/es/index.mjs +216 -218
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +68 -63
  3. package/es/src/ag-grid/editable/index.vue.mjs +66 -61
  4. package/es/src/ag-grid/editable/interface.d.ts +3 -1
  5. package/es/src/ag-grid/hooks/use-columns-def.mjs +71 -70
  6. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +65 -63
  7. package/es/src/ag-grid/index.vue.mjs +1 -0
  8. package/es/src/ag-grid/interface.d.ts +1 -0
  9. package/es/src/ag-grid/style/custom-header.d.ts +2 -2
  10. package/es/src/ag-grid/style/editable.d.ts +2 -2
  11. package/es/src/ag-grid/style/index.d.ts +30 -3
  12. package/es/src/ag-grid/style/index.mjs +56 -43
  13. package/es/src/ag-grid/theme.mjs +12 -11
  14. package/es/src/ap-action/item/index.vue2.mjs +14 -12
  15. package/es/src/ap-action/item-dropdown/index.vue.mjs +18 -17
  16. package/es/src/ap-action/style/dropdown-item.d.ts +2 -2
  17. package/es/src/ap-action/style/dropdown-item.mjs +4 -4
  18. package/es/src/ap-action/style/index.d.ts +7 -4
  19. package/es/src/ap-action/style/index.mjs +29 -23
  20. package/es/src/ap-button/ap-button.vue.mjs +45 -49
  21. package/es/src/ap-button/style/index.d.ts +2 -2
  22. package/es/src/ap-button/style/index.mjs +5 -4
  23. package/es/src/ap-button/utils/index.mjs +16 -16
  24. package/es/src/ap-descriptions/style/index.d.ts +2 -2
  25. package/es/src/ap-download/ap-download.vue.d.ts +4 -4
  26. package/es/src/ap-download/ap-download.vue.mjs +27 -27
  27. package/es/src/ap-download/hooks/useStyle.mjs +9 -9
  28. package/es/src/ap-download/interface.d.ts +4 -0
  29. package/es/src/ap-download/style/index.d.ts +2 -2
  30. package/es/src/ap-drawer/style/index.d.ts +2 -2
  31. package/es/src/ap-field/style/index.d.ts +2 -2
  32. package/es/src/ap-form/style/drawer-form.d.ts +2 -2
  33. package/es/src/ap-form/style/item-group.d.ts +2 -2
  34. package/es/src/ap-form/style/item-text-group.d.ts +2 -2
  35. package/es/src/ap-form/style/item.d.ts +3 -4
  36. package/es/src/ap-form/style/item.mjs +12 -16
  37. package/es/src/ap-form/style/modal-form.d.ts +4 -3
  38. package/es/src/ap-form/style/modal-form.mjs +26 -13
  39. package/es/src/ap-form/style/search-form-sorter.d.ts +4 -3
  40. package/es/src/ap-form/style/search-form-sorter.mjs +20 -13
  41. package/es/src/ap-form/style/search-form.d.ts +2 -2
  42. package/es/src/ap-form/style/token.d.ts +25 -1
  43. package/es/src/ap-grid/hooks/use-table-style.mjs +1 -1
  44. package/es/src/ap-grid/index.vue.mjs +2 -2
  45. package/es/src/ap-grid/style/editable.d.ts +2 -2
  46. package/es/src/ap-grid/style/index.d.ts +6 -3
  47. package/es/src/ap-grid/style/index.mjs +10 -7
  48. package/es/src/ap-grid/utils/col.mjs +33 -33
  49. package/es/src/ap-list/style/index.d.ts +2 -2
  50. package/es/src/ap-modal/interface.d.ts +31 -11
  51. package/es/src/ap-modal/utils/createModal.mjs +52 -45
  52. package/es/src/ap-pro-card/style/divider.d.ts +2 -2
  53. package/es/src/ap-pro-card/style/index.d.ts +2 -2
  54. package/es/src/ap-pro-card/style/operation.d.ts +2 -2
  55. package/es/src/ap-pro-card/style/statistic.d.ts +2 -2
  56. package/es/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  57. package/es/src/ap-pro-card/style/title.d.ts +2 -2
  58. package/es/src/ap-table/ap-table.vue2.mjs +2 -2
  59. package/es/src/ap-table/style/ellipsis.d.ts +2 -2
  60. package/es/src/ap-table/style/index-comp.d.ts +2 -2
  61. package/es/src/ap-table/style/index.d.ts +2 -2
  62. package/es/src/ap-table/style/setting.d.ts +2 -2
  63. package/es/src/ap-table/utils.mjs +14 -11
  64. package/es/src/ap-tag/ap-tag.vue.mjs +7 -6
  65. package/es/src/ap-tag/style/group.d.ts +2 -2
  66. package/es/src/ap-tag/style/index.d.ts +2 -2
  67. package/es/src/ap-upload/style/index.d.ts +2 -2
  68. package/es/src/business/ag-grid-modal/style/index.d.ts +2 -2
  69. package/es/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  70. package/es/src/business/ag-grid-modal/utils.mjs +23 -23
  71. package/es/src/business/ap-appendix/style/index.d.ts +5 -4
  72. package/es/src/business/ap-appendix/style/index.mjs +20 -17
  73. package/es/src/business/ap-appendix/style/token.d.ts +4 -0
  74. package/es/src/business/ap-appendix/style/token.mjs +6 -0
  75. package/es/src/business/ap-attachment/ApAttachment.mjs +64 -60
  76. package/es/src/business/ap-attachment/style/index.d.ts +2 -2
  77. package/es/src/business/ap-attachment/style/index.mjs +1 -0
  78. package/es/src/business/ap-batch-action/style/index.d.ts +3 -3
  79. package/es/src/business/ap-batch-action/style/index.mjs +4 -4
  80. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +50 -56
  81. package/es/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  82. package/es/src/business/ap-batch-action-group/style/index.mjs +14 -0
  83. package/es/src/business/ap-card/style/index.d.ts +3 -3
  84. package/es/src/business/ap-card/style/index.mjs +8 -8
  85. package/es/src/business/ap-copy/style/index.d.ts +2 -2
  86. package/es/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  87. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  88. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +57 -49
  89. package/es/src/business/ap-expand-alert/index.d.ts +5 -2
  90. package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
  91. package/es/src/business/ap-expand-alert/style/index.d.ts +2 -2
  92. package/es/src/business/ap-image/style/index.d.ts +3 -3
  93. package/es/src/business/ap-image/style/index.mjs +6 -6
  94. package/es/src/business/ap-input-radio/style/index.d.ts +2 -2
  95. package/es/src/business/ap-label/style/index.d.ts +2 -2
  96. package/es/src/business/ap-ladder/style/index.d.ts +2 -2
  97. package/es/src/business/ap-product-info/style/index.d.ts +2 -2
  98. package/es/src/business/ap-radio-group/style/index.d.ts +2 -2
  99. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  100. package/es/src/business/ap-select-layout/style/index.d.ts +2 -2
  101. package/es/src/business/ap-size-input/style/index.d.ts +2 -2
  102. package/es/src/business/ap-status/style/index.d.ts +2 -2
  103. package/es/src/business/ap-summary/style/index.d.ts +2 -2
  104. package/es/src/business/ap-table-modal/style/index.d.ts +2 -2
  105. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +23 -23
  106. package/es/src/business/ap-title/style/index.d.ts +2 -2
  107. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  108. package/es/src/business/ap-value-select-card/style/index.d.ts +2 -2
  109. package/es/src/business/ap-view/style/index.d.ts +3 -3
  110. package/es/src/business/ap-view/style/index.mjs +19 -22
  111. package/es/src/business/batch-input-group/style/index.d.ts +5 -2
  112. package/es/src/business/batch-input-group/style/index.mjs +9 -5
  113. package/es/src/business/hooks/usePageListAgGrid.mjs +7 -6
  114. package/es/src/check-card/style/index.d.ts +2 -2
  115. package/es/src/check-card/style/index.mjs +37 -31
  116. package/es/src/config-provider/config-provider.d.ts +1 -2
  117. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -2
  118. package/es/src/config-provider/hooks/use-global-config.mjs +42 -33
  119. package/es/src/config-provider/hooks/use-token.d.ts +7 -2
  120. package/es/src/config-provider/hooks/use-token.mjs +6 -3
  121. package/es/src/config-provider/index.d.ts +1 -2
  122. package/es/src/design-token/constants.d.ts +1 -6
  123. package/es/src/design-token/constants.mjs +2 -100
  124. package/es/src/design-token/index.d.ts +1 -1
  125. package/es/src/design-token/index.mjs +5 -6
  126. package/es/src/design-token/interface.d.ts +9 -1
  127. package/es/src/design-token/interface.mjs +1 -0
  128. package/es/src/editable-table/style/index.d.ts +2 -2
  129. package/es/src/full-screen/index.vue.mjs +31 -30
  130. package/es/src/full-screen/style/index.d.ts +2 -2
  131. package/es/src/index.mjs +196 -198
  132. package/es/src/mask/style/index.d.ts +2 -2
  133. package/es/src/mask/style/index.mjs +2 -2
  134. package/es/src/scroll-bar/style/index.d.ts +2 -2
  135. package/es/src/scroll-bar/style/index.mjs +17 -17
  136. package/es/src/scroll-view/style/index.d.ts +2 -2
  137. package/es/src/splitter/style/index.d.ts +11 -3
  138. package/es/src/splitter/style/index.mjs +1 -2
  139. package/es/src/text/style/group.d.ts +2 -2
  140. package/es/src/text/style/index.d.ts +6 -3
  141. package/es/src/text/style/index.mjs +22 -18
  142. package/es/src/utils/cssinjs/index.d.ts +3 -7
  143. package/es/src/utils/cssinjs/index.mjs +55 -39
  144. package/es/src/utils/cssinjs/instance.mjs +7 -7
  145. package/es/src/utils/cssinjs/plugin-append-cssvar.d.ts +6 -0
  146. package/es/src/utils/cssinjs/plugin-append-cssvar.mjs +6 -0
  147. package/es/src/utils/cssinjs/plugin-specificity.mjs +6 -6
  148. package/es/src/utils/cssinjs/utils.d.ts +6 -0
  149. package/es/src/utils/cssinjs/utils.mjs +15 -0
  150. package/es/src/version.d.ts +1 -1
  151. package/es/src/version.mjs +1 -1
  152. package/lib/index.js +1 -1
  153. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  154. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  155. package/lib/src/ag-grid/editable/interface.d.ts +3 -1
  156. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  157. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  158. package/lib/src/ag-grid/index.vue.js +1 -1
  159. package/lib/src/ag-grid/interface.d.ts +1 -0
  160. package/lib/src/ag-grid/style/custom-header.d.ts +2 -2
  161. package/lib/src/ag-grid/style/editable.d.ts +2 -2
  162. package/lib/src/ag-grid/style/index.d.ts +30 -3
  163. package/lib/src/ag-grid/style/index.js +1 -1
  164. package/lib/src/ag-grid/theme.js +1 -1
  165. package/lib/src/ap-action/item/index.vue2.js +1 -1
  166. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  167. package/lib/src/ap-action/style/dropdown-item.d.ts +2 -2
  168. package/lib/src/ap-action/style/dropdown-item.js +1 -1
  169. package/lib/src/ap-action/style/index.d.ts +7 -4
  170. package/lib/src/ap-action/style/index.js +1 -1
  171. package/lib/src/ap-button/ap-button.vue.js +1 -1
  172. package/lib/src/ap-button/style/index.d.ts +2 -2
  173. package/lib/src/ap-button/style/index.js +1 -1
  174. package/lib/src/ap-button/utils/index.js +1 -1
  175. package/lib/src/ap-descriptions/style/index.d.ts +2 -2
  176. package/lib/src/ap-download/ap-download.vue.d.ts +4 -4
  177. package/lib/src/ap-download/ap-download.vue.js +1 -1
  178. package/lib/src/ap-download/hooks/useStyle.js +1 -1
  179. package/lib/src/ap-download/interface.d.ts +4 -0
  180. package/lib/src/ap-download/style/index.d.ts +2 -2
  181. package/lib/src/ap-drawer/style/index.d.ts +2 -2
  182. package/lib/src/ap-field/style/index.d.ts +2 -2
  183. package/lib/src/ap-form/style/drawer-form.d.ts +2 -2
  184. package/lib/src/ap-form/style/item-group.d.ts +2 -2
  185. package/lib/src/ap-form/style/item-text-group.d.ts +2 -2
  186. package/lib/src/ap-form/style/item.d.ts +3 -4
  187. package/lib/src/ap-form/style/item.js +1 -1
  188. package/lib/src/ap-form/style/modal-form.d.ts +4 -3
  189. package/lib/src/ap-form/style/modal-form.js +1 -1
  190. package/lib/src/ap-form/style/search-form-sorter.d.ts +4 -3
  191. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  192. package/lib/src/ap-form/style/search-form.d.ts +2 -2
  193. package/lib/src/ap-form/style/token.d.ts +25 -1
  194. package/lib/src/ap-grid/hooks/use-table-style.js +1 -1
  195. package/lib/src/ap-grid/index.vue.js +1 -1
  196. package/lib/src/ap-grid/style/editable.d.ts +2 -2
  197. package/lib/src/ap-grid/style/index.d.ts +6 -3
  198. package/lib/src/ap-grid/style/index.js +1 -1
  199. package/lib/src/ap-grid/utils/col.js +1 -1
  200. package/lib/src/ap-list/style/index.d.ts +2 -2
  201. package/lib/src/ap-modal/interface.d.ts +31 -11
  202. package/lib/src/ap-modal/utils/createModal.js +1 -1
  203. package/lib/src/ap-pro-card/style/divider.d.ts +2 -2
  204. package/lib/src/ap-pro-card/style/index.d.ts +2 -2
  205. package/lib/src/ap-pro-card/style/operation.d.ts +2 -2
  206. package/lib/src/ap-pro-card/style/statistic.d.ts +2 -2
  207. package/lib/src/ap-pro-card/style/statistics-card.d.ts +2 -2
  208. package/lib/src/ap-pro-card/style/title.d.ts +2 -2
  209. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  210. package/lib/src/ap-table/style/ellipsis.d.ts +2 -2
  211. package/lib/src/ap-table/style/index-comp.d.ts +2 -2
  212. package/lib/src/ap-table/style/index.d.ts +2 -2
  213. package/lib/src/ap-table/style/setting.d.ts +2 -2
  214. package/lib/src/ap-table/utils.js +1 -1
  215. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  216. package/lib/src/ap-tag/style/group.d.ts +2 -2
  217. package/lib/src/ap-tag/style/index.d.ts +2 -2
  218. package/lib/src/ap-upload/style/index.d.ts +2 -2
  219. package/lib/src/business/ag-grid-modal/style/index.d.ts +2 -2
  220. package/lib/src/business/ag-grid-modal/style/selected-items.d.ts +2 -2
  221. package/lib/src/business/ag-grid-modal/utils.js +1 -1
  222. package/lib/src/business/ap-appendix/style/index.d.ts +5 -4
  223. package/lib/src/business/ap-appendix/style/index.js +1 -1
  224. package/lib/src/business/ap-appendix/style/token.d.ts +4 -0
  225. package/lib/src/business/ap-appendix/style/token.js +1 -0
  226. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  227. package/lib/src/business/ap-attachment/style/index.d.ts +2 -2
  228. package/lib/src/business/ap-attachment/style/index.js +1 -1
  229. package/lib/src/business/ap-batch-action/style/index.d.ts +3 -3
  230. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  231. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  232. package/lib/src/business/ap-batch-action-group/style/index.d.ts +3 -0
  233. package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
  234. package/lib/src/business/ap-card/style/index.d.ts +3 -3
  235. package/lib/src/business/ap-card/style/index.js +1 -1
  236. package/lib/src/business/ap-copy/style/index.d.ts +2 -2
  237. package/lib/src/business/ap-draggable-grid/style/index.d.ts +2 -2
  238. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -2
  239. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  240. package/lib/src/business/ap-expand-alert/index.d.ts +5 -2
  241. package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
  242. package/lib/src/business/ap-expand-alert/style/index.d.ts +2 -2
  243. package/lib/src/business/ap-image/style/index.d.ts +3 -3
  244. package/lib/src/business/ap-image/style/index.js +1 -1
  245. package/lib/src/business/ap-input-radio/style/index.d.ts +2 -2
  246. package/lib/src/business/ap-label/style/index.d.ts +2 -2
  247. package/lib/src/business/ap-ladder/style/index.d.ts +2 -2
  248. package/lib/src/business/ap-product-info/style/index.d.ts +2 -2
  249. package/lib/src/business/ap-radio-group/style/index.d.ts +2 -2
  250. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  251. package/lib/src/business/ap-select-layout/style/index.d.ts +2 -2
  252. package/lib/src/business/ap-size-input/style/index.d.ts +2 -2
  253. package/lib/src/business/ap-status/style/index.d.ts +2 -2
  254. package/lib/src/business/ap-summary/style/index.d.ts +2 -2
  255. package/lib/src/business/ap-table-modal/style/index.d.ts +2 -2
  256. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  257. package/lib/src/business/ap-title/style/index.d.ts +2 -2
  258. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +2 -2
  259. package/lib/src/business/ap-value-select-card/style/index.d.ts +2 -2
  260. package/lib/src/business/ap-view/style/index.d.ts +3 -3
  261. package/lib/src/business/ap-view/style/index.js +1 -1
  262. package/lib/src/business/batch-input-group/style/index.d.ts +5 -2
  263. package/lib/src/business/batch-input-group/style/index.js +1 -1
  264. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  265. package/lib/src/check-card/style/index.d.ts +2 -2
  266. package/lib/src/check-card/style/index.js +1 -1
  267. package/lib/src/config-provider/config-provider.d.ts +1 -2
  268. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -2
  269. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  270. package/lib/src/config-provider/hooks/use-token.d.ts +7 -2
  271. package/lib/src/config-provider/hooks/use-token.js +1 -1
  272. package/lib/src/config-provider/index.d.ts +1 -2
  273. package/lib/src/design-token/constants.d.ts +1 -6
  274. package/lib/src/design-token/constants.js +1 -1
  275. package/lib/src/design-token/index.d.ts +1 -1
  276. package/lib/src/design-token/index.js +1 -1
  277. package/lib/src/design-token/interface.d.ts +9 -1
  278. package/lib/src/design-token/interface.js +1 -0
  279. package/lib/src/editable-table/style/index.d.ts +2 -2
  280. package/lib/src/full-screen/index.vue.js +1 -1
  281. package/lib/src/full-screen/style/index.d.ts +2 -2
  282. package/lib/src/index.js +1 -1
  283. package/lib/src/mask/style/index.d.ts +2 -2
  284. package/lib/src/mask/style/index.js +2 -2
  285. package/lib/src/scroll-bar/style/index.d.ts +2 -2
  286. package/lib/src/scroll-bar/style/index.js +1 -1
  287. package/lib/src/scroll-view/style/index.d.ts +2 -2
  288. package/lib/src/splitter/style/index.d.ts +11 -3
  289. package/lib/src/splitter/style/index.js +1 -1
  290. package/lib/src/text/style/group.d.ts +2 -2
  291. package/lib/src/text/style/index.d.ts +6 -3
  292. package/lib/src/text/style/index.js +1 -1
  293. package/lib/src/utils/cssinjs/index.d.ts +3 -7
  294. package/lib/src/utils/cssinjs/index.js +1 -1
  295. package/lib/src/utils/cssinjs/instance.js +1 -1
  296. package/lib/src/utils/cssinjs/plugin-append-cssvar.d.ts +6 -0
  297. package/lib/src/utils/cssinjs/plugin-append-cssvar.js +1 -0
  298. package/lib/src/utils/cssinjs/plugin-specificity.js +1 -1
  299. package/lib/src/utils/cssinjs/utils.d.ts +6 -0
  300. package/lib/src/utils/cssinjs/utils.js +1 -0
  301. package/lib/src/version.d.ts +1 -1
  302. package/lib/src/version.js +1 -1
  303. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, ref as w, computed as B, createBlock as n, openBlock as r, unref as o, normalizeClass as s, withCtx as l, createElementVNode as A, createVNode as u, createCommentVNode as b, normalizeProps as I, guardReactiveProps as h, renderSlot as C, createElementBlock as P, Fragment as D, renderList as N, mergeProps as p } from "vue";
1
+ import { defineComponent as w, ref as B, computed as A, createBlock as n, openBlock as r, unref as o, normalizeClass as s, withCtx as l, createElementVNode as u, createVNode as c, normalizeProps as b, guardReactiveProps as I, renderSlot as h, createCommentVNode as C, createElementBlock as P, Fragment as D, renderList as N, mergeProps as p } from "vue";
2
2
  import { Dropdown as $, Menu as L, MenuItem as V } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
@@ -8,10 +8,10 @@ import "../../config-provider/index.mjs";
8
8
  import { isUndefined as E, omit as F } from "lodash-unified";
9
9
  import M from "../style/dropdown-item.mjs";
10
10
  import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
11
- import c from "../item/index.vue2.mjs";
11
+ import d from "../item/index.vue2.mjs";
12
12
  import U from "../item-modal/index.vue.mjs";
13
13
  import x from "../item-popconfirm/index.vue.mjs";
14
- const Z = /* @__PURE__ */ k({
14
+ const Z = /* @__PURE__ */ w({
15
15
  name: "ApActionItemDropDown",
16
16
  __name: "index",
17
17
  props: {
@@ -29,8 +29,8 @@ const Z = /* @__PURE__ */ k({
29
29
  iconFirst: { type: Boolean },
30
30
  tooltip: {}
31
31
  },
32
- setup(d) {
33
- const m = d, i = w(!1), { e: f, b: y } = S("action-item-dropdown"), g = M("action-item-dropdown"), _ = B(() => m.actions.filter((e) => e.visible || E(e.visible)).map((e) => ({
32
+ setup(y) {
33
+ const m = y, i = B(!1), { e: f, b: g } = S("action-item-dropdown"), _ = M("action-item-dropdown"), v = A(() => m.actions.filter((e) => e.visible || E(e.visible)).map((e) => ({
34
34
  ...e,
35
35
  onAction: async (a) => {
36
36
  try {
@@ -45,13 +45,13 @@ const Z = /* @__PURE__ */ k({
45
45
  "onUpdate:open": a[0] || (a[0] = (t) => i.value = t),
46
46
  trigger: e.trigger,
47
47
  placement: e.placement,
48
- class: s(o(g))
48
+ class: s(o(_))
49
49
  }, {
50
50
  overlay: l(() => [
51
- u(o(L), null, {
51
+ c(o(L), null, {
52
52
  default: l(() => [
53
- (r(!0), P(D, null, N(_.value, (t, v) => (r(), n(o(V), {
54
- key: v,
53
+ (r(!0), P(D, null, N(v.value, (t, k) => (r(), n(o(V), {
54
+ key: k,
55
55
  class: s(o(f)("item"))
56
56
  }, {
57
57
  default: l(() => [
@@ -61,7 +61,7 @@ const Z = /* @__PURE__ */ k({
61
61
  }, t), null, 16)) : t.popconfirmProps ? (r(), n(x, p({
62
62
  key: 1,
63
63
  ref_for: !0
64
- }, t), null, 16)) : (r(), n(c, p({
64
+ }, t), null, 16)) : (r(), n(d, p({
65
65
  key: 2,
66
66
  ref_for: !0
67
67
  }, t), null, 16))
@@ -73,19 +73,20 @@ const Z = /* @__PURE__ */ k({
73
73
  })
74
74
  ]),
75
75
  default: l(() => [
76
- A("span", {
77
- class: s(o(y)())
76
+ u("span", {
77
+ class: s(o(g)())
78
78
  }, [
79
- u(c, I(h(o(F)(m, ["actions", "trigger", "placement"]))), {
79
+ c(d, b(I(o(F)(m, ["actions", "trigger", "placement"]))), {
80
80
  default: l(() => [
81
- C(e.$slots, "default")
81
+ h(e.$slots, "default")
82
82
  ]),
83
83
  _: 3
84
84
  }, 16),
85
- e.showIcon ? (r(), n(o(z), {
86
- key: 0,
85
+ u("span", {
87
86
  class: s(o(f)("icon"))
88
- }, null, 8, ["class"])) : b("", !0)
87
+ }, [
88
+ e.showIcon ? (r(), n(o(z), { key: 0 })) : C("", !0)
89
+ ], 2)
89
90
  ], 2)
90
91
  ]),
91
92
  _: 3
@@ -1,5 +1,5 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genActionDropdownItemStyle: GenStyleFunc;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
2
2
  const c = (e) => {
3
- const { componentCls: o, namespace: n } = e, t = `.${n}-action-item`;
3
+ const { componentCls: n, namespace: o } = e, t = `.${o}-action-item`;
4
4
  return {
5
- [o]: {
5
+ [n]: {
6
6
  display: "inline-flex",
7
7
  flexDirection: "row",
8
8
  alignItems: "center",
@@ -12,8 +12,8 @@ const c = (e) => {
12
12
  width: "100%"
13
13
  }
14
14
  },
15
- [`${o}__icon`]: {
16
- color: e.colorPrimary,
15
+ [`${n}__icon`]: {
16
+ color: e.colorLink,
17
17
  marginLeft: e.spaceXXS,
18
18
  fontSize: e.fontSize,
19
19
  display: "inline-flex"
@@ -1,8 +1,11 @@
1
- import { BaseToken, GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
1
+ import { GenStyleFunc } from '../../design-token/interface';
2
+ import { ComputedRef } from 'vue';
3
3
  export type ActionToken = {
4
+ /**
5
+ * 加载中时的组件透明度
6
+ */
4
7
  loadingOpacity: number;
5
8
  };
6
- export declare const genActionItemStyle: GenStyleFunc<BaseToken & ActionToken>;
7
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
9
+ export declare const genActionItemStyle: GenStyleFunc<ActionToken>;
10
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
8
11
  export default _default;
@@ -1,44 +1,44 @@
1
- import { resetComponent as n } from "../../style/index.mjs";
2
- import { genComponentStyleHook as s } from "../../utils/cssinjs/index.mjs";
3
- const d = (o) => {
1
+ import { resetComponent as e } from "../../style/index.mjs";
2
+ import { genComponentStyleHook as d } from "../../utils/cssinjs/index.mjs";
3
+ const t = (o) => {
4
4
  const {
5
5
  loadingOpacity: i,
6
6
  colorLink: c,
7
7
  colorLinkHover: l,
8
- colorSuccess: e,
9
- colorError: a,
10
- colorWarn: t,
8
+ colorSuccess: a,
9
+ colorError: n,
10
+ colorWarn: s,
11
11
  componentCls: r
12
12
  } = o;
13
13
  return {
14
- [`${r}-item`]: {
14
+ [r]: {
15
15
  display: "inline-block",
16
16
  cursor: "pointer",
17
- ...n(o),
17
+ ...e(o),
18
18
  "&--primary": {
19
19
  color: c,
20
- [`&:not(${r}-item--disabled):hover`]: {
20
+ [`&:not(${r}--disabled):hover`]: {
21
21
  color: l
22
22
  },
23
- [`&${r}-item--disabled`]: {
23
+ [`&${r}--disabled`]: {
24
24
  color: o.colorLinkDisabled
25
25
  }
26
26
  },
27
27
  "&--success": {
28
- color: e,
29
- [`&${r}-item--disabled`]: {
28
+ color: a,
29
+ [`&${r}--disabled`]: {
30
30
  color: o.colorSuccessDisabled
31
31
  }
32
32
  },
33
33
  "&--error": {
34
- color: a,
35
- [`&${r}-item--disabled`]: {
34
+ color: n,
35
+ [`&${r}--disabled`]: {
36
36
  color: o.colorErrorDisabled
37
37
  }
38
38
  },
39
39
  "&--warn": {
40
- color: t,
41
- [`&${r}-item--disabled`]: {
40
+ color: s,
41
+ [`&${r}--disabled`]: {
42
42
  color: o.colorWarnDisabled
43
43
  }
44
44
  },
@@ -48,27 +48,33 @@ const d = (o) => {
48
48
  cursor: "default",
49
49
  ".btn-loading-icon": {
50
50
  marginRight: o.spaceXS
51
+ },
52
+ [`&${r}--disabled`]: {
53
+ opacity: 1
51
54
  }
52
55
  },
53
56
  "&--disabled": {
54
57
  cursor: "not-allowed"
55
58
  },
56
- [`${r}-item__icon-wrapper`]: {
59
+ [`${r}__icon-wrapper`]: {
57
60
  paddingRight: o.spaceXS
58
61
  },
59
62
  "&--icon-first": {
60
- [`${r}-item__icon-wrapper`]: {
63
+ [`${r}__icon-wrapper`]: {
61
64
  paddingRight: 0
62
65
  }
63
66
  }
64
67
  }
65
68
  };
66
- }, b = s(
69
+ }, g = d(
67
70
  "ApAction",
68
- (o) => [d(o)],
69
- { loadingOpacity: 0.35 }
71
+ (o) => [t(o)],
72
+ { loadingOpacity: 0.35 },
73
+ {
74
+ skipUnit: ["loadingOpacity"]
75
+ }
70
76
  );
71
77
  export {
72
- b as default,
73
- d as genActionItemStyle
78
+ g as default,
79
+ t as genActionItemStyle
74
80
  };
@@ -1,13 +1,12 @@
1
- import { defineComponent as z, useSlots as L, ref as w, computed as t, createBlock as M, openBlock as P, unref as n, mergeProps as S, createSlots as T, renderList as _, withCtx as $, renderSlot as x, normalizeProps as N, guardReactiveProps as A } from "vue";
2
- import { Button as D } from "@aplus-frontend/antdv";
3
- import { wait as F } from "@aplus-frontend/utils";
1
+ import { defineComponent as B, useSlots as W, ref as z, computed as o, createBlock as L, openBlock as w, unref as n, mergeProps as P, createSlots as S, renderList as T, withCtx as _, renderSlot as $, normalizeProps as x, guardReactiveProps as M } from "vue";
2
+ import { Button as N } from "@aplus-frontend/antdv";
3
+ import { wait as A } from "@aplus-frontend/utils";
4
4
  import "../config-provider/index.mjs";
5
- import { omit as I } from "lodash-unified";
6
- import { transferOpacityColor as O, isAsynchronous as j } from "./utils/index.mjs";
7
- import G from "./style/index.mjs";
5
+ import { omit as D } from "lodash-unified";
6
+ import { transferOpacityColor as I, isAsynchronous as O } from "./utils/index.mjs";
7
+ import j from "./style/index.mjs";
8
8
  import { useNamespace as R } from "../config-provider/hooks/use-namespace.mjs";
9
- import { useGlobalConfig as q } from "../config-provider/hooks/use-global-config.mjs";
10
- const E = 72, H = 300, eo = /* @__PURE__ */ z({
9
+ const q = 72, E = 300, X = /* @__PURE__ */ B({
11
10
  __name: "ap-button",
12
11
  props: {
13
12
  prefixCls: {},
@@ -34,71 +33,68 @@ const E = 72, H = 300, eo = /* @__PURE__ */ z({
34
33
  lazy: { type: [Boolean, Number], default: !0 },
35
34
  onClick: {}
36
35
  },
37
- setup(m) {
38
- const y = L(), o = m, l = {
39
- aplus: "#0070FF",
40
- admin: "#34b77c"
41
- }, { b: i } = R("ap-action-button"), b = G("ap-action-button"), h = q("uiMode"), r = w(!1), v = t(
42
- () => o.borderLinkColor || l[h.value] || l.aplus
43
- ), s = t(
44
- () => o.type === "borderLink" && !o.disabled ? v.value : void 0
45
- ), u = t(
46
- () => O(s.value)
47
- ), g = t(() => o.minWidth === !0 ? `${E}px` : typeof o.minWidth == "number" ? `${o.minWidth}px` : typeof o.minWidth == "string" ? o.minWidth : void 0), k = t(
48
- () => (o.type === "borderLink" ? "default" : o.type) || "default"
49
- ), c = t(() => o.loading ?? r.value ?? !1), p = t(() => o.lazy === !0 ? H : typeof o.lazy == "number" && o.lazy >= 0 ? o.lazy : 0);
50
- function C() {
51
- const e = I(o, [
36
+ setup(f) {
37
+ const m = W(), e = f, { b: l } = R("ap-action-button"), y = j("ap-action-button"), r = z(!1), b = o(
38
+ () => e.borderLinkColor || "var(--ap-button-border-link-color)"
39
+ ), i = o(
40
+ () => e.type === "borderLink" && !e.disabled ? b.value : void 0
41
+ ), s = o(
42
+ () => I(i.value)
43
+ ), h = o(() => e.minWidth === !0 ? `${q}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), v = o(
44
+ () => (e.type === "borderLink" ? "default" : e.type) || "default"
45
+ ), u = o(() => e.loading ?? r.value ?? !1), c = o(() => e.lazy === !0 ? E : typeof e.lazy == "number" && e.lazy >= 0 ? e.lazy : 0);
46
+ function k() {
47
+ const t = D(e, [
52
48
  "type",
53
49
  "borderLinkColor",
54
50
  "minWidth",
55
51
  "onClick",
56
52
  "loading"
57
53
  ]);
58
- return e ? {
59
- ...e,
60
- type: k.value,
61
- onclick: B
54
+ return t ? {
55
+ ...t,
56
+ type: v.value,
57
+ onclick: g
62
58
  } : {};
63
59
  }
64
- async function B() {
65
- if (c.value) return;
66
- const e = j(o.onClick), d = Date.now();
60
+ async function g() {
61
+ if (u.value) return;
62
+ const t = O(e.onClick), d = Date.now();
67
63
  try {
68
- e && (r.value = !0, await e);
64
+ t && (r.value = !0, await t);
69
65
  } finally {
70
- if (e) {
66
+ if (t) {
71
67
  const a = Date.now() - d;
72
- a < p.value && await F(p.value - a), r.value = !1;
68
+ a < c.value && await A(c.value - a), r.value = !1;
73
69
  }
74
70
  }
75
71
  }
76
- return (e, d) => (P(), M(n(D), S({
72
+ return (t, d) => (w(), L(n(N), P({
77
73
  class: {
78
- [n(i)()]: !0,
79
- [`${n(i)()}-border-link`]: u.value,
80
- [`${n(b)}`]: !0
74
+ [n(l)()]: !0,
75
+ [`${n(l)()}-border-link`]: s.value,
76
+ [`${n(y)}`]: !0
81
77
  }
82
78
  }, {
83
- ...e.$attrs,
84
- ...C()
79
+ ...t.$attrs,
80
+ ...k()
85
81
  }, {
86
82
  style: {
87
- color: s.value,
88
- minWidth: g.value,
89
- "--button-border-color": u.value
83
+ color: i.value,
84
+ minWidth: h.value,
85
+ "--button-border-color": s.value
90
86
  },
91
- loading: c.value
92
- }), T({ _: 2 }, [
93
- _(y, (a, f) => ({
94
- name: f,
95
- fn: $((W) => [
96
- x(e.$slots, f, N(A(W || {})))
87
+ loading: u.value
88
+ }), S({ _: 2 }, [
89
+ T(m, (a, p) => ({
90
+ name: p,
91
+ fn: _((C) => [
92
+ $(t.$slots, p, x(M(C || {})))
97
93
  ])
98
94
  }))
99
95
  ]), 1040, ["class", "style", "loading"]));
100
96
  }
101
97
  });
102
98
  export {
103
- eo as default
99
+ X as default
104
100
  };
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,8 +1,9 @@
1
- import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
2
- const r = (o) => {
1
+ import { genComponentStyleHook as r } from "../../utils/cssinjs/index.mjs";
2
+ const n = (o) => {
3
3
  const { componentCls: t } = o;
4
4
  return {
5
5
  [t]: {
6
+ "--ap-button-border-link-color": o.colorPrimary,
6
7
  "&-border-link": {
7
8
  ".ant-btn&:not(:disabled):hover,&:not(:disabled):active,&:not(:disabled):focus": {
8
9
  borderColor: "var(--button-border-color)",
@@ -11,8 +12,8 @@ const r = (o) => {
11
12
  }
12
13
  }
13
14
  };
14
- }, l = n("ApButton", (o) => [
15
- r(o)
15
+ }, l = r("ApButton", (o) => [
16
+ n(o)
16
17
  ]);
17
18
  export {
18
19
  l as default
@@ -3,42 +3,42 @@ import { omit as a } from "lodash-unified";
3
3
  function f(o) {
4
4
  return typeof o == "object" && typeof o.then == "function" ? o : !1;
5
5
  }
6
- const m = (o) => typeof o == "function" && f(o?.()), h = (o, s = "0.7") => {
6
+ const m = (o) => typeof o == "function" && f(o?.()), h = (o, c = "0.7") => {
7
7
  try {
8
8
  let t = o?.toLowerCase();
9
9
  if (t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
10
10
  if (t.length === 4) {
11
- let r = "#";
11
+ let e = "#";
12
12
  for (let n = 1; n < 4; n += 1)
13
- r += t.slice(n, n + 1).concat(t.slice(n, n + 1));
14
- t = r;
13
+ e += t.slice(n, n + 1).concat(t.slice(n, n + 1));
14
+ t = e;
15
15
  }
16
- const e = [];
17
- for (let r = 1; r < 7; r += 2)
18
- e.push(parseInt("0x" + t.slice(r, r + 2)));
19
- return "rgba(" + e.join(",") + "," + s + ")";
16
+ const r = [];
17
+ for (let e = 1; e < 7; e += 2)
18
+ r.push(parseInt("0x" + t.slice(e, e + 2)));
19
+ return "rgba(" + r.join(",") + "," + c + ")";
20
20
  }
21
21
  if (t && t.startsWith("rgb")) {
22
- let e = t.match(/(\d(\.\d+)?)+/g);
23
- return e = e?.slice(0, 3)?.concat(s), "rgba(" + e.join(",") + ")";
22
+ let r = t.match(/(\d(\.\d+)?)+/g);
23
+ return r = r?.slice(0, 3)?.concat(c), "rgba(" + r.join(",") + ")";
24
24
  }
25
25
  return t;
26
26
  } catch {
27
27
  return;
28
28
  }
29
29
  }, p = (o) => {
30
- const { onOk: s = () => ({}) } = o;
31
- return new Promise((t, c) => {
30
+ const { onOk: c = () => ({}) } = o;
31
+ return new Promise((t, s) => {
32
32
  i.confirm({
33
33
  onOk: async () => {
34
34
  try {
35
- await s(), t(!0);
36
- } catch {
37
- c();
35
+ await c(), t(!0);
36
+ } catch (r) {
37
+ s(r);
38
38
  }
39
39
  },
40
40
  onCancel: () => {
41
- c();
41
+ t(!1);
42
42
  },
43
43
  ...a(o, ["onOk"])
44
44
  });
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ApDownLoadProps } from './interface';
1
+ import { ApDownLoadProps, downloadCallbackResponse } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { ButtonType } from '@aplus-frontend/antdv/es/button';
4
4
  type __VLS_Props = ApDownLoadProps;
@@ -11,10 +11,10 @@ declare function __VLS_template(): {
11
11
  rootEl: any;
12
12
  };
13
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
- downloadCallback: (...args: any[]) => void;
14
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
15
+ downloadCallback: (res?: downloadCallbackResponse | undefined) => any;
16
16
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onDownloadCallback?: ((...args: any[]) => any) | undefined;
17
+ onDownloadCallback?: ((res?: downloadCallbackResponse | undefined) => any) | undefined;
18
18
  }>, {
19
19
  size: "small" | "large" | "middle";
20
20
  type: ButtonType;
@@ -1,9 +1,9 @@
1
- import { defineComponent as F, ref as A, useSlots as L, computed as a, unref as t, createBlock as S, openBlock as i, mergeProps as x, withCtx as j, createElementVNode as m, normalizeClass as I, createElementBlock as u, createCommentVNode as f, createVNode as M, renderSlot as T, toDisplayString as U } from "vue";
1
+ import { defineComponent as F, ref as A, useSlots as L, computed as s, unref as t, createBlock as S, openBlock as i, mergeProps as x, withCtx as j, createElementVNode as u, normalizeClass as I, createElementBlock as f, createCommentVNode as g, createVNode as M, renderSlot as T, toDisplayString as U } from "vue";
2
2
  import { Button as V } from "@aplus-frontend/antdv";
3
3
  import { LoadingOutlined as D } from "@ant-design/icons-vue";
4
4
  import "../config-provider/index.mjs";
5
5
  import { useOssInit as E } from "./hooks/index.mjs";
6
- import { getFileInfo as g } from "./utils/getFileInfo.mjs";
6
+ import { getFileInfo as y } from "./utils/getFileInfo.mjs";
7
7
  import { useStyle as P } from "./hooks/useStyle.mjs";
8
8
  import { omit as G } from "lodash-unified";
9
9
  import { useLocale as R } from "../config-provider/hooks/use-locale.mjs";
@@ -44,58 +44,58 @@ const W = {
44
44
  getOssAccess: {}
45
45
  },
46
46
  emits: ["downloadCallback"],
47
- setup(y, { emit: C }) {
48
- const N = C, n = A(!1), { lang: b } = R(), v = L(), h = a(() => b.value === "zh-cn" ? "zh_CN" : "en_US"), w = r("uiMode"), e = y, l = r("apUpload"), c = r(
47
+ setup(C, { emit: N }) {
48
+ const c = N, l = A(!1), { lang: b } = R(), v = L(), w = s(() => b.value === "zh-cn" ? "zh_CN" : "en_US"), h = r("uiMode"), e = C, n = r("apUpload"), d = r(
49
49
  "downloadCenterTriggerConfig"
50
- ), d = a(() => e.disabled), _ = a(() => e.color ? e.color : w.value === "aplus" ? "#0070FF" : "#1890FF"), k = a(() => e.size), { getInnerWrapperClass: B } = P(_, k, d), O = a(() => e.getOssAccess || l.value?.getOssAccess), z = async () => {
50
+ ), p = s(() => e.disabled), _ = s(() => e.color ? e.color : h.value === "aplus" ? "#0070FF" : "#1890FF"), k = s(() => e.size), { getInnerWrapperClass: B } = P(_, k, p), O = s(() => e.getOssAccess || n.value?.getOssAccess), z = async () => {
51
51
  if (!e.disabled) {
52
- n.value = !0;
52
+ l.value = !0;
53
53
  try {
54
- if (c.value?.trigger) {
55
- let s = g(
56
- e.needName ?? l?.value?.needName,
54
+ if (d.value?.trigger) {
55
+ let a = y(
56
+ e.needName ?? n?.value?.needName,
57
57
  e.fileName
58
- ).map((p) => ({
59
- objectName: p.path,
60
- fileName: p.fileName
58
+ ).map((m) => ({
59
+ objectName: m.path,
60
+ fileName: m.fileName
61
61
  }));
62
- await c.value?.trigger(s);
62
+ await d.value?.trigger(a), c("downloadCallback", a);
63
63
  } else {
64
- const s = await (await E(
64
+ const a = await (await E(
65
65
  O.value,
66
- t(h)
66
+ t(w)
67
67
  )).downloadFile(
68
- g(
69
- e.needName ?? l?.value?.needName,
68
+ y(
69
+ e.needName ?? n?.value?.needName,
70
70
  e.fileName
71
71
  )
72
72
  );
73
- N("downloadCallback", s);
73
+ c("downloadCallback", a);
74
74
  }
75
75
  } catch (o) {
76
76
  console.error(o);
77
77
  } finally {
78
- n.value = !1;
78
+ l.value = !1;
79
79
  }
80
80
  }
81
81
  };
82
- return (o, s) => (i(), S(t(V), x(t(G)(e, ["getOssAccess", "fileName", "needName"]), {
82
+ return (o, a) => (i(), S(t(V), x(t(G)(e, ["getOssAccess", "fileName", "needName"]), {
83
83
  type: e.type,
84
84
  size: e.size,
85
- disabled: d.value,
85
+ disabled: p.value,
86
86
  onClick: z
87
87
  }), {
88
88
  default: j(() => [
89
- m("div", {
89
+ u("div", {
90
90
  class: I(t(B))
91
91
  }, [
92
- n.value ? (i(), u("span", W, [
92
+ l.value ? (i(), f("span", W, [
93
93
  M(t(D), { spin: !0 })
94
- ])) : f("", !0),
95
- t(v).icon ? (i(), u("span", $, [
94
+ ])) : g("", !0),
95
+ t(v).icon ? (i(), f("span", $, [
96
96
  T(o.$slots, "icon")
97
- ])) : f("", !0),
98
- m("span", q, U(o.text), 1)
97
+ ])) : g("", !0),
98
+ u("span", q, U(o.text), 1)
99
99
  ], 2)
100
100
  ]),
101
101
  _: 3
@@ -1,18 +1,18 @@
1
- import { computed as a } from "vue";
1
+ import { computed as o } from "vue";
2
2
  import { getHexWithOpacity as m } from "../utils/getFileInfo.mjs";
3
3
  import "../../config-provider/index.mjs";
4
4
  import c from "../style/index.mjs";
5
5
  import { useNamespace as w } from "../../config-provider/hooks/use-namespace.mjs";
6
6
  import { useGlobalConfig as f } from "../../config-provider/hooks/use-global-config.mjs";
7
- function S(o, p, l) {
8
- const { b: n, bm: e } = w("ap-download"), t = c("ap-download"), i = f("uiMode"), s = a(() => ({
9
- "--download-main-color": o.value,
10
- "--download-main-color-opacity": m(o.value, 0.6)
11
- })), u = a(() => [n("wrapper"), e("wrapper", p.value), t.value].filter(
7
+ function S(p, n, l) {
8
+ const { b: r, bm: e } = w("ap-download"), t = c("ap-download"), i = f("uiMode"), s = o(() => ({
9
+ "--download-main-color": p.value,
10
+ "--download-main-color-opacity": m(p.value, 0.6)
11
+ })), u = o(() => [r("wrapper"), e("wrapper", n.value), t.value].filter(
12
12
  Boolean
13
- )), d = a(() => {
14
- const r = [n("inner-wrapper"), e("inner-wrapper", p.value)];
15
- return l.value && (i.value === "aplus" ? r.push(e("inner-wrapper", "disabled")) : r.push(e("inner-wrapper", "disabled-admin"))), [...r, t.value];
13
+ )), d = o(() => {
14
+ const a = [r(), r("inner-wrapper"), e("inner-wrapper", n.value)];
15
+ return l.value && (i.value === "aplus" ? a.push(e("inner-wrapper", "disabled")) : a.push(e("inner-wrapper", "disabled-admin"))), [...a, t.value];
16
16
  });
17
17
  return {
18
18
  wrapperStyle: s,
@@ -38,4 +38,8 @@ export declare enum ApDownLoadNeedNameKeyDefault {
38
38
  pathKey = "path"
39
39
  }
40
40
  export type actionResponse = Awaited<ReturnType<typeof client.downloadFile>>;
41
+ export type downloadCallbackResponse = {
42
+ objectName: string;
43
+ fileName: string;
44
+ }[] | actionResponse;
41
45
  export {};
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
3
  export default _default;