@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,6 +1,6 @@
1
1
  import { ApFieldTextProps } from '../interface';
2
2
  import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
3
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  import { FieldMode } from '..';
5
5
  type ApFieldTextSlots = {
6
6
  addonAfter?: any;
@@ -10,38 +10,23 @@ type ApFieldTextSlots = {
10
10
  clearIcon?: any;
11
11
  };
12
12
  declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
13
14
  slots: Readonly<ApFieldTextSlots> & ApFieldTextSlots;
14
15
  refs: {};
15
- attrs: Partial<{}>;
16
+ rootEl: any;
16
17
  };
17
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextProps>, {
19
- emptyText: string;
20
- mode: string;
21
- bordered: boolean;
22
- type: string;
23
- lazy: boolean;
24
- allowClear: boolean;
25
- disabled: undefined;
26
- }>, {
19
+ declare const __VLS_component: DefineComponent<ApFieldTextProps, {
27
20
  focus: (options?: InputFocusOptions) => void;
28
21
  blur: () => void;
29
22
  input: any;
30
23
  setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
31
24
  select: () => void;
32
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
25
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
33
26
  "update:value": (...args: any[]) => void;
34
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextProps>, {
35
- emptyText: string;
36
- mode: string;
37
- bordered: boolean;
38
- type: string;
39
- lazy: boolean;
40
- allowClear: boolean;
41
- disabled: undefined;
42
- }>>> & {
27
+ }, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{
43
28
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
44
- }, {
29
+ }>, {
45
30
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
46
31
  mode: FieldMode;
47
32
  disabled: boolean;
@@ -49,28 +34,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
49
34
  lazy: boolean;
50
35
  allowClear: boolean;
51
36
  emptyText: string;
52
- }, {}>;
37
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
53
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
39
  export default _default;
55
- type __VLS_WithDefaults<P, D> = {
56
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
57
- default: D[K];
58
- }> : P[K];
59
- };
60
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
- type __VLS_TypePropsToOption<T> = {
62
- [K in keyof T]-?: {} extends Pick<T, K> ? {
63
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
64
- } : {
65
- type: PropType<T[K]>;
66
- required: true;
67
- };
68
- };
69
40
  type __VLS_WithTemplateSlots<T, S> = T & {
70
41
  new (): {
71
42
  $slots: S;
72
43
  };
73
44
  };
74
- type __VLS_PrettifyLocal<T> = {
75
- [K in keyof T]: T[K];
76
- } & {};
@@ -1,5 +1,5 @@
1
1
  import { ApFieldTextPasswordProps } from '../interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { FieldMode } from '..';
4
4
  type ApFieldTextPasswordSlots = {
5
5
  addonAfter: any;
@@ -10,43 +10,22 @@ type ApFieldTextPasswordSlots = {
10
10
  iconRender: any;
11
11
  };
12
12
  declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
13
14
  slots: Readonly<ApFieldTextPasswordSlots> & ApFieldTextPasswordSlots;
14
15
  refs: {};
15
- attrs: Partial<{}>;
16
+ rootEl: any;
16
17
  };
17
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextPasswordProps>, {
19
- emptyText: string;
20
- mode: string;
21
- bordered: boolean;
22
- type: string;
23
- lazy: boolean;
24
- allowClear: boolean;
25
- visibilityToggle: boolean;
26
- action: string;
27
- visible: undefined;
28
- disabled: undefined;
29
- }>, {
19
+ declare const __VLS_component: DefineComponent<ApFieldTextPasswordProps, {
30
20
  focus: () => void;
31
21
  blur: () => void;
32
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
33
23
  "update:value": (...args: any[]) => void;
34
24
  "update:visible": (...args: any[]) => void;
35
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextPasswordProps>, {
36
- emptyText: string;
37
- mode: string;
38
- bordered: boolean;
39
- type: string;
40
- lazy: boolean;
41
- allowClear: boolean;
42
- visibilityToggle: boolean;
43
- action: string;
44
- visible: undefined;
45
- disabled: undefined;
46
- }>>> & {
47
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
25
+ }, string, PublicProps, Readonly<ApFieldTextPasswordProps> & Readonly<{
48
26
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
49
- }, {
27
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
28
+ }>, {
50
29
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
51
30
  mode: FieldMode;
52
31
  visible: boolean;
@@ -57,28 +36,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
57
36
  emptyText: string;
58
37
  action: string;
59
38
  visibilityToggle: boolean;
60
- }, {}>;
39
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
61
40
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
62
41
  export default _default;
63
- type __VLS_WithDefaults<P, D> = {
64
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
65
- default: D[K];
66
- }> : P[K];
67
- };
68
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
- type __VLS_TypePropsToOption<T> = {
70
- [K in keyof T]-?: {} extends Pick<T, K> ? {
71
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
72
- } : {
73
- type: PropType<T[K]>;
74
- required: true;
75
- };
76
- };
77
42
  type __VLS_WithTemplateSlots<T, S> = T & {
78
43
  new (): {
79
44
  $slots: S;
80
45
  };
81
46
  };
82
- type __VLS_PrettifyLocal<T> = {
83
- [K in keyof T]: T[K];
84
- } & {};
@@ -1,32 +1,16 @@
1
1
  import { ApFieldTextAreaProps } from '../interface';
2
2
  import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
3
- import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  import { FieldMode } from '..';
5
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextAreaProps>, {
6
- emptyText: string;
7
- bordered: boolean;
8
- mode: string;
9
- type: string;
10
- lazy: boolean;
11
- allowClear: boolean;
12
- disabled: undefined;
13
- }>, {
5
+ declare const _default: DefineComponent<ApFieldTextAreaProps, {
14
6
  focus: (options?: InputFocusOptions) => void;
15
7
  blur: () => void;
16
8
  resizableTextArea: ComputedRef<any>;
17
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
10
  "update:value": (...args: any[]) => void;
19
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldTextAreaProps>, {
20
- emptyText: string;
21
- bordered: boolean;
22
- mode: string;
23
- type: string;
24
- lazy: boolean;
25
- allowClear: boolean;
26
- disabled: undefined;
27
- }>>> & {
11
+ }, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{
28
12
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
29
- }, {
13
+ }>, {
30
14
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
31
15
  mode: FieldMode;
32
16
  disabled: boolean;
@@ -34,22 +18,5 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
34
18
  lazy: boolean;
35
19
  allowClear: boolean;
36
20
  emptyText: string;
37
- }, {}>;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
38
22
  export default _default;
39
- type __VLS_WithDefaults<P, D> = {
40
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
41
- default: D[K];
42
- }> : P[K];
43
- };
44
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
- type __VLS_TypePropsToOption<T> = {
46
- [K in keyof T]-?: {} extends Pick<T, K> ? {
47
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
48
- } : {
49
- type: PropType<T[K]>;
50
- required: true;
51
- };
52
- };
53
- type __VLS_PrettifyLocal<T> = {
54
- [K in keyof T]: T[K];
55
- } & {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const m=require("@aplus-frontend/antdv"),y=require("../hooks/use-default-placeholder.js"),v=require("../../hooks/useControllableValue.js"),B=require("../../config-provider/hooks/use-namespace.js"),h=e.defineComponent({name:"ApFieldTextArea",__name:"index",props:{mode:{default:"edit"},class:{},style:{},rows:{},autoSize:{type:[Boolean,Object]},onResize:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},size:{},value:{},name:{},type:{default:"text"},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},onMousedown:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean},autocomplete:{},readonly:{type:Boolean},status:{},defaultValue:{},"onUpdate:value":{},loading:{type:Boolean},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onMouseUp:{},onRawInput:{},inputElement:{},triggerFocus:{},handleReset:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"}},emits:["update:value"],setup(r,{expose:s,emit:d}){const t=e.ref(),l=r,p=d,{value:a,updateValue:i}=v.useControllableValue(l,p),{b:c}=B.useNamespace("field-text-area"),f=y.useDefaultPlaceholder("TextArea",l);return s({focus:o=>{var n;(n=t.value)==null||n.focus(o)},blur:()=>{var o;(o=t.value)==null||o.blur()},resizableTextArea:e.computed(()=>{var o;return(o=t.value)==null?void 0:o.resizableTextArea})}),(o,n)=>o.mode==="read"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(c)())},e.toDisplayString(e.unref(u.isNil)(e.unref(a))||e.unref(a)===""?o.emptyText:e.unref(a)),3)):(e.openBlock(),e.createBlock(e.unref(m.Input).TextArea,e.mergeProps({key:1},e.unref(u.omit)(l,["onUpdate:value","value"]),{placeholder:e.unref(f),value:e.unref(a),"onUpdate:value":e.unref(i),ref_key:"textAreaRef",ref:t}),null,16,["placeholder","value","onUpdate:value"]))}});exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const m=require("@aplus-frontend/antdv"),y=require("../hooks/use-default-placeholder.js"),v=require("../../hooks/useControllableValue.js"),B=require("../../config-provider/hooks/use-namespace.js"),h=e.defineComponent({name:"ApFieldTextArea",__name:"index",props:{mode:{default:"edit"},class:{},style:{},rows:{},autoSize:{type:[Boolean,Object]},onResize:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},size:{},value:{},name:{},type:{default:"text"},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},onMousedown:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean},autocomplete:{},readonly:{type:Boolean},status:{},defaultValue:{},"onUpdate:value":{},loading:{type:Boolean},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onMouseUp:{},onRawInput:{},inputElement:{},triggerFocus:{},handleReset:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"}},emits:["update:value"],setup(r,{expose:s,emit:d}){const t=e.ref(),l=r,p=d,{value:a,updateValue:i}=v.useControllableValue(l,p),{b:c}=B.useNamespace("field-text-area"),f=y.useDefaultPlaceholder("TextArea",l);return s({focus:o=>{var n;(n=t.value)==null||n.focus(o)},blur:()=>{var o;(o=t.value)==null||o.blur()},resizableTextArea:e.computed(()=>{var o;return(o=t.value)==null?void 0:o.resizableTextArea})}),(o,n)=>o.mode==="read"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(c)())},e.toDisplayString(e.unref(u.isNil)(e.unref(a))||e.unref(a)===""?o.emptyText:e.unref(a)),3)):(e.openBlock(),e.createBlock(e.unref(m.Input).TextArea,e.mergeProps({key:1},e.unref(u.omit)(l,["onUpdate:value","value"]),{ref_key:"textAreaRef",ref:t,placeholder:e.unref(f),value:e.unref(a),"onUpdate:value":e.unref(i)}),null,16,["placeholder","value","onUpdate:value"]))}});exports.default=h;
@@ -1,13 +1,12 @@
1
1
  import { ApFormProps, RegistedFieldType, WatchFunc } from './interface';
