@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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),N=require("@ant-design/icons-vue"),h=require("@aplus-frontend/antdv"),$=require("../../ap-action/index.js");require("../../config-provider/index.js");const i=require("lodash-unified"),T=require("./style/index.js"),q=require("../../config-provider/hooks/use-locale.js"),A=require("../../config-provider/hooks/use-namespace.js"),D=require("../../config-provider/hooks/use-global-config.js"),I=["onClick"],V=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0}},emits:["choose","expand"],setup(g,{expose:v,emit:x}){const f=x,r=g,{t:m}=q.useLocale(),B=e.computed(()=>{if(r.type!="card")return r.type}),n=e.ref(""),s=e.ref(null),S=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:n.value,webkitBoxOrient:"vertical",lineHeight:"18px"}));function w(){n.value==="1"?(n.value="",f("expand","expand")):(n.value="1",f("expand","collapse"))}const C=e.computed(()=>n.value==="1"?m("ap.apExpandAlert.expand"):m("ap.apExpandAlert.collapse")),u=e.ref(!0),y=e.computed(()=>n.value!=="1");function c(t){t?n.value="":n.value="1"}e.watch(()=>r.data,()=>{n.value="",e.nextTick(()=>{if(s.value){const t=Number(s.value.clientHeight),o=Number(parseInt(s.value.style.lineHeight));t<o*Number(r.rows)&&y.value?u.value=!1:u.value=!0}})},{immediate:!0}),e.watch(()=>r.defaultExpand,t=>{t?e.nextTick(()=>{c(t)}):e.nextTick(()=>{c(t)})},{immediate:!0}),e.onMounted(()=>{e.watch(()=>r.contentStyle,t=>{i.isNil(t.lineHeight)||e.nextTick(()=>{const o=document.querySelector(`#${p} .ant-alert-action`),a=document.querySelector(`#${p} .ant-alert-icon`);o&&o.setAttribute("style",`line-height: ${t.lineHeight}`),a&&a.setAttribute("style",`line-height: ${t.lineHeight}`)})},{deep:!0,immediate:!0,flush:"post"})});const{b:k,e:l,m:E}=A.useNamespace("ap-expand-alert"),b=T.default("ap-expand-alert"),p=`${k()}-key-${Date.now()}-${(Math.random()*1e6).toFixed(0)}`,z=D.useGlobalConfig("uiMode","aplus");return v({setExpand:c}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{id:p,class:e.normalizeClass([e.unref(k)(),`${e.unref(E)(e.unref(z))}`,e.unref(b)])},[e.createVNode(e.unref(h.Alert),{type:B.value,"show-icon":t.showIcon,class:e.normalizeClass([e.unref(l)("antAlert"),t.type=="card"?"card-alert":""])},{action:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(e.unref($.ApActionItem),{key:0,size:"small",style:{"font-size":"12px","padding-left":"16px"},onClick:o[0]||(o[0]=a=>w())},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("expandText"))},e.toDisplayString(C.value),3),e.createVNode(e.unref(N.DownOutlined),{class:e.normalizeClass(y.value?e.unref(l)("expandIcon"):e.unref(l)("collapseIcon"))},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)]),message:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"ellipsisBoxRef",ref:s,style:e.normalizeStyle({...S.value,...t.contentStyle}),class:e.normalizeClass(e.unref(l)("alertContent"))},[e.renderSlot(t.$slots,"default",{},()=>[e.unref(i.isString)(t.prefix)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(l)("prefix")),style:e.normalizeStyle(t.prefixStyle)},e.toDisplayString(t.prefix),7)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefix),{key:1,style:e.normalizeStyle(t.prefixStyle)},null,8,["style"])),e.unref(i.isString)(t.data)?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(l)("text"))},e.toDisplayString(t.data),3)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(t.data,(a,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[e.createVNode(e.unref(h.Tooltip),{title:t.tipTitle?t.tipTitle:null},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{record:a,index:d},()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("showItem")),onClick:H=>t.$emit("choose",a)},e.toDisplayString(t.mapLabel?a[t.mapLabel]:a),11,I)])]),_:2},1032,["title"]),d!==t.data.length-1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(l)("spliter")),style:e.normalizeStyle(t.separatorStyle)},[e.unref(i.isString)(t.separator)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.separator),1)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.separator),{key:1}))],6)):e.createCommentVNode("",!0)],64))),128))])],6)]),_:3},8,["type","show-icon","class"])],2))}});exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("@ant-design/icons-vue"),h=require("@aplus-frontend/antdv"),T=require("../../ap-action/index.js");require("../../config-provider/index.js");const i=require("lodash-unified"),q=require("./style/index.js"),A=require("../../config-provider/hooks/use-locale.js"),D=require("../../config-provider/hooks/use-namespace.js"),I=require("../../config-provider/hooks/use-global-config.js"),V=["onClick"],H=e.defineComponent({__name:"ApExpandAlert",props:{type:{default:"warning"},data:{default:()=>[]},prefix:{default:""},tipTitle:{default:""},mapLabel:{},separator:{default:"|"},separatorStyle:{default:()=>({})},contentStyle:{default:()=>({})},prefixStyle:{default:()=>({})},rows:{default:2},defaultExpand:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},closable:{type:Boolean},afterClose:{}},emits:["choose","expand","close"],setup(g,{expose:v,emit:C}){const u=C,r=g,{t:m}=A.useLocale(),B=e.computed(()=>{if(r.type!="card")return r.type}),l=e.ref(""),s=e.ref(null),S=e.computed(()=>({fontWeight:"400",wordBreak:"break-all",overflow:"hidden",display:"-webkit-box",webkitLineClamp:l.value,webkitBoxOrient:"vertical",lineHeight:"18px"}));function w(){l.value==="1"?(l.value="",u("expand","expand")):(l.value="1",u("expand","collapse"))}const x=e.computed(()=>l.value==="1"?m("ap.apExpandAlert.expand"):m("ap.apExpandAlert.collapse")),c=e.ref(!0),y=e.computed(()=>l.value!=="1");function p(t){t?l.value="":l.value="1"}function b(t){u("close",t)}e.watch(()=>r.data,()=>{l.value="",e.nextTick(()=>{if(s.value){const t=Number(s.value.clientHeight),o=Number(parseInt(s.value.style.lineHeight));t<o*Number(r.rows)&&y.value?c.value=!1:c.value=!0}})},{immediate:!0}),e.watch(()=>r.defaultExpand,t=>{t?e.nextTick(()=>{p(t)}):e.nextTick(()=>{p(t)})},{immediate:!0}),e.onMounted(()=>{e.watch(()=>r.contentStyle,t=>{i.isNil(t.lineHeight)||e.nextTick(()=>{const o=document.querySelector(`#${d} .ant-alert-action`),a=document.querySelector(`#${d} .ant-alert-icon`);o&&o.setAttribute("style",`line-height: ${t.lineHeight}`),a&&a.setAttribute("style",`line-height: ${t.lineHeight}`)})},{deep:!0,immediate:!0,flush:"post"})});const{b:k,e:n,m:E}=D.useNamespace("ap-expand-alert"),z=q.default("ap-expand-alert"),d=`${k()}-key-${Date.now()}-${(Math.random()*1e6).toFixed(0)}`,N=I.useGlobalConfig("uiMode","aplus");return v({setExpand:p}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{id:d,class:e.normalizeClass([e.unref(k)(),`${e.unref(E)(e.unref(N))}`,e.unref(z)])},[e.createVNode(e.unref(h.Alert),{type:B.value,"show-icon":t.showIcon,closable:t.closable,class:e.normalizeClass([e.unref(n)("antAlert"),t.type=="card"?"card-alert":""]),"after-close":t.afterClose,onClose:b},{action:e.withCtx(()=>[c.value?(e.openBlock(),e.createBlock(e.unref(T.ApActionItem),{key:0,size:"small",style:{"font-size":"12px","padding-left":"16px"},onClick:o[0]||(o[0]=a=>w())},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("expandText"))},e.toDisplayString(x.value),3),e.createVNode(e.unref($.DownOutlined),{class:e.normalizeClass(y.value?e.unref(n)("expandIcon"):e.unref(n)("collapseIcon"))},null,8,["class"])]),_:1})):e.createCommentVNode("",!0)]),message:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"ellipsisBoxRef",ref:s,style:e.normalizeStyle({...S.value,...t.contentStyle}),class:e.normalizeClass(e.unref(n)("alertContent"))},[e.renderSlot(t.$slots,"default",{},()=>[e.unref(i.isString)(t.prefix)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("prefix")),style:e.normalizeStyle(t.prefixStyle)},e.toDisplayString(t.prefix),7)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefix),{key:1,style:e.normalizeStyle(t.prefixStyle)},null,8,["style"])),e.unref(i.isString)(t.data)?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(n)("text"))},e.toDisplayString(t.data),3)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(t.data,(a,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(e.unref(h.Tooltip),{title:t.tipTitle?t.tipTitle:null},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{record:a,index:f},()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("showItem")),onClick:L=>t.$emit("choose",a)},e.toDisplayString(t.mapLabel?a[t.mapLabel]:a),11,V)])]),_:2},1032,["title"]),f!==t.data.length-1?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(n)("spliter")),style:e.normalizeStyle(t.separatorStyle)},[e.unref(i.isString)(t.separator)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.separator),1)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.separator),{key:1}))],6)):e.createCommentVNode("",!0)],64))),128))])],6)]),_:3},8,["type","show-icon","closable","class","after-close"])],2))}});exports.default=H;
@@ -15,9 +15,10 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
15
15
  index: number;
