@aplus-frontend/ui 0.2.29 → 0.3.1

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 (453) hide show
  1. package/es/index.mjs +42 -40
  2. package/es/src/ap-action/group/index.vue.d.ts +3 -30
  3. package/es/src/ap-action/item/index.vue.d.ts +4 -36
  4. package/es/src/ap-action/item/index.vue2.mjs +29 -29
  5. package/es/src/ap-action/item-dropdown/index.vue.d.ts +5 -39
  6. package/es/src/ap-action/item-modal/index.vue.d.ts +5 -33
  7. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +5 -33
  8. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  9. package/es/src/ap-button/ap-action-button.vue.d.ts +5 -31
  10. package/es/src/ap-button/ap-button.vue.d.ts +5 -31
  11. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +4 -12
  12. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
  13. package/es/src/ap-descriptions/help-message/index.vue.d.ts +4 -15
  14. package/es/src/ap-download/ap-download.vue.d.ts +8 -31
  15. package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
  16. package/es/src/ap-field/checkbox/index.vue.d.ts +5 -32
  17. package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
  18. package/es/src/ap-field/date/index.vue.d.ts +7 -65
  19. package/es/src/ap-field/date/index.vue.mjs +2 -2
  20. package/es/src/ap-field/date-range/index.vue.d.ts +7 -67
  21. package/es/src/ap-field/date-range/index.vue.mjs +2 -2
  22. package/es/src/ap-field/hooks/use-options.d.ts +1 -1
  23. package/es/src/ap-field/number/index.vue.d.ts +12 -169
  24. package/es/src/ap-field/number/index.vue.mjs +3 -3
  25. package/es/src/ap-field/radio/index.vue.d.ts +6 -33
  26. package/es/src/ap-field/radio/index.vue.mjs +5 -5
  27. package/es/src/ap-field/rate/index.vue.d.ts +12 -75
  28. package/es/src/ap-field/rate/index.vue.mjs +4 -4
  29. package/es/src/ap-field/segmented/index.vue.d.ts +7 -33
  30. package/es/src/ap-field/segmented/index.vue.mjs +3 -3
  31. package/es/src/ap-field/select/index.vue.d.ts +12 -234
  32. package/es/src/ap-field/select/index.vue.mjs +4 -4
  33. package/es/src/ap-field/slider/index.vue.d.ts +12 -144
  34. package/es/src/ap-field/slider/index.vue.mjs +3 -3
  35. package/es/src/ap-field/switch/index.vue.d.ts +7 -37
  36. package/es/src/ap-field/switch/index.vue.mjs +4 -4
  37. package/es/src/ap-field/text/index.vue.d.ts +8 -40
  38. package/es/src/ap-field/text/password.vue.d.ts +9 -47
  39. package/es/src/ap-field/text-area/index.vue.d.ts +6 -39
  40. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  41. package/es/src/ap-form/ap-form.vue.d.ts +21 -274
  42. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  43. package/es/src/ap-form/dependency/index.vue.d.ts +4 -12
  44. package/es/src/ap-form/drawer-form/index.vue.d.ts +37 -536
  45. package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
  46. package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
  47. package/es/src/ap-form/item/index.vue.d.ts +37 -278
  48. package/es/src/ap-form/item-group/index.vue.d.ts +5 -29
  49. package/es/src/ap-form/items/checkbox/index.vue.d.ts +5 -37
  50. package/es/src/ap-form/items/date/index.vue.d.ts +5 -37
  51. package/es/src/ap-form/items/date-range/index.vue.d.ts +5 -37
  52. package/es/src/ap-form/items/number/index.vue.d.ts +53 -510
  53. package/es/src/ap-form/items/radio/index.vue.d.ts +14 -219
  54. package/es/src/ap-form/items/select/index.vue.d.ts +6 -38
  55. package/es/src/ap-form/items/switch/index.vue.d.ts +5 -39
  56. package/es/src/ap-form/items/text/group.vue.d.ts +5 -25
  57. package/es/src/ap-form/items/text/index.vue.d.ts +35 -522
  58. package/es/src/ap-form/items/text/password.vue.d.ts +44 -586
  59. package/es/src/ap-form/items/text-area/index.vue.d.ts +14 -507
  60. package/es/src/ap-form/list/index.vue.d.ts +4 -12
  61. package/es/src/ap-form/modal-form/index.vue.d.ts +37 -535
  62. package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
  63. package/es/src/ap-form/render/control.vue.d.ts +4 -12
  64. package/es/src/ap-form/render/item.vue.d.ts +5 -37
  65. package/es/src/ap-form/search-form/index.vue.d.ts +37 -532
  66. package/es/src/ap-form/search-form/index.vue.mjs +2 -2
  67. package/es/src/ap-form/set/index.vue.d.ts +5 -25
  68. package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +4 -12
  69. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +5 -27
  70. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
  71. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +7 -29
  72. package/es/src/ap-list/index.vue.d.ts +4 -6
  73. package/es/src/ap-list/index.vue.mjs +27 -27
  74. package/es/src/ap-modal/utils/createModal.mjs +10 -10
  75. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -24
  76. package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
  77. package/es/src/ap-scroll-bar/index.d.ts +7 -42
  78. package/es/src/ap-table/ap-table.vue.d.ts +3 -5
  79. package/es/src/ap-table/ap-table.vue2.mjs +3 -3
  80. package/es/src/ap-table/components/index/index.vue.d.ts +3 -24
  81. package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
  82. package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +2 -11
  83. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +5 -25
  84. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
  85. package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +2 -11
  86. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
  87. package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +2 -11
  88. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
  89. package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +6 -15
  90. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
  91. package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +5 -14
  92. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
  93. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +2 -11
  94. package/es/src/ap-table/components/status/index.vue.d.ts +2 -11
  95. package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
  96. package/es/src/ap-table/constants.d.ts +162 -13517
  97. package/es/src/ap-table/hooks/use-table-column-state.d.ts +11 -3
  98. package/es/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
  99. package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
  100. package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -3
  101. package/es/src/ap-table/utils.d.ts +65 -7907
  102. package/es/src/ap-tag/ap-tag-group.vue.d.ts +5 -29
  103. package/es/src/ap-tag/ap-tag-group.vue.mjs +88 -88
  104. package/es/src/ap-tag/ap-tag.vue.d.ts +3 -28
  105. package/es/src/ap-upload/apUpload.vue.d.ts +66 -16
  106. package/es/src/ap-upload/apUpload.vue.mjs +56 -37
  107. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
  108. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
  109. package/es/src/ap-upload/components/Picture.vue.d.ts +6 -10
  110. package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
  111. package/es/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
  112. package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
  113. package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +6 -29
  114. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
  115. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +2 -2
  116. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +10 -10
  117. package/es/src/business/ap-appendix/index.d.ts +7 -108
  118. package/es/src/business/ap-attachment/ApAttachment.d.ts +5 -5
  119. package/es/src/business/ap-attachment/index.d.ts +7 -48
  120. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +4 -12
  121. package/es/src/business/ap-batch-action/index.d.ts +5 -32
  122. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +3 -11
  123. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  124. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -14
  125. package/es/src/business/ap-batch-action-group/index.d.ts +590 -905
  126. package/es/src/business/ap-button-group/ApButtonGroup.vue.d.ts +2 -19
  127. package/es/src/business/ap-button-group/index.d.ts +5 -603
  128. package/es/src/business/ap-card/ApCard.vue.d.ts +4 -12
  129. package/es/src/business/ap-card/index.d.ts +5 -33
  130. package/es/src/business/ap-card/interface.d.ts +1 -1
  131. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -10
  132. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
  133. package/es/src/business/ap-expand-alert/index.d.ts +6 -8
  134. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +3 -24
  135. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
  136. package/es/src/business/ap-export-group/index.d.ts +7 -146
  137. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +8 -30
  138. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
  139. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +9 -356
  140. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
  141. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +2 -2
  142. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +18 -18
  143. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +2 -2
  144. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +34 -34
  145. package/es/src/business/ap-group-search/index.d.ts +711 -2447
  146. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +10 -357
  147. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
  148. package/es/src/business/ap-image/ApImage.vue.d.ts +5 -25
  149. package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
  150. package/es/src/business/ap-image/index.d.ts +7 -139
  151. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +6 -31
  152. package/es/src/business/ap-input-radio/index.d.ts +14 -339
  153. package/es/src/business/ap-label/ApLabel.d.ts +5 -5
  154. package/es/src/business/ap-label/group/ApLabelGroup.d.ts +5 -5
  155. package/es/src/business/ap-label/index.d.ts +13 -90
  156. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +5 -71
  157. package/es/src/business/ap-ladder/index.d.ts +7 -479
  158. package/es/src/business/ap-select-layout/index.d.ts +5 -7
  159. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -12
  160. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +58 -58
  161. package/es/src/business/ap-size-input/ApSizeInput.d.ts +84 -0
  162. package/es/src/business/ap-size-input/ApSizeInput.mjs +62 -0
  163. package/es/src/business/ap-size-input/constans.d.ts +38 -0
  164. package/es/src/business/ap-size-input/constans.mjs +40 -0
  165. package/es/src/business/ap-size-input/index.d.ts +155 -0
  166. package/es/src/business/ap-size-input/index.mjs +7 -0
  167. package/es/src/business/ap-size-input/interface.d.ts +11 -0
  168. package/es/src/business/ap-size-input/interface.mjs +1 -0
  169. package/es/src/business/ap-size-input/style/css.d.ts +0 -0
  170. package/es/src/business/ap-size-input/style/css.js +1 -0
  171. package/es/src/business/ap-size-input/style/index.d.ts +0 -0
  172. package/es/src/business/ap-size-input/style/index.js +1 -0
  173. package/es/src/business/ap-status/ApStatus.vue.d.ts +3 -28
  174. package/es/src/business/ap-status/group/ApStatusGroup.vue.d.ts +3 -30
  175. package/es/src/business/ap-status/index.d.ts +12 -192
  176. package/es/src/business/ap-summary/ap-summary.vue.d.ts +3 -28
  177. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  178. package/es/src/business/ap-summary/index.d.ts +7 -87
  179. package/es/src/business/ap-table-modal/index.d.ts +15 -1056
  180. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +6 -5
  181. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +12 -37
  182. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +8 -58
  183. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
  184. package/es/src/business/ap-title/ApTitle.vue.d.ts +5 -33
  185. package/es/src/business/ap-title/index.d.ts +7 -110
  186. package/es/src/business/ap-title/interface.d.ts +4 -4
  187. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +13 -33
  188. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
  189. package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
  190. package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +2 -2
  191. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +18 -18
  192. package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +2 -2
  193. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +10 -10
  194. package/es/src/business/ap-upload-file/interface.d.ts +2 -0
  195. package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
  196. package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
  197. package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
  198. package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
  199. package/es/src/business/batch-input-group/index.vue.d.ts +5 -38
  200. package/es/src/business/batch-input-group/index.vue.mjs +5 -5
  201. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +4 -13
  202. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
  203. package/es/src/business/hooks/usePageListApTable.d.ts +1 -0
  204. package/es/src/business/hooks/usePageListApTable.mjs +41 -33
  205. package/es/src/business/index.d.ts +1 -0
  206. package/es/src/business/index.mjs +20 -18
  207. package/es/src/check-card/group.vue.d.ts +7 -45
  208. package/es/src/check-card/index.vue.d.ts +7 -37
  209. package/es/src/config-provider/config-provider.d.ts +5 -5
  210. package/es/src/config-provider/index.d.ts +7 -256
  211. package/es/src/editable-table/form-item.vue.d.ts +5 -7
  212. package/es/src/editable-table/form-item.vue.mjs +3 -3
  213. package/es/src/editable-table/index.vue.d.ts +4 -8
  214. package/es/src/editable-table/index.vue.mjs +6 -6
  215. package/es/src/hooks/useControllableValue.d.ts +1 -1
  216. package/es/src/index.mjs +40 -38
  217. package/es/src/locale/lang/en.mjs +5 -0
  218. package/es/src/locale/lang/zh-cn.mjs +5 -0
  219. package/es/src/path-map.mjs +1 -0
  220. package/es/src/tests/wrapper.d.ts +6 -6
  221. package/es/src/utils/ap-trans-data/index.d.ts +1 -1
  222. package/es/src/utils/ap-trans-data/index.mjs +26 -14
  223. package/es/src/work-order-modal/help-message.vue.d.ts +2 -2
  224. package/es/src/work-order-modal/help-message.vue2.mjs +19 -19
  225. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -15
  226. package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
  227. package/lib/index.js +1 -1
  228. package/lib/src/ap-action/group/index.vue.d.ts +3 -30
  229. package/lib/src/ap-action/item/index.vue.d.ts +4 -36
  230. package/lib/src/ap-action/item/index.vue2.js +1 -1
  231. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +5 -39
  232. package/lib/src/ap-action/item-modal/index.vue.d.ts +5 -33
  233. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -33
  234. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  235. package/lib/src/ap-button/ap-action-button.vue.d.ts +5 -31
  236. package/lib/src/ap-button/ap-button.vue.d.ts +5 -31
  237. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +4 -12
  238. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  239. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +4 -15
  240. package/lib/src/ap-download/ap-download.vue.d.ts +8 -31
  241. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  242. package/lib/src/ap-field/checkbox/index.vue.d.ts +5 -32
  243. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  244. package/lib/src/ap-field/date/index.vue.d.ts +7 -65
  245. package/lib/src/ap-field/date/index.vue.js +1 -1
  246. package/lib/src/ap-field/date-range/index.vue.d.ts +7 -67
  247. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  248. package/lib/src/ap-field/hooks/use-options.d.ts +1 -1
  249. package/lib/src/ap-field/number/index.vue.d.ts +12 -169
  250. package/lib/src/ap-field/number/index.vue.js +1 -1
  251. package/lib/src/ap-field/radio/index.vue.d.ts +6 -33
  252. package/lib/src/ap-field/radio/index.vue.js +1 -1
  253. package/lib/src/ap-field/rate/index.vue.d.ts +12 -75
  254. package/lib/src/ap-field/rate/index.vue.js +1 -1
  255. package/lib/src/ap-field/segmented/index.vue.d.ts +7 -33
  256. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  257. package/lib/src/ap-field/select/index.vue.d.ts +12 -234
  258. package/lib/src/ap-field/select/index.vue.js +1 -1
  259. package/lib/src/ap-field/slider/index.vue.d.ts +12 -144
  260. package/lib/src/ap-field/slider/index.vue.js +1 -1
  261. package/lib/src/ap-field/switch/index.vue.d.ts +7 -37
  262. package/lib/src/ap-field/switch/index.vue.js +1 -1
  263. package/lib/src/ap-field/text/index.vue.d.ts +8 -40
  264. package/lib/src/ap-field/text/password.vue.d.ts +9 -47
  265. package/lib/src/ap-field/text-area/index.vue.d.ts +6 -39
  266. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  267. package/lib/src/ap-form/ap-form.vue.d.ts +21 -274
  268. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  269. package/lib/src/ap-form/dependency/index.vue.d.ts +4 -12
  270. package/lib/src/ap-form/drawer-form/index.vue.d.ts +37 -536
  271. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  272. package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
  273. package/lib/src/ap-form/item/index.vue.d.ts +37 -278
  274. package/lib/src/ap-form/item-group/index.vue.d.ts +5 -29
  275. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +5 -37
  276. package/lib/src/ap-form/items/date/index.vue.d.ts +5 -37
  277. package/lib/src/ap-form/items/date-range/index.vue.d.ts +5 -37
  278. package/lib/src/ap-form/items/number/index.vue.d.ts +53 -510
  279. package/lib/src/ap-form/items/radio/index.vue.d.ts +14 -219
  280. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -38
  281. package/lib/src/ap-form/items/switch/index.vue.d.ts +5 -39
  282. package/lib/src/ap-form/items/text/group.vue.d.ts +5 -25
  283. package/lib/src/ap-form/items/text/index.vue.d.ts +35 -522
  284. package/lib/src/ap-form/items/text/password.vue.d.ts +44 -586
  285. package/lib/src/ap-form/items/text-area/index.vue.d.ts +14 -507
  286. package/lib/src/ap-form/list/index.vue.d.ts +4 -12
  287. package/lib/src/ap-form/modal-form/index.vue.d.ts +37 -535
  288. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  289. package/lib/src/ap-form/render/control.vue.d.ts +4 -12
  290. package/lib/src/ap-form/render/item.vue.d.ts +5 -37
  291. package/lib/src/ap-form/search-form/index.vue.d.ts +37 -532
  292. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  293. package/lib/src/ap-form/set/index.vue.d.ts +5 -25
  294. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +4 -12
  295. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +5 -27
  296. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
  297. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +7 -29
  298. package/lib/src/ap-list/index.vue.d.ts +4 -6
  299. package/lib/src/ap-list/index.vue.js +1 -1
  300. package/lib/src/ap-modal/utils/createModal.js +1 -1
  301. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -24
  302. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
  303. package/lib/src/ap-scroll-bar/index.d.ts +7 -42
  304. package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
  305. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  306. package/lib/src/ap-table/components/index/index.vue.d.ts +3 -24
  307. package/lib/src/ap-table/components/index/index.vue2.js +1 -1
  308. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +2 -11
  309. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +5 -25
  310. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  311. package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +2 -11
  312. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  313. package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +2 -11
  314. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  315. package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +6 -15
  316. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  317. package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +5 -14
  318. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  319. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +2 -11
  320. package/lib/src/ap-table/components/status/index.vue.d.ts +2 -11
  321. package/lib/src/ap-table/components/status/index.vue2.js +1 -1
  322. package/lib/src/ap-table/constants.d.ts +162 -13517
  323. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +11 -3
  324. package/lib/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
  325. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  326. package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -3
  327. package/lib/src/ap-table/utils.d.ts +65 -7907
  328. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +5 -29
  329. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  330. package/lib/src/ap-tag/ap-tag.vue.d.ts +3 -28
  331. package/lib/src/ap-upload/apUpload.vue.d.ts +66 -16
  332. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  333. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
  334. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  335. package/lib/src/ap-upload/components/Picture.vue.d.ts +6 -10
  336. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  337. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
  338. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  339. package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +6 -29
  340. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  341. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +2 -2
  342. package/lib/src/business/ap-appendix/icons/file-icon.vue.js +1 -1
  343. package/lib/src/business/ap-appendix/index.d.ts +7 -108
  344. package/lib/src/business/ap-attachment/ApAttachment.d.ts +5 -5
  345. package/lib/src/business/ap-attachment/index.d.ts +7 -48
  346. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +4 -12
  347. package/lib/src/business/ap-batch-action/index.d.ts +5 -32
  348. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +3 -11
  349. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  350. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -14
  351. package/lib/src/business/ap-batch-action-group/index.d.ts +590 -905
  352. package/lib/src/business/ap-button-group/ApButtonGroup.vue.d.ts +2 -19
  353. package/lib/src/business/ap-button-group/index.d.ts +5 -603
  354. package/lib/src/business/ap-card/ApCard.vue.d.ts +4 -12
  355. package/lib/src/business/ap-card/index.d.ts +5 -33
  356. package/lib/src/business/ap-card/interface.d.ts +1 -1
  357. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -10
  358. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  359. package/lib/src/business/ap-expand-alert/index.d.ts +6 -8
  360. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +3 -24
  361. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  362. package/lib/src/business/ap-export-group/index.d.ts +7 -146
  363. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +8 -30
  364. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  365. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +9 -356
  366. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  367. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +2 -2
  368. package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -1
  369. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +2 -2
  370. package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -1
  371. package/lib/src/business/ap-group-search/index.d.ts +711 -2447
  372. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +10 -357
  373. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  374. package/lib/src/business/ap-image/ApImage.vue.d.ts +5 -25
  375. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  376. package/lib/src/business/ap-image/index.d.ts +7 -139
  377. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +6 -31
  378. package/lib/src/business/ap-input-radio/index.d.ts +14 -339
  379. package/lib/src/business/ap-label/ApLabel.d.ts +5 -5
  380. package/lib/src/business/ap-label/group/ApLabelGroup.d.ts +5 -5
  381. package/lib/src/business/ap-label/index.d.ts +13 -90
  382. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +5 -71
  383. package/lib/src/business/ap-ladder/index.d.ts +7 -479
  384. package/lib/src/business/ap-select-layout/index.d.ts +5 -7
  385. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -12
  386. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  387. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +84 -0
  388. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -0
  389. package/lib/src/business/ap-size-input/constans.d.ts +38 -0
  390. package/lib/src/business/ap-size-input/constans.js +1 -0
  391. package/lib/src/business/ap-size-input/index.d.ts +155 -0
  392. package/lib/src/business/ap-size-input/index.js +1 -0
  393. package/lib/src/business/ap-size-input/interface.d.ts +11 -0
  394. package/lib/src/business/ap-size-input/interface.js +1 -0
  395. package/lib/src/business/ap-size-input/style/css.d.ts +0 -0
  396. package/lib/src/business/ap-size-input/style/css.js +1 -0
  397. package/lib/src/business/ap-size-input/style/index.d.ts +0 -0
  398. package/lib/src/business/ap-size-input/style/index.js +1 -0
  399. package/lib/src/business/ap-status/ApStatus.vue.d.ts +3 -28
  400. package/lib/src/business/ap-status/group/ApStatusGroup.vue.d.ts +3 -30
  401. package/lib/src/business/ap-status/index.d.ts +12 -192
  402. package/lib/src/business/ap-summary/ap-summary.vue.d.ts +3 -28
  403. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  404. package/lib/src/business/ap-summary/index.d.ts +7 -87
  405. package/lib/src/business/ap-table-modal/index.d.ts +15 -1056
  406. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +6 -5
  407. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +12 -37
  408. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +8 -58
  409. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  410. package/lib/src/business/ap-title/ApTitle.vue.d.ts +5 -33
  411. package/lib/src/business/ap-title/index.d.ts +7 -110
  412. package/lib/src/business/ap-title/interface.d.ts +4 -4
  413. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +13 -33
  414. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  415. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  416. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +2 -2
  417. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -1
  418. package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +2 -2
  419. package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
  420. package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
  421. package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
  422. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  423. package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
  424. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  425. package/lib/src/business/batch-input-group/index.vue.d.ts +5 -38
  426. package/lib/src/business/batch-input-group/index.vue.js +1 -1
  427. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +4 -13
  428. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  429. package/lib/src/business/hooks/usePageListApTable.d.ts +1 -0
  430. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  431. package/lib/src/business/index.d.ts +1 -0
  432. package/lib/src/business/index.js +1 -1
  433. package/lib/src/check-card/group.vue.d.ts +7 -45
  434. package/lib/src/check-card/index.vue.d.ts +7 -37
  435. package/lib/src/config-provider/config-provider.d.ts +5 -5
  436. package/lib/src/config-provider/index.d.ts +7 -256
  437. package/lib/src/editable-table/form-item.vue.d.ts +5 -7
  438. package/lib/src/editable-table/form-item.vue.js +1 -1
  439. package/lib/src/editable-table/index.vue.d.ts +4 -8
  440. package/lib/src/editable-table/index.vue.js +1 -1
  441. package/lib/src/hooks/useControllableValue.d.ts +1 -1
  442. package/lib/src/index.js +1 -1
  443. package/lib/src/locale/lang/en.js +1 -1
  444. package/lib/src/locale/lang/zh-cn.js +1 -1
  445. package/lib/src/path-map.js +1 -1
  446. package/lib/src/tests/wrapper.d.ts +6 -6
  447. package/lib/src/utils/ap-trans-data/index.d.ts +1 -1
  448. package/lib/src/utils/ap-trans-data/index.js +1 -1
  449. package/lib/src/work-order-modal/help-message.vue.d.ts +2 -2
  450. package/lib/src/work-order-modal/help-message.vue2.js +1 -1
  451. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -15
  452. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  453. package/package.json +6 -6
