@aplus-frontend/ui 0.1.8 → 0.1.10

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 (359) hide show
  1. package/es/index.mjs +57 -56
  2. package/es/src/ap-action/group/index.vue.d.ts +30 -3
  3. package/es/src/ap-action/item/index.vue.d.ts +30 -3
  4. package/es/src/ap-action/item-dropdown/index.vue.d.ts +39 -10
  5. package/es/src/ap-action/item-modal/index.vue.d.ts +33 -6
  6. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +33 -7
  7. package/es/src/ap-custom-column/column-select.vue.d.ts +14 -5
  8. package/es/src/ap-custom-column/column-select.vue.mjs +32 -32
  9. package/es/src/ap-custom-column/custom-column.vue.d.ts +14 -5
  10. package/es/src/ap-custom-column/custom-column.vue.mjs +46 -46
  11. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +11 -2
  12. package/es/src/ap-descriptions/help-message/index.vue.d.ts +13 -4
  13. package/es/src/ap-download/ap-download.vue.d.ts +28 -3
  14. package/es/src/ap-field/checkbox/index.vue.d.ts +31 -40
  15. package/es/src/ap-field/date/index.vue.d.ts +64 -19
  16. package/es/src/ap-field/date-range/index.vue.d.ts +66 -20
  17. package/es/src/ap-field/interface.d.ts +4 -0
  18. package/es/src/ap-field/number/index.vue.d.ts +42 -138
  19. package/es/src/ap-field/radio/index.vue.d.ts +31 -51
  20. package/es/src/ap-field/rate/index.vue.d.ts +39 -46
  21. package/es/src/ap-field/segmented/index.vue.d.ts +32 -47
  22. package/es/src/ap-field/select/index.vue.d.ts +65 -192
  23. package/es/src/ap-field/select/index.vue.mjs +36 -31
  24. package/es/src/ap-field/slider/index.vue.d.ts +40 -115
  25. package/es/src/ap-field/switch/index.vue.d.ts +35 -60
  26. package/es/src/ap-field/text/index.vue.d.ts +38 -105
  27. package/es/src/ap-field/text/password.vue.d.ts +45 -113
  28. package/es/src/ap-field/text-area/index.vue.d.ts +38 -117
  29. package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +32 -50
  30. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +25 -30
  31. package/es/src/ap-form/ap-form-item.vue.d.ts +38 -128
  32. package/es/src/ap-form/ap-form-item.vue.mjs +52 -42
  33. package/es/src/ap-form/ap-form-list.vue.d.ts +11 -2
  34. package/es/src/ap-form/ap-form.vue.d.ts +36 -238
  35. package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
  36. package/es/src/ap-form/items/checkbox/index.vue.d.ts +37 -7
  37. package/es/src/ap-form/items/date/index.vue.d.ts +37 -131
  38. package/es/src/ap-form/items/date-range/index.vue.d.ts +37 -131
  39. package/es/src/ap-form/items/number/index.vue.d.ts +38 -132
  40. package/es/src/ap-form/items/radio/index.vue.d.ts +38 -8
  41. package/es/src/ap-form/items/select/index.vue.d.ts +38 -132
  42. package/es/src/ap-form/items/switch/index.vue.d.ts +39 -7
  43. package/es/src/ap-form/items/text/index.vue.d.ts +38 -132
  44. package/es/src/ap-form/items/text/password.vue.d.ts +38 -132
  45. package/es/src/ap-form/items/text-area/index.vue.d.ts +38 -9
  46. package/es/src/ap-form/modal-form/index.vue.d.ts +52 -17
  47. package/es/src/ap-form/search-form/index.vue.d.ts +50 -254
  48. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +30 -3
  49. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs +33 -23
  50. package/es/src/ap-list/index.vue.d.ts +3 -3
  51. package/es/src/ap-table/ap-table.vue.d.ts +2 -2
  52. package/es/src/ap-table/ap-table.vue.mjs +158 -147
  53. package/es/src/ap-table/components/index/index.vue.d.ts +24 -3
  54. package/es/src/ap-table/components/status/index.vue.d.ts +11 -2
  55. package/es/src/ap-table/constants.d.ts +12396 -4527
  56. package/es/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
  57. package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -10
  58. package/es/src/ap-table/hooks/use-table-paging.mjs +63 -63
  59. package/es/src/ap-table/interface.d.ts +13 -1
  60. package/es/src/ap-tag/ap-tag-group.vue.d.ts +28 -3
  61. package/es/src/ap-tag/ap-tag-group.vue.mjs +88 -88
  62. package/es/src/ap-tag/ap-tag.vue.d.ts +28 -3
  63. package/es/src/ap-upload/apUpload.vue.d.ts +48 -23
  64. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
  65. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -2
  66. package/es/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
  67. package/es/src/base-button/button.vue.d.ts +24 -3
  68. package/es/src/base-button/index.d.ts +110 -7
  69. package/es/src/base-button/modal-button.vue.d.ts +14 -8
  70. package/es/src/base-button/pop-confirm-button.vue.d.ts +10 -7
  71. package/es/src/basic/arrow.vue.d.ts +11 -2
  72. package/es/src/basic/help.vue.d.ts +50 -324
  73. package/es/src/basic/index.d.ts +202 -667
  74. package/es/src/basic/title.vue.d.ts +24 -3
  75. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +11 -2
  76. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +11 -2
  77. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +53 -48
  78. package/es/src/business/ap-export-group/interface.d.ts +4 -0
  79. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +31 -34
  80. package/es/src/business/ap-label/ApLabel.vue.d.ts +40 -45
  81. package/es/src/business/ap-label/ApLabel.vue2.mjs +54 -39
  82. package/es/src/business/ap-label/ApLabelGroup.d.ts +43 -0
  83. package/es/src/business/ap-label/ApLabelGroup.mjs +30 -0
  84. package/es/src/business/ap-label/constans.d.ts +20 -0
  85. package/es/src/business/ap-label/constans.mjs +21 -0
  86. package/es/src/business/ap-label/interface.d.ts +21 -2
  87. package/es/src/business/ap-label/style.css +26 -1
  88. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
  89. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +23 -23
  90. package/es/src/business/ap-status/ApStatus.vue.d.ts +28 -3
  91. package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +30 -3
  92. package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +73 -6
  93. package/es/src/business/index.d.ts +995 -201
  94. package/es/src/business/index.mjs +21 -19
  95. package/es/src/business/title/ApTitle.vue.d.ts +32 -3
  96. package/es/src/button/button.vue.d.ts +11 -2
  97. package/es/src/button/index.d.ts +32 -16
  98. package/es/src/check-card/group.vue.d.ts +41 -17
  99. package/es/src/check-card/index.vue.d.ts +35 -20
  100. package/es/src/config-provider/config-provider.d.ts +137 -41
  101. package/es/src/config-provider/index.d.ts +545 -161
  102. package/es/src/container/collapse/header.vue.d.ts +13 -11
  103. package/es/src/container/collapse/index.vue.d.ts +40 -11
  104. package/es/src/container/index.d.ts +119 -40
  105. package/es/src/container/scroll-container.vue.d.ts +12 -3
  106. package/es/src/count-down/button.vue.d.ts +24 -3
  107. package/es/src/count-down/index.d.ts +111 -12
  108. package/es/src/count-down/input.vue.d.ts +24 -3
  109. package/es/src/cropper/cropper-avatar.vue.d.ts +33 -6
  110. package/es/src/cropper/cropper-image.vue.d.ts +36 -5
  111. package/es/src/cropper/cropper-modal.vue.d.ts +21 -13
  112. package/es/src/cropper/index.d.ts +269 -24
  113. package/es/src/description/description.vue.d.ts +45 -15
  114. package/es/src/description/index.d.ts +171 -51
  115. package/es/src/dropdown/dropdown.vue.d.ts +30 -5
  116. package/es/src/dropdown/index.d.ts +76 -12
  117. package/es/src/editable-table/form-item.vue.d.ts +4 -4
  118. package/es/src/editable-table/index.vue.d.ts +4 -4
  119. package/es/src/hooks/useControllableValue.d.ts +1 -1
  120. package/es/src/icon/icon.vue.d.ts +29 -3
  121. package/es/src/icon/index.d.ts +159 -12
  122. package/es/src/icon/svg-icon.vue.d.ts +28 -3
  123. package/es/src/icon-picker/icon-picker.vue.d.ts +38 -5
  124. package/es/src/icon-picker/index.d.ts +139 -12
  125. package/es/src/index.mjs +184 -183
  126. package/es/src/modal/basic.vue.d.ts +117 -147
  127. package/es/src/modal/components/modal-close.vue.d.ts +26 -5
  128. package/es/src/modal/components/modal-footer.vue.d.ts +116 -146
  129. package/es/src/modal/components/modal-header.vue.d.ts +11 -2
  130. package/es/src/modal/components/modal-wrapper.vue.d.ts +43 -19
  131. package/es/src/modal/components/modal.d.ts +115 -145
  132. package/es/src/modal/hooks/use-moda-full-screen.d.ts +1 -1
  133. package/es/src/modal/index.d.ts +462 -287
  134. package/es/src/pro-form/components/api-cascader.vue.d.ts +38 -5
  135. package/es/src/pro-form/components/api-radio-group.vue.d.ts +36 -5
  136. package/es/src/pro-form/components/api-select.vue.d.ts +38 -5
  137. package/es/src/pro-form/components/api-transfer.vue.d.ts +40 -5
  138. package/es/src/pro-form/components/api-tree-select.vue.d.ts +36 -5
  139. package/es/src/pro-form/components/api-tree.vue.d.ts +28 -5
  140. package/es/src/pro-form/components/form-action.vue.d.ts +38 -5
  141. package/es/src/pro-form/components/form-item.vue.d.ts +34 -14
  142. package/es/src/pro-form/components/radio-button-group.vue.d.ts +24 -3
  143. package/es/src/pro-form/hooks/use-break-point.d.ts +1 -1
  144. package/es/src/pro-form/pro-form.vue.d.ts +57 -6
  145. package/es/src/pro-form/table-form-inner.vue.d.ts +34 -5
  146. package/es/src/pro-form/table-form.vue.d.ts +29 -4
  147. package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +9 -6
  148. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +26 -96
  149. package/es/src/pro-table/components/header-cell.vue.d.ts +9 -726
  150. package/es/src/pro-table/components/settings/column-setting.vue.d.ts +3 -3
  151. package/es/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -2
  152. package/es/src/pro-table/components/settings/index.vue.d.ts +11 -8
  153. package/es/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -2
  154. package/es/src/pro-table/components/settings/size-setting.vue.d.ts +2 -2
  155. package/es/src/pro-table/components/table-action.vue.d.ts +24 -10
  156. package/es/src/pro-table/components/table-footer.vue.d.ts +30 -5
  157. package/es/src/pro-table/components/table-header.vue.d.ts +31 -15
  158. package/es/src/pro-table/components/table-image.vue.d.ts +32 -3
  159. package/es/src/pro-table/components/table-selection-bar.vue.d.ts +26 -5
  160. package/es/src/pro-table/components/table-title.vue.d.ts +13 -7
  161. package/es/src/pro-table/pro-table.vue.d.ts +61 -8
  162. package/es/src/prompt/dialog.vue.d.ts +11 -2
  163. package/es/src/scroll-bar/bar-item.d.ts +9 -10
  164. package/es/src/scroll-bar/index.d.ts +135 -12
  165. package/es/src/scroll-bar/scroll-bar.vue.d.ts +36 -5
  166. package/es/src/strength-meter/index.d.ts +55 -12
  167. package/es/src/strength-meter/strength-meter.vue.d.ts +26 -5
  168. package/es/src/tests/wrapper.d.ts +6 -3
  169. package/es/src/theme/antd-global-overwrite/admin/button.css +3 -0
  170. package/es/src/theme/antd-global-overwrite/admin/index.css +3 -0
  171. package/es/src/theme/antd-global-overwrite/aplus/button.css +3 -0
  172. package/es/src/theme/antd-global-overwrite/aplus/index.css +3 -0
  173. package/es/src/theme/ap-label/ap-label.css +26 -1
  174. package/es/src/transition/collapse-transition.vue.d.ts +2 -2
  175. package/es/src/transition/create-transition.d.ts +25 -13
  176. package/es/src/transition/index.d.ts +193 -88
  177. package/es/src/work-order-modal/help-message.vue.d.ts +2 -2
  178. package/es/src/work-order-modal/help-message.vue2.mjs +19 -19
  179. package/es/src/work-order-modal/work-order-modal.vue.d.ts +15 -6
  180. package/lib/index.js +1 -1
  181. package/lib/src/ap-action/group/index.vue.d.ts +30 -3
  182. package/lib/src/ap-action/item/index.vue.d.ts +30 -3
  183. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +39 -10
  184. package/lib/src/ap-action/item-modal/index.vue.d.ts +33 -6
  185. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +33 -7
  186. package/lib/src/ap-custom-column/column-select.vue.d.ts +14 -5
  187. package/lib/src/ap-custom-column/column-select.vue.js +1 -1
  188. package/lib/src/ap-custom-column/custom-column.vue.d.ts +14 -5
  189. package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
  190. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +11 -2
  191. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +13 -4
  192. package/lib/src/ap-download/ap-download.vue.d.ts +28 -3
  193. package/lib/src/ap-field/checkbox/index.vue.d.ts +31 -40
  194. package/lib/src/ap-field/date/index.vue.d.ts +64 -19
  195. package/lib/src/ap-field/date-range/index.vue.d.ts +66 -20
  196. package/lib/src/ap-field/interface.d.ts +4 -0
  197. package/lib/src/ap-field/number/index.vue.d.ts +42 -138
  198. package/lib/src/ap-field/radio/index.vue.d.ts +31 -51
  199. package/lib/src/ap-field/rate/index.vue.d.ts +39 -46
  200. package/lib/src/ap-field/segmented/index.vue.d.ts +32 -47
  201. package/lib/src/ap-field/select/index.vue.d.ts +65 -192
  202. package/lib/src/ap-field/select/index.vue.js +1 -1
  203. package/lib/src/ap-field/slider/index.vue.d.ts +40 -115
  204. package/lib/src/ap-field/switch/index.vue.d.ts +35 -60
  205. package/lib/src/ap-field/text/index.vue.d.ts +38 -105
  206. package/lib/src/ap-field/text/password.vue.d.ts +45 -113
  207. package/lib/src/ap-field/text-area/index.vue.d.ts +38 -117
  208. package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +32 -50
  209. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  210. package/lib/src/ap-form/ap-form-item.vue.d.ts +38 -128
  211. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  212. package/lib/src/ap-form/ap-form-list.vue.d.ts +11 -2
  213. package/lib/src/ap-form/ap-form.vue.d.ts +36 -238
  214. package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
  215. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +37 -7
  216. package/lib/src/ap-form/items/date/index.vue.d.ts +37 -131
  217. package/lib/src/ap-form/items/date-range/index.vue.d.ts +37 -131
  218. package/lib/src/ap-form/items/number/index.vue.d.ts +38 -132
  219. package/lib/src/ap-form/items/radio/index.vue.d.ts +38 -8
  220. package/lib/src/ap-form/items/select/index.vue.d.ts +38 -132
  221. package/lib/src/ap-form/items/switch/index.vue.d.ts +39 -7
  222. package/lib/src/ap-form/items/text/index.vue.d.ts +38 -132
  223. package/lib/src/ap-form/items/text/password.vue.d.ts +38 -132
  224. package/lib/src/ap-form/items/text-area/index.vue.d.ts +38 -9
  225. package/lib/src/ap-form/modal-form/index.vue.d.ts +52 -17
  226. package/lib/src/ap-form/search-form/index.vue.d.ts +50 -254
  227. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +30 -3
  228. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.js +1 -1
  229. package/lib/src/ap-list/index.vue.d.ts +3 -3
  230. package/lib/src/ap-table/ap-table.vue.d.ts +2 -2
  231. package/lib/src/ap-table/ap-table.vue.js +1 -1
  232. package/lib/src/ap-table/components/index/index.vue.d.ts +24 -3
  233. package/lib/src/ap-table/components/status/index.vue.d.ts +11 -2
  234. package/lib/src/ap-table/constants.d.ts +12396 -4527
  235. package/lib/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
  236. package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -10
  237. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  238. package/lib/src/ap-table/interface.d.ts +13 -1
  239. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +28 -3
  240. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  241. package/lib/src/ap-tag/ap-tag.vue.d.ts +28 -3
  242. package/lib/src/ap-upload/apUpload.vue.d.ts +48 -23
  243. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
  244. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -2
  245. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
  246. package/lib/src/base-button/button.vue.d.ts +24 -3
  247. package/lib/src/base-button/index.d.ts +110 -7
  248. package/lib/src/base-button/modal-button.vue.d.ts +14 -8
  249. package/lib/src/base-button/pop-confirm-button.vue.d.ts +10 -7
  250. package/lib/src/basic/arrow.vue.d.ts +11 -2
  251. package/lib/src/basic/help.vue.d.ts +50 -324
  252. package/lib/src/basic/index.d.ts +202 -667
  253. package/lib/src/basic/title.vue.d.ts +24 -3
  254. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +11 -2
  255. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +11 -2
  256. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  257. package/lib/src/business/ap-export-group/interface.d.ts +4 -0
  258. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +31 -34
  259. package/lib/src/business/ap-label/ApLabel.vue.d.ts +40 -45
  260. package/lib/src/business/ap-label/ApLabel.vue2.js +1 -1
  261. package/lib/src/business/ap-label/ApLabelGroup.d.ts +43 -0
  262. package/lib/src/business/ap-label/ApLabelGroup.js +1 -0
  263. package/lib/src/business/ap-label/constans.d.ts +20 -0
  264. package/lib/src/business/ap-label/constans.js +1 -0
  265. package/lib/src/business/ap-label/interface.d.ts +21 -2
  266. package/lib/src/business/ap-label/style.css +26 -1
  267. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
  268. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  269. package/lib/src/business/ap-status/ApStatus.vue.d.ts +28 -3
  270. package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +30 -3
  271. package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +73 -6
  272. package/lib/src/business/index.d.ts +995 -201
  273. package/lib/src/business/index.js +1 -1
  274. package/lib/src/business/title/ApTitle.vue.d.ts +32 -3
  275. package/lib/src/button/button.vue.d.ts +11 -2
  276. package/lib/src/button/index.d.ts +32 -16
  277. package/lib/src/check-card/group.vue.d.ts +41 -17
  278. package/lib/src/check-card/index.vue.d.ts +35 -20
  279. package/lib/src/config-provider/config-provider.d.ts +137 -41
  280. package/lib/src/config-provider/index.d.ts +545 -161
  281. package/lib/src/container/collapse/header.vue.d.ts +13 -11
  282. package/lib/src/container/collapse/index.vue.d.ts +40 -11
  283. package/lib/src/container/index.d.ts +119 -40
  284. package/lib/src/container/scroll-container.vue.d.ts +12 -3
  285. package/lib/src/count-down/button.vue.d.ts +24 -3
  286. package/lib/src/count-down/index.d.ts +111 -12
  287. package/lib/src/count-down/input.vue.d.ts +24 -3
  288. package/lib/src/cropper/cropper-avatar.vue.d.ts +33 -6
  289. package/lib/src/cropper/cropper-image.vue.d.ts +36 -5
  290. package/lib/src/cropper/cropper-modal.vue.d.ts +21 -13
  291. package/lib/src/cropper/index.d.ts +269 -24
  292. package/lib/src/description/description.vue.d.ts +45 -15
  293. package/lib/src/description/index.d.ts +171 -51
  294. package/lib/src/dropdown/dropdown.vue.d.ts +30 -5
  295. package/lib/src/dropdown/index.d.ts +76 -12
  296. package/lib/src/editable-table/form-item.vue.d.ts +4 -4
  297. package/lib/src/editable-table/index.vue.d.ts +4 -4
  298. package/lib/src/hooks/useControllableValue.d.ts +1 -1
  299. package/lib/src/icon/icon.vue.d.ts +29 -3
  300. package/lib/src/icon/index.d.ts +159 -12
  301. package/lib/src/icon/svg-icon.vue.d.ts +28 -3
  302. package/lib/src/icon-picker/icon-picker.vue.d.ts +38 -5
  303. package/lib/src/icon-picker/index.d.ts +139 -12
  304. package/lib/src/index.js +1 -1
  305. package/lib/src/modal/basic.vue.d.ts +117 -147
  306. package/lib/src/modal/components/modal-close.vue.d.ts +26 -5
  307. package/lib/src/modal/components/modal-footer.vue.d.ts +116 -146
  308. package/lib/src/modal/components/modal-header.vue.d.ts +11 -2
  309. package/lib/src/modal/components/modal-wrapper.vue.d.ts +43 -19
  310. package/lib/src/modal/components/modal.d.ts +115 -145
  311. package/lib/src/modal/hooks/use-moda-full-screen.d.ts +1 -1
  312. package/lib/src/modal/index.d.ts +462 -287
  313. package/lib/src/pro-form/components/api-cascader.vue.d.ts +38 -5
  314. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +36 -5
  315. package/lib/src/pro-form/components/api-select.vue.d.ts +38 -5
  316. package/lib/src/pro-form/components/api-transfer.vue.d.ts +40 -5
  317. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +36 -5
  318. package/lib/src/pro-form/components/api-tree.vue.d.ts +28 -5
  319. package/lib/src/pro-form/components/form-action.vue.d.ts +38 -5
  320. package/lib/src/pro-form/components/form-item.vue.d.ts +34 -14
  321. package/lib/src/pro-form/components/radio-button-group.vue.d.ts +24 -3
  322. package/lib/src/pro-form/hooks/use-break-point.d.ts +1 -1
  323. package/lib/src/pro-form/pro-form.vue.d.ts +57 -6
  324. package/lib/src/pro-form/table-form-inner.vue.d.ts +34 -5
  325. package/lib/src/pro-form/table-form.vue.d.ts +29 -4
  326. package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +9 -6
  327. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +26 -96
  328. package/lib/src/pro-table/components/header-cell.vue.d.ts +9 -726
  329. package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +3 -3
  330. package/lib/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -2
  331. package/lib/src/pro-table/components/settings/index.vue.d.ts +11 -8
  332. package/lib/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -2
  333. package/lib/src/pro-table/components/settings/size-setting.vue.d.ts +2 -2
  334. package/lib/src/pro-table/components/table-action.vue.d.ts +24 -10
  335. package/lib/src/pro-table/components/table-footer.vue.d.ts +30 -5
  336. package/lib/src/pro-table/components/table-header.vue.d.ts +31 -15
  337. package/lib/src/pro-table/components/table-image.vue.d.ts +32 -3
  338. package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +26 -5
  339. package/lib/src/pro-table/components/table-title.vue.d.ts +13 -7
  340. package/lib/src/pro-table/pro-table.vue.d.ts +61 -8
  341. package/lib/src/prompt/dialog.vue.d.ts +11 -2
  342. package/lib/src/scroll-bar/bar-item.d.ts +9 -10
  343. package/lib/src/scroll-bar/index.d.ts +135 -12
  344. package/lib/src/scroll-bar/scroll-bar.vue.d.ts +36 -5
  345. package/lib/src/strength-meter/index.d.ts +55 -12
  346. package/lib/src/strength-meter/strength-meter.vue.d.ts +26 -5
  347. package/lib/src/tests/wrapper.d.ts +6 -3
  348. package/lib/src/theme/antd-global-overwrite/admin/button.css +3 -0
  349. package/lib/src/theme/antd-global-overwrite/admin/index.css +3 -0
  350. package/lib/src/theme/antd-global-overwrite/aplus/button.css +3 -0
  351. package/lib/src/theme/antd-global-overwrite/aplus/index.css +3 -0
  352. package/lib/src/theme/ap-label/ap-label.css +26 -1
  353. package/lib/src/transition/collapse-transition.vue.d.ts +2 -2
  354. package/lib/src/transition/create-transition.d.ts +25 -13
  355. package/lib/src/transition/index.d.ts +193 -88
  356. package/lib/src/work-order-modal/help-message.vue.d.ts +2 -2
  357. package/lib/src/work-order-modal/help-message.vue2.js +1 -1
  358. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +15 -6
  359. package/package.json +4 -4