2
- import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
2
+ import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
3
3
  import { Recordable } from '../type';
4
- import { CreateComponentPublicInstance, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, DefineComponent, PublicProps } from 'vue';
4
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
5
5
  import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
6
6
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
7
7
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
8
8
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
9
9
  import { Options } from '../../node_modules/scroll-into-view-if-needed';
10
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
11
10
  import { SizeType } from '@aplus-frontend/antdv/es/button';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  /**
@@ -24,234 +23,12 @@ declare function getInternalInstance(mark: string): {
24
23
  registerWatch: typeof registerWatch;
25
24
  } | undefined;
26
25
  declare function __VLS_template(): {
26
+ attrs: Partial<{}>;
27
27
  slots: {
28
28
  default?(_: {}): any;
29
29
  };
30
30
  refs: {
31
- formRef: CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
32
- layout: VueTypeDef<string>;
33
- labelCol: {
34
- type: PropType<Partial< ExtractPropTypes<{
35
- span: (StringConstructor | NumberConstructor)[];
36
- order: (StringConstructor | NumberConstructor)[];
37
- offset: (StringConstructor | NumberConstructor)[];
38
- push: (StringConstructor | NumberConstructor)[];
39
- pull: (StringConstructor | NumberConstructor)[];
40
- xs: {
41
- type: PropType<string | number | ColSize>;
42
- default: string | number | ColSize;
43
- };
44
- sm: {
45
- type: PropType<string | number | ColSize>;
46
- default: string | number | ColSize;
47
- };
48
- md: {
49
- type: PropType<string | number | ColSize>;
50
- default: string | number | ColSize;
51
- };
52
- lg: {
53
- type: PropType<string | number | ColSize>;
54
- default: string | number | ColSize;
55
- };
56
- xl: {
57
- type: PropType<string | number | ColSize>;
58
- default: string | number | ColSize;
59
- };
60
- xxl: {
61
- type: PropType<string | number | ColSize>;
62
- default: string | number | ColSize;
63
- };
64
- prefixCls: StringConstructor;
65
- flex: (StringConstructor | NumberConstructor)[];
66
- }>> & HTMLAttributes>;
67
- default: Partial< ExtractPropTypes<{
68
- span: (StringConstructor | NumberConstructor)[];
69
- order: (StringConstructor | NumberConstructor)[];
70
- offset: (StringConstructor | NumberConstructor)[];
71
- push: (StringConstructor | NumberConstructor)[];
72
- pull: (StringConstructor | NumberConstructor)[];
73
- xs: {
74
- type: PropType<string | number | ColSize>;
75
- default: string | number | ColSize;
76
- };
77
- sm: {
78
- type: PropType<string | number | ColSize>;
79
- default: string | number | ColSize;
80
- };
81
- md: {
82
- type: PropType<string | number | ColSize>;
83
- default: string | number | ColSize;
84
- };
85
- lg: {
86
- type: PropType<string | number | ColSize>;
87
- default: string | number | ColSize;
88
- };
89
- xl: {
90
- type: PropType<string | number | ColSize>;
91
- default: string | number | ColSize;
92
- };
93
- xxl: {
94
- type: PropType<string | number | ColSize>;
95
- default: string | number | ColSize;
96
- };
97
- prefixCls: StringConstructor;
98
- flex: (StringConstructor | NumberConstructor)[];
99
- }>> & HTMLAttributes;
100
- };
101
- wrapperCol: {
102
- type: PropType<Partial< ExtractPropTypes<{
103
- span: (StringConstructor | NumberConstructor)[];
104
- order: (StringConstructor | NumberConstructor)[];
105
- offset: (StringConstructor | NumberConstructor)[];
106
- push: (StringConstructor | NumberConstructor)[];
107
- pull: (StringConstructor | NumberConstructor)[];
108
- xs: {
109
- type: PropType<string | number | ColSize>;
110
- default: string | number | ColSize;
111
- };
112
- sm: {
113
- type: PropType<string | number | ColSize>;
114
- default: string | number | ColSize;
115
- };
116
- md: {
117
- type: PropType<string | number | ColSize>;
118
- default: string | number | ColSize;
119
- };
120
- lg: {
121
- type: PropType<string | number | ColSize>;
122
- default: string | number | ColSize;
123
- };
124
- xl: {
125
- type: PropType<string | number | ColSize>;
126
- default: string | number | ColSize;
127
- };
128
- xxl: {
129
- type: PropType<string | number | ColSize>;
130
- default: string | number | ColSize;
131
- };
132
- prefixCls: StringConstructor;
133
- flex: (StringConstructor | NumberConstructor)[];
134
- }>> & HTMLAttributes>;
135
- default: Partial< ExtractPropTypes<{
136
- span: (StringConstructor | NumberConstructor)[];
137
- order: (StringConstructor | NumberConstructor)[];
138
- offset: (StringConstructor | NumberConstructor)[];
139
- push: (StringConstructor | NumberConstructor)[];
140
- pull: (StringConstructor | NumberConstructor)[];
141
- xs: {
142
- type: PropType<string | number | ColSize>;
143
- default: string | number | ColSize;
144
- };
145
- sm: {
146
- type: PropType<string | number | ColSize>;
147
- default: string | number | ColSize;
148
- };
149
- md: {
150
- type: PropType<string | number | ColSize>;
151
- default: string | number | ColSize;
152
- };
153
- lg: {
154
- type: PropType<string | number | ColSize>;
155
- default: string | number | ColSize;
156
- };
157
- xl: {
158
- type: PropType<string | number | ColSize>;
159
- default: string | number | ColSize;
160
- };
161
- xxl: {
162
- type: PropType<string | number | ColSize>;
163
- default: string | number | ColSize;
164
- };
165
- prefixCls: StringConstructor;
166
- flex: (StringConstructor | NumberConstructor)[];
167
- }>> & HTMLAttributes;
168
- };
169
- colon: {
170
- type: BooleanConstructor;
171
- default: boolean;
172
- };
173
- labelAlign: {
174
- type: PropType<FormLabelAlign>;
175
- default: FormLabelAlign;
176
- };
177
- labelWrap: {
178
- type: BooleanConstructor;
179
- default: boolean;
180
- };
181
- prefixCls: StringConstructor;
182
- requiredMark: {
183
- type: PropType<"" | RequiredMark>;
184
- default: "" | RequiredMark;
185
- };
186
- hideRequiredMark: {
187
- type: BooleanConstructor;
188
- default: boolean;
189
- };
190
- model: VueTypeValidableDef<{
191
- [key: string]: any;
192
- }> & {
193
- default: () => {
194
- [key: string]: any;
195
- };
196
- };
197
- rules: {
198
- type: PropType<{
199
- [k: string]: RuleObject | RuleObject[];
200
- }>;
201
- default: {
202
- [k: string]: RuleObject | RuleObject[];
203
- };
204
- };
205
- validateMessages: {
206
- type: PropType<ValidateMessages>;
207
- default: ValidateMessages;
208
- };
209
- validateOnRuleChange: {
210
- type: BooleanConstructor;
211
- default: boolean;
212
- };
213
- scrollToFirstError: {
214
- default: boolean | Options<any>;
215
- type: PropType<boolean | Options<any>>;
216
- };
217
- onSubmit: {
218
- type: PropType<(e: Event) => void>;
219
- default: (e: Event) => void;
220
- };
221
- name: StringConstructor;
222
- validateTrigger: {
223
- type: PropType<string | string[]>;
224
- default: string | string[];
225
- };
226
- size: {
227
- type: PropType<SizeType>;
228
- default: SizeType;
229
- };
230
- disabled: {
231
- type: BooleanConstructor;
232
- default: boolean;
233
- };
234
- onValuesChange: {
235
- type: PropType<(changedValues: any, values: any) => void>;
236
- default: (changedValues: any, values: any) => void;
237
- };
238
- onFieldsChange: {
239
- type: PropType<(changedFields: FieldData[], allFields: FieldData[]) => void>;
240
- default: (changedFields: FieldData[], allFields: FieldData[]) => void;
241
- };
242
- onFinish: {
243
- type: PropType<(values: any) => void>;
244
- default: (values: any) => void;
245
- };
246
- onFinishFailed: {
247
- type: PropType<(errorInfo: ValidateErrorEntity<any>) => void>;
248
- default: (errorInfo: ValidateErrorEntity<any>) => void;
249
- };
250
- onValidate: {
251
- type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
252
- default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
253
- };
254
- }>>, () => VueNode, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
31
+ formRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
255
32
  layout: VueTypeDef<string>;
256
33
  labelCol: {
257
34
  type: PropType<Partial< ExtractPropTypes<{
@@ -474,12 +251,15 @@ declare function __VLS_template(): {
474
251
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
475
252
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
476
253
  };
477
- }>>, {
254
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
478
255
  size: SizeType;
479
256
  onSubmit: (e: Event) => void;
480
257
  disabled: boolean;
481
258
  validateTrigger: string | string[];
482
259
  onFinish: (values: any) => void;
260
+ validateMessages: ValidateMessages;
261
+ requiredMark: "" | RequiredMark;
262
+ colon: boolean;
483
263
  labelCol: Partial< ExtractPropTypes<{
484
264
  span: (StringConstructor | NumberConstructor)[];
485
265
  order: (StringConstructor | NumberConstructor)[];
@@ -512,10 +292,11 @@ declare function __VLS_template(): {
512
292
  };
513
293
  prefixCls: StringConstructor;
514
294
  flex: (StringConstructor | NumberConstructor)[];
515
- }>> & HTMLAttributes;
295
+ }>> & **
296
+ * 注册表单项
297
+ * @param field
298
+ */).HTMLAttributes;
516
299
  labelAlign: FormLabelAlign;