@@ -1,52 +1,28 @@
1
1
  import { ApTagGroupProps, ApTagProps, EllipsisProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type ApTagGroupSlots = {
4
4
  tooltip?: (props: {
5
5
  tags: ApTagProps[];
6
6
  }) => void;
7
7
  };
8
8
  declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
9
10
  slots: Readonly<ApTagGroupSlots> & ApTagGroupSlots;
10
11
  refs: {
11
12
  container: HTMLDivElement;
12
13
  };
13
- attrs: Partial<{}>;
14
+ rootEl: any;
14
15
  };
15
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagGroupProps>, {
17
- list: () => ApTagProps[];
18
- space: number;
19
- ellipsis: () => {};
20
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagGroupProps>, {
21
- list: () => ApTagProps[];
22
- space: number;
23
- ellipsis: () => {};
24
- }>>>, {
17
+ declare const __VLS_component: DefineComponent<ApTagGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTagGroupProps> & Readonly<{}>, {
25
18
  ellipsis: EllipsisProps;
26
19
  space: number;
27
20
  list: ApTagProps[];
28
- }, {}>;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
29
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
23
  export default _default;
31
- type __VLS_WithDefaults<P, D> = {
32
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
33
- default: D[K];
34
- }> : P[K];
35
- };
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToOption<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: PropType<T[K]>;
42
- required: true;
43
- };
44
- };
45
24
  type __VLS_WithTemplateSlots<T, S> = T & {
46
25
  new (): {
47
26
  $slots: S;
48
27
  };
49
28
  };