@@ -1,15 +1,36 @@
1
1
  import { BasicTitleProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  default?(_: {}): any;
5
5
  };
6
- declare const __VLS_component: DefineComponent<BasicTitleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BasicTitleProps & {}>, {
6
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BasicTitleProps>, {
7
+ helpMessage: string;
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BasicTitleProps>, {
9
+ helpMessage: string;
10
+ }>>>, {
7
11
  helpMessage: string | string[];
8
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}>;
12
+ }, {}>;
9
13
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
14
  export default _default;
15
+ type __VLS_WithDefaults<P, D> = {
16
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
17
+ default: D[K];
18
+ }> : P[K];
19
+ };
20
+ type __VLS_Prettify<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
11
23
  type __VLS_WithTemplateSlots<T, S> = T & {
12
24
  new (): {
13
25
  $slots: S;
14
26
  };
15
27
  };
28
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ type __VLS_TypePropsToOption<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };
@@ -1,10 +1,10 @@
1
1
  import { ApBatchActionProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  prefix?(_: {}): any;
5
5
  suffix?(_: {}): any;
6
6
  };
7
- declare const __VLS_component: DefineComponent<ApBatchActionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApBatchActionProps & {}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}>;
7
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<ApBatchActionProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<ApBatchActionProps>>>, {}, {}>;
8
8
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
9
9
  export default _default;
