amis-ui 2.3.2-beta.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (628) hide show
  1. package/esm/components/404.js +1 -1
  2. package/esm/components/Alert.js +1 -1
  3. package/esm/components/Alert2.js +2 -2
  4. package/esm/components/AnchorNav.js +1 -1
  5. package/esm/components/ArrayInput.js +1 -1
  6. package/esm/components/AsideNav.js +1 -1
  7. package/esm/components/AssociatedSelection.js +1 -1
  8. package/esm/components/Avatar.d.ts +2 -2
  9. package/esm/components/Avatar.js +4 -4
  10. package/esm/components/Badge.js +1 -1
  11. package/esm/components/BaiduMapPicker.d.ts +1 -1
  12. package/esm/components/BaiduMapPicker.js +5 -5
  13. package/esm/components/BarCode.js +1 -1
  14. package/esm/components/Breadcrumb.js +1 -1
  15. package/esm/components/Button.js +3 -3
  16. package/esm/components/CalendarMobile.js +1 -1
  17. package/esm/components/Card.js +1 -1
  18. package/esm/components/Cascader.js +22 -14
  19. package/esm/components/ChainedSelection.js +1 -1
  20. package/esm/components/Checkbox.js +1 -1
  21. package/esm/components/CityArea.js +1 -1
  22. package/esm/components/CityDB.js +1 -1
  23. package/esm/components/CodeMirror.js +1 -1
  24. package/esm/components/Collapse.js +1 -1
  25. package/esm/components/CollapseGroup.js +1 -1
  26. package/esm/components/ColorPicker.js +1 -1
  27. package/esm/components/ContextMenu.js +1 -1
  28. package/esm/components/DatePicker.js +1 -1
  29. package/esm/components/DateRangePicker.js +3 -7
  30. package/esm/components/Drawer.js +1 -1
  31. package/esm/components/Editor.js +1 -1
  32. package/esm/components/Form.js +1 -1
  33. package/esm/components/FormField.js +1 -1
  34. package/esm/components/GridNav.js +1 -1
  35. package/esm/components/GroupedSelection.js +1 -1
  36. package/esm/components/Html.js +1 -1
  37. package/esm/components/ImageGallery.js +1 -1
  38. package/esm/components/Input.js +1 -1
  39. package/esm/components/InputBox.js +1 -1
  40. package/esm/components/InputBoxWithSuggestion.js +1 -1
  41. package/esm/components/Layout.js +1 -1
  42. package/esm/components/Link.js +1 -1
  43. package/esm/components/ListGroup.d.ts +10 -10
  44. package/esm/components/ListGroup.js +1 -1
  45. package/esm/components/ListMenu.js +1 -1
  46. package/esm/components/LocationPicker.js +1 -1
  47. package/esm/components/Markdown.js +1 -1
  48. package/esm/components/Modal.js +1 -1
  49. package/esm/components/ModalManager.js +1 -1
  50. package/esm/components/MultilineText.d.ts +462 -0
  51. package/esm/components/MultilineText.js +85 -0
  52. package/esm/components/NumberInput.d.ts +34 -11
  53. package/esm/components/NumberInput.js +88 -34
  54. package/esm/components/Pagination.js +1 -1
  55. package/esm/components/Picker.js +1 -1
  56. package/esm/components/PickerColumn.js +1 -1
  57. package/esm/components/PickerContainer.js +1 -1
  58. package/esm/components/PopOverContainer.js +1 -1
  59. package/esm/components/PopUp.js +1 -1
  60. package/esm/components/Progress.js +1 -1
  61. package/esm/components/PullRefresh.js +1 -1
  62. package/esm/components/Radios.js +1 -1
  63. package/esm/components/Range.js +1 -1
  64. package/esm/components/Rating.js +1 -1
  65. package/esm/components/ResultBox.js +1 -1
  66. package/esm/components/ResultList.js +17 -15
  67. package/esm/components/ResultTableList.js +1 -1
  68. package/esm/components/ResultTreeList.js +10 -8
  69. package/esm/components/RichText.js +1 -1
  70. package/esm/components/SearchBox.js +1 -1
  71. package/esm/components/Select.js +1 -1
  72. package/esm/components/Selection.js +7 -5
  73. package/esm/components/SparkLine.js +1 -1
  74. package/esm/components/Spinner.js +1 -1
  75. package/esm/components/Steps.js +1 -1
  76. package/esm/components/Switch.js +1 -1
  77. package/esm/components/TableSelection.js +1 -1
  78. package/esm/components/Tabs.js +3 -1
  79. package/esm/components/TabsTransfer.js +1 -1
  80. package/esm/components/TabsTransferPicker.js +1 -1
  81. package/esm/components/Tag.js +1 -1
  82. package/esm/components/Textarea.js +1 -1
  83. package/esm/components/Timeline.js +1 -1
  84. package/esm/components/TimelineItem.js +2 -2
  85. package/esm/components/Tinymce.d.ts +1 -0
  86. package/esm/components/Tinymce.js +5 -3
  87. package/esm/components/TitleBar.js +1 -1
  88. package/esm/components/Toast.js +1 -1
  89. package/esm/components/Tooltip.js +1 -1
  90. package/esm/components/TooltipWrapper.js +1 -1
  91. package/esm/components/Transfer.js +1 -1
  92. package/esm/components/TransferDropDown.js +1 -1
  93. package/esm/components/TransferPicker.js +1 -1
  94. package/esm/components/TransferSearch.js +1 -1
  95. package/esm/components/Tree.js +1 -1
  96. package/esm/components/TreeSelection.js +1 -1
  97. package/esm/components/UserSelect.js +3 -1
  98. package/esm/components/UserTabSelect.js +3 -1
  99. package/esm/components/WithRemoteConfig.js +1 -1
  100. package/esm/components/WithStore.js +1 -1
  101. package/esm/components/calendar/Calendar.js +2 -6
  102. package/esm/components/calendar/CalendarContainer.js +1 -1
  103. package/esm/components/calendar/DaysView.js +1 -1
  104. package/esm/components/calendar/MonthsView.js +1 -1
  105. package/esm/components/calendar/QuartersView.js +1 -1
  106. package/esm/components/calendar/TimeView.js +2 -2
  107. package/esm/components/calendar/YearsView.js +1 -1
  108. package/esm/components/condition-builder/Expression.js +1 -1
  109. package/esm/components/condition-builder/Field.js +1 -1
  110. package/esm/components/condition-builder/Formula.js +1 -1
  111. package/esm/components/condition-builder/Func.js +1 -1
  112. package/esm/components/condition-builder/Group.d.ts +9 -1
  113. package/esm/components/condition-builder/Group.js +57 -13
  114. package/esm/components/condition-builder/GroupOrItem.d.ts +1 -0
  115. package/esm/components/condition-builder/GroupOrItem.js +7 -5
  116. package/esm/components/condition-builder/InputSwitch.js +1 -1
  117. package/esm/components/condition-builder/Item.js +1 -1
  118. package/esm/components/condition-builder/Value.js +1 -1
  119. package/esm/components/condition-builder/config.js +1 -1
  120. package/esm/components/condition-builder/index.js +3 -3
  121. package/esm/components/formula/Editor.js +1 -1
  122. package/esm/components/formula/FuncList.js +1 -1
  123. package/esm/components/formula/Picker.js +3 -3
  124. package/esm/components/formula/VariableList.js +1 -1
  125. package/esm/components/formula/plugin.js +1 -1
  126. package/esm/components/icons.d.ts +2 -1
  127. package/esm/components/icons.js +2 -1
  128. package/esm/components/index.d.ts +12 -7
  129. package/esm/components/json-schema/Array.js +1 -1
  130. package/esm/components/json-schema/Item.js +1 -1
  131. package/esm/components/json-schema/Object.js +1 -1
  132. package/esm/components/json-schema/index.js +1 -1
  133. package/esm/components/schema-editor/Array.js +1 -1
  134. package/esm/components/schema-editor/Common.js +1 -1
  135. package/esm/components/schema-editor/Item.js +1 -1
  136. package/esm/components/schema-editor/Object.js +1 -1
  137. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  138. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  139. package/esm/components/schema-editor/index.js +1 -1
  140. package/esm/components/table/Cell.js +1 -1
  141. package/esm/components/table/HeadCellDropDown.js +1 -1
  142. package/esm/components/table/HeadCellFilter.js +1 -1
  143. package/esm/components/table/HeadCellSelect.js +1 -1
  144. package/esm/components/table/HeadCellSort.js +1 -1
  145. package/esm/components/table/ItemActionsWrapper.js +1 -1
  146. package/esm/components/table/index.js +1 -1
  147. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  148. package/esm/components/virtual-list/constants.js +1 -1
  149. package/esm/components/virtual-list/index.d.ts +3 -3
  150. package/esm/components/virtual-list/index.js +1 -1
  151. package/esm/hooks/use-set-state.js +1 -1
  152. package/esm/hooks/use-touch.js +1 -1
  153. package/esm/hooks/use-update-effect.js +1 -1
  154. package/esm/hooks/use-validation-resolver.js +1 -1
  155. package/esm/icons/alert-danger.svg.js +1 -3
  156. package/esm/icons/alert-info.svg.js +1 -3
  157. package/esm/icons/alert-success.svg.js +1 -3
  158. package/esm/icons/alert-warning.svg.js +1 -3
  159. package/esm/icons/back.svg.js +1 -3
  160. package/esm/icons/calendar.svg.js +1 -3
  161. package/esm/icons/caret.svg.js +1 -3
  162. package/esm/icons/check-circle.svg.js +1 -3
  163. package/esm/icons/check.svg.js +1 -3
  164. package/esm/icons/clock.svg.js +1 -3
  165. package/esm/icons/close-small.svg.js +1 -3
  166. package/esm/icons/close.svg.js +1 -3
  167. package/esm/icons/cloud-upload.svg.js +1 -3
  168. package/esm/icons/column-filter.svg.js +1 -3
  169. package/esm/icons/columns.svg.js +1 -3
  170. package/esm/icons/compress-alt.svg.js +1 -3
  171. package/esm/icons/copy.svg.js +1 -3
  172. package/esm/icons/date.svg.js +1 -3
  173. package/esm/icons/department.svg.js +1 -3
  174. package/esm/icons/desk-empty.svg.js +1 -3
  175. package/esm/icons/dot.svg.js +1 -3
  176. package/esm/icons/down-arrow-bold.svg.js +1 -3
  177. package/esm/icons/down.svg.js +1 -3
  178. package/esm/icons/download.svg.js +1 -3
  179. package/esm/icons/drag-bar.svg.js +1 -3
  180. package/esm/icons/drag.svg.js +1 -3
  181. package/esm/icons/edit.svg.js +1 -3
  182. package/esm/icons/ellipsis-v.svg.js +1 -3
  183. package/esm/icons/enter.svg.js +1 -3
  184. package/esm/icons/exchange.svg.js +1 -3
  185. package/esm/icons/expand-alt.svg.js +1 -3
  186. package/esm/icons/fail.svg.js +1 -3
  187. package/esm/icons/file.svg.js +1 -3
  188. package/esm/icons/filter.svg.js +1 -3
  189. package/esm/icons/folder.svg.js +1 -3
  190. package/esm/icons/function.svg.js +1 -3
  191. package/esm/icons/home.svg.js +1 -3
  192. package/esm/icons/image.svg.js +1 -3
  193. package/esm/icons/info-circle.svg.js +1 -3
  194. package/esm/icons/info.svg.js +1 -3
  195. package/esm/icons/input-clear.svg.js +1 -3
  196. package/esm/icons/invisible.svg.js +1 -3
  197. package/esm/icons/left-arrow.svg.js +1 -3
  198. package/esm/icons/loading-outline.svg.js +1 -3
  199. package/esm/icons/location.svg.js +1 -3
  200. package/esm/icons/menu.svg.js +1 -3
  201. package/esm/icons/minus.svg.js +1 -3
  202. package/esm/icons/move.svg.js +1 -3
  203. package/esm/icons/mute.svg.js +1 -3
  204. package/esm/icons/new-edit.svg.js +1 -3
  205. package/esm/icons/pause.svg.js +1 -3
  206. package/esm/icons/pencil.svg.js +1 -3
  207. package/esm/icons/play.svg.js +1 -3
  208. package/esm/icons/plus-cicle.svg.js +1 -3
  209. package/esm/icons/plus-fine.svg.js +1 -3
  210. package/esm/icons/plus.svg.js +1 -3
  211. package/esm/icons/post.svg.js +1 -3
  212. package/esm/icons/question-mark.svg.js +1 -3
  213. package/esm/icons/question.svg.js +1 -3
  214. package/esm/icons/redo.svg.js +1 -3
  215. package/esm/icons/refresh.svg.js +1 -3
  216. package/esm/icons/reload.svg.js +1 -3
  217. package/esm/icons/remove.svg.js +1 -3
  218. package/esm/icons/retry.svg.js +1 -3
  219. package/esm/icons/right-arrow-bold.svg.js +1 -3
  220. package/esm/icons/right-arrow.svg.js +1 -3
  221. package/esm/icons/right-double-arrow.svg.js +1 -3
  222. package/esm/icons/role.svg.js +1 -3
  223. package/esm/icons/rotate-left.svg.js +1 -3
  224. package/esm/icons/rotate-right.svg.js +1 -3
  225. package/esm/icons/scale-origin.svg.js +1 -3
  226. package/esm/icons/schedule.svg.js +1 -3
  227. package/esm/icons/search.svg.js +1 -3
  228. package/esm/icons/setting.svg.js +1 -3
  229. package/esm/icons/slider-handle-icon.svg.js +1 -3
  230. package/esm/icons/sort-asc.svg.js +1 -3
  231. package/esm/icons/sort-default.svg.js +1 -3
  232. package/esm/icons/sort-desc.svg.js +1 -3
  233. package/esm/icons/star.svg.js +1 -3
  234. package/esm/icons/status-close.svg.js +1 -3
  235. package/esm/icons/status-fail.svg.js +1 -3
  236. package/esm/icons/status-info.svg.js +1 -3
  237. package/esm/icons/status-success.svg.js +1 -3
  238. package/esm/icons/status-warning.svg.js +1 -3
  239. package/esm/icons/steps-finsh.svg.js +1 -3
  240. package/esm/icons/success.svg.js +1 -3
  241. package/esm/icons/transparent.svg.js +1 -3
  242. package/esm/icons/trash.svg.js +1 -3
  243. package/esm/icons/tree-down.svg.js +1 -3
  244. package/esm/icons/undo.svg.js +1 -3
  245. package/esm/icons/upload.svg.js +1 -3
  246. package/esm/icons/user-remove.svg.js +1 -3
  247. package/esm/icons/view.svg.js +1 -3
  248. package/esm/icons/volume.svg.js +1 -3
  249. package/esm/icons/warning-mark.svg.js +1 -3
  250. package/esm/icons/warning.svg.js +1 -3
  251. package/esm/icons/window-restore.svg.js +1 -3
  252. package/esm/icons/zoom-in.svg.js +1 -3
  253. package/esm/icons/zoom-out.svg.js +1 -3
  254. package/esm/index.js +4 -1
  255. package/esm/locale/de-DE.js +3 -1
  256. package/esm/locale/en-US.js +6 -2
  257. package/esm/locale/zh-CN.js +8 -4
  258. package/esm/themes/ang.js +1 -1
  259. package/esm/themes/antd.js +1 -1
  260. package/esm/themes/cxd.js +1 -1
  261. package/esm/themes/dark.js +1 -1
  262. package/lib/components/404.js +1 -1
  263. package/lib/components/Alert.js +1 -1
  264. package/lib/components/Alert2.d.ts +10 -10
  265. package/lib/components/Alert2.js +2 -2
  266. package/lib/components/AnchorNav.d.ts +10 -10
  267. package/lib/components/AnchorNav.js +1 -1
  268. package/lib/components/ArrayInput.d.ts +40 -40
  269. package/lib/components/ArrayInput.js +1 -1
  270. package/lib/components/AsideNav.js +1 -1
  271. package/lib/components/AssociatedSelection.d.ts +40 -40
  272. package/lib/components/AssociatedSelection.js +1 -1
  273. package/lib/components/Avatar.d.ts +12 -12
  274. package/lib/components/Avatar.js +3 -3
  275. package/lib/components/Badge.js +1 -1
  276. package/lib/components/BaiduMapPicker.d.ts +1 -1
  277. package/lib/components/BaiduMapPicker.js +5 -5
  278. package/lib/components/BarCode.js +1 -1
  279. package/lib/components/Breadcrumb.js +1 -1
  280. package/lib/components/Button.d.ts +10 -10
  281. package/lib/components/Button.js +3 -3
  282. package/lib/components/CalendarMobile.d.ts +40 -40
  283. package/lib/components/CalendarMobile.js +1 -1
  284. package/lib/components/Card.d.ts +10 -10
  285. package/lib/components/Card.js +1 -1
  286. package/lib/components/Cascader.js +22 -14
  287. package/lib/components/ChainedSelection.d.ts +40 -40
  288. package/lib/components/ChainedSelection.js +1 -1
  289. package/lib/components/Checkbox.d.ts +10 -10
  290. package/lib/components/Checkbox.js +1 -1
  291. package/lib/components/CityArea.js +1 -1
  292. package/lib/components/CityDB.js +1 -1
  293. package/lib/components/CodeMirror.js +1 -1
  294. package/lib/components/Collapse.d.ts +10 -10
  295. package/lib/components/Collapse.js +1 -1
  296. package/lib/components/CollapseGroup.js +1 -1
  297. package/lib/components/ColorPicker.d.ts +40 -40
  298. package/lib/components/ColorPicker.js +1 -1
  299. package/lib/components/ContextMenu.js +1 -1
  300. package/lib/components/DatePicker.d.ts +40 -40
  301. package/lib/components/DatePicker.js +1 -1
  302. package/lib/components/DateRangePicker.d.ts +40 -40
  303. package/lib/components/DateRangePicker.js +3 -8
  304. package/lib/components/Drawer.d.ts +10 -10
  305. package/lib/components/Drawer.js +1 -1
  306. package/lib/components/Editor.d.ts +40 -40
  307. package/lib/components/Editor.js +1 -1
  308. package/lib/components/Form.js +1 -1
  309. package/lib/components/FormField.js +1 -1
  310. package/lib/components/GridNav.js +1 -1
  311. package/lib/components/GroupedSelection.d.ts +40 -40
  312. package/lib/components/GroupedSelection.js +1 -1
  313. package/lib/components/Html.js +1 -1
  314. package/lib/components/ImageGallery.js +1 -1
  315. package/lib/components/Input.js +1 -1
  316. package/lib/components/InputBox.d.ts +10 -10
  317. package/lib/components/InputBox.js +1 -1
  318. package/lib/components/InputBoxWithSuggestion.js +1 -1
  319. package/lib/components/Layout.js +1 -1
  320. package/lib/components/Link.js +1 -1
  321. package/lib/components/ListGroup.d.ts +10 -10
  322. package/lib/components/ListGroup.js +1 -1
  323. package/lib/components/ListMenu.d.ts +40 -40
  324. package/lib/components/ListMenu.js +1 -1
  325. package/lib/components/LocationPicker.d.ts +40 -40
  326. package/lib/components/LocationPicker.js +1 -1
  327. package/lib/components/Markdown.js +1 -1
  328. package/lib/components/Modal.d.ts +40 -40
  329. package/lib/components/Modal.js +1 -1
  330. package/lib/components/ModalManager.js +1 -1
  331. package/lib/components/MonthRangePicker.d.ts +40 -40
  332. package/lib/components/MultilineText.d.ts +462 -0
  333. package/lib/components/MultilineText.js +94 -0
  334. package/lib/components/NumberInput.d.ts +34 -11
  335. package/lib/components/NumberInput.js +88 -33
  336. package/lib/components/Pagination.js +1 -1
  337. package/lib/components/Picker.js +1 -1
  338. package/lib/components/PickerColumn.js +1 -1
  339. package/lib/components/PickerContainer.js +1 -1
  340. package/lib/components/PopOverContainer.js +1 -1
  341. package/lib/components/PopUp.js +1 -1
  342. package/lib/components/Progress.d.ts +10 -10
  343. package/lib/components/Progress.js +1 -1
  344. package/lib/components/PullRefresh.js +1 -1
  345. package/lib/components/Radios.d.ts +10 -10
  346. package/lib/components/Radios.js +1 -1
  347. package/lib/components/Range.js +1 -1
  348. package/lib/components/Rating.d.ts +10 -10
  349. package/lib/components/Rating.js +1 -1
  350. package/lib/components/ResultBox.d.ts +40 -40
  351. package/lib/components/ResultBox.js +1 -1
  352. package/lib/components/ResultList.d.ts +40 -40
  353. package/lib/components/ResultList.js +17 -15
  354. package/lib/components/ResultTableList.d.ts +40 -40
  355. package/lib/components/ResultTableList.js +1 -1
  356. package/lib/components/ResultTreeList.d.ts +40 -40
  357. package/lib/components/ResultTreeList.js +10 -8
  358. package/lib/components/RichText.js +1 -1
  359. package/lib/components/SearchBox.d.ts +40 -40
  360. package/lib/components/SearchBox.js +1 -1
  361. package/lib/components/Select.d.ts +193 -193
  362. package/lib/components/Select.js +1 -1
  363. package/lib/components/Selection.d.ts +40 -40
  364. package/lib/components/Selection.js +7 -5
  365. package/lib/components/SparkLine.d.ts +40 -40
  366. package/lib/components/SparkLine.js +1 -1
  367. package/lib/components/Spinner.d.ts +10 -10
  368. package/lib/components/Spinner.js +1 -1
  369. package/lib/components/Steps.js +1 -1
  370. package/lib/components/Switch.d.ts +10 -10
  371. package/lib/components/Switch.js +1 -1
  372. package/lib/components/TableSelection.d.ts +40 -40
  373. package/lib/components/TableSelection.js +1 -1
  374. package/lib/components/Tabs.d.ts +40 -40
  375. package/lib/components/Tabs.js +3 -1
  376. package/lib/components/TabsTransfer.js +1 -1
  377. package/lib/components/TabsTransferPicker.js +1 -1
  378. package/lib/components/Tag.d.ts +10 -10
  379. package/lib/components/Tag.js +1 -1
  380. package/lib/components/Textarea.d.ts +40 -40
  381. package/lib/components/Textarea.js +1 -1
  382. package/lib/components/Timeline.js +1 -1
  383. package/lib/components/TimelineItem.js +2 -2
  384. package/lib/components/Tinymce.d.ts +1 -0
  385. package/lib/components/Tinymce.js +5 -3
  386. package/lib/components/TitleBar.js +1 -1
  387. package/lib/components/Toast.js +1 -1
  388. package/lib/components/Tooltip.js +1 -1
  389. package/lib/components/TooltipWrapper.js +1 -1
  390. package/lib/components/Transfer.d.ts +40 -40
  391. package/lib/components/Transfer.js +1 -1
  392. package/lib/components/TransferDropDown.d.ts +40 -40
  393. package/lib/components/TransferDropDown.js +1 -1
  394. package/lib/components/TransferPicker.js +1 -1
  395. package/lib/components/TransferSearch.js +1 -1
  396. package/lib/components/Tree.d.ts +40 -40
  397. package/lib/components/Tree.js +1 -1
  398. package/lib/components/TreeSelection.d.ts +40 -40
  399. package/lib/components/TreeSelection.js +1 -1
  400. package/lib/components/UserSelect.d.ts +40 -40
  401. package/lib/components/UserSelect.js +3 -1
  402. package/lib/components/UserTabSelect.d.ts +40 -40
  403. package/lib/components/UserTabSelect.js +3 -1
  404. package/lib/components/WithRemoteConfig.js +1 -1
  405. package/lib/components/WithStore.js +1 -1
  406. package/lib/components/calendar/Calendar.js +2 -6
  407. package/lib/components/calendar/CalendarContainer.js +1 -1
  408. package/lib/components/calendar/DaysView.js +1 -1
  409. package/lib/components/calendar/MonthsView.js +1 -1
  410. package/lib/components/calendar/QuartersView.js +1 -1
  411. package/lib/components/calendar/TimeView.js +2 -2
  412. package/lib/components/calendar/YearsView.js +1 -1
  413. package/lib/components/condition-builder/Expression.js +1 -1
  414. package/lib/components/condition-builder/Field.js +1 -1
  415. package/lib/components/condition-builder/Formula.js +1 -1
  416. package/lib/components/condition-builder/Func.js +1 -1
  417. package/lib/components/condition-builder/Group.d.ts +9 -1
  418. package/lib/components/condition-builder/Group.js +57 -13
  419. package/lib/components/condition-builder/GroupOrItem.d.ts +1 -0
  420. package/lib/components/condition-builder/GroupOrItem.js +7 -5
  421. package/lib/components/condition-builder/InputSwitch.js +1 -1
  422. package/lib/components/condition-builder/Item.js +1 -1
  423. package/lib/components/condition-builder/Value.js +1 -1
  424. package/lib/components/condition-builder/config.js +1 -1
  425. package/lib/components/condition-builder/index.js +3 -3
  426. package/lib/components/formula/Editor.d.ts +40 -40
  427. package/lib/components/formula/Editor.js +1 -1
  428. package/lib/components/formula/FuncList.js +1 -1
  429. package/lib/components/formula/Picker.d.ts +40 -40
  430. package/lib/components/formula/Picker.js +3 -3
  431. package/lib/components/formula/VariableList.js +1 -1
  432. package/lib/components/formula/plugin.js +1 -1
  433. package/lib/components/icons.d.ts +2 -1
  434. package/lib/components/icons.js +2 -1
  435. package/lib/components/index.d.ts +12 -7
  436. package/lib/components/json-schema/Array.js +1 -1
  437. package/lib/components/json-schema/Item.js +1 -1
  438. package/lib/components/json-schema/Object.js +1 -1
  439. package/lib/components/json-schema/index.js +1 -1
  440. package/lib/components/schema-editor/Array.js +1 -1
  441. package/lib/components/schema-editor/Common.js +1 -1
  442. package/lib/components/schema-editor/Item.js +1 -1
  443. package/lib/components/schema-editor/Object.js +1 -1
  444. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  445. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  446. package/lib/components/schema-editor/index.d.ts +40 -40
  447. package/lib/components/schema-editor/index.js +1 -1
  448. package/lib/components/table/Cell.d.ts +40 -40
  449. package/lib/components/table/Cell.js +1 -1
  450. package/lib/components/table/HeadCellDropDown.js +1 -1
  451. package/lib/components/table/HeadCellFilter.js +1 -1
  452. package/lib/components/table/HeadCellSelect.js +1 -1
  453. package/lib/components/table/HeadCellSort.js +1 -1
  454. package/lib/components/table/ItemActionsWrapper.js +1 -1
  455. package/lib/components/table/index.d.ts +40 -40
  456. package/lib/components/table/index.js +1 -1
  457. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  458. package/lib/components/virtual-list/constants.js +1 -1
  459. package/lib/components/virtual-list/index.d.ts +3 -3
  460. package/lib/components/virtual-list/index.js +1 -1
  461. package/lib/helper.css +3 -0
  462. package/lib/hooks/use-set-state.js +1 -1
  463. package/lib/hooks/use-touch.js +1 -1
  464. package/lib/hooks/use-update-effect.js +1 -1
  465. package/lib/hooks/use-validation-resolver.js +1 -1
  466. package/lib/icons/alert-danger.svg.js +1 -3
  467. package/lib/icons/alert-info.svg.js +1 -3
  468. package/lib/icons/alert-success.svg.js +1 -3
  469. package/lib/icons/alert-warning.svg.js +1 -3
  470. package/lib/icons/back.svg.js +1 -3
  471. package/lib/icons/calendar.svg.js +1 -3
  472. package/lib/icons/caret.svg.js +1 -3
  473. package/lib/icons/check-circle.svg.js +1 -3
  474. package/lib/icons/check.svg.js +1 -3
  475. package/lib/icons/clock.svg.js +1 -3
  476. package/lib/icons/close-small.svg.js +1 -3
  477. package/lib/icons/close.svg.js +1 -3
  478. package/lib/icons/cloud-upload.svg.js +1 -3
  479. package/lib/icons/column-filter.svg.js +1 -3
  480. package/lib/icons/columns.svg.js +1 -3
  481. package/lib/icons/compress-alt.svg.js +1 -3
  482. package/lib/icons/copy.svg.js +1 -3
  483. package/lib/icons/date.svg.js +1 -3
  484. package/lib/icons/department.svg.js +1 -3
  485. package/lib/icons/desk-empty.svg.js +1 -3
  486. package/lib/icons/dot.svg.js +1 -3
  487. package/lib/icons/down-arrow-bold.svg.js +1 -3
  488. package/lib/icons/down.svg.js +1 -3
  489. package/lib/icons/download.svg.js +1 -3
  490. package/lib/icons/drag-bar.svg.js +1 -3
  491. package/lib/icons/drag.svg.js +1 -3
  492. package/lib/icons/edit.svg.js +1 -3
  493. package/lib/icons/ellipsis-v.svg.js +1 -3
  494. package/lib/icons/enter.svg.js +1 -3
  495. package/lib/icons/exchange.svg.js +1 -3
  496. package/lib/icons/expand-alt.svg.js +1 -3
  497. package/lib/icons/fail.svg.js +1 -3
  498. package/lib/icons/file.svg.js +1 -3
  499. package/lib/icons/filter.svg.js +1 -3
  500. package/lib/icons/folder.svg.js +1 -3
  501. package/lib/icons/function.svg.js +1 -3
  502. package/lib/icons/home.svg.js +1 -3
  503. package/lib/icons/image.svg.js +1 -3
  504. package/lib/icons/info-circle.svg.js +1 -3
  505. package/lib/icons/info.svg.js +1 -3
  506. package/lib/icons/input-clear.svg.js +1 -3
  507. package/lib/icons/invisible.svg.js +1 -3
  508. package/lib/icons/left-arrow.svg.js +1 -3
  509. package/lib/icons/loading-outline.svg.js +1 -3
  510. package/lib/icons/location.svg.js +1 -3
  511. package/lib/icons/menu.svg.js +1 -3
  512. package/lib/icons/minus.svg.js +1 -3
  513. package/lib/icons/move.svg.js +1 -3
  514. package/lib/icons/mute.svg.js +1 -3
  515. package/lib/icons/new-edit.svg.js +1 -3
  516. package/lib/icons/pause.svg.js +1 -3
  517. package/lib/icons/pencil.svg.js +1 -3
  518. package/lib/icons/play.svg.js +1 -3
  519. package/lib/icons/plus-cicle.svg.js +1 -3
  520. package/lib/icons/plus-fine.svg.js +1 -3
  521. package/lib/icons/plus.svg.js +1 -3
  522. package/lib/icons/post.svg.js +1 -3
  523. package/lib/icons/question-mark.svg.js +1 -3
  524. package/lib/icons/question.svg.js +1 -3
  525. package/lib/icons/redo.svg.js +1 -3
  526. package/lib/icons/refresh.svg.js +1 -3
  527. package/lib/icons/reload.svg.js +1 -3
  528. package/lib/icons/remove.svg.js +1 -3
  529. package/lib/icons/retry.svg.js +1 -3
  530. package/lib/icons/right-arrow-bold.svg.js +1 -3
  531. package/lib/icons/right-arrow.svg.js +1 -3
  532. package/lib/icons/right-double-arrow.svg.js +1 -3
  533. package/lib/icons/role.svg.js +1 -3
  534. package/lib/icons/rotate-left.svg.js +1 -3
  535. package/lib/icons/rotate-right.svg.js +1 -3
  536. package/lib/icons/scale-origin.svg.js +1 -3
  537. package/lib/icons/schedule.svg.js +1 -3
  538. package/lib/icons/search.svg.js +1 -3
  539. package/lib/icons/setting.svg.js +1 -3
  540. package/lib/icons/slider-handle-icon.svg.js +1 -3
  541. package/lib/icons/sort-asc.svg.js +1 -3
  542. package/lib/icons/sort-default.svg.js +1 -3
  543. package/lib/icons/sort-desc.svg.js +1 -3
  544. package/lib/icons/star.svg.js +1 -3
  545. package/lib/icons/status-close.svg.js +1 -3
  546. package/lib/icons/status-fail.svg.js +1 -3
  547. package/lib/icons/status-info.svg.js +1 -3
  548. package/lib/icons/status-success.svg.js +1 -3
  549. package/lib/icons/status-warning.svg.js +1 -3
  550. package/lib/icons/steps-finsh.svg.js +1 -3
  551. package/lib/icons/success.svg.js +1 -3
  552. package/lib/icons/transparent.svg.js +1 -3
  553. package/lib/icons/trash.svg.js +1 -3
  554. package/lib/icons/tree-down.svg.js +1 -3
  555. package/lib/icons/undo.svg.js +1 -3
  556. package/lib/icons/upload.svg.js +1 -3
  557. package/lib/icons/user-remove.svg.js +1 -3
  558. package/lib/icons/view.svg.js +1 -3
  559. package/lib/icons/volume.svg.js +1 -3
  560. package/lib/icons/warning-mark.svg.js +1 -3
  561. package/lib/icons/warning.svg.js +1 -3
  562. package/lib/icons/window-restore.svg.js +1 -3
  563. package/lib/icons/zoom-in.svg.js +1 -3
  564. package/lib/icons/zoom-out.svg.js +1 -3
  565. package/lib/index.js +7 -1
  566. package/lib/locale/de-DE.js +3 -1
  567. package/lib/locale/en-US.js +6 -2
  568. package/lib/locale/zh-CN.js +8 -4
  569. package/lib/scss/helper.scss.js +1 -1
  570. package/lib/scss/themes/ang.scss.js +1 -1
  571. package/lib/scss/themes/antd.scss.js +1 -1
  572. package/lib/scss/themes/cxd.scss.js +1 -1
  573. package/lib/scss/themes/dark.scss.js +1 -1
  574. package/lib/scss/themes/default.scss.js +1 -1
  575. package/lib/themes/ang.css +1533 -747
  576. package/lib/themes/ang.js +1 -1
  577. package/lib/themes/antd.css +2756 -887
  578. package/lib/themes/antd.js +1 -1
  579. package/lib/themes/cxd.css +3134 -1544
  580. package/lib/themes/cxd.js +1 -1
  581. package/lib/themes/dark.css +1533 -747
  582. package/lib/themes/dark.js +1 -1
  583. package/lib/themes/default.css +3134 -1544
  584. package/package.json +4 -4
  585. package/scss/_mixins.scss +144 -45
  586. package/scss/_properties.scss +155 -312
  587. package/scss/_utilities.scss +4 -0
  588. package/scss/base/_normalize.scss +4 -0
  589. package/scss/components/_alert.scss +0 -1
  590. package/scss/components/_array-input.scss +8 -3
  591. package/scss/components/_button.scss +708 -177
  592. package/scss/components/_code.scss +10 -0
  593. package/scss/components/_collapse.scss +17 -0
  594. package/scss/components/_condition-builder.scss +153 -30
  595. package/scss/components/_drawer.scss +7 -2
  596. package/scss/components/_formula.scss +4 -0
  597. package/scss/components/_list.scss +1 -1
  598. package/scss/components/_modal.scss +1 -0
  599. package/scss/components/_multiline-text.scss +20 -0
  600. package/scss/components/_search-box.scss +1 -1
  601. package/scss/components/_steps.scss +2 -0
  602. package/scss/components/_table.scss +14 -0
  603. package/scss/components/_tabs.scss +1 -1
  604. package/scss/components/form/_checks.scss +20 -5
  605. package/scss/components/form/_combo.scss +47 -8
  606. package/scss/components/form/_date-range.scss +1 -1
  607. package/scss/components/form/_date.scss +4 -2
  608. package/scss/components/form/_fieldset.scss +4 -3
  609. package/scss/components/form/_form.scss +11 -5
  610. package/scss/components/form/_icon-select.scss +216 -0
  611. package/scss/components/form/_image.scss +44 -9
  612. package/scss/components/form/_input-group.scss +3 -0
  613. package/scss/components/form/_list.scss +33 -28
  614. package/scss/components/form/_location.scss +4 -0
  615. package/scss/components/form/_nested-select.scss +1 -1
  616. package/scss/components/form/_range.scss +4 -0
  617. package/scss/components/form/_select.scss +2 -1
  618. package/scss/components/form/_switch.scss +54 -0
  619. package/scss/components/form/_tag.scss +8 -3
  620. package/scss/components/form/_text.scss +2 -2
  621. package/scss/components/form/_textarea.scss +8 -0
  622. package/scss/components/form/_transfer.scss +213 -20
  623. package/scss/components/form/_tree-select.scss +7 -0
  624. package/scss/themes/_antd-variables.scss +1107 -41
  625. package/scss/themes/_common.scss +3 -0
  626. package/scss/themes/_cxd-variables.scss +1456 -477
  627. package/scss/themes/cxd.scss +423 -404
  628. package/scss/themes/_cxd-colors.scss +0 -56
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.2-beta.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -53,7 +53,7 @@ export declare class ResultList extends React.Component<ResultListProps, ResultL
53
53
  render(): JSX.Element;