50
- type __VLS_PrettifyLocal<T> = {
51
- [K in keyof T]: T[K];
52
- } & {};
@@ -1,4 +1,4 @@
1
- import { createElementVNode as t, defineComponent as D, ref as C, computed as n, unref as d, watch as N, nextTick as S, onMounted as j, onUnmounted as G, openBlock as c, createBlock as f, mergeProps as _, withCtx as g, renderSlot as R, createTextVNode as A, toDisplayString as b, normalizeClass as k, normalizeStyle as W, createElementBlock as T, Fragment as F, renderList as I, createCommentVNode as U } from "vue";
1
+ import { defineComponent as D, ref as C, computed as n, unref as f, watch as N, nextTick as S, onMounted as j, onUnmounted as G, openBlock as c, createBlock as d, mergeProps as b, withCtx as g, renderSlot as R, createTextVNode as A, toDisplayString as k, createElementVNode as o, normalizeClass as W, normalizeStyle as _, createElementBlock as T, Fragment as F, renderList as I, createCommentVNode as U } from "vue";
2
2
  import { Tooltip as q } from "@aplus-frontend/antdv";
3
3
  import H from "@ant-design/icons-vue";
4
4
  import "./ap-tag.vue2.mjs";
@@ -8,59 +8,7 @@ import { useLocale as K } from "../config-provider/hooks/use-locale.mjs";
8
8
  import { useGlobalConfig as O } from "../config-provider/hooks/use-global-config.mjs";