16
16
  }): any;
17
17
  };
18
- emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
18
+ emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
19
19
  }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
20
20
  props: {
21
+ readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
21
22
  readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
22
23
  readonly onChoose?: ((args_0: T) => any) | undefined;
23
24
  type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
@@ -31,6 +32,8 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
31
32
  prefixStyle?: CSSProperties | undefined;
32
33
  rows?: string | number | undefined;
33
34
  defaultExpand?: boolean | undefined;
35
+ closable?: boolean | undefined;
36
+ afterClose?: (() => void) | undefined;
34
37
  showIcon?: boolean | undefined;
35
38
  } & PublicProps;
36
39
  expose(exposed: ShallowUnwrapRef<{
@@ -50,7 +53,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
50
53
  index: number;
51
54
  }): any;
52
55
  };
53
- emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
56
+ emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
54
57
  }>) => VNode & {
55
58
  __ctx?: Awaited<typeof __VLS_setup>;
56
59
  }) & ( Plugin & (new (...args: any[]) => {
@@ -45,4 +45,4 @@ export type ApExpandAlertProps<T> = {
45
45
  * 默认是否展开
46
46
  */
47
47
  defaultExpand?: boolean;
48
- } & Pick<AlertProps, 'showIcon'>;
48
+ } & Pick<AlertProps, 'showIcon' | 'closable' | 'afterClose'>;
@@ -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,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
2
+ import { ComputedRef } from 'vue';
3
+ export declare const genApImageStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../utils/cssinjs/index.js"),o=e=>{const{componentCls:t}=e;return{[`${t}-toolbar`]:{display:"flex",alignItems:"center",padding:"0 24px",backgroundColor:"rgba(0, 0, 0, 0.1)",borderRadius:"100px"}}},n=r.genComponentStyleHook("ApImage",e=>[o(e)]);exports.default=n;exports.genProCardStyle=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../../utils/cssinjs/index.js"),t=e=>{const{componentCls:o}=e;return{[`${o}-toolbar`]:{display:"flex",alignItems:"center",padding:"0 24px",backgroundColor:"rgba(0, 0, 0, 0.1)",borderRadius:"100px"}}},l=n.genComponentStyleHook("ApImage",e=>[t(e)]);exports.default=l;exports.genApImageStyle=t;
@@ -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;
@@ -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,6 +1,6 @@
1
- import { Ref } from 'vue';
1
+ import { ComputedRef } from 'vue';
2
2
  export type ApRadioGroupToken = {
3
3
  apRadioGroupItemActiveBgColor: string;
4
4
  };
5
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
6
6
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../utils/cssinjs/index.js"),a=o=>{const{componentCls:r}=o;return{[r]:{fontSize:o.fontSize,padding:`${o.space} ${o.space} 0`,backgroundColor:"#fff",[`${r}__item`]:{cursor:"pointer",paddingInline:o.spaceLG,borderRadius:o.borderRadius,color:o.textColor1,transition:"all 0.3s ease-in-out",willChange:"background-color","&:hover":{backgroundColor:o.colorBg2},"&--active":{color:o.colorPrimary,backgroundColor:`${o.apRadioGroupItemActiveBgColor} !important`}}}}},i=e.genComponentStyleHook("ApRadioGroupToken",o=>[a(o)],{apRadioGroupItemActiveBgColor:"rgba(0, 112, 255, 0.12)"});exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../utils/cssinjs/index.js"),a=o=>{const{componentCls:r}=o;return{[r]:{fontSize:o.fontSize,padding:`${o.space} ${o.space} 0`,backgroundColor:"#fff",[`${r}__item`]:{cursor:"pointer",paddingInline:o.spaceLG,borderRadius:o.borderRadius,color:o.textColor1,transition:"all 0.3s ease-in-out",willChange:"background-color","&:hover":{backgroundColor:o.colorBg2},"&--active":{color:o.colorPrimary,backgroundColor:`${o.apRadioGroupItemActiveBgColor} !important`}}}}},i=e.genComponentStyleHook("ApRadioGroup",o=>[a(o)],{apRadioGroupItemActiveBgColor:"rgba(0, 112, 255, 0.12)"});exports.default=i;
@@ -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;
@@ -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,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 genApTableModalStyle: 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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const N=require("../../ap-table/index.js"),m=require("lodash-unified"),A=require("@aplus-frontend/utils");require("./modal-title.vue.js");const y=require("./interface.js");require("./table-layout/index.vue.js");const L=require("./style/index.js"),D=require("../../config-provider/hooks/use-namespace.js"),E=require("../../config-provider/hooks/use-locale.js"),F=require("./modal-title.vue2.js"),U=require("./table-layout/index.vue2.js"),G=t.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},renderHeader:{},onOk:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},afterOpenChange:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{},loading:{type:Boolean}},emits:["finish"],setup(g,{expose:w,emit:k}){const e=g,h=k,s=t.ref(!1),v=t.ref({}),u=t.ref(null),n=t.ref([]),b=t.ref();let d=null,i=null;const{b:R}=D.useNamespace("ap-table-modal"),T=L.default("ap-table-modal"),{t:x}=E.useLocale(),S=async(o=[],a={})=>{switch(n.value=[...o],s.value=!0,v.value=a?.extraParams,b.value=a.apTableDataSources||e.apTableProps?.dataSource,a.refreshMode||"reset"){case"reset":u.value?.reset();break;case"submit":u.value?.submit();break;case"none":break}return new Promise((l,r)=>{d=l,i=r})},C=()=>{s.value=!1,d=null,i?.(y.AsyncOpenResultError.ModalCancel),i=null},_=async o=>{o=A.transformTableParams({...o,...v.value});const a=e.api,{records:l,total:r}=await a(o);return{data:l,total:r}},B=async()=>{if(n.value.length>e.maxCount){i?.(y.AsyncOpenResultError.ExceedMaxCount);return}if(e.getRowKey){const o=m.cloneDeep(t.unref(n)),a=o.map(e.getRowKey);if(e.onOk&&await e.onOk({keys:a,rows:o})===!1)return;h("finish",a,o),d?.({keys:a,rows:o})}else{i?.(y.AsyncOpenResultError.NotFineGetRowKey);return}s.value=!1},P=t.computed(()=>{if(!e.getRowKey)return;const o=e.getRowKey;return{fixed:!0,selectedRowKeys:n.value.map(o),columnWidth:50,preserveSelectedRowKeys:!0,onSelectAll(a,l){if(l.length>e.maxCount){p.message.warning(x("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}const r=u.value?.dataSource;if(a){const c=t.unref(r).filter(f=>!n.value.some(I=>o(I)===o(f)));n.value=n.value.concat(c)}else n.value=n.value?.filter(c=>!r.some(f=>o(f)===o(c)))},onSelect(a,l){if(l){if(n.value.length>=e.maxCount){p.message.warning(x("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}e.rowSelection?.type==="radio"?n.value=[a]:n.value.push(a)}else{const r=n.value.findIndex(c=>o(a)===o(c));n.value.splice(r,1)}},getCheckboxProps:a=>({disabled:typeof e.disabledCheckbox=="function"?e.disabledCheckbox(a,n.value):e.disabledCheckbox}),...e.rowSelection||{}}}),q=()=>e.isRenderModalTitleSuffix?t.h(F.default,{title:e.title,count:n.value.length||0,maxCount:e.maxCount},{default:e.renderModalTitleSuffix??void 0}):e.title,M=()=>u.value,K=()=>{n.value=[]},O=o=>{const a=e.getRowKey;if(!a)return;const l=n.value.findIndex(r=>a(o)===a(r));n.value.splice(l,1)};return w({open:S,close:C,getApTableInstance:M}),(o,a)=>(t.openBlock(),t.createBlock(t.unref(p.Modal),t.mergeProps({open:s.value,"onUpdate:open":a[0]||(a[0]=l=>s.value=l)},t.unref(m.omit)(e,["api","getRowKey","centered","apTableProps","onOk","maxCount","title","renderModalTitleSuffix","isRenderModalTitleSuffix","rowSelection","disabledCheckbox","tableLayoutConfig"]),{title:q(),centered:e.centered??!0,"wrap-class-name":`${t.unref(R)()} ${t.unref(T)}`,onOk:B,onCancel:C}),{default:t.withCtx(()=>[e.renderHeader?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderHeader),{key:0})):t.createCommentVNode("",!0),t.createVNode(U.default,t.mergeProps(e.tableLayoutConfig||{},{"selected-list":n.value,onClear:K,onDeleteItem:O}),{default:t.withCtx(()=>[t.createVNode(t.unref(N.ApTable),t.mergeProps({ref_key:"apTableRef",ref:u,scroll:{y:450},style:{padding:"0px"},columns:o.columns,request:_,"row-key":o.getRowKey,"row-selection":P.value,"data-source":b.value,"search-form":{sortable:!1,countPerRow:2}},t.unref(m.omit)(e.apTableProps,"dataSource")),null,16,["columns","row-key","row-selection","data-source"])]),_:1},16,["selected-list"])]),_:1},16,["open","title","centered","wrap-class-name"]))}});exports.default=G;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const N=require("../../ap-table/index.js"),m=require("lodash-unified"),A=require("@aplus-frontend/utils");require("./modal-title.vue.js");const y=require("./interface.js");require("./table-layout/index.vue.js");const L=require("./style/index.js"),D=require("../../config-provider/hooks/use-namespace.js"),E=require("../../config-provider/hooks/use-locale.js"),F=require("./modal-title.vue2.js"),U=require("./table-layout/index.vue2.js"),j=t.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},renderHeader:{},onOk:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},afterOpenChange:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{},loading:{type:Boolean}},emits:["finish"],setup(g,{expose:w,emit:k}){const e=g,h=k,u=t.ref(!1),v=t.ref({}),i=t.ref(null),n=t.ref([]),b=t.ref();let d=null,c=null;const{b:R}=D.useNamespace("ap-table-modal"),T=L.default("ap-table-modal"),{t:x}=E.useLocale(),S=async(o=[],a={})=>{switch(n.value=[...o],u.value=!0,v.value=a?.extraParams,b.value=a.apTableDataSources||e.apTableProps?.dataSource,a.refreshMode||"reset"){case"reset":i.value?.reset();break;case"submit":i.value?.submit();break;case"none":break}return new Promise((l,r)=>{d=l,c=s=>r("Ignored Reject: "+s)})},C=()=>{u.value=!1,d=null,c?.(y.AsyncOpenResultError.ModalCancel),c=null},_=async o=>{o=A.transformTableParams({...o,...v.value});const a=e.api,{records:l,total:r}=await a(o);return{data:l,total:r}},B=async()=>{if(n.value.length>e.maxCount){c?.(y.AsyncOpenResultError.ExceedMaxCount);return}if(e.getRowKey){const o=m.cloneDeep(t.unref(n)),a=o.map(e.getRowKey);if(e.onOk&&await e.onOk({keys:a,rows:o})===!1)return;h("finish",a,o),d?.({keys:a,rows:o})}else{c?.(y.AsyncOpenResultError.NotFineGetRowKey);return}u.value=!1},P=t.computed(()=>{if(!e.getRowKey)return;const o=e.getRowKey;return{fixed:!0,selectedRowKeys:n.value.map(o),columnWidth:50,preserveSelectedRowKeys:!0,onSelectAll(a,l){if(l.length>e.maxCount){p.message.warning(x("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}const r=i.value?.dataSource;if(a){const s=t.unref(r).filter(f=>!n.value.some(I=>o(I)===o(f)));n.value=n.value.concat(s)}else n.value=n.value?.filter(s=>!r.some(f=>o(f)===o(s)))},onSelect(a,l){if(l){if(n.value.length>=e.maxCount){p.message.warning(x("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}e.rowSelection?.type==="radio"?n.value=[a]:n.value.push(a)}else{const r=n.value.findIndex(s=>o(a)===o(s));n.value.splice(r,1)}},getCheckboxProps:a=>({disabled:typeof e.disabledCheckbox=="function"?e.disabledCheckbox(a,n.value):e.disabledCheckbox}),...e.rowSelection||{}}}),q=()=>e.isRenderModalTitleSuffix?t.h(F.default,{title:e.title,count:n.value.length||0,maxCount:e.maxCount},{default:e.renderModalTitleSuffix??void 0}):e.title,M=()=>i.value,K=()=>{n.value=[]},O=o=>{const a=e.getRowKey;if(!a)return;const l=n.value.findIndex(r=>a(o)===a(r));n.value.splice(l,1)};return w({open:S,close:C,getApTableInstance:M}),(o,a)=>(t.openBlock(),t.createBlock(t.unref(p.Modal),t.mergeProps({open:u.value,"onUpdate:open":a[0]||(a[0]=l=>u.value=l)},t.unref(m.omit)(e,["api","getRowKey","centered","apTableProps","onOk","maxCount","title","renderModalTitleSuffix","isRenderModalTitleSuffix","rowSelection","disabledCheckbox","tableLayoutConfig"]),{title:q(),centered:e.centered??!0,"wrap-class-name":`${t.unref(R)()} ${t.unref(T)}`,onOk:B,onCancel:C}),{default:t.withCtx(()=>[e.renderHeader?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderHeader),{key:0})):t.createCommentVNode("",!0),t.createVNode(U.default,t.mergeProps(e.tableLayoutConfig||{},{"selected-list":n.value,onClear:K,onDeleteItem:O}),{default:t.withCtx(()=>[t.createVNode(t.unref(N.ApTable),t.mergeProps({ref_key:"apTableRef",ref:i,scroll:{y:450},style:{padding:"0px"},columns:o.columns,request:_,"row-key":o.getRowKey,"row-selection":P.value,"data-source":b.value,"search-form":{sortable:!1,countPerRow:2}},t.unref(m.omit)(e.apTableProps,"dataSource")),null,16,["columns","row-key","row-selection","data-source"])]),_:1},16,["selected-list"])]),_:1},16,["open","title","centered","wrap-class-name"]))}});exports.default=j;
@@ -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 genApTitleStyle: 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,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  export declare const genProCardStyle: GenStyleFunc<BaseToken>;
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,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,5 +1,5 @@
1
1
  import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