54
54
  }
55
55
  declare const _default: {
56
- new (props: Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
56
+ new (props: Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
57
57
  locale?: string | undefined;
58
58
  translate?: ((str: string, ...args: any[]) => string) | undefined;
59
59
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps): {
@@ -62,12 +62,12 @@ declare const _default: {
62
62
  getWrappedInstance(): any;
63
63
  render(): JSX.Element;
64
64
  context: any;
65
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
65
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
66
66
  locale?: string | undefined;
67
67
  translate?: ((str: string, ...args: any[]) => string) | undefined;
68
68
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
69
69
  forceUpdate(callback?: (() => void) | undefined): void;
70
- readonly props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
70
+ readonly props: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
71
71
  locale?: string | undefined;
72
72
  translate?: ((str: string, ...args: any[]) => string) | undefined;
73
73
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
@@ -78,35 +78,35 @@ declare const _default: {
78
78
  [key: string]: React.ReactInstance;
79
79
  };
80
80
  componentDidMount?(): void;
81
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
81
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
82
82
  locale?: string | undefined;
83
83
  translate?: ((str: string, ...args: any[]) => string) | undefined;
84
84
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
85
85
  componentWillUnmount?(): void;
86
86
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
87
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
87
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
88
88
  locale?: string | undefined;
89
89
  translate?: ((str: string, ...args: any[]) => string) | undefined;
90
90
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
91
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
91
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
92
92
  locale?: string | undefined;
93
93
  translate?: ((str: string, ...args: any[]) => string) | undefined;
94
94
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
95
95
  componentWillMount?(): void;
96
96
  UNSAFE_componentWillMount?(): void;
97
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
97
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
98
98
  locale?: string | undefined;
99
99
  translate?: ((str: string, ...args: any[]) => string) | undefined;
100
100
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
101
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
101
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
102
102
  locale?: string | undefined;
103
103
  translate?: ((str: string, ...args: any[]) => string) | undefined;
104
104
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
105
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
105
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
106
106
  locale?: string | undefined;
107
107
  translate?: ((str: string, ...args: any[]) => string) | undefined;
108
108
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
109
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
109
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
110
110
  locale?: string | undefined;
111
111
  translate?: ((str: string, ...args: any[]) => string) | undefined;
112
112
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
@@ -114,7 +114,7 @@ declare const _default: {
114
114
  displayName: string;
115
115
  contextType: React.Context<string>;
116
116
  ComposedComponent: React.ComponentType<{
117
- new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
117
+ new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
118
118
  locale?: string | undefined;
119
119
  translate?: ((str: string, ...args: any[]) => string) | undefined;
120
120
  }): {
@@ -123,12 +123,12 @@ declare const _default: {
123
123
  getWrappedInstance(): any;
124
124
  render(): JSX.Element;
125
125
  context: any;
126
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
126
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
127
127
  locale?: string | undefined;
128
128
  translate?: ((str: string, ...args: any[]) => string) | undefined;
129
129
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
130
130
  forceUpdate(callback?: (() => void) | undefined): void;
131
- readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
131
+ readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
132
132
  locale?: string | undefined;
133
133
  translate?: ((str: string, ...args: any[]) => string) | undefined;
134
134
  }> & Readonly<{
@@ -139,35 +139,35 @@ declare const _default: {
139
139
  [key: string]: React.ReactInstance;
140
140
  };
141
141
  componentDidMount?(): void;
142
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
142
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
143
143
  locale?: string | undefined;
144
144
  translate?: ((str: string, ...args: any[]) => string) | undefined;
145
145
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
146
146
  componentWillUnmount?(): void;
147
147
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
148
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
148
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
149
149
  locale?: string | undefined;
150
150
  translate?: ((str: string, ...args: any[]) => string) | undefined;
151
151
  }>, prevState: Readonly<{}>): any;
152
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
152
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
153
153
  locale?: string | undefined;
154
154
  translate?: ((str: string, ...args: any[]) => string) | undefined;
155
155
  }>, prevState: Readonly<{}>, snapshot?: any): void;
156
156
  componentWillMount?(): void;
157
157
  UNSAFE_componentWillMount?(): void;
158
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
158
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
159
159
  locale?: string | undefined;
160
160
  translate?: ((str: string, ...args: any[]) => string) | undefined;
161
161
  }>, nextContext: any): void;
