@aplus-frontend/ui 0.4.17 → 0.4.19

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 (287) hide show
  1. package/es/src/ap-action/item/index.vue.d.ts +1 -2
  2. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -2
  3. package/es/src/ap-action/item-modal/index.vue.d.ts +1 -2
  4. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +1 -2
  5. package/es/src/ap-button/ap-action-button.vue.d.ts +1 -2
  6. package/es/src/ap-button/ap-button.vue.d.ts +1 -2
  7. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -3
  8. package/es/src/ap-descriptions/help-message/index.vue.d.ts +5 -3
  9. package/es/src/ap-download/ap-download.vue.d.ts +3 -5
  10. package/es/src/ap-field/date/index.vue.d.ts +1 -2
  11. package/es/src/ap-field/date-range/index.vue.d.ts +1 -2
  12. package/es/src/ap-field/number/index.vue.d.ts +2 -324
  13. package/es/src/ap-field/radio/index.vue.d.ts +2 -98
  14. package/es/src/ap-field/rate/index.vue.d.ts +2 -84
  15. package/es/src/ap-field/segmented/index.vue.d.ts +1 -2
  16. package/es/src/ap-field/select/index.vue.d.ts +2 -409
  17. package/es/src/ap-field/select/index.vue.mjs +6 -7
  18. package/es/src/ap-field/slider/index.vue.d.ts +2 -259
  19. package/es/src/ap-field/switch/index.vue.d.ts +1 -2
  20. package/es/src/ap-field/text/index.vue.d.ts +1 -2
  21. package/es/src/ap-field/text/password.vue.d.ts +1 -2
  22. package/es/src/ap-field/text-area/index.vue.d.ts +2 -267
  23. package/es/src/ap-form/ap-form.vue.d.ts +4 -639
  24. package/es/src/ap-form/dependency/index.vue.d.ts +1 -2
  25. package/es/src/ap-form/drawer-form/index.vue.d.ts +6 -1457
  26. package/es/src/ap-form/item/index.vue.d.ts +2 -779
  27. package/es/src/ap-form/item-group/index.vue.d.ts +1 -2
  28. package/es/src/ap-form/items/checkbox/index.vue.d.ts +1 -2
  29. package/es/src/ap-form/items/date/index.vue.d.ts +1 -2
  30. package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -2
  31. package/es/src/ap-form/items/number/index.vue.d.ts +3 -785
  32. package/es/src/ap-form/items/radio/index.vue.d.ts +4 -223
  33. package/es/src/ap-form/items/select/index.vue.d.ts +1 -2
  34. package/es/src/ap-form/items/switch/index.vue.d.ts +1 -2
  35. package/es/src/ap-form/items/text/group.vue.d.ts +1 -2
  36. package/es/src/ap-form/items/text/index.vue.d.ts +3 -141
  37. package/es/src/ap-form/items/text/password.vue.d.ts +2 -150
  38. package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -568
  39. package/es/src/ap-form/list/index.vue.d.ts +1 -2
  40. package/es/src/ap-form/modal-form/index.vue.d.ts +7 -1457
  41. package/es/src/ap-form/provider/index.vue.d.ts +1 -2
  42. package/es/src/ap-form/render/control.vue.d.ts +1 -2
  43. package/es/src/ap-form/render/item.vue.d.ts +1 -2
  44. package/es/src/ap-form/search-form/index.vue.d.ts +5 -1457
  45. package/es/src/ap-form/set/index.vue.d.ts +1 -2
  46. package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +2 -3
  47. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +2 -6
  48. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +2 -3
  49. package/es/src/ap-list/index.vue.d.ts +5 -3
  50. package/es/src/ap-table/ap-table.vue.d.ts +10 -3
  51. package/es/src/ap-table/ap-table.vue2.mjs +72 -68
  52. package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
  53. package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  54. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +1 -2
  55. package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  56. package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  57. package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  58. package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  59. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  60. package/es/src/ap-table/constants.d.ts +14 -2264
  61. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  62. package/es/src/ap-table/interface.d.ts +9 -0
  63. package/es/src/ap-table/utils.d.ts +8 -1180
  64. package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -5
  65. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
  66. package/es/src/ap-upload/apUpload.vue.d.ts +2 -5
  67. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -453
  68. package/es/src/ap-upload/components/Picture.vue.d.ts +9 -7
  69. package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -3
  70. package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +3 -5
  71. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  72. package/es/src/business/ap-appendix/index.d.ts +1 -1
  73. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +2 -5
  74. package/es/src/business/ap-batch-action/index.d.ts +1 -3
  75. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +1 -2
  76. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -3
  77. package/es/src/business/ap-batch-action-group/index.d.ts +5 -887
  78. package/es/src/business/ap-card/ApCard.vue.d.ts +2 -3
  79. package/es/src/business/ap-card/index.d.ts +1 -1
  80. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -3
  81. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  82. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +2 -5
  83. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +8 -9
  84. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +346 -10
  85. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +7 -8
  86. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  87. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  88. package/es/src/business/ap-group-search/index.d.ts +4 -418
  89. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +340 -412
  90. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +14 -15
  91. package/es/src/business/ap-image/ApImage.vue.d.ts +1 -2
  92. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  93. package/es/src/business/ap-input-radio/index.d.ts +1 -1
  94. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
  95. package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
  96. package/es/src/business/ap-ladder/index.d.ts +1 -4
  97. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  98. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +5 -3
  99. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
  100. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
  101. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
  102. package/es/src/business/ap-table-modal/index.d.ts +44 -22
  103. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +2 -3
  104. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  105. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +18 -25
  106. package/es/src/business/ap-title/ApTitle.vue.d.ts +2 -3
  107. package/es/src/business/ap-title/index.d.ts +1 -1
  108. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +3 -5
  109. package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  110. package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  111. package/es/src/business/batch-input-group/index.vue.d.ts +3 -146
  112. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +2 -267
  113. package/es/src/business/hooks/usePageListApTable.d.ts +14 -0
  114. package/es/src/business/hooks/useTableRefresh.d.ts +4 -1
  115. package/es/src/business/hooks/useTableRefresh.mjs +33 -12
  116. package/es/src/check-card/group.vue.d.ts +1 -2
  117. package/es/src/check-card/index.vue.d.ts +2 -3
  118. package/es/src/config-provider/config-provider-props.d.ts +3 -0
  119. package/es/src/config-provider/config-provider-props.mjs +3 -0
  120. package/es/src/config-provider/config-provider.d.ts +6 -0
  121. package/es/src/config-provider/config-provider.mjs +24 -23
  122. package/es/src/config-provider/hooks/use-global-config.d.ts +3 -0
  123. package/es/src/config-provider/index.d.ts +9 -0
  124. package/es/src/editable-table/form-item.vue.d.ts +5 -3
  125. package/es/src/editable-table/index.vue.d.ts +5 -3
  126. package/es/src/full-screen/index.vue.d.ts +2 -6
  127. package/es/src/portal/index.vue.d.ts +1 -2
  128. package/es/src/resize-observer/index.vue.d.ts +1 -2
  129. package/es/src/scroll-bar/index.vue.d.ts +4 -43
  130. package/es/src/scroll-bar/index.vue.mjs +51 -49
  131. package/es/src/scroll-bar/internal.vue.d.ts +1 -5
  132. package/es/src/scroll-view/index.vue.d.ts +9 -97
  133. package/es/src/tests/wrapper.d.ts +4 -4
  134. package/es/src/theme/antd-global-overwrite/admin/index.css +20 -20
  135. package/es/src/theme/antd-global-overwrite/admin/table.css +20 -20
  136. package/es/src/theme/antd-global-overwrite/aplus/index.css +20 -20
  137. package/es/src/theme/antd-global-overwrite/aplus/table.css +20 -20
  138. package/es/src/utils/index.d.ts +8 -0
  139. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -827
  140. package/lib/src/ap-action/item/index.vue.d.ts +1 -2
  141. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -2
  142. package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -2
  143. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +1 -2
  144. package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -2
  145. package/lib/src/ap-button/ap-button.vue.d.ts +1 -2
  146. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +2 -3
  147. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +5 -3
  148. package/lib/src/ap-download/ap-download.vue.d.ts +3 -5
  149. package/lib/src/ap-field/date/index.vue.d.ts +1 -2
  150. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -2
  151. package/lib/src/ap-field/number/index.vue.d.ts +2 -324
  152. package/lib/src/ap-field/radio/index.vue.d.ts +2 -98
  153. package/lib/src/ap-field/rate/index.vue.d.ts +2 -84
  154. package/lib/src/ap-field/segmented/index.vue.d.ts +1 -2
  155. package/lib/src/ap-field/select/index.vue.d.ts +2 -409
  156. package/lib/src/ap-field/select/index.vue.js +1 -1
  157. package/lib/src/ap-field/slider/index.vue.d.ts +2 -259
  158. package/lib/src/ap-field/switch/index.vue.d.ts +1 -2
  159. package/lib/src/ap-field/text/index.vue.d.ts +1 -2
  160. package/lib/src/ap-field/text/password.vue.d.ts +1 -2
  161. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -267
  162. package/lib/src/ap-form/ap-form.vue.d.ts +4 -639
  163. package/lib/src/ap-form/dependency/index.vue.d.ts +1 -2
  164. package/lib/src/ap-form/drawer-form/index.vue.d.ts +6 -1457
  165. package/lib/src/ap-form/item/index.vue.d.ts +2 -779
  166. package/lib/src/ap-form/item-group/index.vue.d.ts +1 -2
  167. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +1 -2
  168. package/lib/src/ap-form/items/date/index.vue.d.ts +1 -2
  169. package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -2
  170. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -785
  171. package/lib/src/ap-form/items/radio/index.vue.d.ts +4 -223
  172. package/lib/src/ap-form/items/select/index.vue.d.ts +1 -2
  173. package/lib/src/ap-form/items/switch/index.vue.d.ts +1 -2
  174. package/lib/src/ap-form/items/text/group.vue.d.ts +1 -2
  175. package/lib/src/ap-form/items/text/index.vue.d.ts +3 -141
  176. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -150
  177. package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -568
  178. package/lib/src/ap-form/list/index.vue.d.ts +1 -2
  179. package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -1457
  180. package/lib/src/ap-form/provider/index.vue.d.ts +1 -2
  181. package/lib/src/ap-form/render/control.vue.d.ts +1 -2
  182. package/lib/src/ap-form/render/item.vue.d.ts +1 -2
  183. package/lib/src/ap-form/search-form/index.vue.d.ts +5 -1457
  184. package/lib/src/ap-form/set/index.vue.d.ts +1 -2
  185. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +2 -3
  186. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +2 -6
  187. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +2 -3
  188. package/lib/src/ap-list/index.vue.d.ts +5 -3
  189. package/lib/src/ap-table/ap-table.vue.d.ts +10 -3
  190. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  191. package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
  192. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  193. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +1 -2
  194. package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  195. package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  196. package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  197. package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  198. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  199. package/lib/src/ap-table/constants.d.ts +14 -2264
  200. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  201. package/lib/src/ap-table/interface.d.ts +9 -0
  202. package/lib/src/ap-table/utils.d.ts +8 -1180
  203. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -5
  204. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
  205. package/lib/src/ap-upload/apUpload.vue.d.ts +2 -5
  206. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -453
  207. package/lib/src/ap-upload/components/Picture.vue.d.ts +9 -7
  208. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -3
  209. package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +3 -5
  210. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  211. package/lib/src/business/ap-appendix/index.d.ts +1 -1
  212. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +2 -5
  213. package/lib/src/business/ap-batch-action/index.d.ts +1 -3
  214. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +1 -2
  215. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -3
  216. package/lib/src/business/ap-batch-action-group/index.d.ts +5 -887
  217. package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -3
  218. package/lib/src/business/ap-card/index.d.ts +1 -1
  219. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -3
  220. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  221. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +2 -5
  222. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  223. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +346 -10
  224. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  225. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  226. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  227. package/lib/src/business/ap-group-search/index.d.ts +4 -418
  228. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +340 -412
  229. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  230. package/lib/src/business/ap-image/ApImage.vue.d.ts +1 -2
  231. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  232. package/lib/src/business/ap-input-radio/index.d.ts +1 -1
  233. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
  234. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +1 -1
  235. package/lib/src/business/ap-ladder/index.d.ts +1 -4
  236. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  237. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +5 -3
  238. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +14 -0
  239. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +14 -0
  240. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +14 -0
  241. package/lib/src/business/ap-table-modal/index.d.ts +44 -22
  242. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +2 -3
  243. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  244. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +18 -25
  245. package/lib/src/business/ap-title/ApTitle.vue.d.ts +2 -3
  246. package/lib/src/business/ap-title/index.d.ts +1 -1
  247. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +3 -5
  248. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  249. package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  250. package/lib/src/business/batch-input-group/index.vue.d.ts +3 -146
  251. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +2 -267
  252. package/lib/src/business/hooks/usePageListApTable.d.ts +14 -0
  253. package/lib/src/business/hooks/useTableRefresh.d.ts +4 -1
  254. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  255. package/lib/src/check-card/group.vue.d.ts +1 -2
  256. package/lib/src/check-card/index.vue.d.ts +2 -3
  257. package/lib/src/config-provider/config-provider-props.d.ts +3 -0
  258. package/lib/src/config-provider/config-provider-props.js +1 -1
  259. package/lib/src/config-provider/config-provider.d.ts +6 -0
  260. package/lib/src/config-provider/config-provider.js +1 -1
  261. package/lib/src/config-provider/hooks/use-global-config.d.ts +3 -0
  262. package/lib/src/config-provider/index.d.ts +9 -0
  263. package/lib/src/editable-table/form-item.vue.d.ts +5 -3
  264. package/lib/src/editable-table/index.vue.d.ts +5 -3
  265. package/lib/src/full-screen/index.vue.d.ts +2 -6
  266. package/lib/src/portal/index.vue.d.ts +1 -2
  267. package/lib/src/resize-observer/index.vue.d.ts +1 -2
  268. package/lib/src/scroll-bar/index.vue.d.ts +4 -43
  269. package/lib/src/scroll-bar/index.vue.js +1 -1
  270. package/lib/src/scroll-bar/internal.vue.d.ts +1 -5
  271. package/lib/src/scroll-view/index.vue.d.ts +9 -97
  272. package/lib/src/tests/wrapper.d.ts +4 -4
  273. package/lib/src/theme/antd-global-overwrite/admin/index.css +20 -20
  274. package/lib/src/theme/antd-global-overwrite/admin/table.css +20 -20
  275. package/lib/src/theme/antd-global-overwrite/aplus/index.css +20 -20
  276. package/lib/src/theme/antd-global-overwrite/aplus/table.css +20 -20
  277. package/lib/src/utils/index.d.ts +8 -0
  278. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -827
  279. package/package.json +3 -3
  280. package/theme/antd-global-overwrite/admin/index.css +20 -20
  281. package/theme/antd-global-overwrite/admin/table.css +20 -20
  282. package/theme/antd-global-overwrite/admin/table.less +3 -3
  283. package/theme/antd-global-overwrite/aplus/index.css +20 -20
  284. package/theme/antd-global-overwrite/aplus/table.css +20 -20
  285. package/theme/antd-global-overwrite/aplus/table.less +3 -3
  286. package/theme/ap-scroll-bar/index.css +0 -31
  287. package/theme/ap-scroll-bar/index.less +0 -39