2
- import { Ref } from 'vue';
3
- export declare const genProCardStyle: GenStyleFunc<BaseToken>;
4
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
2
+ import { ComputedRef } from 'vue';
3
+ export declare const genApViewStyle: GenStyleFunc<BaseToken>;
4
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../utils/cssinjs/index.js"),n=e=>{const{componentCls:t}=e;return{[t]:{".ant-btn-default:has(&-main-content-disabled)":{borderColor:"var(--ap-border-color-base) !important"},"& > .ant-btn":{padding:0},"& > .ant-dropdown-trigger":{color:"var(--ap-text-color-3)"},[`${t}-main-content`]:{padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"center","&-disabled":{color:"var(--ap-text-color-4)",cursor:"not-allowed"}},[`${t}-icon`]:{width:"100%",height:"100%",fontSize:"14px",display:"flex",justifyContent:"center",alignItems:"center"}},[`${t}-main-content-popover`]:{width:"340px","&-title-content":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px","&-title":{ontSize:"14px",fontWeight:500,lineHeight:"22px"},".ant-form-item":{marginBottom:0}},"&-btn":{marginBottom:0,".ant-form-item-control-input-content":{display:"flex",justifyContent:"flex-end"}}},[`${t}-overlay`]:{".ant-dropdown-menu":{padding:"8px","&-item":{padding:"0 !important","&:hover":{backgroundColor:"transparent !important"}}},[`${t}-menu-list-content`]:{width:"250px",display:"flex",padding:"6px 8px",alignItems:"center",height:"32px",".menu-list-content-name":{overflow:"hidden",display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",marginRight:"8px"},".menu-list-content-default":{marginRight:"8px",flexShrink:0},".menu-list-content-action":{cursor:"default",display:"none",flexShrink:0,marginLeft:"auto",userSelect:"none","&-text":{cursor:"pointer",fontSize:"12px",display:"flex",alignItems:"center",color:"var(--ap-color-primary)"},"&-delete":{cursor:"pointer",display:"flex",alignItems:"center",color:"var(--ap-text-color-3)",svg:{outline:"none",boxShadow:"none"}}},".menu-list-content-edit":{display:"flex",alignItems:"center",".ant-form-item":{marginBottom:0},".ant-space-item:has(.menu-list-content-action-text)":{flexShrink:0}},"&-edit":{background:"transparent !important",padding:"0 8px",cursor:"default"},"&:hover":{background:"var(--ap-color-bg-1)",".menu-list-content-action":{display:"block"}}},[`${t}-menu-list-content-active`]:{".menu-list-content-name":{color:"var(--ap-color-primary)"}}}}},i=o.genComponentStyleHook("ApView",e=>[n(e)]);exports.default=i;exports.genProCardStyle=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../utils/cssinjs/index.js"),n=t=>{const{componentCls:e}=t;return{[e]:{"& > .ant-btn":{padding:0},"& > .ant-dropdown-trigger":{color:t.textColor3},[`${e}-main-content`]:{padding:"4px 8px",display:"flex",alignItems:"center",justifyContent:"center","&-disabled":{color:t.textColor4,cursor:"not-allowed"}},[`${e}-icon`]:{width:"100%",height:"100%",fontSize:"14px",display:"flex",justifyContent:"center",alignItems:"center"}},[`${e}-main-content-popover`]:{width:"340px","&-title-content":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px","&-title":{ontSize:"14px",fontWeight:500,lineHeight:"22px"},".ant-form-item":{marginBottom:0}},"&-btn":{marginBottom:0,".ant-form-item-control-input-content":{display:"flex",justifyContent:"flex-end"}}},[`${e}-overlay`]:{".ant-dropdown-menu":{padding:"8px","&-item":{padding:"0 !important","&:hover":{backgroundColor:"transparent !important"}}},[`${e}-menu-list-content`]:{width:"250px",display:"flex",padding:"6px 8px",alignItems:"center",height:"32px",".menu-list-content-name":{overflow:"hidden",display:"block",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",marginRight:"8px"},".menu-list-content-default":{marginRight:"8px",flexShrink:0},".menu-list-content-action":{cursor:"default",display:"none",flexShrink:0,marginLeft:"auto",userSelect:"none","&-text":{cursor:"pointer",fontSize:"12px",display:"flex",alignItems:"center",color:t.colorPrimary},"&-delete":{cursor:"pointer",display:"flex",alignItems:"center",color:t.textColor3,svg:{outline:"none",boxShadow:"none"}}},".menu-list-content-edit":{display:"flex",alignItems:"center",".ant-form-item":{marginBottom:0},".ant-space-item:has(.menu-list-content-action-text)":{flexShrink:0}},"&-edit":{background:"transparent !important",padding:"0 8px",cursor:"default"},"&:hover":{background:t.colorBg1,".menu-list-content-action":{display:"block"}}},[`${e}-menu-list-content-active`]:{".menu-list-content-name":{color:t.colorPrimary}}}}},i=o.genComponentStyleHook("ApView",t=>[n(t)]);exports.default=i;exports.genApViewStyle=n;
@@ -1,3 +1,6 @@
1
- import { Ref } from 'vue';
2
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
1
+ import { ComputedRef } from 'vue';
2
+ export type BatchInputGroupToken = {
3
+ batchInputGroupTriggerColorDisabled: string;
4
+ };
5
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
3
6
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../../utils/cssinjs/index.js"),a=o=>{const{componentCls:e,namespace:t}=o,r=`${e}-popover-input`,n=`--${t}-batch-input-group-popover-left`,p=`--${t}-batch-input-group-popover-right`;return{[e]:{position:"relative",[r]:{display:"inline-flex",alignItems:"center",[`${r}-trigger-icon`]:{cursor:"pointer",fontSize:"16px",color:o.textColor1,lineHeight:0,"&:hover":{color:o.colorPrimary},"&--disabled":{cursor:"not-allowed",color:"var(--batch-input-group-trigger-color-disabled, rgba(24, 41, 72, 0.25))","&:hover":{color:"var(--batch-input-group-trigger-color-disabled, rgba(24, 41, 72, 0.25))"}}}}},[`${r}__popover`]:{width:"100%",minWidth:"300px",left:`var(${n}) !important`,right:`var(${p}) !important`,".ant-popover-arrow":{display:"none"},".ant-popover-inner":{padding:0},[`${r}__popover--content`]:{padding:"12px",textarea:{padding:0,resize:"none"}}}}},l=i.genComponentStyleHook("BatchInputGroup",o=>[a(o)]);exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../../utils/cssinjs/index.js"),a=o=>{const{componentCls:e,namespace:t}=o,r=`${e}-popover-input`,n=`--${t}-batch-input-group-popover-left`,p=`--${t}-batch-input-group-popover-right`;return{[e]:{position:"relative",[r]:{display:"inline-flex",alignItems:"center",[`${r}-trigger-icon`]:{cursor:"pointer",fontSize:"16px",color:o.textColor1,lineHeight:0,"&:hover":{color:o.colorPrimary},"&--disabled":{cursor:"not-allowed",color:o.batchInputGroupTriggerColorDisabled,"&:hover":{color:o.batchInputGroupTriggerColorDisabled}}}}},[`${r}__popover`]:{width:"100%",minWidth:"300px",left:`var(${n}) !important`,right:`var(${p}) !important`,".ant-popover-arrow":{display:"none"},".ant-popover-inner":{padding:0},[`${r}__popover--content`]:{padding:"12px",textarea:{padding:0,resize:"none"}}}}},l=i.genComponentStyleHook("BatchInputGroup",o=>[a(o)],{batchInputGroupTriggerColorDisabled:"rgba(24, 41, 72, 0.25)"});exports.default=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("lodash-unified"),F=require("vue"),q=require("./useKeepAliveFlag.js");function w(u){const r=F.ref(null),{isShowRowSelection:d=!0,clearSelectionOnRequest:f=!0,transformSearchFormValues:o,api:a,tableRefresh:s=!0,clearDataOnDeactivated:g=!0,...v}=u||{};let n=null;const l=()=>{r.value?.rowSelection?.clearAll()},i=e=>{r.value?.submitWith(e)},S=()=>{r.value?.reset()},{isDeactivated:h}=q.useKeepAliveFlag({afterActivated(){(c.isFunction(s)?s():s)&&i()},afterDeactivated:i}),p=async e=>{if(h()&&g)return{data:[],total:0};n=e.sort;const t=o?o(e):e;if(!a)throw new Error("api is not defined");const{records:m,total:A}=await a(t);return f&&l(),{data:m,total:A}};return[c.merge({columnResizable:!0,request:a?p:void 0,rowSelection:d?{fixed:"left",columnWidth:38}:void 0,ref(e){r.value=e},card:!0},v),{reload:i,reset:S,getSearchFormValues:(e=!0)=>{const t=r.value?.getSearchFormValues(!!e)||{};return o?o(t):t},getAgGridInstance:()=>r.value,getSearchFormValuesAndSorted:(e=!0)=>{const t=r.value?.getSearchFormValues(!!e)||{};return t.sort=n&&c.cloneDeep(n),o?o(t):t},clearSelection:l}]}exports.usePageListAgGrid=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("lodash-unified"),F=require("vue"),V=require("./useKeepAliveFlag.js");function q(l){const r=F.ref(null),{isShowRowSelection:d=!0,clearSelectionOnRequest:f=!0,transformSearchFormValues:o,api:a,tableRefresh:s=!0,clearDataOnDeactivated:g=!0,...v}=l||{};let n=null;const u=()=>{r.value?.rowSelection?.clearAll()},i=e=>{r.value?.submitWith(e)},p=()=>{r.value?.reset()},{isDeactivated:S}=V.useKeepAliveFlag({afterActivated(){(c.isFunction(s)?s():s)&&i()},afterDeactivated:i}),h=async e=>{if(S()&&g)return{data:[],total:0};n=e.sort;const t=o?o(e):e;if(!a)throw new Error("api is not defined");const{records:m,total:A}=await a(t);return f&&u(),{data:m,total:A}};return[c.merge({columnResizable:!0,request:a?h:void 0,rowSelection:d?{fixed:"left",columnWidth:38}:void 0,onVnodeBeforeMount(e){r.value=e.component?.exposed},card:!0},v),{reload:i,reset:p,getSearchFormValues:(e=!0)=>{const t=r.value?.getSearchFormValues(!!e)||{};return o?o(t):t},getAgGridInstance:()=>r.value,getSearchFormValuesAndSorted:(e=!0)=>{const t=r.value?.getSearchFormValues(!!e)||{};return t.sort=n&&c.cloneDeep(n),o?o(t):t},clearSelection:u}]}exports.usePageListAgGrid=q;
@@ -1,4 +1,4 @@
1
- import { Ref } from 'vue';
1
+ import { ComputedRef } from 'vue';
2
2
  export type CheckCardToken = {
3
3
  /** 禁用背景色 */
4
4
  checkCardDisabledBg: string;
@@ -11,5 +11,5 @@ export type CheckCardToken = {
11
11
  /** 指示器位置偏移 */
12
12
  checkCardIndicatorOffset: number;
13
13
  };
14
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
14
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
15
15
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../style/index.js"),d=require("../../utils/cssinjs/index.js"),c=r=>{const{componentCls:e}=r;return{[`${e}`]:{...i.resetComponent(r),borderRadius:r.borderRadius,position:"relative","&--disabled":{backgroundColor:r.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`1px solid ${r.borderColorBase}`},[`&:hover:not(${e}--disabled)`]:{cursor:"pointer",outline:`1px solid ${r.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,opacity:0,insetBlockStart:r.checkCardIndicatorOffset,insetInlineEnd:r.checkCardIndicatorOffset,borderInlineStart:r.checkCardIndicatorSize,borderBlockEnd:r.checkCardIndicatorSize,borderRadius:r.borderRadius},"&--checked":{outline:`${r.checkCardOutlineWidth} solid ${r.colorPrimary}`,[`&:hover:not(${e}--disabled)`]:{outline:`${r.checkCardOutlineWidth} solid ${r.colorPrimary}`},"&::after":{opacity:1,border:`${r.checkCardIndicatorSize} solid ${r.colorPrimary}`,borderInlineStart:`${r.checkCardIndicatorSize} solid transparent`,borderBlockEnd:`${r.checkCardIndicatorSize} solid transparent`,insetBlockStart:r.checkCardIndicatorOffset,insetInlineEnd:r.checkCardIndicatorOffset,transition:"all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)"},[`&${e}--disabled`]:{outlineColor:r.checkCardDisabledOutlineColor,"&::after":{border:`${r.checkCardIndicatorSize} solid ${r.checkCardDisabledOutlineColor}`,borderInlineStart:`${r.checkCardIndicatorSize} solid transparent`,borderBlockEnd:`${r.checkCardIndicatorSize} solid transparent`}}},"&--middle":{padding:r.spaceLG},"&--small":{padding:`${r.spaceSM} ${r.spaceLG}`},[`${e}__title`]:{...i.resetComponent(r),marginBottom:r.spaceXS,color:"#333",fontWeight:"bold","&--disabled":{color:r.textColor4}},[`${e}__content`]:{...i.resetComponent(r),color:"#333","&--disabled":{color:r.textColor4}},[`${e}__checked-icon`]:{position:"absolute",top:0,right:0,zIndex:1,lineHeight:1,userSelect:"none","& > img":{width:`calc(${r.checkCardIndicatorSize} - 2px)`,verticalAlign:"top"}}}}},o=d.genComponentStyleHook("CheckCard",r=>[c(r)],{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2});exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("../../style/index.js"),a=require("../../utils/cssinjs/index.js"),n=e=>{const{componentCls:o,checkCardDisabledOutlineColor:l,checkCardIndicatorSize:r,checkCardOutlineWidth:t,checkCardIndicatorOffset:i}=e;return{[`${o}`]:{...d.resetComponent(e),borderRadius:e.borderRadius,position:"relative","&--disabled":{backgroundColor:e.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`1px solid ${e.borderColorBase}`},[`&:hover:not(${o}--disabled)`]:{cursor:"pointer",outline:`1px solid ${e.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,opacity:0,insetBlockStart:i,insetInlineEnd:i,borderInlineStart:r,borderBlockEnd:r,borderRadius:e.borderRadius},"&--checked":{outline:`${t} solid ${e.colorPrimary}`,[`&:hover:not(${o}--disabled)`]:{outline:`${t} solid ${e.colorPrimary}`},"&::after":{opacity:1,border:`${r} solid ${e.colorPrimary}`,borderInlineStart:`${r} solid transparent`,borderBlockEnd:`${r} solid transparent`,insetBlockStart:i,insetInlineEnd:i,transition:"all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)"},[`&${o}--disabled`]:{outlineColor:l,"&::after":{border:`${r} solid ${l}`,borderInlineStart:`${r} solid transparent`,borderBlockEnd:`${r} solid transparent`}}},"&--middle":{padding:e.spaceLG},"&--small":{padding:`${e.spaceSM} ${e.spaceLG}`},[`${o}__title`]:{...d.resetComponent(e),marginBottom:e.spaceXS,color:"#333",fontWeight:"bold","&--disabled":{color:e.textColor4}},[`${o}__content`]:{...d.resetComponent(e),color:"#333","&--disabled":{color:e.textColor4}},[`${o}__checked-icon`]:{position:"absolute",top:0,right:0,zIndex:1,lineHeight:1,userSelect:"none","& > img":{width:`calc(${r} - ${t})`,verticalAlign:"top"}}}}},c=a.genComponentStyleHook("CheckCard",e=>[n(e)],{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2});exports.default=c;
@@ -6,10 +6,9 @@ import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
6
6
  import { Locale } from '@aplus-frontend/antdv/es/locale';