162
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
162
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
163
163
  locale?: string | undefined;
164
164
  translate?: ((str: string, ...args: any[]) => string) | undefined;
165
165
  }>, nextContext: any): void;
166
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
166
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
167
167
  locale?: string | undefined;
168
168
  translate?: ((str: string, ...args: any[]) => string) | undefined;
169
169
  }>, nextState: Readonly<{}>, nextContext: any): void;
170
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
170
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
171
171
  locale?: string | undefined;
172
172
  translate?: ((str: string, ...args: any[]) => string) | undefined;
173
173
  }>, nextState: Readonly<{}>, nextContext: any): void;
@@ -179,7 +179,7 @@ declare const _default: {
179
179
  ComposedComponent: typeof ResultList;
180
180
  }>;
181
181
  } & import("hoist-non-react-statics").NonReactStatics<{
182
- new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
182
+ new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
183
183
  locale?: string | undefined;
184
184
  translate?: ((str: string, ...args: any[]) => string) | undefined;
185
185
  }): {
@@ -188,12 +188,12 @@ declare const _default: {
188
188
  getWrappedInstance(): any;
189
189
  render(): JSX.Element;
190
190
  context: any;
191
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
191
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
192
192
  locale?: string | undefined;
193
193
  translate?: ((str: string, ...args: any[]) => string) | undefined;
194
194
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
195
195
  forceUpdate(callback?: (() => void) | undefined): void;
196
- readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
196
+ readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
197
197
  locale?: string | undefined;
198
198
  translate?: ((str: string, ...args: any[]) => string) | undefined;
199
199
  }> & Readonly<{
@@ -204,35 +204,35 @@ declare const _default: {
204
204
  [key: string]: React.ReactInstance;
205
205
  };
206
206
  componentDidMount?(): void;
207
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
207
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
208
208
  locale?: string | undefined;
209
209
  translate?: ((str: string, ...args: any[]) => string) | undefined;
210
210
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
211
211
  componentWillUnmount?(): void;
212
212
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
213
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
213
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
214
214
  locale?: string | undefined;
215
215
  translate?: ((str: string, ...args: any[]) => string) | undefined;
216
216
  }>, prevState: Readonly<{}>): any;