@@ -8,7 +8,6 @@ import { FieldMode } from '..';
8
8
  declare function focus(): void;
9
9
  declare function blur(): void;
10
10
  declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
11
  slots: Readonly<{
13
12
  character: any;
14
13
  }> & {
@@ -96,7 +95,7 @@ declare function __VLS_template(): {
96
95
  allowHalf: boolean;
97
96
  }> | null;
98
97
  };
99
- rootEl: any;
98
+ attrs: Partial<{}>;
100
99
  };
101
100
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
102
101
  declare const __VLS_component: DefineComponent<ApFieldRateProps, {
@@ -114,88 +113,7 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
114
113
  allowClear: boolean;
115
114
  allowHalf: boolean;
116
115
  character: any;
117
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
118
- rateRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
119
- prefixCls: StringConstructor;
120
- count: NumberConstructor;
121
- value: NumberConstructor;
122
- allowHalf: {
123
- type: BooleanConstructor;
124
- default: any;
125
- };
126
- allowClear: {
127
- type: BooleanConstructor;
128
- default: any;
129
- };
130
- tooltips: PropType<string[]>;
131
- disabled: {
132
- type: BooleanConstructor;
133
- default: any;
134
- };
135
- character: VueTypeValidableDef<any>;
136
- autofocus: {
137
- type: BooleanConstructor;
138
- default: any;
139
- };
140
- tabindex: VueTypeDef<string | number>;
141
- direction: PropType<Direction>;
142
- id: StringConstructor;
143
- onChange: PropType<(value: number) => void>;
144
- onHoverChange: PropType<(value: number) => void>;
145
- 'onUpdate:value': PropType<(value: number) => void>;
146
- onFocus: PropType<FocusEventHandler>;
147
- onBlur: PropType<FocusEventHandler>;
148
- onKeydown: PropType<KeyboardEventHandler>;
149
- }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
150
- disabled: boolean;
151
- autofocus: boolean;
152
- allowClear: boolean;
153
- allowHalf: boolean;
154
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
155
- P: {};
156
- B: {};
157
- D: {};
158
- C: {};
159
- M: {};
160
- Defaults: {};
161
- }, Readonly< ExtractPropTypes<{
162
- prefixCls: StringConstructor;
163
- count: NumberConstructor;
164
- value: NumberConstructor;
165
- allowHalf: {
166
- type: BooleanConstructor;
167
- default: any;
168
- };
169
- allowClear: {
170
- type: BooleanConstructor;
171
- default: any;
172
- };
173
- tooltips: PropType<string[]>;
174
- disabled: {
175
- type: BooleanConstructor;
176
- default: any;
177
- };
178
- character: VueTypeValidableDef<any>;
179
- autofocus: {
180
- type: BooleanConstructor;
181
- default: any;
182
- };
183
- tabindex: VueTypeDef<string | number>;
184
- direction: PropType<Direction>;
185
- id: StringConstructor;
186
- onChange: PropType<(value: number) => void>;
187
- onHoverChange: PropType<(value: number) => void>;
188
- 'onUpdate:value': PropType<(value: number) => void>;
189
- onFocus: PropType<FocusEventHandler>;
190
- onBlur: PropType<FocusEventHandler>;
191
- onKeydown: PropType<KeyboardEventHandler>;
192
- }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
193
- disabled: boolean;
194
- autofocus: boolean;
195
- allowClear: boolean;
196
- allowHalf: boolean;
197
- }> | null;
198
- }, any>;
116
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
199
117
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
200
118
  export default _default;