10
10
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -12,3 +12,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
12
12
  $slots: S;
13
13
  };
14
14
  };
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToOption<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
@@ -1,4 +1,13 @@
1
1
  import { Props } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props & {}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}>;
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare const _default: DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<Props>>>, {}, {}>;
4
4
  export default _default;
5
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
6
+ type __VLS_TypePropsToOption<T> = {
7
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
8
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
9
+ } : {
10
+ type: PropType<T[K]>;
11
+ required: true;
12
+ };
13
+ };
@@ -1,14 +1,14 @@
1
- import { defineComponent as G, computed as u, ref as N, openBlock as f, createBlock as y, unref as t, normalizeClass as D, withCtx as i, createVNode as x, createTextVNode as h, toDisplayString as w, normalizeStyle as B, createCommentVNode as K } from "vue";
2
- import { formatFileNameAndDownloadFile as T } from "@aplus-frontend/utils";
1
+ import { defineComponent as D, computed as c, ref as B, openBlock as p, createBlock as y, unref as t, normalizeClass as K, withCtx as i, createVNode as x, createTextVNode as h, toDisplayString as w, normalizeStyle as T, createCommentVNode as I } from "vue";
2
+ import { formatFileNameAndDownloadFile as P } from "@aplus-frontend/utils";
3
3
  import { DownOutlined as V } from "@ant-design/icons-vue";