217
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
217
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
218
218
  locale?: string | undefined;
219
219
  translate?: ((str: string, ...args: any[]) => string) | undefined;
220
220
  }>, prevState: Readonly<{}>, snapshot?: any): void;
221
221
  componentWillMount?(): void;
222
222
  UNSAFE_componentWillMount?(): void;
223
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
223
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
224
224
  locale?: string | undefined;
225
225
  translate?: ((str: string, ...args: any[]) => string) | undefined;
226
226
  }>, nextContext: any): void;
227
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
227
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
228
228
  locale?: string | undefined;
229
229
  translate?: ((str: string, ...args: any[]) => string) | undefined;
230
230
  }>, nextContext: any): void;
231
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
231
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
232
232
  locale?: string | undefined;
233
233
  translate?: ((str: string, ...args: any[]) => string) | undefined;
234
234
  }>, nextState: Readonly<{}>, nextContext: any): void;
235
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
235
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
236
236
  locale?: string | undefined;
237
237
  translate?: ((str: string, ...args: any[]) => string) | undefined;
238
238
  }>, nextState: Readonly<{}>, nextContext: any): void;
@@ -244,7 +244,7 @@ declare const _default: {
244
244
  ComposedComponent: typeof ResultList;
245
245
  }, {}> & {
246
246
  ComposedComponent: {
247
- new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
247
+ new (props: Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
248
248
  locale?: string | undefined;
249
249
  translate?: ((str: string, ...args: any[]) => string) | undefined;
250
250
  }): {
@@ -253,12 +253,12 @@ declare const _default: {
253
253
  getWrappedInstance(): any;
254
254
  render(): JSX.Element;
255
255
  context: any;
256
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
256
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
257
257
  locale?: string | undefined;
258
258
  translate?: ((str: string, ...args: any[]) => string) | undefined;
259
259
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
260
260
  forceUpdate(callback?: (() => void) | undefined): void;
261
- readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
261
+ readonly props: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
262
262
  locale?: string | undefined;
263
263
  translate?: ((str: string, ...args: any[]) => string) | undefined;
264
264
  }> & Readonly<{
@@ -269,35 +269,35 @@ declare const _default: {
269
269
  [key: string]: React.ReactInstance;
270
270
  };
271
271
  componentDidMount?(): void;
272
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
272
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
273
273
  locale?: string | undefined;
274
274
  translate?: ((str: string, ...args: any[]) => string) | undefined;
275
275
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
276
276
  componentWillUnmount?(): void;
277
277
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
278
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
278
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
279
279
  locale?: string | undefined;
280
280
  translate?: ((str: string, ...args: any[]) => string) | undefined;
281
281
  }>, prevState: Readonly<{}>): any;
282
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
282
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
283
283
  locale?: string | undefined;
284
284
  translate?: ((str: string, ...args: any[]) => string) | undefined;
285
285
  }>, prevState: Readonly<{}>, snapshot?: any): void;
