@aplus-frontend/ui 7.6.0 → 7.7.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 (299) hide show
  1. package/es/src/ag-grid/hooks/use-columns-def.mjs +32 -31
  2. package/es/src/ag-grid/hooks/use-editable-api.mjs +9 -8
  3. package/es/src/ag-grid/hooks/use-editable-columns.mjs +26 -25
  4. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +11 -10
  5. package/es/src/ag-grid/index.vue.mjs +22 -21
  6. package/es/src/ag-grid/renderer/number.mjs +7 -7
  7. package/es/src/ag-grid/style/custom-header.mjs +3 -3
  8. package/es/src/ag-grid/style/index.mjs +1 -1
  9. package/es/src/ap-action/style/index.mjs +1 -1
  10. package/es/src/ap-drawer/style/index.mjs +12 -12
  11. package/es/src/ap-field/hooks/use-default-placeholder.mjs +5 -4
  12. package/es/src/ap-field/number/helper.mjs +1 -1
  13. package/es/src/ap-field/number/index.vue.mjs +9 -9
  14. package/es/src/ap-field/number/read.vue2.mjs +5 -5
  15. package/es/src/ap-field/style/checkbox.d.ts +2 -2
  16. package/es/src/ap-field/style/number.d.ts +2 -2
  17. package/es/src/ap-field/style/radio.d.ts +2 -2
  18. package/es/src/ap-field/style/textarea.d.ts +2 -2
  19. package/es/src/ap-field/switch/index.vue.mjs +4 -3
  20. package/es/src/ap-form/ap-form.vue2.mjs +18 -17
  21. package/es/src/ap-form/item/index.vue.mjs +6 -6
  22. package/es/src/ap-form/item-group/helper.mjs +8 -7
  23. package/es/src/ap-form/item-group/index.vue.mjs +15 -14
  24. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  25. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +24 -22
  26. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  27. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +9 -8
  28. package/es/src/ap-form/search-form/index.vue.mjs +12 -11
  29. package/es/src/ap-form/set/index.vue.mjs +1 -1
  30. package/es/src/ap-form/style/item.mjs +15 -15
  31. package/es/src/ap-form/style/modal-form.mjs +2 -1
  32. package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
  33. package/es/src/ap-form/style/search-form.d.ts +7 -1
  34. package/es/src/ap-form/style/search-form.mjs +37 -34
  35. package/es/src/ap-grid/editable/form-item.vue.mjs +4 -3
  36. package/es/src/ap-grid/editable/index.vue.mjs +4 -3
  37. package/es/src/ap-grid/index.vue.mjs +13 -12
  38. package/es/src/ap-grid/style/editable.mjs +7 -7
  39. package/es/src/ap-grid/style/index.mjs +11 -11
  40. package/es/src/ap-grid/utils/table.mjs +14 -13
  41. package/es/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  42. package/es/src/ap-list/hooks/use-offline-list.mjs +13 -12
  43. package/es/src/ap-list/style/index.mjs +1 -1
  44. package/es/src/ap-pro-card/style/divider.mjs +2 -2
  45. package/es/src/ap-pro-card/style/index.mjs +14 -14
  46. package/es/src/ap-pro-card/style/operation.mjs +1 -2
  47. package/es/src/ap-pro-card/style/statistic.mjs +12 -12
  48. package/es/src/ap-pro-card/style/statistics-card.mjs +13 -13
  49. package/es/src/ap-pro-card/style/title.mjs +13 -33
  50. package/es/src/ap-table/ap-table.vue2.mjs +4 -3
  51. package/es/src/ap-table/hooks/use-table-column-state.mjs +23 -22
  52. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  53. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +4 -3
  54. package/es/src/ap-table/style/index-comp.d.ts +2 -1
  55. package/es/src/ap-table/style/index-comp.mjs +15 -12
  56. package/es/src/ap-table/style/index.d.ts +3 -0
  57. package/es/src/ap-table/style/index.mjs +14 -11
  58. package/es/src/ap-table/style/setting.d.ts +2 -1
  59. package/es/src/ap-table/style/setting.mjs +73 -61
  60. package/es/src/ap-table/utils.mjs +61 -62
  61. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +15 -15
  62. package/es/src/business/ag-grid-modal/style/index.d.ts +3 -0
  63. package/es/src/business/ag-grid-modal/style/index.mjs +24 -20
  64. package/es/src/business/ag-grid-modal/style/selected-items.mjs +8 -8
  65. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +26 -27
  66. package/es/src/business/ap-appendix/style/index.mjs +20 -21
  67. package/es/src/business/ap-attachment/style/index.d.ts +6 -0
  68. package/es/src/business/ap-attachment/style/index.mjs +28 -25
  69. package/es/src/business/ap-batch-action/style/index.d.ts +2 -2
  70. package/es/src/business/ap-batch-action/style/index.mjs +18 -18
  71. package/es/src/business/ap-card/style/index.d.ts +2 -2
  72. package/es/src/business/ap-card/style/index.mjs +8 -8
  73. package/es/src/business/ap-copy/style/index.mjs +16 -22
  74. package/es/src/business/ap-descriptions/formatter/index.mjs +1 -1
  75. package/es/src/business/ap-descriptions/style/index.mjs +6 -5
  76. package/es/src/business/ap-download/style/index.mjs +4 -4
  77. package/es/src/business/ap-draggable-grid/style/index.mjs +7 -7
  78. package/es/src/business/ap-expand-alert/style/index.mjs +30 -26
  79. package/es/src/business/ap-image/style/index.d.ts +2 -2
  80. package/es/src/business/ap-image/style/index.mjs +8 -7
  81. package/es/src/business/ap-input-radio/style/index.mjs +1 -1
  82. package/es/src/business/ap-label/style/index.d.ts +14 -0
  83. package/es/src/business/ap-label/style/index.mjs +29 -19
  84. package/es/src/business/ap-ladder/style/index.mjs +7 -6
  85. package/es/src/business/ap-product-info/style/index.d.ts +10 -0
  86. package/es/src/business/ap-product-info/style/index.mjs +35 -28
  87. package/es/src/business/ap-radio-group/style/index.mjs +3 -3
  88. package/es/src/business/ap-select-layout/style/index.d.ts +6 -0
  89. package/es/src/business/ap-select-layout/style/index.mjs +59 -53
  90. package/es/src/business/ap-size-input/style/index.mjs +3 -3
  91. package/es/src/business/ap-status/style/index.mjs +1 -1
  92. package/es/src/business/ap-summary/style/index.d.ts +10 -0
  93. package/es/src/business/ap-summary/style/index.mjs +18 -11
  94. package/es/src/business/ap-table-modal/style/index.d.ts +11 -1
  95. package/es/src/business/ap-table-modal/style/index.mjs +17 -12
  96. package/es/src/business/ap-tag/style/index.mjs +33 -31
  97. package/es/src/business/ap-title/style/index.d.ts +2 -1
  98. package/es/src/business/ap-title/style/index.mjs +41 -49
  99. package/es/src/business/ap-upload/style/index.mjs +10 -5
  100. package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  101. package/es/src/business/ap-upload/style/multiple-file.mjs +8 -7
  102. package/es/src/business/ap-upload/style/picture.d.ts +3 -2
  103. package/es/src/business/ap-upload/style/picture.mjs +26 -26
  104. package/es/src/business/ap-upload/style/single-file.d.ts +3 -2
  105. package/es/src/business/ap-upload/style/single-file.mjs +30 -29
  106. package/es/src/business/ap-upload/style/token.d.ts +19 -0
  107. package/es/src/business/ap-upload/style/token.mjs +9 -0
  108. package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  109. package/es/src/business/ap-upload-file/ap-upload-single/style/index.mjs +51 -42
  110. package/es/src/business/ap-value-select-card/style/index.mjs +45 -43
  111. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +14 -14
  112. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +35 -34
  113. package/es/src/business/ap-view/style/index.d.ts +6 -2
  114. package/es/src/business/ap-view/style/index.mjs +43 -35
  115. package/es/src/business/batch-input-group/index.vue.mjs +23 -22
  116. package/es/src/business/batch-input-group/style/index.mjs +2 -2
  117. package/es/src/check-card/style/index.mjs +17 -17
  118. package/es/src/design-token/constants.mjs +9 -1
  119. package/es/src/design-token/interface.d.ts +137 -12
  120. package/es/src/editable-table/form-item.vue.mjs +4 -3
  121. package/es/src/editable-table/index.vue.mjs +4 -3
  122. package/es/src/editable-table/style/index.mjs +11 -11
  123. package/es/src/editable-table/utils.d.ts +1 -1
  124. package/es/src/editable-table/utils.mjs +27 -26
  125. package/es/src/hooks/useMessage.mjs +4 -4
  126. package/es/src/loading-bar/index.vue2.mjs +4 -3
  127. package/es/src/loading-bar/style/index.mjs +10 -10
  128. package/es/src/scroll-view/hooks/use-scroll-smooth.mjs +10 -9
  129. package/es/src/scroll-view/index.vue.mjs +4 -3
  130. package/es/src/splitter/style/index.mjs +11 -11
  131. package/es/src/text/index.vue.mjs +8 -7
  132. package/es/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  133. package/es/src/utils/cssinjs/TokenUtil.mjs +3 -0
  134. package/es/src/utils/decimal.d.ts +36 -0
  135. package/es/src/utils/decimal.mjs +45 -0
  136. package/es/src/utils/format.d.ts +21 -0
  137. package/es/src/utils/format.mjs +32 -0
  138. package/es/src/utils/index.d.ts +2 -1
  139. package/es/src/utils/index.mjs +20 -22
  140. package/es/src/utils/is.d.ts +54 -0
  141. package/es/src/utils/is.mjs +26 -0
  142. package/es/src/utils/slot.mjs +1 -2
  143. package/es/src/version.d.ts +1 -1
  144. package/es/src/version.mjs +1 -1
  145. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  146. package/lib/src/ag-grid/hooks/use-editable-api.js +1 -1
  147. package/lib/src/ag-grid/hooks/use-editable-columns.js +1 -1
  148. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  149. package/lib/src/ag-grid/index.vue.js +1 -1
  150. package/lib/src/ag-grid/renderer/number.js +1 -1
  151. package/lib/src/ag-grid/style/custom-header.js +1 -1
  152. package/lib/src/ag-grid/style/index.js +1 -1
  153. package/lib/src/ap-action/style/index.js +1 -1
  154. package/lib/src/ap-drawer/style/index.js +1 -1
  155. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  156. package/lib/src/ap-field/number/helper.js +1 -1
  157. package/lib/src/ap-field/number/index.vue.js +1 -1
  158. package/lib/src/ap-field/number/read.vue2.js +1 -1
  159. package/lib/src/ap-field/style/checkbox.d.ts +2 -2
  160. package/lib/src/ap-field/style/number.d.ts +2 -2
  161. package/lib/src/ap-field/style/radio.d.ts +2 -2
  162. package/lib/src/ap-field/style/textarea.d.ts +2 -2
  163. package/lib/src/ap-field/switch/index.vue.js +1 -1
  164. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  165. package/lib/src/ap-form/item/index.vue.js +1 -1
  166. package/lib/src/ap-form/item-group/helper.js +1 -1
  167. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  168. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
  169. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  170. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  171. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  172. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  173. package/lib/src/ap-form/set/index.vue.js +1 -1
  174. package/lib/src/ap-form/style/item.js +1 -1
  175. package/lib/src/ap-form/style/modal-form.js +1 -1
  176. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  177. package/lib/src/ap-form/style/search-form.d.ts +7 -1
  178. package/lib/src/ap-form/style/search-form.js +1 -1
  179. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  180. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  181. package/lib/src/ap-grid/index.vue.js +1 -1
  182. package/lib/src/ap-grid/style/editable.js +1 -1
  183. package/lib/src/ap-grid/style/index.js +1 -1
  184. package/lib/src/ap-grid/utils/table.js +1 -1
  185. package/lib/src/ap-list/hooks/use-offline-list.d.ts +2 -2
  186. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  187. package/lib/src/ap-list/style/index.js +1 -1
  188. package/lib/src/ap-pro-card/style/divider.js +1 -1
  189. package/lib/src/ap-pro-card/style/index.js +1 -1
  190. package/lib/src/ap-pro-card/style/operation.js +1 -1
  191. package/lib/src/ap-pro-card/style/statistic.js +1 -1
  192. package/lib/src/ap-pro-card/style/statistics-card.js +1 -1
  193. package/lib/src/ap-pro-card/style/title.js +1 -1
  194. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  195. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  196. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +2 -2
  197. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  198. package/lib/src/ap-table/style/index-comp.d.ts +2 -1
  199. package/lib/src/ap-table/style/index-comp.js +1 -1
  200. package/lib/src/ap-table/style/index.d.ts +3 -0
  201. package/lib/src/ap-table/style/index.js +1 -1
  202. package/lib/src/ap-table/style/setting.d.ts +2 -1
  203. package/lib/src/ap-table/style/setting.js +1 -1
  204. package/lib/src/ap-table/utils.js +1 -1
  205. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  206. package/lib/src/business/ag-grid-modal/style/index.d.ts +3 -0
  207. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  208. package/lib/src/business/ag-grid-modal/style/selected-items.js +1 -1
  209. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  210. package/lib/src/business/ap-appendix/style/index.js +1 -1
  211. package/lib/src/business/ap-attachment/style/index.d.ts +6 -0
  212. package/lib/src/business/ap-attachment/style/index.js +1 -1
  213. package/lib/src/business/ap-batch-action/style/index.d.ts +2 -2
  214. package/lib/src/business/ap-batch-action/style/index.js +1 -1
  215. package/lib/src/business/ap-card/style/index.d.ts +2 -2
  216. package/lib/src/business/ap-card/style/index.js +1 -1
  217. package/lib/src/business/ap-copy/style/index.js +1 -1
  218. package/lib/src/business/ap-descriptions/formatter/index.js +1 -1
  219. package/lib/src/business/ap-descriptions/style/index.js +1 -1
  220. package/lib/src/business/ap-download/style/index.js +1 -1
  221. package/lib/src/business/ap-draggable-grid/style/index.js +1 -1
  222. package/lib/src/business/ap-expand-alert/style/index.js +1 -1
  223. package/lib/src/business/ap-image/style/index.d.ts +2 -2
  224. package/lib/src/business/ap-image/style/index.js +1 -1
  225. package/lib/src/business/ap-input-radio/style/index.js +1 -1
  226. package/lib/src/business/ap-label/style/index.d.ts +14 -0
  227. package/lib/src/business/ap-label/style/index.js +1 -1
  228. package/lib/src/business/ap-ladder/style/index.js +1 -1
  229. package/lib/src/business/ap-product-info/style/index.d.ts +10 -0
  230. package/lib/src/business/ap-product-info/style/index.js +1 -1
  231. package/lib/src/business/ap-radio-group/style/index.js +1 -1
  232. package/lib/src/business/ap-select-layout/style/index.d.ts +6 -0
  233. package/lib/src/business/ap-select-layout/style/index.js +1 -1
  234. package/lib/src/business/ap-size-input/style/index.js +1 -1
  235. package/lib/src/business/ap-status/style/index.js +1 -1
  236. package/lib/src/business/ap-summary/style/index.d.ts +10 -0
  237. package/lib/src/business/ap-summary/style/index.js +1 -1
  238. package/lib/src/business/ap-table-modal/style/index.d.ts +11 -1
  239. package/lib/src/business/ap-table-modal/style/index.js +1 -1
  240. package/lib/src/business/ap-tag/style/index.js +1 -1
  241. package/lib/src/business/ap-title/style/index.d.ts +2 -1
  242. package/lib/src/business/ap-title/style/index.js +1 -1
  243. package/lib/src/business/ap-upload/style/index.js +1 -1
  244. package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -2
  245. package/lib/src/business/ap-upload/style/multiple-file.js +1 -1
  246. package/lib/src/business/ap-upload/style/picture.d.ts +3 -2
  247. package/lib/src/business/ap-upload/style/picture.js +1 -1
  248. package/lib/src/business/ap-upload/style/single-file.d.ts +3 -2
  249. package/lib/src/business/ap-upload/style/single-file.js +1 -1
  250. package/lib/src/business/ap-upload/style/token.d.ts +19 -0
  251. package/lib/src/business/ap-upload/style/token.js +1 -0
  252. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +24 -2
  253. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -1
  254. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  255. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  256. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  257. package/lib/src/business/ap-view/style/index.d.ts +6 -2
  258. package/lib/src/business/ap-view/style/index.js +1 -1
  259. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  260. package/lib/src/business/batch-input-group/style/index.js +1 -1
  261. package/lib/src/check-card/style/index.js +1 -1
  262. package/lib/src/design-token/constants.js +1 -1
  263. package/lib/src/design-token/interface.d.ts +137 -12
  264. package/lib/src/editable-table/form-item.vue.js +1 -1
  265. package/lib/src/editable-table/index.vue.js +1 -1
  266. package/lib/src/editable-table/style/index.js +1 -1
  267. package/lib/src/editable-table/utils.d.ts +1 -1
  268. package/lib/src/editable-table/utils.js +1 -1
  269. package/lib/src/hooks/useMessage.js +1 -1
  270. package/lib/src/loading-bar/index.vue2.js +1 -1
  271. package/lib/src/loading-bar/style/index.js +3 -3
  272. package/lib/src/scroll-view/hooks/use-scroll-smooth.js +1 -1
  273. package/lib/src/scroll-view/index.vue.js +1 -1
  274. package/lib/src/splitter/style/index.js +1 -1
  275. package/lib/src/text/index.vue.js +1 -1
  276. package/lib/src/utils/cssinjs/TokenUtil.d.ts +1 -0
  277. package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
  278. package/lib/src/utils/decimal.d.ts +36 -0
  279. package/lib/src/utils/decimal.js +1 -0
  280. package/lib/src/utils/format.d.ts +21 -0
  281. package/lib/src/utils/format.js +1 -0
  282. package/lib/src/utils/index.d.ts +2 -1
  283. package/lib/src/utils/index.js +1 -1
  284. package/lib/src/utils/is.d.ts +54 -0
  285. package/lib/src/utils/is.js +1 -0
  286. package/lib/src/utils/slot.js +1 -1
  287. package/lib/src/version.d.ts +1 -1
  288. package/lib/src/version.js +1 -1
  289. package/package.json +4 -4
  290. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  291. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +0 -18
  292. package/es/src/utils/copy-text-to-clipboard.d.ts +0 -1
  293. package/es/src/utils/tree.d.ts +0 -38
  294. package/es/src/utils/uuid.d.ts +0 -2
  295. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +0 -3
  296. package/lib/src/business/ap-appendix/icons/file-icon.vue.js +0 -1
  297. package/lib/src/utils/copy-text-to-clipboard.d.ts +0 -1
  298. package/lib/src/utils/tree.d.ts +0 -38
  299. package/lib/src/utils/uuid.d.ts +0 -2