201
119
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -2,7 +2,6 @@ import { ApFieldSegmentedProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { FieldMode } from '..';
4
4
  declare function __VLS_template(): {
5
- attrs: Partial<{}>;
6
5
  slots: {
7
6
  label?(_: {
8
7
  value: string | number;
@@ -13,7 +12,7 @@ declare function __VLS_template(): {
13
12
  }): any;
14
13
  };
15
14
  refs: {};
16
- rootEl: any;
15
+ attrs: Partial<{}>;
17
16
  };
18
17
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
18
  declare const __VLS_component: DefineComponent<ApFieldSegmentedProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -26,7 +26,6 @@ declare function requestIfNeeded(clear?: boolean): Promise<void>;
26
26
  declare function focus(): void;
27
27
  declare function blur(): void;
28
28
  declare function __VLS_template(): {
29
- attrs: Partial<{}>;
30
29
  slots: Readonly<ApFieldSelectSlots> & ApFieldSelectSlots;
31
30
  refs: {
32
31
  selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
@@ -191,7 +190,6 @@ declare function __VLS_template(): {
191
190
  type: BooleanConstructor;
192
191
  default: any;
193
192
  };
194
- onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
195
193
  labelInValue: {
196
194
  type: BooleanConstructor;
197
195
  default: any;
@@ -402,7 +400,6 @@ declare function __VLS_template(): {
402
400
  type: BooleanConstructor;
403
401
  default: any;
404
402
  };
405
- onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
406
403
  labelInValue: {
407
404
  type: BooleanConstructor;
408
405
  default: any;
@@ -433,7 +430,7 @@ declare function __VLS_template(): {
433
430
  labelInValue: boolean;
434
431
  }> | null;
435
432
  };
436
- rootEl: any;
433
+ attrs: Partial<{}>;
437
434
  };
438
435
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
439
436
  declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
@@ -464,411 +461,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
464
461
  emptyText: string;
465
462
  searchMode: "filter" | "request";
466
463
  refetchOnFocus: boolean;
467
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
468
- selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
469
- value: {
470
- type: PropType<SelectValue>;
471
- default: SelectValue;
472
- };
473
- defaultValue: {
474
- type: PropType<SelectValue>;
475
- default: SelectValue;
476
- };
477
- notFoundContent: VueTypeValidableDef<any>;
478
- suffixIcon: VueTypeValidableDef<any>;
479
- itemIcon: VueTypeValidableDef<any>;
480
- size: {
481
- type: PropType<ButtonSize>;
482
- default: ButtonSize;
483
- };
484
- mode: {
485
- type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
486
- default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
487
- };
488
- bordered: {
489
- type: BooleanConstructor;
490
- default: boolean;
491
- };
492
- transitionName: StringConstructor;
493
- choiceTransitionName: {
494
- type: PropType<"">;
495
- default: "";
496
- };
497
- popupClassName: StringConstructor;
498
- dropdownClassName: StringConstructor;
499
- placement: {
500
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
501
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
502
- };
503
- status: {
504
- type: PropType<"" | "error" | "warning">;
505
- default: "" | "error" | "warning";
506
- };
507
- 'onUpdate:value': {
508
- type: PropType<(val: SelectValue) => void>;
509
- default: (val: SelectValue) => void;
510
- };
511
- children: PropType< VueNode[]>;
512
- listHeight: NumberConstructor;
513
- onMouseenter: PropType<(e: MouseEvent) => void>;
514
- onMouseleave: PropType<(e: MouseEvent) => void>;
515
- tabindex: NumberConstructor;
516
- onClick: PropType<(e: MouseEvent) => void>;
517
- onFocus: {
518
- type: PropType<(e: FocusEvent) => void>;
519
- };
520
- onBlur: {
521
- type: PropType<(e: FocusEvent) => void>;
522
- };
523
- onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
524
- onKeydown: PropType<(e: KeyboardEvent) => void>;
525
- onKeyup: PropType<(e: KeyboardEvent) => void>;
526
- onMousedown: PropType<(e: MouseEvent) => void>;
527
- onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
528
- open: {
529
- type: BooleanConstructor;
530
- default: any;
531
- };
532
- animation: StringConstructor;
533
- direction: {
534
- type: PropType<"rtl" | "ltr">;
535
- };
536
- disabled: {
537
- type: BooleanConstructor;
538
- default: any;
539
- };
540
- prefixCls: StringConstructor;
541
- id: StringConstructor;
542
- autofocus: BooleanConstructor;
543
- getPopupContainer: {
544
- type: PropType<RenderDOMFunc>;
545
- };
546
- virtual: {
547
- type: BooleanConstructor;
548
- default: any;
549
- };
550
- dropdownMatchSelectWidth: {
551
- type: PropType<number | boolean>;
552
- default: any;
553
- };
554
- options: PropType<DefaultOptionType[]>;
555
- showAction: {
556
- type: PropType<("click" | "focus")[]>;
557
- };
558
- onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
559
- loading: {
560
- type: BooleanConstructor;
561
- default: any;
562
- };
563
- placeholder: VueTypeValidableDef<any>;
564
- clearIcon: VueTypeValidableDef<any>;
565
- allowClear: {
566
- type: BooleanConstructor;
567
- default: any;
568
- };
569
- onSearch: PropType<(value: string) => void>;
570
- fieldNames: PropType<FieldNames>;
571
- dropdownStyle: {
572
- type: PropType<CSSProperties>;
573
- };
574
- dropdownRender: {
575
- type: PropType<DropdownRender>;
576
- };
577
- dropdownAlign: PropType<AlignType>;
578
- showSearch: {
579
- type: BooleanConstructor;
580
- default: any;
581
- };
582
- searchValue: StringConstructor;
583
- onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
584
- removeIcon: VueTypeValidableDef<any>;
585
- maxTagCount: {
586
- type: PropType<number | "responsive">;
587
- };
588
- maxTagTextLength: NumberConstructor;
589
- maxTagPlaceholder: VueTypeValidableDef<any>;
590
- tokenSeparators: {
591
- type: PropType<string[]>;
592
- };
593
- tagRender: {
594
- type: PropType<(props: CustomTagProps) => any>;
595
- };
596
- optionLabelRender: {
597
- type: PropType<(option: Record<string, any>) => any>;
598
- };
599
- onClear: PropType<() => void>;
600
- defaultOpen: {
601
- type: BooleanConstructor;
602
- default: any;
603
- };
604
- onDropdownVisibleChange: {
605
- type: PropType<(open: boolean) => void>;
606
- };
607
- showArrow: {
608
- type: BooleanConstructor;
609
- default: any;
610
- };
611
- onPopupScroll: PropType<(e: UIEvent) => void>;
612
- menuItemSelectedIcon: VueTypeValidableDef<any>;
613
- listItemHeight: NumberConstructor;
614
- inputValue: StringConstructor;
615
- autoClearSearchValue: {
616
- type: BooleanConstructor;
617
- default: any;
618
- };
619
- filterOption: {
620
- type: PropType<boolean | FilterFunc<DefaultOptionType>>;
621
- default: any;
622
- };
623
- filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
624
- optionFilterProp: StringConstructor;
625
- optionLabelProp: StringConstructor;
626
- defaultActiveFirstOption: {
627
- type: BooleanConstructor;
628
- default: any;
629
- };
630
- onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
631
- labelInValue: {
632
- type: BooleanConstructor;
633
- default: any;
634
- };
635
- }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
636
- size: ButtonSize;
637
- value: SelectValue;
638
- mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
639
- open: boolean;
640
- disabled: boolean;
641
- autofocus: boolean;
642
- virtual: boolean;
643
- dropdownMatchSelectWidth: number | boolean;
644
- status: "" | "error" | "warning";
645
- defaultValue: SelectValue;
646
- 'onUpdate:value': (val: SelectValue) => void;
647
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
648
- loading: boolean;
649
- bordered: boolean;
650
- allowClear: boolean;
651
- showSearch: boolean;
652
- choiceTransitionName: "";
653
- defaultOpen: boolean;
654
- showArrow: boolean;
655
- autoClearSearchValue: boolean;
656
- filterOption: boolean | FilterFunc<DefaultOptionType>;
657
- defaultActiveFirstOption: boolean;
658
- labelInValue: boolean;
659
- }, true, {}, CustomSlotsType<{
660
- notFoundContent: any;
661
- suffixIcon: any;
662
- itemIcon: any;
663
- removeIcon: any;
664
- clearIcon: any;
665
- dropdownRender: any;
666
- option: any;
667
- placeholder: any;
668
- tagRender: any;
669
- maxTagPlaceholder: any;
670
- optionLabel: any;
671
- default: any;
672
- }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
673
- P: {};
674
- B: {};
675
- D: {};
676
- C: {};
677
- M: {};
678
- Defaults: {};
679
- }, Readonly< ExtractPropTypes<{
680
- value: {
681
- type: PropType<SelectValue>;
682
- default: SelectValue;
683
- };
684
- defaultValue: {
685
- type: PropType<SelectValue>;
686
- default: SelectValue;
687
- };
688
- notFoundContent: VueTypeValidableDef<any>;
689
- suffixIcon: VueTypeValidableDef<any>;
690
- itemIcon: VueTypeValidableDef<any>;
691
- size: {
692
- type: PropType<ButtonSize>;
693
- default: ButtonSize;
694
- };
695
- mode: {
696
- type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
697
- default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
698
- };
699
- bordered: {
700
- type: BooleanConstructor;
701
- default: boolean;
702
- };
703
- transitionName: StringConstructor;
704
- choiceTransitionName: {
705
- type: PropType<"">;
706
- default: "";
707
- };
708
- popupClassName: StringConstructor;
709
- dropdownClassName: StringConstructor;
710
- placement: {
711
- type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
712
- default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
713
- };
714
- status: {
715
- type: PropType<"" | "error" | "warning">;
716
- default: "" | "error" | "warning";
717
- };
718
- 'onUpdate:value': {
719
- type: PropType<(val: SelectValue) => void>;
720
- default: (val: SelectValue) => void;
721
- };
722
- children: PropType< VueNode[]>;
723
- listHeight: NumberConstructor;
724
- onMouseenter: PropType<(e: MouseEvent) => void>;
725
- onMouseleave: PropType<(e: MouseEvent) => void>;
726
- tabindex: NumberConstructor;
727
- onClick: PropType<(e: MouseEvent) => void>;
728
- onFocus: {
729
- type: PropType<(e: FocusEvent) => void>;
730
- };
731
- onBlur: {
732
- type: PropType<(e: FocusEvent) => void>;
733
- };
734
- onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
735
- onKeydown: PropType<(e: KeyboardEvent) => void>;
736
- onKeyup: PropType<(e: KeyboardEvent) => void>;
737
- onMousedown: PropType<(e: MouseEvent) => void>;
738
- onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
739
- open: {
740
- type: BooleanConstructor;
741
- default: any;
742
- };
743
- animation: StringConstructor;
744
- direction: {
745
- type: PropType<"rtl" | "ltr">;
746
- };
747
- disabled: {
748
- type: BooleanConstructor;
749
- default: any;
750
- };
751
- prefixCls: StringConstructor;
752
- id: StringConstructor;
753
- autofocus: BooleanConstructor;
754
- getPopupContainer: {
755
- type: PropType<RenderDOMFunc>;
756
- };
757
- virtual: {
758
- type: BooleanConstructor;
759
- default: any;
760
- };
761
- dropdownMatchSelectWidth: {
762
- type: PropType<number | boolean>;
763
- default: any;
764
- };
765
- options: PropType<DefaultOptionType[]>;
766
- showAction: {
767
- type: PropType<("click" | "focus")[]>;
768
- };
769
- onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
770
- loading: {
771
- type: BooleanConstructor;
772
- default: any;
773
- };
774
- placeholder: VueTypeValidableDef<any>;
775
- clearIcon: VueTypeValidableDef<any>;
776
- allowClear: {
777
- type: BooleanConstructor;
778
- default: any;
779
- };
780
- onSearch: PropType<(value: string) => void>;
781
- fieldNames: PropType<FieldNames>;
782
- dropdownStyle: {
783
- type: PropType<CSSProperties>;
784
- };
785
- dropdownRender: {
786
- type: PropType<DropdownRender>;
787
- };
788
- dropdownAlign: PropType<AlignType>;
789
- showSearch: {
790
- type: BooleanConstructor;
791
- default: any;
792
- };
793
- searchValue: StringConstructor;
794
- onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
795
- removeIcon: VueTypeValidableDef<any>;
796
- maxTagCount: {
797
- type: PropType<number | "responsive">;
798
- };
799
- maxTagTextLength: NumberConstructor;
800
- maxTagPlaceholder: VueTypeValidableDef<any>;
801
- tokenSeparators: {
802
- type: PropType<string[]>;
803
- };
804
- tagRender: {
805
- type: PropType<(props: CustomTagProps) => any>;
806
- };
807
- optionLabelRender: {
808
- type: PropType<(option: Record<string, any>) => any>;
809
- };
810
- onClear: PropType<() => void>;
811
- defaultOpen: {
812
- type: BooleanConstructor;
813
- default: any;
814
- };
815
- onDropdownVisibleChange: {
816
- type: PropType<(open: boolean) => void>;
817
- };
818
- showArrow: {
819
- type: BooleanConstructor;
820
- default: any;
821
- };
822
- onPopupScroll: PropType<(e: UIEvent) => void>;
823
- menuItemSelectedIcon: VueTypeValidableDef<any>;
824
- listItemHeight: NumberConstructor;
825
- inputValue: StringConstructor;
826
- autoClearSearchValue: {
827
- type: BooleanConstructor;
828
- default: any;
829
- };
830
- filterOption: {
831
- type: PropType<boolean | FilterFunc<DefaultOptionType>>;
832
- default: any;
833
- };
834
- filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
835
- optionFilterProp: StringConstructor;
836
- optionLabelProp: StringConstructor;
837
- defaultActiveFirstOption: {
838
- type: BooleanConstructor;
839
- default: any;
840
- };
841
- onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
842
- labelInValue: {
843
- type: BooleanConstructor;
844
- default: any;
845
- };
846
- }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
847
- size: ButtonSize;
848
- value: SelectValue;
849
- mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
850
- open: boolean;
851
- disabled: boolean;
852
- autofocus: boolean;
853
- virtual: boolean;
854
- dropdownMatchSelectWidth: number | boolean;
855
- status: "" | "error" | "warning";
856
- defaultValue: SelectValue;
857
- 'onUpdate:value': (val: SelectValue) => void;
858
- placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
859
- loading: boolean;
860
- bordered: boolean;
861
- allowClear: boolean;
862
- showSearch: boolean;
863
- choiceTransitionName: "";
864
- defaultOpen: boolean;
865
- showArrow: boolean;
866
- autoClearSearchValue: boolean;
867
- filterOption: boolean | FilterFunc<DefaultOptionType>;
868
- defaultActiveFirstOption: boolean;
869
- labelInValue: boolean;
870
- }> | null;
871
- }, any>;
464
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
872
465
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
873
466
  export default _default;