7
7
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
8
8
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
9
- import { ApGridRowSelection, AgGridRowSelection, ViewCacheOption } from '..';
9
+ import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
10
10
  import { LocaleType } from '../locale';
11
11
  import { RecursivePartial } from '../type';
12
- import { FullToken } from '../design-token/interface';
13
12
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
14
13
  export declare const globalConfigCached: Ref<ConfigProviderProps>;
15
14
  export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
@@ -7,10 +7,9 @@ import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
7
7
  import { Locale } from '@aplus-frontend/antdv/es/locale';
8
8
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
9
9
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
10
- import { ApGridRowSelection, AgGridRowSelection, ViewCacheOption } from '../..';
10
+ import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '../..';
11
11
  import { LocaleType } from '../../locale';
12
12
  import { RecursivePartial } from '../../type';
13
- import { FullToken } from '../../design-token/interface';
14
13
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
15
14
  export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
16
15
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("../constants.js"),p=require("./use-locale.js"),C=require("./use-namespace.js"),m=require("./use-token.js"),f=require("lodash-unified"),y=require("../../design-token/constants.js"),l=o=>Object.keys(o),i=e.ref();function v(o,n=void 0){const r=e.getCurrentInstance()?e.inject(d.configProviderContextKey,i):i;return o?e.computed(()=>r.value?.[o]??n):r}const k=(o,n,r=!1)=>{const c=!!e.getCurrentInstance(),t=c?v():void 0,u=n?.provide??(c?e.provide:void 0);if(!u)return;const s=e.computed(()=>{const a=e.unref(o);return t?.value?b(t.value,a):a});u(d.configProviderContextKey,s),u(C.namespaceContextKey,s.value.namespace);const g=e.computed(()=>({...f.merge(f.cloneDeep(y.defaultToken),s.value.aplusToken||{})}));return u(m.designTokenContextKey,g),u(p.localeContextKey,e.computed(()=>s.value.aplusLocale)),(r||!i.value)&&(i.value=s.value),s},b=(o,n)=>{const r=[...new Set([...l(o),...l(n)])],c={};for(const t of r)c[t]=n[t]!==void 0?n[t]:o[t];return c};exports.keysOf=l;exports.provideGlobalConfig=k;exports.useGlobalConfig=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),g=require("../constants.js"),k=require("./use-locale.js"),y=require("./use-namespace.js"),q=require("./use-token.js"),l=require("lodash-unified"),b=require("../../design-token/constants.js"),T=require("@emotion/css"),x=require("../../utils/cssinjs/utils.js"),f=o=>Object.keys(o),a=e.ref();function p(o,n=void 0){const r=e.getCurrentInstance()?e.inject(g.configProviderContextKey,a):a;return o?e.computed(()=>r.value?.[o]??n):r}const K=(o,n,r=!1)=>{const c=!!e.getCurrentInstance(),t=c?p():void 0,u=n?.provide??(c?e.provide:void 0);if(!u)return;const s=e.computed(()=>{const i=e.unref(o);return t?.value?j(t.value,i):i});u(g.configProviderContextKey,s),u(k.localeContextKey,e.computed(()=>s.value.aplusLocale)),u(y.namespaceContextKey,s.value.namespace);const d=e.computed(()=>({...l.merge(l.cloneDeep(b.defaultToken),s.value.aplusToken||{})})),m=e.computed(()=>l.omit(d.value,["components"])),v=e.ref();return e.watch(()=>m.value,i=>{const C=x.generateCssVar(i);v.value=T.css(C)},{deep:!0,immediate:!0}),u(q.designTokenContextKey,{token:d,rootCls:v}),(r||!a.value)&&(a.value=s.value),s},j=(o,n)=>{const r=[...new Set([...f(o),...f(n)])],c={};for(const t of r)c[t]=n[t]!==void 0?n[t]:o[t];return c};exports.keysOf=f;exports.provideGlobalConfig=K;exports.useGlobalConfig=p;
@@ -1,4 +1,9 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
2
  import { FullToken } from '../../design-token/interface';