286
286
  componentWillMount?(): void;
287
287
  UNSAFE_componentWillMount?(): void;
288
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
288
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
289
289
  locale?: string | undefined;
290
290
  translate?: ((str: string, ...args: any[]) => string) | undefined;
291
291
  }>, nextContext: any): void;
292
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
292
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
293
293
  locale?: string | undefined;
294
294
  translate?: ((str: string, ...args: any[]) => string) | undefined;
295
295
  }>, nextContext: any): void;
296
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
296
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
297
297
  locale?: string | undefined;
298
298
  translate?: ((str: string, ...args: any[]) => string) | undefined;
299
299
  }>, nextState: Readonly<{}>, nextContext: any): void;
300
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "onChange" | "value" | "disabled" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
300
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ResultListProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "title" | "disabled" | "value" | "onChange" | "itemClassName" | "labelField" | "valueField" | "searchable" | "onSearch" | "sortable"> & Partial<Pick<Omit<ResultListProps, keyof LocaleProps>, "placeholder" | "itemRender" | "searchPlaceholder">> & Partial<Pick<Pick<ResultListProps, "placeholder" | "itemRender" | "searchPlaceholder">, never>> & {
301
301
  locale?: string | undefined;
302
302
  translate?: ((str: string, ...args: any[]) => string) | undefined;
303
303
  }>, nextState: Readonly<{}>, nextContext: any): void;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.2-beta.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -33,7 +33,7 @@ var ResultList = /** @class */ (function (_super) {
33
33
  return _this;
34
34
  }
35
35
  ResultList.itemRender = function (option, states) {
36
- return React__default["default"].createElement("span", null, "".concat(option.scopeLabel || '').concat(option[(states === null || states === void 0 ? void 0 : states.labelField) || 'label']));
36
+ return (React__default["default"].createElement("span", null, "".concat(option.scopeLabel || '').concat(option[(states === null || states === void 0 ? void 0 : states.labelField) || 'label'])));
37
37
  };
38
38
  ResultList.prototype.componentDidMount = function () {
39
39
  this.props.sortable && this.initSortable();
@@ -64,7 +64,7 @@ var ResultList = /** @class */ (function (_super) {
64
64
  handle: ".".concat(ns, "Selections-dragbar"),
65
65
  ghostClass: "".concat(ns, "Selections-item--dragging"),
66
66
  onEnd: function (e) {
67
- var _a, _b;
67
+ var _b, _c;
68
68
  // 没有移动
69
69
  if (e.newIndex === e.oldIndex) {
70
70
  return;
@@ -87,30 +87,30 @@ var ResultList = /** @class */ (function (_super) {
87
87
  }
88
88
  var newValue = value.concat();
89
89
  newValue.splice(e.newIndex, 0, newValue.splice(e.oldIndex, 1)[0]);
90
- (_b = (_a = _this.props).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, newValue);
90
+ (_c = (_b = _this.props).onChange) === null || _c === void 0 ? void 0 : _c.call(_b, newValue);
91
91
  }
92
92
  });
93
93
  };
94
94
  ResultList.prototype.desposeSortable = function () {
95
- var _a;
96
- (_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
95
+ var _b;
96
+ (_b = this.sortable) === null || _b === void 0 ? void 0 : _b.destroy();
97
97
  delete this.sortable;
98
98
  };
99
99
  ResultList.prototype.handleValueChange = function (index, value, name) {
100
- var _a;
100
+ var _b;
101
101
  if (typeof name !== 'string') {
102
102
  return;
103
103
  }
104
- var _b = this.props, list = _b.value, onChange = _b.onChange;
104
+ var _c = this.props, list = _c.value, onChange = _c.onChange;
105
105
  var result = Array.isArray(list) ? list.concat() : [];
106
106
  if (!result[index]) {
107
107
  return;
108
108
  }
109
- result.splice(index, 1, tslib.__assign(tslib.__assign({}, result[index]), (_a = {}, _a[name] = value, _a)));
109
+ result.splice(index, 1, tslib.__assign(tslib.__assign({}, result[index]), (_b = {}, _b[name] = value, _b)));
110
110
  onChange === null || onChange === void 0 ? void 0 : onChange(result, true);
111
111
  };
112
112
  ResultList.prototype.search = function (inputValue) {
113
- var _a = this.props, onSearch = _a.onSearch, value = _a.value;
113
+ var _b = this.props, onSearch = _b.onSearch, value = _b.value;
114
114
  var searchResult = (value || []).filter(function (item) { return onSearch && onSearch(inputValue, item); });
115
115
  this.setState({ searchResult: searchResult });
116
116
  };
@@ -119,7 +119,7 @@ var ResultList = /** @class */ (function (_super) {
119
119
  };
120
120
  // 删除项
121
121
  ResultList.prototype.handleCloseItem = function (e, option) {
122
- var _a = this.props, value = _a.value, onChange = _a.onChange, disabled = _a.disabled, searchable = _a.searchable, _b = _a.valueField, valueField = _b === void 0 ? 'value' : _b;
122
+ var _b = this.props, value = _b.value, onChange = _b.onChange, disabled = _b.disabled, searchable = _b.searchable, _c = _b.valueField, valueField = _c === void 0 ? 'value' : _c;
123
123
  if (disabled || option.disabled) {
124
124
  return;
125
125
  }
@@ -143,7 +143,7 @@ var ResultList = /** @class */ (function (_super) {
143
143
  // 没有搜索,走旧的删除方式
144
144
  else {
145
145
  var index = parseInt(e.currentTarget.getAttribute('data-index'), 10);
146
- var _c = this.props, value_1 = _c.value, onChange_1 = _c.onChange;
146
+ var _d = this.props, value_1 = _d.value, onChange_1 = _d.onChange;
147
147
  if (!Array.isArray(value_1)) {
148
148
  return;
149
149
  }
@@ -154,7 +154,7 @@ var ResultList = /** @class */ (function (_super) {
154
154
  };
155
155
  ResultList.prototype.renderNormalList = function (value) {
156
156
  var _this = this;
157
- var _a = this.props, cx = _a.classnames, itemRender = _a.itemRender, disabled = _a.disabled, itemClassName = _a.itemClassName, sortable = _a.sortable, labelField = _a.labelField, __ = _a.translate, placeholder = _a.placeholder;
157
+ var _b = this.props, cx = _b.classnames, itemRender = _b.itemRender, disabled = _b.disabled, itemClassName = _b.itemClassName, sortable = _b.sortable, labelField = _b.labelField, __ = _b.translate, placeholder = _b.placeholder;
158
158
  return (React__default["default"].createElement(React__default["default"].Fragment, null, Array.isArray(value) && value.length ? (React__default["default"].createElement("div", { className: cx('Selections-items') }, value.map(function (option, index) { return (React__default["default"].createElement("div", { className: cx('Selections-item', itemClassName, option === null || option === void 0 ? void 0 : option.className), key: index },
159
159
  sortable && !disabled && value.length > 1 ? (React__default["default"].createElement(icons.Icon, { className: cx('Selections-dragbar icon'), icon: "drag-bar" })) : null,
160
160
  React__default["default"].createElement("label", null, itemRender(option, {
@@ -169,16 +169,18 @@ var ResultList = /** @class */ (function (_super) {
169
169
  React__default["default"].createElement(icons.Icon, { icon: "close", className: "icon" }))) : null)); }))) : (React__default["default"].createElement("div", { className: cx('Selections-placeholder') }, __(placeholder)))));
170
170
  };
171
171
  ResultList.prototype.render = function () {
172
- var _a = this.props, cx = _a.classnames, className = _a.className, title = _a.title, searchable = _a.searchable, value = _a.value, __ = _a.translate, _b = _a.searchPlaceholder, searchPlaceholder = _b === void 0 ? __('Transfer.searchKeyword') : _b;
172
+ var _b = this.props, cx = _b.classnames, className = _b.className, title = _b.title, searchable = _b.searchable, value = _b.value, __ = _b.translate, _c = _b.searchPlaceholder, searchPlaceholder = _c === void 0 ? __('Transfer.searchKeyword') : _c;
173
173
  var searchResult = this.state.searchResult;
174
174
  return (React__default["default"].createElement("div", { className: cx('Selections', className) },
175
175
  title ? React__default["default"].createElement("div", { className: cx('Selections-title') }, title) : null,
176
176
  searchable ? (React__default["default"].createElement(TransferSearch["default"], { placeholder: searchPlaceholder, onSearch: this.search, onCancelSearch: this.clearSearch })) : null,
177
177
  this.renderNormalList(searchResult !== null ? searchResult : value)));
178
178
  };
179
+ var _a;
180
+ _a = ResultList;
179
181
  ResultList.defaultProps = {
180
182
  placeholder: 'placeholder.selectData',
181
- itemRender: ResultList.itemRender,
183
+ itemRender: _a.itemRender,
182
184
  searchPlaceholder: ''
183
185
  };
184
186
  tslib.__decorate([