517
- colon: boolean;
518
- requiredMark: "" | RequiredMark;
519
300
  labelWrap: boolean;
520
301
  wrapperCol: Partial< ExtractPropTypes<{
521
302
  span: (StringConstructor | NumberConstructor)[];
@@ -561,10 +342,9 @@ declare function __VLS_template(): {
561
342
  model: {
562
343
  [key: string]: any;
563
344
  };
564
- validateMessages: ValidateMessages;
565
345
  validateOnRuleChange: boolean;
566
346
  scrollToFirstError: boolean | Options<any>;
567
- }, true, {}, {}, {
347
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
568
348
  P: {};
569
349
  B: {};
570
350
  D: {};
@@ -794,12 +574,15 @@ declare function __VLS_template(): {
794
574
  type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
795
575
  default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
796
576
  };
797
- }>>, () => VueNode, {}, {}, {}, {
577
+ }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
798
578
  size: SizeType;
799
579
  onSubmit: (e: Event) => void;
800
580
  disabled: boolean;
801
581
  validateTrigger: string | string[];
802
582
  onFinish: (values: any) => void;
583
+ validateMessages: ValidateMessages;
584
+ requiredMark: "" | RequiredMark;
585
+ colon: boolean;
803
586
  labelCol: Partial< ExtractPropTypes<{
804
587
  span: (StringConstructor | NumberConstructor)[];
805
588
  order: (StringConstructor | NumberConstructor)[];
@@ -834,8 +617,6 @@ declare function __VLS_template(): {
834
617
  flex: (StringConstructor | NumberConstructor)[];
835
618
  }>> & HTMLAttributes;
836
619
  labelAlign: FormLabelAlign;
837
- colon: boolean;
838
- requiredMark: "" | RequiredMark;
839
620
  labelWrap: boolean;
840
621
  wrapperCol: Partial< ExtractPropTypes<{
841
622
  span: (StringConstructor | NumberConstructor)[];
@@ -881,23 +662,14 @@ declare function __VLS_template(): {
881
662
  model: {
882
663
  [key: string]: any;
883
664
  };
884
- validateMessages: ValidateMessages;
885
665
  validateOnRuleChange: boolean;
886
666
  scrollToFirstError: boolean | Options<any>;
887
667
  }> | null;
888
668
  };
889
- attrs: Partial<{}>;
669
+ rootEl: any;
890
670
  };
891
671
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
892
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormProps>, {
893
- layout: string;
894
- hideRequiredMark: boolean;
895
- colon: boolean;
896
- labelAlign: string;
897
- validateOnRuleChange: boolean;
898
- validateTrigger: string;
899
- syncToUrl: boolean;
900
- }>, {
672
+ declare const __VLS_component: DefineComponent<ApFormProps, {
901
673
  resetFields: () => Promise<void>;
902
674
  clearValidate: (name?: NamePath | NamePath[]) => void;
903
675
  validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
@@ -916,15 +688,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
916
688
  validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
917
689
  getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
918
690
  getInternalInstance: typeof getInternalInstance;
919
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormProps>, {
920
- layout: string;
921
- hideRequiredMark: boolean;
922
- colon: boolean;
923
- labelAlign: string;
924
- validateOnRuleChange: boolean;
925
- validateTrigger: string;
926
- syncToUrl: boolean;
927
- }>>>, {
691
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormProps> & Readonly<{}>, {
928
692
  layout: string;
929
693
  colon: boolean;
930
694
  labelAlign: FormLabelAlign;
@@ -932,28 +696,11 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
932
696
  hideRequiredMark: boolean;
933
697
  validateOnRuleChange: boolean;
934
698
  syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
935
- }, {}>;
699
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
936
700
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
937
701
  export default _default;
938
- type __VLS_WithDefaults<P, D> = {
939
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
940
- default: D[K];
941
- }> : P[K];
942
- };
943
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
944
- type __VLS_TypePropsToOption<T> = {
945
- [K in keyof T]-?: {} extends Pick<T, K> ? {
946
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
947
- } : {
948
- type: PropType<T[K]>;
949
- required: true;
950
- };
951
- };
952
702
  type __VLS_WithTemplateSlots<T, S> = T & {
953
703
  new (): {
954
704
  $slots: S;
955
705
  };
956
706
  };
957
- type __VLS_PrettifyLocal<T> = {
958
- [K in keyof T]: T[K];
959
- } & {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),z=require("@aplus-frontend/antdv"),C=require("./context.js"),a=require("lodash-unified"),L=require("@vueuse/core"),$=require("./constant.js"),T=require("../utils/index.js"),k=require("./utils/set.js"),y=require("./utils/params.js"),K=l.defineComponent({__name:"ap-form",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},syncToUrl:{type:[Boolean,Function],default:!1},syncToUrlPriority:{type:Boolean}},setup(R,{expose:U}){const i=R;function V(e,t,s=!0){var o;if(a.isArray(e)){let n=u;for(let d=0;d<e.length-1;d++)e[d]in n||(n[e[d]]={}),n=n[e[d]];n[e[e.length-1]]=t}else u[e]=t;let r=a.isArray(e)?e[0]:e;s&&((o=i.onValuesChange)==null||o.call(i,{[r]:u[r]},u)),p()}const c=l.ref(),P=L.useUrlSearchParams(T.getRouteType()),_=l.ref(i.syncToUrl?y.genParams(i.syncToUrl,P,"get"):{});let v=a.cloneDeep(m()),F={};const u=l.reactive(m());let g=[];function m(){const e=i.initialValues||{};return i.syncToUrlPriority?{...e,...l.unref(_)}:{...l.unref(_),...e}}function M(e){var s;const t=h(e,F);i.syncToUrl&&y.setToParams(P,y.genParams(i.syncToUrl,t,"set")),(s=i.onFinish)==null||s.call(i,t)}const O=async()=>{var e;(e=c.value)==null||e.resetFields(),await l.nextTick(()=>{Object.keys(u).forEach(t=>delete u[t]),Object.assign(u,v),p(),i.syncToUrl&&y.setToParams(P,y.genParams(i.syncToUrl,h(v,F),"set"))})},B=e=>{var t;(t=c.value)==null||t.clearValidate(e)},I=(e,t)=>{var s;return(s=c.value)==null?void 0:s.validateFields(e,t)},j=async(e,t)=>{var r;const s=await((r=c.value)==null?void 0:r.validateFields(e,t));return h(s,F)},w=e=>{var t;return(t=c.value)==null?void 0:t.getFieldsValue(e)},x=e=>{var s;const t=(s=c.value)==null?void 0:s.getFieldsValue(e);return h(t,F)},E=(e,t)=>{var s;return(s=c.value)==null?void 0:s.validate(e,t)},S=(e,t={})=>{var s;(s=c.value)==null||s.scrollToField(e,t)},N=e=>{Object.assign(u,e),p()},q=(e,t)=>{V(e,t),p()};function b(e,t){return t||e(l.toRaw(u)),g.push(e),()=>{g=g.filter(s=>s!==e)}}function A({initialValue:e,name:t,transform:s}){if(T.isDef(e)&&T.isDef(t))if(V(t,e,!1),a.isArray(t)){let r=v;for(let o=0;o<t.length-1;o++)T.isDef(r[t[o]])||(r[t[o]]={}),r=r[t[o]];r[t[t.length-1]]=e}else v[t]=e;s&&(F=k.default(F,[t].flat(1),s,!0))}function D(e){if(e!==$.INTERNAL_FORM_INSTANCE_MARK){console.warn("getInternalInstance should only used at internal");return}return{registerField:A,registerWatch:b}}function p(){if(g.length){const e=l.toRaw(u);g.forEach(t=>{t(e)})}}function h(e,t){if(e==null)return;let s=a.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const o=e[r],n=t==null?void 0:t[r],d=a.isFunction(n)?n:n==null?void 0:n.transformer,W=a.isFunction(n)?!0:n==null?void 0:n.flat;if(a.isFunction(d)){const f=d(o);W?a.isArray(f)&&a.isArray(s)?s=[...s,...f]:a.isPlainObject(f)&&a.isPlainObject(s)?s={...s,...f}:s[r]=f:s[r]=f}else if(a.isPlainObject(o)||a.isArray(o)){const f=h(o,n);s[r]=f}else s[r]=o}),s}return C.useProvideForm({model:l.computed(()=>u),updateModel:V,internalInstance:{registerWatch:b,registerField:A,setFieldValue:q}}),U({resetFields:O,clearValidate:B,validateFields:I,getFieldsValue:w,validate:E,scrollToField:S,setFieldsValue:N,setFieldValue:q,registerWatch:b,validateFieldsReturnTransformed:j,getFieldsValueTransformed:x,getInternalInstance:D}),(e,t)=>(l.openBlock(),l.createBlock(l.unref(z.Form),l.mergeProps({ref_key:"formRef",ref:c},l.unref(a.omit)(i,["initialValues","onValuesChange","onFinish"]),{onFinish:M,model:u}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3},16,["model"]))}});exports.default=K;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),z=require("@aplus-frontend/antdv"),C=require("./context.js"),a=require("lodash-unified"),L=require("@vueuse/core"),$=require("./constant.js"),T=require("../utils/index.js"),k=require("./utils/set.js"),y=require("./utils/params.js"),K=l.defineComponent({__name:"ap-form",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},syncToUrl:{type:[Boolean,Function],default:!1},syncToUrlPriority:{type:Boolean}},setup(R,{expose:U}){const i=R;function V(e,t,s=!0){var o;if(a.isArray(e)){let n=u;for(let d=0;d<e.length-1;d++)e[d]in n||(n[e[d]]={}),n=n[e[d]];n[e[e.length-1]]=t}else u[e]=t;let r=a.isArray(e)?e[0]:e;s&&((o=i.onValuesChange)==null||o.call(i,{[r]:u[r]},u)),p()}const c=l.ref(),P=L.useUrlSearchParams(T.getRouteType()),_=l.ref(i.syncToUrl?y.genParams(i.syncToUrl,P,"get"):{});let v=a.cloneDeep(m()),F={};const u=l.reactive(m());let g=[];function m(){const e=i.initialValues||{};return i.syncToUrlPriority?{...e,...l.unref(_)}:{...l.unref(_),...e}}function M(e){var s;const t=h(e,F);i.syncToUrl&&y.setToParams(P,y.genParams(i.syncToUrl,t,"set")),(s=i.onFinish)==null||s.call(i,t)}const O=async()=>{var e;(e=c.value)==null||e.resetFields(),await l.nextTick(()=>{Object.keys(u).forEach(t=>delete u[t]),Object.assign(u,v),p(),i.syncToUrl&&y.setToParams(P,y.genParams(i.syncToUrl,h(v,F),"set"))})},B=e=>{var t;(t=c.value)==null||t.clearValidate(e)},I=(e,t)=>{var s;return(s=c.value)==null?void 0:s.validateFields(e,t)},j=async(e,t)=>{var r;const s=await((r=c.value)==null?void 0:r.validateFields(e,t));return h(s,F)},w=e=>{var t;return(t=c.value)==null?void 0:t.getFieldsValue(e)},x=e=>{var s;const t=(s=c.value)==null?void 0:s.getFieldsValue(e);return h(t,F)},E=(e,t)=>{var s;return(s=c.value)==null?void 0:s.validate(e,t)},S=(e,t={})=>{var s;(s=c.value)==null||s.scrollToField(e,t)},N=e=>{Object.assign(u,e),p()},q=(e,t)=>{V(e,t),p()};function b(e,t){return t||e(l.toRaw(u)),g.push(e),()=>{g=g.filter(s=>s!==e)}}function A({initialValue:e,name:t,transform:s}){if(T.isDef(e)&&T.isDef(t))if(V(t,e,!1),a.isArray(t)){let r=v;for(let o=0;o<t.length-1;o++)T.isDef(r[t[o]])||(r[t[o]]={}),r=r[t[o]];r[t[t.length-1]]=e}else v[t]=e;s&&(F=k.default(F,[t].flat(1),s,!0))}function D(e){if(e!==$.INTERNAL_FORM_INSTANCE_MARK){console.warn("getInternalInstance should only used at internal");return}return{registerField:A,registerWatch:b}}function p(){if(g.length){const e=l.toRaw(u);g.forEach(t=>{t(e)})}}function h(e,t){if(e==null)return;let s=a.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{const o=e[r],n=t==null?void 0:t[r],d=a.isFunction(n)?n:n==null?void 0:n.transformer,W=a.isFunction(n)?!0:n==null?void 0:n.flat;if(a.isFunction(d)){const f=d(o);W?a.isArray(f)&&a.isArray(s)?s=[...s,...f]:a.isPlainObject(f)&&a.isPlainObject(s)?s={...s,...f}:s[r]=f:s[r]=f}else if(a.isPlainObject(o)||a.isArray(o)){const f=h(o,n);s[r]=f}else s[r]=o}),s}return C.useProvideForm({model:l.computed(()=>u),updateModel:V,internalInstance:{registerWatch:b,registerField:A,setFieldValue:q}}),U({resetFields:O,clearValidate:B,validateFields:I,getFieldsValue:w,validate:E,scrollToField:S,setFieldsValue:N,setFieldValue:q,registerWatch:b,validateFieldsReturnTransformed:j,getFieldsValueTransformed:x,getInternalInstance:D}),(e,t)=>(l.openBlock(),l.createBlock(l.unref(z.Form),l.mergeProps({ref_key:"formRef",ref:c},l.unref(a.omit)(i,["initialValues","onValuesChange","onFinish"]),{model:u,onFinish:M}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3},16,["model"]))}});exports.default=K;