3
- export declare const designTokenContextKey: InjectionKey<Ref<Partial<FullToken>>>;
4
- export declare const useToken: () => Ref<FullToken>;
3
+ type DesignTokenContextType = {
4
+ token: Ref<Partial<FullToken>>;
5
+ rootCls: Ref<string | undefined>;
6
+ };
7
+ export declare const designTokenContextKey: InjectionKey<DesignTokenContextType>;
8
+ export declare const useToken: () => DesignTokenContextType;
9
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=Symbol("designTokenContextKey"),t=()=>e.inject(n,e.ref({}));exports.designTokenContextKey=n;exports.useToken=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=Symbol("designTokenContextKey"),o=()=>e.inject(n,{token:e.ref({}),rootCls:e.ref()});exports.designTokenContextKey=n;exports.useToken=o;
@@ -5,10 +5,9 @@ import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
5
5
  import { Locale } from '@aplus-frontend/antdv/es/locale';
6
6
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
7
7
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
8
- import { ApGridRowSelection, AgGridRowSelection, ViewCacheOption } from '..';
8
+ import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
9
9
  import { LocaleType } from '../locale';
10
10
  import { RecursivePartial } from '../type';
11
- import { FullToken } from '../design-token/interface';
12
11
  import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
13
12
  export * from './config-provider-props';