@@ -1,5 +1,5 @@
1
- import { genComponentStyleHook as o } from "../../../utils/cssinjs/index.mjs";
2
- const i = (r) => {
1
+ import { genComponentStyleHook as i } from "../../../utils/cssinjs/index.mjs";
2
+ const o = (r) => {
3
3
  const { componentCls: e } = r;
4
4
  return {
5
5
  [e]: {
@@ -23,12 +23,12 @@ const i = (r) => {
23
23
  transition: "all 0.5s ease",
24
24
  overflow: "hidden",
25
25
  boxSizing: "border-box",
26
- border: "1px solid #fff"
26
+ border: `${r.lineWidth} ${r.lineType} #fff`
27
27
  },
28
28
  [`${e}--canDrag`]: {
29
29
  cursor: "pointer",
30
30
  "&:hover": {
31
- border: `1px solid ${r.colorPrimary}`
31
+ border: `${r.lineWidth} ${r.lineType} ${r.colorPrimary}`
32
32
  }
33
33
  },
34
34
  [`${e}--dragging`]: {
@@ -41,12 +41,12 @@ const i = (r) => {
41
41
  zIndex: 999
42
42
  },
43
43
  [`${e}__overlay`]: {
44
- border: `1px solid ${r.colorPrimary}`
44
+ border: `${r.lineWidth} ${r.lineType} ${r.colorPrimary}`
45
45
  }
46
46
  }
47
47
  };
48
- }, d = o("ApDraggableGrid", (r) => [
49
- i(r)
48
+ }, d = i("ApDraggableGrid", (r) => [
49
+ o(r)
50
50
  ]);
51
51
  export {
52
52
  d as default
@@ -1,43 +1,44 @@
1
- import { genComponentStyleHook as a } from "../../../utils/cssinjs/index.mjs";
2
- const r = (e) => {
3
- const { componentCls: t, namespace: n } = e, o = `.${n}-action-item`;
1
+ import { genComponentStyleHook as l } from "../../../utils/cssinjs/index.mjs";
2
+ const i = (n) => {
3
+ const { componentCls: o, namespace: t, spaceXS: r, motionDurationSlow: e } = n, a = `.${t}-action-item`;
4
4
  return {
5
- [t]: {
6
- [o]: {
7
- fontSize: e.fontSize
5
+ [o]: {
6
+ [a]: {
7
+ fontSize: n.fontSize
8
8
  },
9
- [`${t}__expandText`]: {
10
- fontSize: e.fontSize,
11
- marginInline: "4px"
9
+ [`${o}__expandText`]: {
10
+ fontSize: n.fontSize,
11
+ marginInline: r
12
12
  },
13
- [`${t}__expandIcon`]: {
14
- transition: "all 0.3s",
13
+ [`${o}__expandIcon`]: {
14
+ transition: `all ${e}`,
15
15
  transform: "rotateZ(180deg)"
16
16
  },
17
- [`${t}__collapseIcon`]: {
18
- transition: "all 0.3s",
17
+ [`${o}__collapseIcon`]: {
18
+ transition: `all ${e}`,
19
19
  transform: "rotateZ(0deg)"
20
20
  },
21
- [`${t}__prefix`]: {
21
+ [`${o}__prefix`]: {
22
22
  display: "inline-block"
23
23
  },
24
- [`${t}__showItem`]: {
25
- color: "#0070ff",
24
+ [`${o}__showItem`]: {
25
+ color: n.colorLink,
26
26
  cursor: "pointer",
27
27
  whiteSpace: "nowrap",
28
28
  "&:hover": {
29
- color: "#66a9ff"
29
+ color: n.colorLinkHover
30
30
  }
31
31
  },
32
- [`${t}__spliter`]: {
33
- color: "#dee4ed",
34
- padding: "0 8px"
32
+ [`${o}__spliter`]: {
33
+ color: n.borderColorBase,
34
+ paddingInline: n.space,
35
+ paddingBlock: 0
35
36
  },
36
- [`${t}__antAlert.ant-alert`]: {
37
+ [`${o}__antAlert.ant-alert`]: {
37
38
  alignItems: "flex-start",
38
- lineHeight: e.lineHeight,
39
+ lineHeight: n.lineHeight,
39
40
  ".ant-alert-icon": {
40
- fontSize: e.fontSizeLG,
41
+ fontSize: n.fontSizeLG,
41
42
  transform: "translateY(2px)",
42
43
  display: "block"
43
44
  }
@@ -45,12 +46,15 @@ const r = (e) => {
45
46
  ".card-alert": {
46
47
  backgroundColor: "transparent !important",
47
48
  border: "none"
49
+ },
50
+ ".ant-alert-close-icon": {
51
+ lineHeight: "unset"
48
52
  }
49
53
  }
50
54
  };
51
- }, i = a("ApExpandAlert", (e) => [
52
- r(e)
55
+ }, c = l("ApExpandAlert", (n) => [
56
+ i(n)
53
57
  ]);
54
58
  export {
55
- i as default
59
+ c as default
56
60
  };
@@ -1,5 +1,5 @@
1
- import { BaseToken, GenStyleFunc } from '../../../design-token/interface';
1
+ import { GenStyleFunc } from '../../../design-token/interface';
2
2
  import { ComputedRef } from 'vue';
3
- export declare const genApImageStyle: GenStyleFunc<BaseToken>;
3
+ export declare const genApImageStyle: GenStyleFunc;
4
4
  declare const _default: (prefixCls: string) => ComputedRef<string>;
5
5
  export default _default;
@@ -1,19 +1,20 @@
1
- import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
- const n = (e) => {
1
+ import { genComponentStyleHook as n } from "../../../utils/cssinjs/index.mjs";
2
+ const t = (e) => {
3
3
  const { componentCls: o } = e;
4
4
  return {
5
5
  [`${o}-toolbar`]: {
6
6
  display: "flex",
7
7
  alignItems: "center",
8
- padding: "0 24px",
8
+ paddingInline: e.spaceXXL,
9
+ paddingBlock: 0,
9
10
  backgroundColor: "rgba(0, 0, 0, 0.1)",
10
11
  borderRadius: "100px"
11
12
  }
12
13
  };
13
- }, a = t("ApImage", (e) => [
14
- n(e)
14
+ }, l = n("ApImage", (e) => [
15
+ t(e)
15
16
  ]);
16
17
  export {
17
- a as default,
18
- n as genApImageStyle
18
+ l as default,
19
+ t as genApImageStyle
19
20
  };
@@ -4,7 +4,7 @@ const t = (n) => ({
4
4
  display: "flex",
5
5
  alignItems: "center",
6
6
  [`${n.componentCls}__input-number`]: {
7
- marginInlineEnd: "16px"
7
+ marginInlineEnd: n.spaceXL
8
8
  }
9
9
  }
10
10
  }), p = e("ApInputRadio", (n) => [
@@ -1,3 +1,17 @@
1
1
  import { ComputedRef } from 'vue';
2
+ export type ApLabelToken = {
3
+ /**
4
+ * 自定义绿色
5
+ */
6
+ apLabelColorCustomGreen: string;
7
+ /**
8
+ * 自定义红色
9
+ */
10
+ apLabelColorCustomRed: string;
11
+ /**
12
+ * 自定义蓝色
13
+ */
14
+ apLabelColorCustomBlue: string;
15
+ };
2
16
  declare const _default: (prefixCls: string) => ComputedRef<string>;
3
17
  export default _default;
@@ -1,12 +1,17 @@
1
1
  import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
2
- const r = (o) => {
3
- const { componentCls: e } = o;
2
+ const c = (o) => {
3
+ const {
4
+ componentCls: e,
5
+ apLabelColorCustomGreen: l,
6
+ apLabelColorCustomBlue: r,
7
+ apLabelColorCustomRed: a
8
+ } = o;
4
9
  return {
5
10
  [e]: {
6
11
  display: "flex",
7
12
  flexDirection: "column",
8
13
  alignItems: "start",
9
- fontSize: "14px",
14
+ fontSize: o.fontSizeLG,
10
15
  [`${e}__content`]: {
11
16
  display: "flex",
12
17
  flexDirection: "row",
@@ -17,33 +22,38 @@ const r = (o) => {
17
22
  }
18
23
  },
19
24
  [`${e}__custom`]: {
20
- marginBlockStart: "2px",
25
+ marginBlockStart: o.spaceXXS,
21
26
  width: "100%",
22
27
  ".ant-tag": {
23
- height: "24px",
24
- lineHeight: "24px"
28
+ lineHeight: o.lineHeightLG
25
29
  },
26
30
  ".ant-tag-green": {
27
- color: "#34b77c",
28
- borderColor: "#34b77c",
29
- background: "rgba(52, 183, 124, 0.06)"
31
+ color: l,
32
+ borderColor: l,
33
+ background: o.calc(l).colorOpacity(6)
30
34
  },
31
35
  ".ant-tag-red": {
32
- color: "#FF4D4F",
33
- borderColor: "#FF4D4F",
34
- backgroundColor: "rgba(255, 77, 79, 0.06)"
36
+ color: a,
37
+ borderColor: a,
38
+ backgroundColor: o.calc(a).colorOpacity(6)
35
39
  },
36
40
  ".ant-tag-blue": {
37
- color: "#1890ff",
38
- borderColor: "#1890ff",
39
- backgroundColor: "rgba(24, 144, 255, 0.06)"
41
+ color: r,
42
+ borderColor: r,
43
+ backgroundColor: o.calc(r).colorOpacity(6)
40
44
  }
41
45
  }
42
46
  }
43
47
  };
44
- }, l = t("ApLabel", (o) => [
45
- r(o)
46
- ]);
48
+ }, i = t(
49
+ "ApLabel",
50
+ (o) => [c(o)],
51
+ {
52
+ apLabelColorCustomGreen: "#34b77c",
53
+ apLabelColorCustomRed: "#FF4D4F",
54
+ apLabelColorCustomBlue: "#1890ff"
55
+ }
56
+ );
47
57
  export {
48
- l as default
58
+ i as default
49
59
  };
@@ -1,5 +1,5 @@
1
- import { genComponentStyleHook as o } from "../../../utils/cssinjs/index.mjs";
2
- const i = (l) => {
1
+ import { genComponentStyleHook as i } from "../../../utils/cssinjs/index.mjs";
2
+ const o = (l) => {
3
3
  const { componentCls: e } = l;
4
4
  return {
5
5
  [e]: {
@@ -26,7 +26,8 @@ const i = (l) => {
26
26
  },
27
27
  [`${e}__value-group-label-semicolon`]: {
28
28
  display: "inline-block",
29
- padding: "0 3px"
29
+ paddingInlineStart: l.spaceXXS,
30
+ paddingInlineEnd: l.spaceXS
30
31
  },
31
32
  [`${e}__value-group-value`]: {
32
33
  color: l.textColor1,
@@ -102,7 +103,7 @@ const i = (l) => {
102
103
  [`${e}__help-message`]: {
103
104
  display: "flex",
104
105
  alignItems: "center",
105
- marginInlineStart: "4px"
106
+ marginInlineStart: l.spaceXS
106
107
  },
107
108
  [`${e}__major`]: {
108
109
  lineHeight: l.lineHeight,
@@ -131,8 +132,8 @@ const i = (l) => {
131
132
  }
132
133
  }
133
134
  };
134
- }, t = o("ApLadder", (l) => [
135
- i(l)
135
+ }, t = i("ApLadder", (l) => [
136
+ o(l)
136
137
  ]);
137
138
  export {
138
139
  t as default
@@ -1,3 +1,13 @@
1
1
  import { ComputedRef } from 'vue';
2
+ export type ApProductInfoToken = {
3
+ /**
4
+ * 商品信息卡片图片尺寸
5
+ */
6
+ apProductInfoImageSize: number;
7
+ /**
8
+ * 商品信息卡最大宽度
9
+ */
10
+ apProductInfoMaxWidth: number;
11
+ };
2
12
  declare const _default: (prefixCls: string) => ComputedRef<string>;
3
13
  export default _default;
@@ -1,75 +1,82 @@
1
- import { genComponentStyleHook as o } from "../../../utils/cssinjs/index.mjs";
2
- const l = (i) => {
3
- const { componentCls: e } = i;
1
+ import { genComponentStyleHook as e } from "../../../utils/cssinjs/index.mjs";
2
+ const o = (i) => {
3
+ const { componentCls: l } = i;
4
4
  return {
5
- [e]: {
5
+ [l]: {
6
6
  display: "flex",
7
- [`${e}__img`]: {
8
- width: "44px",
9
- height: "44px",
10
- marginInlineEnd: "8px",
7
+ [`${l}__img`]: {
8
+ width: i.apProductInfoImageSize,
9
+ height: i.apProductInfoImageSize,
10
+ marginInlineEnd: i.space,
11
11
  flexShrink: 0
12
12
  },
13
- [`${e}__content`]: {
13
+ [`${l}__content`]: {
14
14
  flex: 1,
15
15
  display: "flex",
16
16
  flexDirection: "column",
17
17
  overflow: "hidden"
18
18
  },
19
- [`${e}__row-container `]: {
19
+ [`${l}__row-container `]: {
20
20
  display: "flex",
21
21
  flexWrap: "wrap"
22
22
  },
23
- [`${e}__row-item`]: {
23
+ [`${l}__row-item`]: {
24
24
  position: "relative",
25
25
  display: "flex"
26
26
  },
27
- [`${e}__divider`]: {
28
- width: "1px",
27
+ [`${l}__divider`]: {
28
+ width: i.lineWidth,
29
29
  position: "relative",
30
30
  height: "12px",
31
31
  top: "50%",
32
- margin: "-6px 16px 0px 0px",
32
+ marginBlockStart: i.calc(i.spaceSM).mul(-1).equal(),
33
+ marginInlineEnd: i.spaceXL,
33
34
  zIndex: 1
34
35
  },
35
- [`${e}__divider-vertical`]: {
36
- width: "1px",
36
+ [`${l}__divider-vertical`]: {
37
+ width: i.lineWidth,
37
38
  height: "100%",
38
- backgroundColor: "#E9EDF3",
39
+ backgroundColor: i.colorBg1,
39
40
  position: "absolute",
40
41
  transform: "translateX(-50%)"
41
42
  },
42
- [`${e}__item`]: {
43
+ [`${l}__item`]: {
43
44
  display: "flex",
44
45
  alignItems: "baseline"
45
46
  },
46
- [`${e}--full`]: {
47
+ [`${l}--full`]: {
47
48
  width: "100%"
48
49
  },
49
- [`${e}__label`]: {
50
+ [`${l}__label`]: {
50
51
  color: i.textColor3,
51
52
  flexShrink: 0,
52
53
  span: {
53
54
  display: "inline-block",
54
- padding: "0 2px"
55
+ paddingInline: i.spaceXXS,
56
+ paddingBlock: 0
55
57
  }
56
58
  },
57
- [`${e}__value`]: {
58
- maxWidth: "300px",
59
+ [`${l}__value`]: {
60
+ maxWidth: i.apProductInfoMaxWidth,
59
61
  color: i.textColor3,
60
62
  overflow: "hidden",
61
63
  textOverflow: "ellipsis",
62
64
  whiteSpace: "nowrap"
63
65
  },
64
- [`${e}--link`]: {
66
+ [`${l}--link`]: {
65
67
  color: i.colorLink,
66
68
  cursor: "pointer"
67
69
  }
68
70
  }
69
71
  };
70
- }, n = o("ApProductInfo", (i) => [
71
- l(i)
72
- ]);
72
+ }, r = e(
73
+ "ApProductInfo",
74
+ (i) => [o(i)],
75
+ {
76
+ apProductInfoImageSize: 44,
77
+ apProductInfoMaxWidth: 300
78
+ }
79
+ );
73
80
  export {
74
- n as default
81
+ r as default
75
82
  };
@@ -11,7 +11,7 @@ const i = (o) => {
11
11
  paddingInline: o.spaceLG,
12
12
  borderRadius: o.borderRadius,
13
13
  color: o.textColor2,
14
- transition: "all 0.3s ease-in-out",
14
+ transition: `all ${o.motionDurationSlow} ease-in-out`,
15
15
  willChange: "background-color",
16
16
  "&:hover": {
17
17
  backgroundColor: o.colorBg2
@@ -23,7 +23,7 @@ const i = (o) => {
23
23
  }
24
24
  }
25
25
  };
26
- }, l = a(
26
+ }, e = a(
27
27
  "ApRadioGroup",
28
28
  (o) => [i(o)],
29
29
  {
@@ -31,5 +31,5 @@ const i = (o) => {
31
31
  }
32
32
  );
33
33
  export {
34
- l as default
34
+ e as default
35
35
  };
@@ -1,3 +1,9 @@
1
1
  import { ComputedRef } from 'vue';
2
+ export type ApSelectLayoutToken = {
3
+ /**
4
+ * 选择布局左侧宽度
5
+ */
6
+ apSelectLayoutSideWidth: number;
7
+ };
2
8
  declare const _default: (prefixCls: string) => ComputedRef<string>;
3
9
  export default _default;
@@ -1,48 +1,44 @@
1
- import { genComponentStyleHook as o } from "../../../utils/cssinjs/index.mjs";
2
- const t = (e) => {
3
- const { componentCls: i } = e;
1
+ import { genComponentStyleHook as r } from "../../../utils/cssinjs/index.mjs";
2
+ const a = (i) => {
3
+ const { componentCls: e, apSelectLayoutSideWidth: l } = i;
4
4
  return {
5
- [i]: {
5
+ [e]: {
6
6
  display: "flex",
7
7
  width: "100%",
8
8
  height: "100%",
9
- [`${i}-side`]: {
9
+ [`${e}-side`]: {
10
10
  display: "flex",
11
11
  flexDirection: "column",
12
- width: "214px",
13
- minWidth: "214px",
14
- maxWidth: "214px",
15
- marginInlineEnd: "16px",
12
+ width: l,
13
+ minWidth: l,
14
+ maxWidth: l,
15
+ marginInlineEnd: i.spaceXL,
16
16
  overflow: "hidden",
17
17
  backgroundColor: "#fff",
18
18
  "&__header": {
19
19
  display: "flex",
20
20
  alignItems: "center",
21
21
  justifyContent: "space-between",
22
- padding: "12px 16px",
23
- borderBottom: "1px solid #e9e9e9",
22
+ paddingInline: i.spaceXL,
23
+ paddingBlock: i.spaceLG,
24
+ borderBottom: `${i.lineWidth} ${i.lineType} ${i.borderColorBase}`,
24
25
  overflow: "hidden",
25
26
  whiteSpace: "nowrap",
26
27
  "& > h3": {
27
28
  margin: 0,
28
- color: "#333",
29
- fontSize: e.fontSize,
29
+ color: i.textColor1,
30
+ fontSize: i.fontSize,
30
31
  fontWeight: "bold",
31
- lineHeight: e.lineHeightLG
32
+ lineHeight: i.lineHeightLG
32
33
  },
33
34
  "&--imgWrap": {
34
- borderRadius: "2px",
35
+ borderRadius: i.borderRadiusSM,
35
36
  cursor: "pointer",
36
- fontSize: "20px",
37
- color: "#999",
37
+ fontSize: i.fontSizeXXL,
38
+ color: i.textColor3,
38
39
  display: "flex",
39
- height: "20px",
40
40
  "&:hover": {
41
- background: "#f5f5f5"
42
- },
43
- "& > img": {
44
- width: "24px",
45
- height: "24px"
41
+ background: i.colorBg3
46
42
  }
47
43
  }
48
44
  },
@@ -50,42 +46,48 @@ const t = (e) => {
50
46
  position: "relative",
51
47
  flex: 1,
52
48
  "&--search": {
53
- margin: "10px 0",
54
- padding: "0 16px"
49
+ marginBlock: i.spaceMD,
50
+ paddingInline: i.spaceXL
55
51
  },
56
52
  "&--scroll": {
57
53
  position: "absolute",
58
- inset: "52px 0 0",
54
+ insetBlockStart: i.calc(i.controlHeight).add(i.calc(i.spaceMD).mul(2)).add(i.calc(i.lineWidth).mul(2)).equal(),
55
+ insetBlockEnd: 0,
56
+ insetInlineStart: 0,
57
+ insetInlineEnd: 0,
59
58
  overflowY: "auto",
60
- padding: "0 16px"
59
+ paddingInline: i.spaceXL
61
60
  },
62
61
  "&--scroll-item": {
63
- marginBottom: "8px",
64
- padding: "8px 12px",
62
+ marginBottom: i.space,
63
+ paddingInline: i.spaceLG,
64
+ paddingBlock: i.space,
65
65
  overflow: "hidden",
66
- color: "#333",
67
- lineHeight: "22px",
68
- width: "calc(214px - 32px)",
66
+ color: i.textColor1,
67
+ lineHeight: i.lineHeightLG,
68
+ width: i.calc(i.apSelectLayoutSideWidth).sub(
69
+ i.calc(i.controlHeight).add(i.calc(i.lineWidth).mul(2))
70
+ ).equal(),
69
71
  textOverflow: "ellipsis",
70
72
  textWrap: "nowrap",
71
73
  cursor: "pointer",
72
- borderRadius: "4px",
74
+ borderRadius: i.borderRadius,
73
75
  "&:hover": {
74
- background: "#f5f5f5"
76
+ background: i.colorBg3
75
77
  },
76
78
  "&.active": {
77
- backgroundColor: "#e4faf1",
78
- color: "#34b77c",
79
+ backgroundColor: i.calc(i.colorPrimary).colorOpacity(10),
80
+ color: i.colorPrimary,
79
81
  fontWeight: "bold",
80
82
  "& > .ant-typography": {
81
- color: "#34b77c"
83
+ color: i.colorPrimary
82
84
  }
83
85
  }
84
86
  }
85
87
  }
86
88
  },
87
89
  ".v-enter-active, .v-leave-active": {
88
- transition: "all 0.2s, background 0s"
90
+ transition: `all ${i.motionDurationMid}, background 0s`
89
91
  },
90
92
  ".v-enter-from, .v-leave-to": {
91
93
  width: 0,
@@ -93,7 +95,7 @@ const t = (e) => {
93
95
  maxWidth: 0,
94
96
  marginInlineEnd: 0
95
97
  },
96
- [`${i}-content`]: {
98
+ [`${e}-content`]: {
97
99
  flex: 1,
98
100
  overflowX: "hidden",
99
101
  display: "flex",
@@ -101,35 +103,39 @@ const t = (e) => {
101
103
  "&__header": {
102
104
  display: "flex",
103
105
  alignItems: "center",
104
- height: "32px",
105
- padding: "16px 16px 0",
106
+ height: i.controlHeight,
107
+ paddingBlockStart: i.spaceXL,
108
+ paddingInlineStart: i.spaceXL,
106
109
  boxSizing: "content-box",
107
110
  background: "#fff",
108
111
  "&--imgWrap": {
109
- marginRight: "10px",
110
- borderRadius: "2px",
112
+ marginInlineEnd: i.spaceMD,
113
+ borderRadius: i.borderRadiusSM,
111
114
  cursor: "pointer",
112
- fontSize: "20px",
115
+ fontSize: i.fontSizeXXL,
113
116
  display: "flex",
114
- height: "20px",
115
- color: "#999",
117
+ color: i.textColor3,
116
118
  "&:hover": {
117
- background: "#f5f5f5"
119
+ background: i.colorBg3
118
120
  }
119
121
  },
120
122
  "&--title": {
121
123
  margin: 0,
122
- fontSize: e.fontSizeLG,
124
+ fontSize: i.fontSizeLG,
123
125
  fontWeight: "bold",
124
- lineHeight: e.lineHeightLG
126
+ lineHeight: i.lineHeightLG
125
127
  }
126
128
  }
127
129
  }
128
130
  }
129
131
  };
130
- }, r = o("ApSelectLayout", (e) => [
131
- t(e)
132
- ]);
132
+ }, d = r(
133
+ "ApSelectLayout",
134
+ (i) => [a(i)],
135
+ {
136
+ apSelectLayoutSideWidth: 214
137
+ }
138
+ );
133
139
  export {
134
- r as default
140
+ d as default
135
141
  };