4
- import { Modal as z, Dropdown as O, Menu as I, MenuItem as C, Button as J } from "ant-design-vue";
4
+ import { Modal as z, Dropdown as O, Menu as J, MenuItem as E, Button as R } from "ant-design-vue";
5
5
  import "../../config-provider/index.mjs";
6
- import { ActionType as c } from "./interface.mjs";
7
- import { usePermission as R } from "@aplus-frontend/hooks";
8
- import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
9
- import { useLocale as H } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useGlobalConfig as P } from "../../config-provider/hooks/use-global-config.mjs";
11
- const oe = /* @__PURE__ */ G({
6
+ import { ActionType as d } from "./interface.mjs";
7
+ import { usePermission as j } from "@aplus-frontend/hooks";
8
+ import { useNamespace as H } from "../../config-provider/hooks/use-namespace.mjs";
9
+ import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
10
+ import { useGlobalConfig as U } from "../../config-provider/hooks/use-global-config.mjs";
11
+ const ne = /* @__PURE__ */ D({
12
12
  __name: "ApExportGroup",
13
13
  props: {
14
14
  selectedRowKeys: {},
@@ -17,71 +17,76 @@ const oe = /* @__PURE__ */ G({
17
17
  ifShow: { type: Function },
18
18
  text: {},
19
19
  request: { type: Function },
20
- getRequestParams: { type: Function }
20
+ getRequestParams: { type: Function },
21
+ getInitialParams: { type: Function }
21
22
  },
22
- setup(E) {
23
- const { hasPermission: L } = R(), e = E, { b: S } = j("ap-export-group"), { t: s } = H(), F = P("uiMode"), g = u(() => {
23
+ setup(F) {
24
+ const { hasPermission: L } = j(), e = F, { b: S } = H("ap-export-group"), { t: s } = Q(), g = U("uiMode"), A = c(() => {
24
25
  const o = {
25
26
  aplus: "#0070FF",
26
27
  admin: "#34b77c"
27
28
  };
28
- return b.value ? "" : o[F.value] || o.aplus;
29
- }), b = u(() => !!(e != null && e.disabled)), A = {
29
+ return b.value ? "" : o[g.value] || o.aplus;
30
+ }), b = c(() => !!(e != null && e.disabled)), M = {
30
31
  textAlign: "center"
31
- }, p = N(!1), v = u(() => (e == null ? void 0 : e.selectedRowKeys) || []), M = u(() => {
32
+ }, m = B(!1), v = c(() => (e == null ? void 0 : e.selectedRowKeys) || []), k = c(() => {
32
33
  let o = e == null ? void 0 : e.ifShow;
33
34
  return !(e != null && e.ifShow) && (e != null && e.auth) && (o = () => L(e.auth)), (o == null ? void 0 : o()) ?? !0;
34
35
  });
35
- async function k({ key: o }) {
36
- var _;
37
- const { getRequestParams: n, request: r } = e || {};
38
- let l = {};
39
- if (o === c.SELECT) {
36
+ async function G({ key: o }) {
37
+ var _, C;
38
+ const { getRequestParams: n, request: l } = e || {};
39
+ let r = {};
40
+ if (o === d.SELECT) {
40
41
  const a = ((n == null ? void 0 : n()) || {}).exportFieldList;
41
- l = {
42
+ r = {
42
43
  ids: v.value,
43
44
  exportFieldList: a
44
45
  };
45
- for (const d in l)
46
- l[d] || delete l[d];
47
- } else o === c.ALL && (l = (n == null ? void 0 : n()) || {});
46
+ for (const u in r)
47
+ r[u] || delete r[u];
48
+ } else o === d.ALL && (r = (n == null ? void 0 : n()) || {});
49
+ const N = ((_ = e == null ? void 0 : e.getInitialParams) == null ? void 0 : _.call(e)) || {};
48
50
  try {
49
- p.value = !0;
50
- const a = await (r == null ? void 0 : r(l));
51
- a.headers && !((_ = a == null ? void 0 : a.headers) != null && _["content-disposition"]) ? a.data.text().then((d) => {
52
- const m = JSON.parse(d || "{}");
53
- m.code && m.code !== "200" && z.error({
51
+ m.value = !0;
52
+ const a = await (l == null ? void 0 : l({
53
+ ...r,
54
+ ...N
55
+ }));
56
+ a.headers && !((C = a == null ? void 0 : a.headers) != null && C["content-disposition"]) ? a.data.text().then((u) => {
57
+ const f = JSON.parse(u || "{}");
58
+ f.code && f.code !== "200" && z.error({
54
59
  title: s("ap.apExportGroup.exportError"),
55
- content: m.message,
60
+ content: f.message,
56
61
  centered: !0
57
62
  });
58
- }) : T(a);
63
+ }) : P(a);
59
64
  } finally {
60
- p.value = !1;
65
+ m.value = !1;
61
66
  }
62
67
  }
63
- return (o, n) => M.value ? (f(), y(t(O), {
68
+ return (o, n) => k.value ? (p(), y(t(O), {
64
69
  key: 0,
65
- class: D([t(S)()]),
66
- overlayStyle: A,
70
+ class: K([t(S)()]),
71
+ overlayStyle: M,
67
72
  disabled: b.value
68
73
  }, {
69
74
  overlay: i(() => [
70
- x(t(I), { onClick: k }, {
75
+ x(t(J), { onClick: G }, {
71
76
  default: i(() => {
72
- var r;
77
+ var l;
73
78
  return [
74
- (f(), y(t(C), {
75
- key: t(c).SELECT,
76
- disabled: ((r = v.value) == null ? void 0 : r.length) === 0
79
+ (p(), y(t(E), {
80
+ key: t(d).SELECT,
81
+ disabled: ((l = v.value) == null ? void 0 : l.length) === 0
77
82
  }, {
78
83
  default: i(() => [
79
84
  h(w(t(s)("ap.apExportGroup.exportSelected")), 1)
80
85
  ]),
81
86
  _: 1
82
87
  }, 8, ["disabled"])),
83
- (f(), y(t(C), {
84
- key: t(c).ALL
88
+ (p(), y(t(E), {
89
+ key: t(d).ALL
85
90
  }, {
86
91
  default: i(() => [
87
92
  h(w(t(s)("ap.apExportGroup.exportAll")), 1)
@@ -94,11 +99,11 @@ const oe = /* @__PURE__ */ G({
94
99
  })
95
100
  ]),
96
101
  default: i(() => [
97
- x(t(J), {
98
- style: B({
99
- color: g.value
102
+ x(t(R), {
103
+ style: T({
104
+ color: A.value
100
105
  }),
101
- loading: p.value
106
+ loading: m.value
102
107
  }, {
103
108
  default: i(() => [
104
109
  h(w((e == null ? void 0 : e.text) ?? t(s)("ap.apExportGroup.export")) + " ", 1),
@@ -108,9 +113,9 @@ const oe = /* @__PURE__ */ G({
108
113
  }, 8, ["style", "loading"])
109
114
  ]),
110
115
  _: 1
111
- }, 8, ["class", "disabled"])) : K("", !0);
116
+ }, 8, ["class", "disabled"])) : I("", !0);
112
117
  }
113
118
  });
114
119
  export {
115
- oe as default
120
+ ne as default
116
121
  };
@@ -28,6 +28,10 @@ export interface Props {
28
28
  * 导出接口参数
29
29
  */
30
30
  getRequestParams?: () => Record<string, any>;
31
+ /**
32
+ * 初始化参数
33
+ */
34
+ getInitialParams?: () => Record<string, any>;
31
35
  }
32
36
  export declare enum ActionType {
33
37
  ALL = "ALL",
@@ -1,40 +1,37 @@
1
- import { ApInputRadioProps, ApInputValType, ApInputRadioOptions } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { ValueType } from 'ant-design-vue/es/input-number/src/utils/MiniDecimal';
4
- import { KeyboardEventHandler } from 'ant-design-vue/es/_util/EventInterface';
5
- declare const _default: DefineComponent<ApInputRadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1
+ import { ApInputRadioProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInputRadioProps>, {
4
+ bordered: boolean;
5
+ controls: boolean;
6
+ stringMode: boolean;
7
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
6
8
  "update:value": (...args: any[]) => void;
7
- }, string, PublicProps, Readonly<{
8
- onBlur?: ((e: FocusEvent) => void) | undefined;
9
- onChange?: ((value: ValueType) => void) | undefined;
10
- onFocus?: ((e: FocusEvent) => void) | undefined;
11
- onInput?: ((text: string) => void) | undefined;
12
- disabled?: boolean | undefined;
13
- bordered?: boolean | undefined;
14
- autofocus?: boolean | undefined;
15
- onPressEnter?: KeyboardEventHandler | undefined;
16
- stringMode?: boolean | undefined;
17
- min?: ValueType | undefined;
18
- max?: ValueType | undefined;
19
- step?: ValueType | undefined;
20
- controls?: boolean | undefined;
21
- formatter?: ((value: ValueType, info: {
22
- userTyping: boolean;
23
- input: string;
24
- }) => string) | undefined;
25
- precision?: number | undefined;
26
- decimalSeparator?: string | undefined;
27
- onStep?: ((value: ValueType, info: {
28
- offset: ValueType;
29
- type: "up" | "down";
30
- }) => void) | undefined;
31
- } & ApInputValType & {
32
- options: ApInputRadioOptions;
33
- } & {
9
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInputRadioProps>, {
10
+ bordered: boolean;
11
+ controls: boolean;
12
+ stringMode: boolean;
13
+ }>>> & {
34
14
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
35
- }>, {
15
+ }, {
36
16
  bordered: boolean;
37
17
  stringMode: boolean;
38
18
  controls: boolean;
39
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}>;
19
+ }, {}>;
40
20
  export default _default;
21
+ type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ type __VLS_Prettify<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToOption<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
@@ -1,61 +1,56 @@
1
1
  import { ApLabelProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, ComponentProvideOptions } from 'vue';
3
- import { VueTypeValidableDef } from '../../../node_modules/vue-types';
4
- import { LiteralUnion } from 'ant-design-vue/es/_util/type';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
5
3
  import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
6
- declare function __VLS_template(): Partial<Record<string, (_: {}) => any>>;
7
- declare const __VLS_component: DefineComponent<ApLabelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Partial< ExtractPropTypes<{
8
- count: VueTypeValidableDef<any> & {
9
- default: any;
10
- };
11
- showZero: {
12
- type: BooleanConstructor;
13
- default: any;
14
- };
15
- overflowCount: {
16
- type: NumberConstructor;
17
- default: number;
18
- };
19
- dot: {
20
- type: BooleanConstructor;
21
- default: any;
22
- };
23
- prefixCls: StringConstructor;
24
- scrollNumberPrefixCls: StringConstructor;
25
- status: {
26
- type: PropType<"error" | "default" | "success" | "processing" | "warning">;
27
- };
28
- size: {
29
- type: PropType<"default" | "small">;
30
- default: string;
31
- };
32
- color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
33
- text: VueTypeValidableDef<any>;
34
- offset: PropType<[string | number, string | number]>;
35
- numberStyle: {
36
- type: PropType<CSSProperties>;
37
- default: CSSProperties;
38
- };
39
- title: StringConstructor;
40
- }>> & Partial<{
41
- helpMessage: string;
42
- placement: TooltipPlacement;
4
+ declare function __VLS_template(): {
5
+ default?(_: {}): any;
6
+ custom?(_: {}): any;
7
+ };
8
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApLabelProps>, {
9
+ status: string;
10
+ placement: string;
11
+ iconColor: string;
12
+ iconType: string;
13
+ iconSize: number;
14
+ text: string;
15
+ show: boolean;
16
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApLabelProps>, {
17
+ status: string;
18
+ placement: string;
43
19
  iconColor: string;
44
- iconType: "question" | "warning" | "ellipsis";
20
+ iconType: string;
45
21
  iconSize: number;
46
- slotName: string;
47
- }> & {}>, {
22
+ text: string;
23
+ show: boolean;
24
+ }>>>, {
48
25
  placement: TooltipPlacement;
49
- iconType: "question" | "warning" | "ellipsis";
26
+ iconType: "question" | "warning" | "ellipsis" | "success";
50
27
  text: any;
51
28
  iconSize: number;
52
29
  status: "error" | "default" | "success" | "warning" | "processing";
30
+ show: boolean;
53
31
  iconColor: string;
54
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}>;
32
+ }, {}>;
55
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
56
34
  export default _default;
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
57
43
  type __VLS_WithTemplateSlots<T, S> = T & {
58
44
  new (): {
59
45
  $slots: S;
60
46
  };
61
47
  };
48
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
+ type __VLS_TypePropsToOption<T> = {
50
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
51
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
52
+ } : {
53
+ type: PropType<T[K]>;
54
+ required: true;
55
+ };
56
+ };
@@ -1,11 +1,11 @@
1
- import { defineComponent as m, computed as u, openBlock as o, createElementBlock as s, normalizeClass as f, unref as t, createVNode as d, normalizeProps as y, guardReactiveProps as A, renderSlot as C, Fragment as g, createBlock as l, withCtx as k, normalizeStyle as r, createCommentVNode as n } from "vue";
2
- import { Badge as x, Tooltip as b } from "ant-design-vue";
3
- import { IconApAdLineAnnotation as h, IconApAdFillWarn as z, IconApAdFillExecution as N } from "@aplus-frontend/icon";
1
+ import { defineComponent as y, computed as A, openBlock as l, createElementBlock as c, normalizeClass as i, unref as t, createElementVNode as u, createVNode as k, normalizeProps as C, guardReactiveProps as g, renderSlot as m, Fragment as h, createBlock as n, withCtx as v, normalizeStyle as a, createCommentVNode as o } from "vue";
2
+ import { Badge as b, Tooltip as x } from "ant-design-vue";
3
+ import { IconApAdLineAnnotation as z, IconApAdFillWarn as B, IconApAdFillExecution as F, IconApAdFillSuccessful as S } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
5
- import { omit as v } from "lodash-unified";
5
+ import { omit as w } from "lodash-unified";
6
6
  import "./style.css";
7
- import { useNamespace as B } from "../../config-provider/hooks/use-namespace.mjs";
8
- const P = /* @__PURE__ */ m({
7
+ import { useNamespace as T } from "../../config-provider/hooks/use-namespace.mjs";
8
+ const $ = /* @__PURE__ */ y({
9
9
  name: "ApLabel",
10
10
  __name: "ApLabel",
11
11
  props: {
@@ -27,44 +27,59 @@ const P = /* @__PURE__ */ m({
27
27
  iconColor: { default: "#FF4D4F" },
28
28
  iconType: { default: "question" },
29
29
  iconSize: { default: 16 },
30
- slotName: {}
30
+ show: { type: Boolean, default: !0 }
31
31
  },
32
- setup(p) {
33
- const a = u(() => ({
32
+ setup(d) {
33
+ const s = A(() => ({
34
34
  color: e.iconColor,
35
35
  "font-size": e.iconSize + "px",
36
- "margin-left": "6px"
37
- })), e = p, { b: i } = B("ap-label");
38
- return (c, F) => (o(), s("div", {
39
- class: f([t(i)()])
36
+ "margin-left": "4px",
37
+ display: "inline-flex"
38
+ })), e = d, { b: f, e: p } = T("ap-label");
39
+ return (r, N) => e.show ? (l(), c("div", {
40
+ key: 0,
41
+ class: i([t(f)()])
40
42
  }, [
41
- d(t(x), y(A(t(v)(e, ["helpMessage", "placement", "iconColor"]))), null, 16),
42
- e.slotName ? C(c.$slots, e.slotName, { key: 0 }) : (o(), s(g, { key: 1 }, [
43
- e.helpMessage ? (o(), l(t(b), {
44
- key: 0,
45
- placement: e.placement,
46
- title: e.helpMessage
47
- }, {
48
- default: k(() => [
49
- e.iconType === "question" ? (o(), l(t(h), {
50
- key: 0,
51
- style: r(a.value)
52
- }, null, 8, ["style"])) : n("", !0),
53
- e.iconType === "warning" ? (o(), l(t(z), {
54
- key: 1,
55
- style: r(a.value)
56
- }, null, 8, ["style"])) : n("", !0),
57
- e.iconType === "ellipsis" ? (o(), l(t(N), {
58
- key: 2,
59
- style: r(a.value)
60
- }, null, 8, ["style"])) : n("", !0)
61
- ]),
62
- _: 1
63
- }, 8, ["placement", "title"])) : n("", !0)
64
- ], 64))
65
- ], 2));
43
+ u("div", {
44
+ class: i([t(p)("content")])
45
+ }, [
46
+ k(t(b), C(g(t(w)(e, ["helpMessage", "placement", "iconColor"]))), null, 16),
47
+ r.$slots.default ? m(r.$slots, "default", { key: 0 }) : (l(), c(h, { key: 1 }, [
48
+ e.helpMessage ? (l(), n(t(x), {
49
+ key: 0,
50
+ placement: e.placement,
51
+ title: e.helpMessage
52
+ }, {
53
+ default: v(() => [
54
+ e.iconType === "question" ? (l(), n(t(z), {
55
+ key: 0,
56
+ style: a(s.value)
57
+ }, null, 8, ["style"])) : o("", !0),
58
+ e.iconType === "warning" ? (l(), n(t(B), {
59
+ key: 1,
60
+ style: a(s.value)
61
+ }, null, 8, ["style"])) : o("", !0),
62
+ e.iconType === "ellipsis" ? (l(), n(t(F), {
63
+ key: 2,
64
+ style: a(s.value)
65
+ }, null, 8, ["style"])) : o("", !0),
66
+ e.iconType === "success" ? (l(), n(t(S), {
67
+ key: 3,
68
+ style: a(s.value)
69
+ }, null, 8, ["style"])) : o("", !0)
70
+ ]),
71
+ _: 1
72
+ }, 8, ["placement", "title"])) : o("", !0)
73
+ ], 64))
74
+ ], 2),
75
+ u("div", {
76
+ class: i([t(p)("custom")])
77
+ }, [
78
+ m(r.$slots, "custom")
79
+ ], 2)
80
+ ], 2)) : o("", !0);
66
81
  }
67
82
  });
68
83
  export {
69
- P as default
84
+ $ as default
70
85
  };
@@ -0,0 +1,43 @@
1
+ import { ApLabelGroupItemProps } from './interface';
2
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
+ declare const _default: DefineComponent<{
4
+ value: {
5
+ type: PropType<string | number | undefined>;
6
+ default: undefined;
7
+ };
8
+ tagValue: {
9
+ type: PropType<string | number | undefined>;
10
+ default: undefined;
11
+ };
12
+ columns: {
13
+ type: PropType<Array<ApLabelGroupItemProps<any>>>;
14
+ default: null;
15
+ };
16
+ record: {
17
+ type: PropType<any>;
18
+ default: null;
19
+ };
20
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
21
+ value: {
22
+ type: PropType<string | number | undefined>;
23
+ default: undefined;
24
+ };
25
+ tagValue: {
26
+ type: PropType<string | number | undefined>;
27
+ default: undefined;
28
+ };
29
+ columns: {
30
+ type: PropType<Array<ApLabelGroupItemProps<any>>>;
31
+ default: null;
32
+ };
33
+ record: {
34
+ type: PropType<any>;
35
+ default: null;
36
+ };
37
+ }>>, {
38
+ value: string | number | undefined;
39
+ columns: ApLabelGroupItemProps<any>[];
40
+ record: any;
41
+ tagValue: string | number | undefined;
42
+ }, {}>;
43
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { defineComponent as n, createVNode as o, mergeProps as l, createTextVNode as m } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import "./ApLabel.vue.mjs";
4
+ import { omit as t } from "lodash-unified";
5
+ import { ApLabelGroupProps as f } from "./constans.mjs";
6
+ import { Tag as s } from "ant-design-vue";
7
+ import { useNamespace as c } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import i from "./ApLabel.vue2.mjs";
9
+ const {
10
+ b: g
11
+ } = c("ap-label-group"), E = /* @__PURE__ */ n({
12
+ name: "ApLabelGroup",
13
+ props: f(),
14
+ setup(r) {
15
+ const a = (e) => (r.tagValue || r.tagValue === 0) && e.tagConfig && e.tagConfig.length > 0 ? () => e.tagConfig.filter((u) => r.tagValue === u.value).map((u) => o(s, t(u, ["text"]), {
16
+ default: () => [u.text]
17
+ })) : e.customRender ? () => o("div", null, [e.customRender(r.record)]) : null;
18
+ return () => o("div", {
19
+ class: g()
20
+ }, [r.columns ? r.columns.map((e, u) => o(i, l({
21
+ key: u,
22
+ show: r.value === e.value
23
+ }, t(e, ["value", "tagConfig", "customRender"])), {
24
+ custom: a(e)
25
+ })) : o("div", null, [m("columns数组不能为空")])]);
26
+ }
27
+ });
28
+ export {
29
+ E as default
30
+ };
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+ import { ApLabelGroupItemProps } from './interface';
3
+ export declare const ApLabelGroupProps: () => {
4
+ value: {
5
+ type: PropType<string | number | undefined>;
6
+ default: undefined;
7
+ };
8
+ tagValue: {
9
+ type: PropType<string | number | undefined>;
10
+ default: undefined;
11
+ };
12
+ columns: {
13
+ type: PropType<Array<ApLabelGroupItemProps<any>>>;
14
+ default: null;
15
+ };
16
+ record: {
17
+ type: PropType<any>;
18
+ default: null;
19
+ };
20
+ };