14
13
  export * from './constants';
@@ -1,7 +1,2 @@
1
- import { BaseToken, FullToken } from './interface';
1
+ import { BaseToken } from './interface';
2
2
  export declare const defaultToken: BaseToken;
3
- export declare const aplusUIAdminBaseToken: BaseToken;
4
- /**
5
- * 预设全量的APlus-UI admin端的token
6
- */
7
- export declare const aplusUITokenAdminPreset: FullToken;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={borderColorBase:"#dee4ed",hoverColorBase:"#66a9ff",activeColorBase:"#66a9ff",colorPrimary:"#0070ff",colorPrimaryDisabled:"#cce2ff",colorLink:"#0070ff",colorLinkHover:"#66a9ff",colorLinkDisabled:"#cce2ff",colorSuccess:"#2ed1a3",colorSuccessDisabled:"#d5f6ed",colorError:"#ff4d4f",colorErrorDisabled:"#ffdbdc",colorWarn:"#ffa940",colorWarnDisabled:"#ffeed9",textColor1:"#526a90",textColor2:"#182948",textColor3:"#8896b0",textColor4:"#abb7cc",colorBg1:"#e9edf3",colorBg2:"#f6f9fa",colorBg3:"#f3f5f8",colorBgDisabled:"#f2f6f9",fontSizeSM:10,fontSize:12,fontSizeLG:14,fontSizeXL:16,lineHeightSM:16,lineHeight:18,lineHeightLG:22,borderRadiusXS:1,borderRadius:4,spaceXXS:2,spaceXS:4,spaceSM:6,space:8,spaceMD:10,spaceLG:12,spaceXL:16,spaceXXL:24,scrollbarThumbColorBase:"#c8d1de",scrollbarThumbColorHover:"#959ca7",scrollbarTrackColorHover:"#f2f6f9",tableHeaderBg:"#f2f6f9",lineClamp:2},o={borderColorBase:"#d9d9d9",hoverColorBase:"#85d4b0",activeColorBase:"#85d4b0",colorPrimary:"#34b77c",colorPrimaryDisabled:"#d6f1e5",colorLink:"#1890ff",colorLinkHover:"#5eb1ff",colorLinkDisabled:"#cce2ff",colorSuccess:"#34b77c",colorSuccessDisabled:"#d6f1e5",colorError:"#ff4d4f",colorErrorDisabled:"#ffdbdc",colorWarn:"#faad14",colorWarnDisabled:"#ffeed9",textColor1:"#666",textColor2:"#333",textColor3:"#999",textColor4:"#bfbfbf",colorBg1:"#e9e9e9",colorBg2:"#f6f9fa",colorBg3:"#f5f5f5",colorBgDisabled:"#f5f5f5",fontSizeSM:10,fontSize:12,fontSizeLG:14,fontSizeXL:16,lineHeightSM:16,lineHeight:18,lineHeightLG:22,borderRadiusXS:1,borderRadius:4,spaceXXS:2,spaceXS:4,spaceSM:6,space:8,spaceMD:10,spaceLG:12,spaceXL:16,spaceXXL:24,scrollbarThumbColorBase:"#bfbfbf",scrollbarThumbColorHover:"#787878",scrollbarTrackColorHover:"#f7f7f7",tableHeaderBg:"#f7f7f7",lineClamp:2},r={apProCardHeaderPadding:"8px 16px 0",apProCardHeaderPaddingBottom:"8px",apProCardBorderRadius:"4px",apProCardColorBgContainer:"transparent",apProCardBodyPadding:"8px 16px",apProCardActionsPadding:"12px 16px",apProCardBorderLineWidth:"1px",apProCardBorderLineType:"solid",apProCardBorderColorSplit:"#e9e9e9",apProCardBoxShadow:"3px 10px 30px -2px rgba(123, 121, 140, 0.15)",apProCardTooltipColor:"#999",apProCardHeaderTitleFontSize:"12px",apProCardHeaderTitleFontColor:"#333",apProCardAreaColor:"#eff9f5",apProCardSplitLineHeight:"100%",apProCardDividerLineHeight:"60%"},a={...o,components:{ApAction:{loadingOpacity:.35},CheckCard:{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2},ApForm:{apFormBorderedShadowColor:"rgba(5, 155, 255, 0.1)"},ApList:{apListSpinnigOpacity:.5},Scrollbar:{scrollBarBarColor:"#c7c8cc",scrollBarTrackColor:"#F2F2F2",scrollBarTrackDisabledColor:"#FAFAFA",scrollBarBarWidth:8,scrollBarTrackWidth:10},Mask:{maskAnimationDuration:"0.25s",maskOpacity:.45},Splitter:{splitterBarSize:2,splitterTriggerSize:6,splitterResizeSpinnerSize:20,splitterSplitBarDraggableSize:20},ProCard:r,StatisticsCard:r}};exports.aplusUIAdminBaseToken=o;exports.aplusUITokenAdminPreset=a;exports.defaultToken=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={borderColorBase:"#dee4ed",hoverColorBase:"#66a9ff",activeColorBase:"#66a9ff",colorPrimary:"#0070ff",colorPrimaryDisabled:"#cce2ff",colorLink:"#0070ff",colorLinkHover:"#66a9ff",colorLinkDisabled:"#cce2ff",colorSuccess:"#2ed1a3",colorSuccessDisabled:"#d5f6ed",colorError:"#ff4d4f",colorErrorDisabled:"#ffdbdc",colorWarn:"#ffa940",colorWarnDisabled:"#ffeed9",textColor1:"#526a90",textColor2:"#182948",textColor3:"#8896b0",textColor4:"#abb7cc",colorBg1:"#e9edf3",colorBg2:"#f6f9fa",colorBg3:"#f3f5f8",colorBgDisabled:"#f2f6f9",fontSizeSM:10,fontSize:12,fontSizeLG:14,fontSizeXL:16,lineHeightSM:16,lineHeight:18,lineHeightLG:22,borderRadiusXS:1,borderRadius:4,spaceXXS:2,spaceXS:4,spaceSM:6,space:8,spaceMD:10,spaceLG:12,spaceXL:16,spaceXXL:24,scrollbarThumbColorBase:"#c8d1de",scrollbarThumbColorHover:"#959ca7",scrollbarTrackColorHover:"#f2f6f9",tableHeaderBg:"#f2f6f9",lineClamp:2};exports.defaultToken=o;
@@ -1,4 +1,4 @@
1
1
  import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