9
9
  import { useNamespace as Q } from "../config-provider/hooks/use-namespace.mjs";
10
10
  import X from "./ap-tag.vue.mjs";
11
- const Y = /* @__PURE__ */ t("svg", {
12
- xmlns: "http://www.w3.org/2000/svg",
13
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
14
- fill: "none",
15
- version: "1.1",
16
- width: "16",
17
- height: "16",
18
- viewBox: "0 0 16 16"
19
- }, [
20
- /* @__PURE__ */ t("defs", null, [
21
- /* @__PURE__ */ t("clipPath", { id: "master_svg0_1133_24991" }, [
22
- /* @__PURE__ */ t("rect", {
23
- x: "0",
24
- y: "0",
25
- width: "16",
26
- height: "16",
27
- rx: "0"
28
- })
29
- ])
30
- ]),
31
- /* @__PURE__ */ t("g", { "clip-path": "url(#master_svg0_1133_24991)" }, [
32
- /* @__PURE__ */ t("g", null, [
33
- /* @__PURE__ */ t("ellipse", {
34
- cx: "8",
35
- cy: "8",
36
- rx: "1",
37
- ry: "1",
38
- fill: "currentColor",
39
- "fill-opacity": "1"
40
- })
41
- ]),
42
- /* @__PURE__ */ t("g", null, [
43
- /* @__PURE__ */ t("ellipse", {
44
- cx: "3.25",
45
- cy: "8",
46
- rx: "1",
47
- ry: "1",
48
- fill: "currentColor",
49
- "fill-opacity": "1"
50
- })
51
- ]),
52
- /* @__PURE__ */ t("g", null, [
53
- /* @__PURE__ */ t("ellipse", {
54
- cx: "12.75",
55
- cy: "8",
56
- rx: "1",
57
- ry: "1",
58
- fill: "currentColor",
59
- "fill-opacity": "1"
60
- })
61
- ])
62
- ])
63
- ], -1), pe = /* @__PURE__ */ D({
11
+ const ue = /* @__PURE__ */ D({
64
12
  __name: "ap-tag-group",
65
13
  props: {
66
14
  list: { default: () => [] },
@@ -69,46 +17,46 @@ const Y = /* @__PURE__ */ t("svg", {
69
17
  ellipsis: { default: () => ({}) }
70
18
  },
71
19
  setup(E) {
72
- const { t: z } = K(), i = E, B = O("uiMode"), { b: V, bm: h } = Q("tag-group"), u = C(), s = n(() => ({
20
+ const { t: z } = K(), i = E, B = O("uiMode"), { b: V, bm: v } = Q("tag-group"), u = C(), r = n(() => ({
73
21
  ...{
74
22
  iconColor: "#34B77C",
75
23
  symbol: "icon",
76
24
  text: z("ap.common.more")
77
25
  },
78
26
  ...i.ellipsis
79
- })), $ = n(() => s.value.tooltip && typeof s.value.tooltip == "object" ? J(s.value.tooltip, ["trigger", "title"]) : {}), p = n(() => d(m) < i.list.length), m = C(0), L = n(() => i.list.map((e) => e.text).join("、")), M = n(() => [V()].filter(Boolean)), P = n(() => B.value === "aplus" ? [h("ellipsis-text", "aplus")] : [h("ellipsis-text", "admin")]), v = (e, o) => {
80
- let r = document.createElement("canvas");
81
- const l = r.getContext("2d");
27
+ })), $ = n(() => r.value.tooltip && typeof r.value.tooltip == "object" ? J(r.value.tooltip, ["trigger", "title"]) : {}), p = n(() => f(m) < i.list.length), m = C(0), L = n(() => i.list.map((e) => e.text).join("、")), M = n(() => [V()].filter(Boolean)), P = n(() => B.value === "aplus" ? [v("ellipsis-text", "aplus")] : [v("ellipsis-text", "admin")]), h = (e, t) => {
28
+ let s = document.createElement("canvas");
29
+ const l = s.getContext("2d");
82
30
  l.font = `${e}px system-ui`;
83
- const a = l.measureText(o);
31
+ const a = l.measureText(t);
84
32
  return setTimeout(() => {
85
- r = null;
33
+ s = null;
86
34
  }, 0), a.width;
87
35
  }, x = () => {
88
- let e = 0, o = 0;
36
+ let e = 0, t = 0;
89
37
  if (!u.value) return;
90
- const r = u.value.offsetWidth;
38
+ const s = u.value.offsetWidth;
91
39
  for (let l of i.list) {
92
- const a = l.size === "large" ? 16 : 12, w = v(
40
+ const a = l.size === "large" ? 16 : 12, w = h(
93
41
  l.size === "large" ? 14 : 12,
94
42
  l.text
95
43
  ) + a + 2 + i.space;
96
- if (e += w, e > r) {
44
+ if (e += w, e > s) {
97
45
  e -= w;
98
46
  break;
99
47
  }
100
- o++;
48
+ t++;
101
49
  }
102
- if (o < i.list.length) {
103
- const a = v(12, s.value.text);
104
- i.ellipsis.symbol === "icon" ? e += 16 : e += a, e > r && o--;
50
+ if (t < i.list.length) {
51
+ const a = h(12, r.value.text);
52
+ i.ellipsis.symbol === "icon" ? e += 16 : e += a, e > s && t--;
105
53
  }
106
- m.value = o;
54
+ m.value = t;
107
55
  };
108
56
  N(
109
57
  () => i.list,
110
- (e, o) => {
111
- e !== o && S(() => {
58
+ (e, t) => {
59
+ e !== t && S(() => {
112
60
  x();
113
61
  });
114
62
  },
@@ -121,49 +69,101 @@ const Y = /* @__PURE__ */ t("svg", {
121
69
  };
122
70
  return j(() => {
123
71
  [["ellipsisColor", "ellipse.color"]].forEach(
124
- ([e, o]) => {
72
+ ([e, t]) => {
125
73
  i[e] && console.error(
126
- `[ApTagGroup]: \`${e}\` is deprecated, please use \`${o}\` instead.`
74
+ `[ApTagGroup]: \`${e}\` is deprecated, please use \`${t}\` instead.`
127
75
  );
128
76
  }
129
77
  ), window.addEventListener("resize", y);
130
78
  }), G(() => {
131
79
  window.removeEventListener("resize", y);
132
- }), (e, o) => (c(), f(d(q), _({ trigger: "hover" }, $.value), {
80
+ }), (e, t) => (c(), d(f(q), b({ trigger: "hover" }, $.value), {
133
81
  title: g(() => [
134
82
  R(e.$slots, "tooltip", { tags: e.list }, () => [
135
- A(b(L.value), 1)
83
+ A(k(L.value), 1)
136
84
  ])
137
85
  ]),
138
86
  default: g(() => [
139
- t("div", {
140
- class: k(M.value),
87
+ o("div", {
141
88
  ref_key: "container",
142
89
  ref: u,
143
- style: W({
90
+ class: W(M.value),
91
+ style: _({
144
92
  pointerEvents: p.value ? "auto" : "none"
145
93
  // opacity: isUpdating ? '0' : '1'
146
94
  })
147
95
  }, [
148
- (c(!0), T(F, null, I(e.list, (r, l) => (c(), f(X, _({ ref_for: !0 }, r, {
96
+ (c(!0), T(F, null, I(e.list, (s, l) => (c(), d(X, b({ ref_for: !0 }, s, {
149
97
  key: l,
150
98
  style: {
151
99
  display: l >= m.value ? "none" : "inline-block",
152
100
  marginRight: `${e.space}px`
153
101
  }
154
102
  }), null, 16, ["style"]))), 128)),
155
- p.value && s.value.symbol === "icon" ? (c(), f(d(H), {
103
+ p.value && r.value.symbol === "icon" ? (c(), d(f(H), {
156
104
  key: 0,
157
- style: W({ color: e.ellipsisColor || s.value.iconColor })
105
+ style: _({ color: e.ellipsisColor || r.value.iconColor })
158
106
  }, {
159
- component: g(() => [
160
- Y
161
- ]),
107
+ component: g(() => t[0] || (t[0] = [
108
+ o("svg", {
109
+ xmlns: "http://www.w3.org/2000/svg",
110
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
111
+ fill: "none",
112
+ version: "1.1",
113
+ width: "16",
114
+ height: "16",
115
+ viewBox: "0 0 16 16"
116
+ }, [
117
+ o("defs", null, [
118
+ o("clipPath", { id: "master_svg0_1133_24991" }, [
119
+ o("rect", {
120
+ x: "0",
121
+ y: "0",
122
+ width: "16",
123
+ height: "16",
124
+ rx: "0"
125
+ })
126
+ ])
127
+ ]),
128
+ o("g", { "clip-path": "url(#master_svg0_1133_24991)" }, [
129
+ o("g", null, [
130
+ o("ellipse", {
131
+ cx: "8",
132
+ cy: "8",
133
+ rx: "1",
134
+ ry: "1",
135
+ fill: "currentColor",
136
+ "fill-opacity": "1"
137
+ })
138
+ ]),
139
+ o("g", null, [
140
+ o("ellipse", {
141
+ cx: "3.25",
142
+ cy: "8",
143
+ rx: "1",
144
+ ry: "1",
145
+ fill: "currentColor",
146
+ "fill-opacity": "1"
147
+ })
148
+ ]),
149
+ o("g", null, [
150
+ o("ellipse", {
151
+ cx: "12.75",
152
+ cy: "8",
153
+ rx: "1",
154
+ ry: "1",
155
+ fill: "currentColor",
156
+ "fill-opacity": "1"
157
+ })
158
+ ])
159
+ ])
160
+ ], -1)
161
+ ])),
162
162
  _: 1
163
- }, 8, ["style"])) : p.value && s.value.symbol === "text" ? (c(), T("span", {
163
+ }, 8, ["style"])) : p.value && r.value.symbol === "text" ? (c(), T("span", {
164
164
  key: 1,
165
- class: k(P.value)
166
- }, b(s.value.text), 3)) : U("", !0)
165
+ class: W(P.value)
166
+ }, k(r.value.text), 3)) : U("", !0)
167
167
  ], 6)
168
168
  ]),
169
169
  _: 3
@@ -171,5 +171,5 @@ const Y = /* @__PURE__ */ t("svg", {
171
171
  }
172
172
  });
173
173
  export {
174
- pe as default
174
+ ue as default
175
175
  };
@@ -1,33 +1,8 @@
1
1
  import { ApTagProps } from './interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagProps>, {
4
- size: string;
5
- color: string;
6
- disabled: boolean;
7
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTagProps>, {
8
- size: string;
9
- color: string;
10
- disabled: boolean;
11
- }>>>, {
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ApTagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTagProps> & Readonly<{}>, {
12
4
  size: "small" | "middle" | "large";
13
5
  color: string;
14
6
  disabled: boolean;
15
- }, {}>;
7
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
16
8
  export default _default;
17
- type __VLS_WithDefaults<P, D> = {
18
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
19
- default: D[K];
20
- }> : P[K];
21
- };
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToOption<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: PropType<T[K]>;
28
- required: true;
29
- };
30
- };
31
- type __VLS_PrettifyLocal<T> = {
32
- [K in keyof T]: T[K];
33
- } & {};
@@ -1,19 +1,21 @@
1
- import { PropType, VNode, DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, RendererNode, RendererElement } from 'vue';
1
+ import { PropType, VNode, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
2
2
  import { FileUploadType, BeforeUpload, CustomRequest, ApUploadSlots } from './apUploadTypes';
3
3
  import { GetOssAccess } from './hooks/useOss';
4
4
  declare function clear(): void;
5
5
  declare function setValue(val: any): void;
6
6
  declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
7
8
  slots: Readonly<ApUploadSlots> & ApUploadSlots;
8
9
  refs: {
9
10
  uploadRef: unknown;
10
11
  };
11
- attrs: Partial<{}>;
12
+ rootEl: HTMLDivElement;
12
13
  };
13
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: DefineComponent<{
15
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
15
16
  dirName: {
16
17
  type: StringConstructor;
18
+ default: undefined;
17
19
  };
18
20
  type: {
19
21
  type: PropType<FileUploadType>;
@@ -29,9 +31,11 @@ declare const __VLS_component: DefineComponent<{
29
31
  };
30
32
  accept: {
31
33
  type: StringConstructor;
34
+ default: undefined;
32
35
  };
33
36
  maxSize: {
34
37
  type: NumberConstructor;
38
+ default: undefined;
35
39
  };
36
40
  title: {
37
41
  type: StringConstructor;
@@ -43,29 +47,46 @@ declare const __VLS_component: DefineComponent<{
43
47
  };
44
48
  maxCount: {
45
49
  type: NumberConstructor;
50
+ default: undefined;
46
51
  };
47
52
  beforeUpload: {
48
53
  type: PropType<BeforeUpload>;
54
+ default: undefined;
49
55
  };
50
56
  customRequest: {
51
57
  type: PropType<CustomRequest>;
58
+ default: undefined;
52
59
  };
53
60
  getOssAccess: {
54
61
  type: PropType<GetOssAccess>;
62
+ default: undefined;
63
+ };
64
+ onChange: {
65
+ type: FunctionConstructor;
66
+ default: undefined;
67
+ };
68
+ maxSizeErrorMsg: {
69
+ type: StringConstructor;
70
+ default: undefined;
71
+ };
72
+ maxCountErrorMsg: {
73
+ type: StringConstructor;
74
+ default: undefined;
75
+ };
76
+ acceptErrorMsg: {
77
+ type: StringConstructor;
78
+ default: undefined;
55
79
  };
56
- onChange: FunctionConstructor;
57
- maxSizeErrorMsg: StringConstructor;
58
- maxCountErrorMsg: StringConstructor;
59
- acceptErrorMsg: StringConstructor;
60
- }, {
80
+ }>, {
61
81
  done: ComputedRef<boolean>;
62
82
  clear: typeof clear;
63
83
  setValue: typeof setValue;
64
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
84
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
65
85
  "update:value": (...args: any[]) => void;
66
86
  }, string, PublicProps, Readonly< ExtractPropTypes<{
67
87
  dirName: {
68
88
  type: StringConstructor;
89
+ default: undefined;
69
90
  };
70
91
  type: {
71
92
  type: PropType<FileUploadType>;
@@ -81,9 +102,11 @@ declare const __VLS_component: DefineComponent<{
81
102
  };
82
103
  accept: {
83
104
  type: StringConstructor;
105
+ default: undefined;
84
106
  };
85
107
  maxSize: {
86
108
  type: NumberConstructor;
109
+ default: undefined;
87
110
  };
88
111
  title: {
89
112
  type: StringConstructor;
@@ -95,31 +118,58 @@ declare const __VLS_component: DefineComponent<{
95
118
  };
96
119
  maxCount: {
97
120
  type: NumberConstructor;
121
+ default: undefined;
98
122
  };
99
123
  beforeUpload: {
100
124
  type: PropType<BeforeUpload>;
125
+ default: undefined;
101
126
  };
102
127
  customRequest: {
103
128
  type: PropType<CustomRequest>;
129
+ default: undefined;
104
130
  };
105
131
  getOssAccess: {
106
132
  type: PropType<GetOssAccess>;
133
+ default: undefined;
134
+ };
135
+ onChange: {
136
+ type: FunctionConstructor;
137
+ default: undefined;
138
+ };
139
+ maxSizeErrorMsg: {
140
+ type: StringConstructor;
141
+ default: undefined;
142
+ };
143
+ maxCountErrorMsg: {
144
+ type: StringConstructor;
145
+ default: undefined;
146
+ };
147
+ acceptErrorMsg: {
148
+ type: StringConstructor;
149
+ default: undefined;
107
150
  };
108
- onChange: FunctionConstructor;
109
- maxSizeErrorMsg: StringConstructor;
110
- maxCountErrorMsg: StringConstructor;
111
- acceptErrorMsg: StringConstructor;
112
- }>> & {
151
+ }>> & Readonly<{
113
152
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
114
- }, {
153
+ }>, {
115
154
  type: FileUploadType;
116
155
  title: string;
156
+ onChange: Function;
117
157
  value: string | unknown[] | Record<string, any>;
158
+ getOssAccess: GetOssAccess;
159
+ dirName: string;
118
160
  needName: boolean | Record<string, any>;
161
+ accept: string;
162
+ maxSize: number;
119
163
  subTitle: string | VNode< RendererNode, RendererElement, {
120
164
  [key: string]: any;
121
165
  }>;
122
- }, {}>;
166
+ beforeUpload: BeforeUpload;
167
+ customRequest: CustomRequest;
168
+ maxSizeErrorMsg: string;
169
+ acceptErrorMsg: string;
170
+ maxCount: number;
171
+ maxCountErrorMsg: string;
172
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
123
173
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
124
174
  export default _default;
125
175
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, ref as f, computed as v, provide as t, openBlock as y, createElementBlock as U, normalizeClass as $, unref as k, createBlock as T, resolveDynamicComponent as B, mergeProps as L, createSlots as R, renderList as q, withCtx as P, renderSlot as V, normalizeProps as w, guardReactiveProps as D } from "vue";
1
+ import { defineComponent as A, ref as g, computed as v, provide as t, openBlock as y, createElementBlock as U, normalizeClass as $, unref as k, createBlock as T, resolveDynamicComponent as B, mergeProps as L, createSlots as R, renderList as q, withCtx as P, renderSlot as V, normalizeProps as w, guardReactiveProps as D } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import "./components/SingleFile.vue.mjs";
4
4
  import "./components/MultipleFile.vue.mjs";
@@ -12,12 +12,13 @@ import Q from "./components/SingleFile.vue2.mjs";
12
12
  import W from "./components/MultipleFile.vue2.mjs";
13
13
  import X from "./components/Picture.vue2.mjs";
14
14
  import { useGlobalConfig as C } from "../config-provider/hooks/use-global-config.mjs";
15
- const ue = /* @__PURE__ */ A({
15
+ const me = /* @__PURE__ */ A({
16
16
  name: "AplusFileUpload",
17
17
  __name: "apUpload",
18
18
  props: {
19
19
  dirName: {
20
- type: String
20
+ type: String,
21
+ default: void 0
21
22
  },
22
23
  type: {
23
24
  type: String,
@@ -32,10 +33,12 @@ const ue = /* @__PURE__ */ A({
32
33
  default: void 0
33
34
  },
34
35
  accept: {
35
- type: String
36
+ type: String,
37
+ default: void 0
36
38
  },
37
39
  maxSize: {
38
- type: Number
40
+ type: Number,
41
+ default: void 0
39
42
  },
40
43
  title: {
41
44
  type: String,
@@ -46,71 +49,87 @@ const ue = /* @__PURE__ */ A({
46
49
  default: ""
47
50
  },
48
51
  maxCount: {
49
- type: Number
52
+ type: Number,
53
+ default: void 0
50
54
  },
51
55
  beforeUpload: {
52
- type: Function
56
+ type: Function,
57
+ default: void 0
53
58
  },
54
59
  customRequest: {
55
- type: Function
60
+ type: Function,
61
+ default: void 0
56
62
  },
57
63
  getOssAccess: {
58
- type: Function
64
+ type: Function,
65
+ default: void 0
66
+ },
67
+ onChange: {
68
+ type: Function,
69
+ default: void 0
70
+ },
71
+ maxSizeErrorMsg: {
72
+ type: String,
73
+ default: void 0
74
+ },
75
+ maxCountErrorMsg: {
76
+ type: String,
77
+ default: void 0
59
78
  },
60
- onChange: Function,
61
- maxSizeErrorMsg: String,
62
- maxCountErrorMsg: String,
63
- acceptErrorMsg: String
79
+ acceptErrorMsg: {
80
+ type: String,
81
+ default: void 0
82
+ }
64
83
  },
65
84
  emits: ["update:value"],
66
85
  setup(S, { expose: b, emit: x }) {
67
- var p, u, d, g;
68
- const { t: c, lang: M } = J();
69
- G(c), I(c, M);
70
- const { b: N } = K("ap-upload"), n = f(null), e = S, _ = x, E = {
86
+ var p, m, d, f;
87
+ const { t: l, lang: M } = J();
88
+ G(l), I(l, M);
89
+ const { b: N } = K("ap-upload"), n = g(null), e = S, _ = x, E = {
71
90
  singleFile: Q,
72
91
  multipleFile: W,
73
92
  picture: X
74
- }, i = H.useInjectFormItemContext(), F = v({
93
+ }, s = H.useInjectFormItemContext(), F = v({
75
94
  get() {
76
95
  return e.value;
77
96
  },
78
97
  set(o) {
79
- var r;
80
- _("update:value", o), i == null || i.onFieldChange(), (r = e.onChange) == null || r.call(e, o);
98
+ var a;
99
+ _("update:value", o), s == null || s.onFieldChange(), (a = e.onChange) == null || a.call(e, o);
81
100
  }
82
- }), O = C("uiMode"), s = C("apUpload");
83
- t("theme", O.value), t("value", F), t("dirName", e.dirName ?? ((p = s.value) == null ? void 0 : p.dirName)), t(
101
+ }), O = C("uiMode"), i = C("apUpload");
102
+ t("theme", O.value), t("value", F), t("dirName", e.dirName ?? ((p = i.value) == null ? void 0 : p.dirName)), t(
84
103
  "needName",
85
- e.needName ?? ((u = s.value) == null ? void 0 : u.needName) ?? !1
86
- ), t("accept", e.accept ?? ((d = s.value) == null ? void 0 : d.accept) ?? ""), t("maxSize", e.maxSize), t("title", e.title), t("subTitle", e.subTitle), t("maxCount", e.maxCount), t("beforeUpload", e.beforeUpload), t("customRequest", e.customRequest), t(
104
+ e.needName ?? ((m = i.value) == null ? void 0 : m.needName) ?? !1
105
+ ), t("accept", e.accept ?? ((d = i.value) == null ? void 0 : d.accept) ?? ""), t("maxSize", e.maxSize), t("title", e.title), t("subTitle", e.subTitle), t("maxCount", e.maxCount), t("beforeUpload", e.beforeUpload), t("customRequest", e.customRequest), t(
87
106
  "getOssAccess",
88
- e.getOssAccess ?? ((g = s.value) == null ? void 0 : g.getOssAccess)
107
+ e.getOssAccess ?? ((f = i.value) == null ? void 0 : f.getOssAccess)
89
108
  ), t("maxSizeErrorMsg", e.maxSizeErrorMsg), t("maxCountErrorMsg", e.maxCountErrorMsg), t("acceptErrorMsg", e.acceptErrorMsg);
90
- const z = v(() => m.value === 0), m = f(0);
91
- t("uploadingCount", m);
109
+ const z = v(() => u.value === 0), u = g(0);
110
+ t("uploadingCount", u);
92
111
  function h() {
93
- l(void 0);
112
+ c(void 0);
94
113
  }
95
- function l(o) {
96
- var r, a;
97
- (a = (r = n == null ? void 0 : n.value) == null ? void 0 : r.setValue) == null || a.call(r, o);
114
+ function c(o) {
115
+ var a, r;
116
+ (r = (a = n == null ? void 0 : n.value) == null ? void 0 : a.setValue) == null || r.call(a, o);
98
117
  }
99
118
  return b({
100
119
  done: z,
101
120
  clear: h,
102
- setValue: l
103
- }), (o, r) => (y(), U("div", {
121
+ setValue: c
122
+ }), (o, a) => (y(), U("div", {
104
123
  class: $(k(N)())
105
124
  }, [
106
125
  (y(), T(B(E[e.type]), L(o.$attrs, {
107
126
  ref_key: "uploadRef",
108
127
  ref: n
109
128
  }), R({ _: 2 }, [
110
- q(Object.keys(o.$slots), (a) => ({
111
- name: a,
129
+ q(Object.keys(o.$slots), (r) => ({
130
+ name: r,
112
131
  fn: P((j) => [
113
- V(o.$slots, a, w(D(j || {})))
132
+ V(o.$slots, r, w(D(j || {})))
114
133
  ])
115
134
  }))
116
135
  ]), 1040))
@@ -118,5 +137,5 @@ const ue = /* @__PURE__ */ A({
118
137
  }
119
138
  });
120
139
  export {
121
- ue as default
140
+ me as default
122
141
  };