874
467
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash-unified"),w=require("@aplus-frontend/antdv");require("../../hooks/index.js");const M=require("../../utils/index.js"),T=require("../hooks/use-default-placeholder.js"),_=require("../hooks/use-options.js"),A=require("../../hooks/useControllableValue.js"),D={key:0},L=o.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean,default:void 0},placeholder:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},onClickOption:{},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},emits:["update:value"],setup(S,{expose:g,emit:B}){let r=0;const C=i.debounce(t=>{if(!i.isFunction(e.request))return;r+=1;const n=r;s([]),u.value=!0,e.request(t).then(l=>{r===n&&s(l)}).finally(()=>{u.value=!1})},300),e=S,b=(t,n)=>{var a;const l=((a=e.fieldNames)==null?void 0:a.label)||"label";return typeof(n==null?void 0:n[l])=="string"&&n[l].toLowerCase().indexOf(t.toLowerCase())>-1},{options:c,updateOptions:s}=_.default(e),f=o.ref(),u=o.ref((e==null?void 0:e.loading)||!1),F=B;async function p(t=!0){if(!i.isFunction(e.request))return;u.value=!0,r+=1;const n=r;try{t&&s([]);const l=await e.request();if(n!==r)return;s(l)}finally{u.value=!1}}function q(t){var n;(n=e.onFocus)==null||n.call(e,t),e.refetchOnFocus&&r>0&&!u.value&&p(!0)}o.onMounted(()=>{if(e.lazy){r+=1;return}p()});const{value:v,updateValue:O}=A.useControllableValue(e,F),x=T.useDefaultPlaceholder("Select",e),N=o.computed(()=>{var d,h;const t=o.unref(v);if(!t)return e.emptyText;const n=((d=e.fieldNames)==null?void 0:d.label)||"label",l=((h=e.fieldNames)==null?void 0:h.value)||"value";if(i.isArray(t))return t.map(m=>{var y;return(y=o.unref(c).find(k=>k[l]===m))==null?void 0:y[n]}).filter(Boolean).join("、")||e.emptyText;const a=o.unref(c).find(m=>m[l]===t);return(a==null?void 0:a[n])||e.emptyText}),I=o.computed(()=>{const t=!!(e!=null&&e.showSearch),n=e.searchMode;let l={};return t&&(l=n==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:C,notFoundContent:u.value?void 0:null}:{showArrow:!0,filterOption:i.isNil(e==null?void 0:e.filterOption)?b:e==null?void 0:e.filterOption}),{...M.omitUndefined(i.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"])),placeholder:o.unref(x),...l}});function P(){var t;(t=f.value)==null||t.focus()}function V(){var t;(t=f.value)==null||t.blur()}return g({focus:P,blur:V,request:p}),(t,n)=>t.mode==="read"?(o.openBlock(),o.createElementBlock("span",D,o.toDisplayString(N.value),1)):(o.openBlock(),o.createBlock(o.unref(w.Select),o.mergeProps({key:1,ref_key:"selectRef",ref:f,"allow-clear":""},I.value,{mode:t.multiple?"multiple":void 0,value:o.unref(v),options:o.unref(c),loading:u.value,"onUpdate:value":o.unref(O),onFocus:q}),o.createSlots({_:2},[o.renderList(t.$slots,(l,a)=>({name:a,fn:o.withCtx(d=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(d||{})))])})),u.value?{name:"notFoundContent",fn:o.withCtx(()=>[o.createVNode(o.unref(w.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading","onUpdate:value"]))}});exports.default=L;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash-unified"),w=require("@aplus-frontend/antdv");require("../../hooks/index.js");const k=require("../../utils/index.js"),T=require("../hooks/use-default-placeholder.js"),_=require("../hooks/use-options.js"),A=require("../../hooks/useControllableValue.js"),D={key:0},L=o.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean,default:void 0},placeholder:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},emits:["update:value"],setup(S,{expose:g,emit:B}){let r=0;const C=i.debounce(t=>{if(!i.isFunction(e.request))return;r+=1;const n=r;s([]),u.value=!0,e.request(t).then(l=>{r===n&&s(l)}).finally(()=>{u.value=!1})},300),e=S,b=(t,n)=>{var a;const l=((a=e.fieldNames)==null?void 0:a.label)||"label";return typeof(n==null?void 0:n[l])=="string"&&n[l].toLowerCase().indexOf(t.toLowerCase())>-1},{options:c,updateOptions:s}=_.default(e),f=o.ref(),u=o.ref((e==null?void 0:e.loading)||!1),F=B;async function p(t=!0){if(!i.isFunction(e.request))return;u.value=!0,r+=1;const n=r;try{t&&s([]);const l=await e.request();if(n!==r)return;s(l)}finally{u.value=!1}}function q(t){var n;(n=e.onFocus)==null||n.call(e,t),e.refetchOnFocus&&r>0&&!u.value&&p(!0)}o.onMounted(()=>{if(e.lazy){r+=1;return}p()});const{value:v,updateValue:x}=A.useControllableValue(e,F),N=T.useDefaultPlaceholder("Select",e),O=o.computed(()=>{var d,h;const t=o.unref(v);if(!t)return e.emptyText;const n=((d=e.fieldNames)==null?void 0:d.label)||"label",l=((h=e.fieldNames)==null?void 0:h.value)||"value";if(i.isArray(t))return t.map(m=>{var y;return(y=o.unref(c).find(M=>M[l]===m))==null?void 0:y[n]}).filter(Boolean).join("、")||e.emptyText;const a=o.unref(c).find(m=>m[l]===t);return(a==null?void 0:a[n])||e.emptyText}),I=o.computed(()=>{const t=!!(e!=null&&e.showSearch),n=e.searchMode;let l={};return t&&(l=n==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:C,notFoundContent:u.value?void 0:null}:{showArrow:!0,filterOption:i.isNil(e==null?void 0:e.filterOption)?b:e==null?void 0:e.filterOption}),{...k.omitUndefined(i.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"])),placeholder:o.unref(N),...l}});function P(){var t;(t=f.value)==null||t.focus()}function V(){var t;(t=f.value)==null||t.blur()}return g({focus:P,blur:V,request:p}),(t,n)=>t.mode==="read"?(o.openBlock(),o.createElementBlock("span",D,o.toDisplayString(O.value),1)):(o.openBlock(),o.createBlock(o.unref(w.Select),o.mergeProps({key:1,ref_key:"selectRef",ref:f,"allow-clear":""},I.value,{mode:t.multiple?"multiple":void 0,value:o.unref(v),options:o.unref(c),loading:u.value,"onUpdate:value":o.unref(x),onFocus:q}),o.createSlots({_:2},[o.renderList(t.$slots,(l,a)=>({name:a,fn:o.withCtx(d=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(d||{})))])})),u.value?{name:"notFoundContent",fn:o.withCtx(()=>[o.createVNode(o.unref(w.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading","onUpdate:value"]))}});exports.default=L;