2
- export { aplusUITokenAdminPreset } from './constants';
2
+ export * from './interface';
3
3
  export declare const aplusToken: ThemeConfig['token'];
4
4
  export declare const adminToken: ThemeConfig['token'];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./constants.js"),o={borderRadius:4,fontSize:12,sizeStep:4,lineHeight:1.5,lineHeightSM:1.6,wireframe:!1,sizeUnit:3},e={...o,colorPrimary:"#0070FF",colorPrimaryHover:"#66A9FF",colorPrimaryActive:"#338CFF",colorTextBase:"#182948",colorText:"#182948",colorTextSecondary:"#526A90",colorTextTertiary:"#8896B0",colorTextPlaceholder:"#BFBFBF",colorBorder:"#DEE4ED",colorSplit:"#E9EDF3",colorInfo:"#0070FF",colorSuccess:"#2ED1A3",colorError:"#FF4D4F",colorWarning:"#FFA940",colorBgContainerDisabled:"#F2F6F9",wireframe:!1,colorBgLayout:"#F2F6F9",colorBgSpotlight:"#000000cc",controlItemBgActive:"#F5F9FF",controlItemBgActiveHover:"#EAF2FF",colorBorderSecondary:"#E9EDF3"},c={...o,colorPrimary:"#34B77C",colorPrimaryHover:"#85D4B0",colorPrimaryActive:"#5DC596",colorBgContainerDisabled:"#f5f5f5",colorTextBase:"#333333",colorText:"#333333",colorTextSecondary:"#666666",colorTextTertiary:"#999999",colorTextPlaceholder:"#ABB7CC",colorBorder:"#D9D9D9",colorSplit:"#E9E9E9",colorInfo:"#1890FF",colorSuccess:"#34b77c",colorError:"#FF4D4F",colorWarning:"#FAAD14",colorLink:"#1890FF",wireframe:!1,colorBgLayout:"#FAFAFA",colorBgSpotlight:"#000000cc",controlItemBgActive:"#f3fbf7",controlItemBgActiveHover:"#e6f6ef",colorBorderSecondary:"#E9E9E9"};exports.aplusUITokenAdminPreset=r.aplusUITokenAdminPreset;exports.adminToken=c;exports.aplusToken=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./interface.js");const o={borderRadius:4,fontSize:12,sizeStep:4,lineHeight:1.5,lineHeightSM:1.6,wireframe:!1,sizeUnit:3},r={...o,colorPrimary:"#0070FF",colorPrimaryHover:"#66A9FF",colorPrimaryActive:"#338CFF",colorTextBase:"#182948",colorText:"#182948",colorTextSecondary:"#526A90",colorTextTertiary:"#8896B0",colorTextPlaceholder:"#BFBFBF",colorBorder:"#DEE4ED",colorSplit:"#E9EDF3",colorInfo:"#0070FF",colorSuccess:"#2ED1A3",colorError:"#FF4D4F",colorWarning:"#FFA940",colorBgContainerDisabled:"#F2F6F9",wireframe:!1,colorBgLayout:"#F2F6F9",colorBgSpotlight:"#000000cc",controlItemBgActive:"#F5F9FF",controlItemBgActiveHover:"#EAF2FF",colorBorderSecondary:"#E9EDF3"},e={...o,colorPrimary:"#34B77C",colorPrimaryHover:"#85D4B0",colorPrimaryActive:"#5DC596",colorBgContainerDisabled:"#f5f5f5",colorTextBase:"#333333",colorText:"#333333",colorTextSecondary:"#666666",colorTextTertiary:"#999999",colorTextPlaceholder:"#ABB7CC",colorBorder:"#D9D9D9",colorSplit:"#E9E9E9",colorInfo:"#1890FF",colorSuccess:"#34b77c",colorError:"#FF4D4F",colorWarning:"#FAAD14",colorLink:"#1890FF",wireframe:!1,colorBgLayout:"#FAFAFA",colorBgSpotlight:"#000000cc",controlItemBgActive:"#f3fbf7",controlItemBgActiveHover:"#e6f6ef",colorBorderSecondary:"#E9E9E9"};exports.adminToken=e;exports.aplusToken=r;
@@ -8,6 +8,10 @@ import { ScrollbarToken } from '../scroll-bar/style';
8
8
  import { MaskToken } from '../mask/style';
9
9
  import { SplitterToken } from '../splitter/style';
10
10
  import { ProCardToken } from '../ap-pro-card/style/token';
11
+ import { AgGridToken } from '../ag-grid/style';
12
+ import { BatchInputGroupToken } from '../business/batch-input-group/style';
13
+ import { ApRadioGroupToken } from '../business/ap-radio-group/style';
14
+ import { ApGridToken } from '../ap-grid/style';
11
15
  export type BaseToken = {
12
16
  /**
13
17
  * 基础边框色
@@ -134,6 +138,10 @@ export type FullToken = BaseToken & {
134
138
  Splitter: SplitterToken;
135
139
  ProCard: ProCardToken;
136
140
  StatisticsCard: ProCardToken;
141
+ AgGrid: AgGridToken;
142
+ BatchInputGroup: BatchInputGroupToken;
143
+ ApRadioGroup: ApRadioGroupToken;
144
+ ApGrid: ApGridToken;
137
145
  };
138
146
  };
139
147
  export type TokenWithComponentCls<Token> = Token & {
@@ -145,4 +153,4 @@ export type CssVarToken<Token = Recordable> = {
145
153
  };
146
154
  export type GenStyleFunc<Token = object> = (token: TokenWithComponentCls<Token & BaseToken>) => CSSInterpolation;
147
155
  export type StyleMixin<Token = object> = (token: TokenWithComponentCls<Token & BaseToken>) => CSSObject;
148
- export type GenStyleCallback<Token> = (token: TokenWithComponentCls<Token>) => CSSInterpolation[];
156
+ export type GenStyleCallback<Token> = (token: TokenWithComponentCls<Token>, rawToken: TokenWithComponentCls<Token>) => CSSInterpolation[];
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,8 +1,8 @@
1
1
  import { GenStyleFunc } from '../../design-token/interface';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef } from 'vue';
3
3
  type EditableTableToken = {
4
4
  editableTableHeaderBg: string;
5
5
  };
6
6
  export declare const genEditableTableStyle: GenStyleFunc<EditableTableToken>;
7
- declare const _default: (prefixCls: string) => Ref<string | undefined, string | undefined>;
7
+ declare const _default: (prefixCls: string) => ComputedRef<string>;
8
8
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../hooks/index.js");require("../portal/index.js");require("../config-provider/index.js");const y=require("@vueuse/core"),g=require("./style/index.js"),q=require("../hooks/useFullScreen.js"),k=require("../config-provider/hooks/use-namespace.js"),x=require("../portal/index.vue.js"),S=e.defineComponent({name:"FullScreen",__name:"index",props:{wrapperElementName:{default:"div"},zIndex:{default:2147483647},to:{default:"body"}},setup(h,{expose:c}){const{target:s,full:d,enter:p,exit:v}=q.useFullScreen(),{b:w,bm:m,be:_}=k.useNamespace("full-screen"),b=g.default("full-screen"),t=e.ref(!1),l=e.ref(),f=y.useScrollLock(document.body),n=e.ref();e.watch(()=>e.unref(d),r=>{r||(t.value=!1,l.value=void 0)});async function a(r,u=!1){await o(),t.value=!0,l.value=r,r==="browser"?p(u):f.value=!0}async function o(r=!1){t.value=!1,l.value==="browser"?await v(r):f.value=!1,l.value=void 0}async function i(r,u=!1){t.value?l.value!==r?await a(r,u):await o(u):await a(r,u)}return c({target:e.computed(()=>e.unref(s)),portalRoot:e.computed(()=>e.unref(n)),full:e.computed(()=>e.unref(t)),mode:e.computed(()=>e.unref(l)),enter:a,exit:o,toggle:i}),(r,u)=>(e.openBlock(),e.createBlock(e.unref(x.default),{to:r.to,disabled:l.value!=="window"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.wrapperElementName),e.mergeProps({ref_key:"target",ref:s},r.$attrs,{class:[e.unref(w)("wrapper"),t.value&&l.value==="window"?e.unref(m)("wrapper","full"):null,e.unref(b)],style:{zIndex:t.value&&l.value==="window"?r.zIndex:"unset"}}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{full:t.value,enter:a,exit:o,toggle:i,mode:l.value,portalRoot:n.value}),e.createElementVNode("div",{ref_key:"portalRootRef",ref:n,class:e.normalizeClass(e.unref(_)("wrapper","portal-root"))},null,2)]),_:3},16,["class","style"]))]),_:3},8,["to","disabled"]))}});exports.default=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../hooks/index.js");require("../portal/index.js");require("../config-provider/index.js");const y=require("@vueuse/core"),g=require("./style/index.js"),q=require("../hooks/useFullScreen.js"),k=require("../config-provider/hooks/use-namespace.js"),x=require("../portal/index.vue.js"),S=e.defineComponent({name:"FullScreen",__name:"index",props:{wrapperElementName:{default:"div"},zIndex:{default:2147483647},to:{default:"body"}},setup(h,{expose:d}){const{target:s,full:p,enter:v,exit:w}=q.useFullScreen(),{b:f,bm:m,be:_}=k.useNamespace("full-screen"),b=g.default("full-screen"),t=e.ref(!1),l=e.ref(),i=y.useScrollLock(document.body),n=e.ref();e.watch(()=>e.unref(p),r=>{r||(t.value=!1,l.value=void 0)});async function a(r,u=!1){await o(),t.value=!0,l.value=r,r==="browser"?v(u):i.value=!0}async function o(r=!1){t.value=!1,l.value==="browser"?await w(r):i.value=!1,l.value=void 0}async function c(r,u=!1){t.value?l.value!==r?await a(r,u):await o(u):await a(r,u)}return d({target:e.computed(()=>e.unref(s)),portalRoot:e.computed(()=>e.unref(n)),full:e.computed(()=>e.unref(t)),mode:e.computed(()=>e.unref(l)),enter:a,exit:o,toggle:c}),(r,u)=>(e.openBlock(),e.createBlock(e.unref(x.default),{to:r.to,disabled:l.value!=="window"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.wrapperElementName),e.mergeProps({ref_key:"target",ref:s},r.$attrs,{class:[e.unref(f)(),e.unref(f)("wrapper"),t.value&&l.value==="window"?e.unref(m)("wrapper","full"):null,e.unref(b)],style:{zIndex:t.value&&l.value==="window"?r.zIndex:"unset"}}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{full:t.value,enter:a,exit:o,toggle:c,mode:l.value,portalRoot:n.value}),e.createElementVNode("div",{ref_key:"portalRootRef",ref:n,class:e.normalizeClass(e.unref(_)("wrapper","portal-root"))},null,2)]),_:3},16,["class","style"]))]),_:3},8,["to","disabled"]))}});exports.default=S;
@@ -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 genFullScreenStyle: 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;