amis-ui 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (558) hide show
  1. package/esm/components/404.js +1 -1
  2. package/esm/components/Alert.js +1 -1
  3. package/esm/components/Alert2.js +1 -1
  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.js +1 -1
  9. package/esm/components/Badge.js +1 -1
  10. package/esm/components/BaiduMapPicker.js +1 -1
  11. package/esm/components/BarCode.js +1 -1
  12. package/esm/components/Breadcrumb.js +1 -1
  13. package/esm/components/Button.js +1 -1
  14. package/esm/components/CalendarMobile.js +1 -1
  15. package/esm/components/Card.js +1 -1
  16. package/esm/components/Cascader.js +1 -1
  17. package/esm/components/ChainedSelection.js +1 -1
  18. package/esm/components/Checkbox.js +1 -1
  19. package/esm/components/CityArea.js +1 -1
  20. package/esm/components/CityDB.js +1 -1
  21. package/esm/components/CodeMirror.js +1 -1
  22. package/esm/components/Collapse.js +1 -1
  23. package/esm/components/CollapseGroup.js +1 -1
  24. package/esm/components/ColorPicker.js +1 -1
  25. package/esm/components/ContextMenu.js +1 -1
  26. package/esm/components/DatePicker.js +1 -1
  27. package/esm/components/DateRangePicker.js +1 -1
  28. package/esm/components/Drawer.js +1 -1
  29. package/esm/components/Editor.js +1 -1
  30. package/esm/components/Form.js +1 -1
  31. package/esm/components/FormField.js +1 -1
  32. package/esm/components/GridNav.js +1 -1
  33. package/esm/components/GroupedSelection.js +1 -1
  34. package/esm/components/Html.js +1 -1
  35. package/esm/components/ImageGallery.js +1 -1
  36. package/esm/components/Input.js +1 -1
  37. package/esm/components/InputBox.js +1 -1
  38. package/esm/components/InputBoxWithSuggestion.js +1 -1
  39. package/esm/components/Layout.js +1 -1
  40. package/esm/components/Link.js +1 -1
  41. package/esm/components/ListGroup.js +1 -1
  42. package/esm/components/ListMenu.js +1 -1
  43. package/esm/components/LocationPicker.js +1 -1
  44. package/esm/components/Markdown.js +1 -1
  45. package/esm/components/Modal.js +1 -1
  46. package/esm/components/ModalManager.js +1 -1
  47. package/esm/components/NumberInput.js +1 -1
  48. package/esm/components/Pagination.js +1 -1
  49. package/esm/components/Picker.js +1 -1
  50. package/esm/components/PickerColumn.js +1 -1
  51. package/esm/components/PickerContainer.js +1 -1
  52. package/esm/components/PopOverContainer.js +1 -1
  53. package/esm/components/PopUp.js +1 -1
  54. package/esm/components/Progress.js +1 -1
  55. package/esm/components/PullRefresh.js +1 -1
  56. package/esm/components/Radios.js +1 -1
  57. package/esm/components/Range.js +1 -1
  58. package/esm/components/Rating.js +1 -1
  59. package/esm/components/ResultBox.js +1 -1
  60. package/esm/components/ResultList.js +1 -1
  61. package/esm/components/ResultTableList.js +1 -1
  62. package/esm/components/ResultTreeList.js +1 -1
  63. package/esm/components/RichText.js +1 -1
  64. package/esm/components/SearchBox.js +1 -1
  65. package/esm/components/Select.js +1 -1
  66. package/esm/components/Selection.js +1 -1
  67. package/esm/components/SparkLine.js +1 -1
  68. package/esm/components/Spinner.d.ts +11 -1
  69. package/esm/components/Spinner.js +15 -4
  70. package/esm/components/Steps.js +1 -1
  71. package/esm/components/Switch.js +1 -1
  72. package/esm/components/TableSelection.js +1 -1
  73. package/esm/components/Tabs.js +1 -1
  74. package/esm/components/TabsTransfer.js +1 -1
  75. package/esm/components/TabsTransferPicker.js +1 -1
  76. package/esm/components/Tag.js +1 -1
  77. package/esm/components/Textarea.js +1 -1
  78. package/esm/components/Timeline.js +1 -1
  79. package/esm/components/TimelineItem.js +1 -1
  80. package/esm/components/Tinymce.js +1 -1
  81. package/esm/components/TitleBar.js +1 -1
  82. package/esm/components/Toast.js +1 -1
  83. package/esm/components/Tooltip.js +1 -1
  84. package/esm/components/TooltipWrapper.js +1 -1
  85. package/esm/components/Transfer.js +1 -1
  86. package/esm/components/TransferDropDown.js +1 -1
  87. package/esm/components/TransferPicker.js +1 -1
  88. package/esm/components/TransferSearch.js +1 -1
  89. package/esm/components/Tree.js +1 -1
  90. package/esm/components/TreeSelection.js +1 -1
  91. package/esm/components/UserSelect.js +1 -1
  92. package/esm/components/UserTabSelect.js +1 -1
  93. package/esm/components/WithRemoteConfig.js +1 -1
  94. package/esm/components/WithStore.js +1 -1
  95. package/esm/components/calendar/Calendar.js +1 -1
  96. package/esm/components/calendar/CalendarContainer.js +1 -1
  97. package/esm/components/calendar/DaysView.js +1 -1
  98. package/esm/components/calendar/MonthsView.js +1 -1
  99. package/esm/components/calendar/QuartersView.js +1 -1
  100. package/esm/components/calendar/TimeView.js +1 -1
  101. package/esm/components/calendar/YearsView.js +1 -1
  102. package/esm/components/condition-builder/Expression.js +1 -1
  103. package/esm/components/condition-builder/Field.js +1 -1
  104. package/esm/components/condition-builder/Formula.js +1 -1
  105. package/esm/components/condition-builder/Func.js +1 -1
  106. package/esm/components/condition-builder/Group.js +1 -1
  107. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  108. package/esm/components/condition-builder/InputSwitch.js +1 -1
  109. package/esm/components/condition-builder/Item.js +1 -1
  110. package/esm/components/condition-builder/Value.js +1 -1
  111. package/esm/components/condition-builder/config.js +1 -1
  112. package/esm/components/condition-builder/index.js +1 -1
  113. package/esm/components/formula/Editor.js +1 -1
  114. package/esm/components/formula/FuncList.js +1 -1
  115. package/esm/components/formula/Picker.js +1 -1
  116. package/esm/components/formula/VariableList.js +1 -1
  117. package/esm/components/formula/plugin.js +1 -1
  118. package/esm/components/icons.js +1 -1
  119. package/esm/components/json-schema/Array.js +1 -1
  120. package/esm/components/json-schema/Item.js +1 -1
  121. package/esm/components/json-schema/Object.js +1 -1
  122. package/esm/components/json-schema/index.js +1 -1
  123. package/esm/components/schema-editor/Array.js +1 -1
  124. package/esm/components/schema-editor/Common.js +1 -1
  125. package/esm/components/schema-editor/Item.js +1 -1
  126. package/esm/components/schema-editor/Object.js +1 -1
  127. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  128. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  129. package/esm/components/schema-editor/index.js +1 -1
  130. package/esm/components/table/Cell.js +1 -1
  131. package/esm/components/table/HeadCellDropDown.js +1 -1
  132. package/esm/components/table/HeadCellFilter.js +1 -1
  133. package/esm/components/table/HeadCellSelect.js +1 -1
  134. package/esm/components/table/HeadCellSort.js +1 -1
  135. package/esm/components/table/ItemActionsWrapper.js +1 -1
  136. package/esm/components/table/index.js +1 -1
  137. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  138. package/esm/components/virtual-list/constants.js +1 -1
  139. package/esm/components/virtual-list/index.js +1 -1
  140. package/esm/hooks/use-set-state.js +1 -1
  141. package/esm/hooks/use-touch.js +1 -1
  142. package/esm/hooks/use-update-effect.js +1 -1
  143. package/esm/hooks/use-validation-resolver.js +1 -1
  144. package/esm/icons/alert-danger.svg.js +1 -1
  145. package/esm/icons/alert-info.svg.js +1 -1
  146. package/esm/icons/alert-success.svg.js +1 -1
  147. package/esm/icons/alert-warning.svg.js +1 -1
  148. package/esm/icons/back.svg.js +1 -1
  149. package/esm/icons/calendar.svg.js +1 -1
  150. package/esm/icons/caret.svg.js +1 -1
  151. package/esm/icons/check-circle.svg.js +1 -1
  152. package/esm/icons/check.svg.js +1 -1
  153. package/esm/icons/clock.svg.js +1 -1
  154. package/esm/icons/close-small.svg.js +1 -1
  155. package/esm/icons/close.svg.js +1 -1
  156. package/esm/icons/cloud-upload.svg.js +1 -1
  157. package/esm/icons/column-filter.svg.js +1 -1
  158. package/esm/icons/columns.svg.js +1 -1
  159. package/esm/icons/compress-alt.svg.js +1 -1
  160. package/esm/icons/copy.svg.js +1 -1
  161. package/esm/icons/date.svg.js +1 -1
  162. package/esm/icons/department.svg.js +1 -1
  163. package/esm/icons/desk-empty.svg.js +1 -1
  164. package/esm/icons/dot.svg.js +1 -1
  165. package/esm/icons/down-arrow-bold.svg.js +1 -1
  166. package/esm/icons/down.svg.js +1 -1
  167. package/esm/icons/download.svg.js +1 -1
  168. package/esm/icons/drag-bar.svg.js +1 -1
  169. package/esm/icons/drag.svg.js +1 -1
  170. package/esm/icons/edit.svg.js +1 -1
  171. package/esm/icons/ellipsis-v.svg.js +1 -1
  172. package/esm/icons/enter.svg.js +1 -1
  173. package/esm/icons/exchange.svg.js +1 -1
  174. package/esm/icons/expand-alt.svg.js +1 -1
  175. package/esm/icons/fail.svg.js +1 -1
  176. package/esm/icons/file.svg.js +1 -1
  177. package/esm/icons/filter.svg.js +1 -1
  178. package/esm/icons/folder.svg.js +1 -1
  179. package/esm/icons/function.svg.js +1 -1
  180. package/esm/icons/home.svg.js +1 -1
  181. package/esm/icons/image.svg.js +1 -1
  182. package/esm/icons/info-circle.svg.js +1 -1
  183. package/esm/icons/info.svg.js +1 -1
  184. package/esm/icons/input-clear.svg.js +1 -1
  185. package/esm/icons/invisible.svg.js +1 -1
  186. package/esm/icons/left-arrow.svg.js +1 -1
  187. package/esm/icons/loading-outline.svg.js +1 -1
  188. package/esm/icons/location.svg.js +1 -1
  189. package/esm/icons/menu.svg.js +1 -1
  190. package/esm/icons/minus.svg.js +1 -1
  191. package/esm/icons/move.svg.js +1 -1
  192. package/esm/icons/mute.svg.js +1 -1
  193. package/esm/icons/new-edit.svg.js +1 -1
  194. package/esm/icons/pause.svg.js +1 -1
  195. package/esm/icons/pencil.svg.js +1 -1
  196. package/esm/icons/play.svg.js +1 -1
  197. package/esm/icons/plus-cicle.svg.js +1 -1
  198. package/esm/icons/plus-fine.svg.js +1 -1
  199. package/esm/icons/plus.svg.js +1 -1
  200. package/esm/icons/post.svg.js +1 -1
  201. package/esm/icons/question-mark.svg.js +1 -1
  202. package/esm/icons/question.svg.js +1 -1
  203. package/esm/icons/redo.svg.js +1 -1
  204. package/esm/icons/refresh.svg.js +1 -1
  205. package/esm/icons/reload.svg.js +1 -1
  206. package/esm/icons/remove.svg.js +1 -1
  207. package/esm/icons/retry.svg.js +1 -1
  208. package/esm/icons/right-arrow-bold.svg.js +1 -1
  209. package/esm/icons/right-arrow.svg.js +1 -1
  210. package/esm/icons/right-double-arrow.svg.js +1 -1
  211. package/esm/icons/role.svg.js +1 -1
  212. package/esm/icons/rotate-left.svg.js +1 -1
  213. package/esm/icons/rotate-right.svg.js +1 -1
  214. package/esm/icons/scale-origin.svg.js +1 -1
  215. package/esm/icons/schedule.svg.js +1 -1
  216. package/esm/icons/search.svg.js +1 -1
  217. package/esm/icons/setting.svg.js +1 -1
  218. package/esm/icons/slider-handle-icon.svg.js +1 -1
  219. package/esm/icons/sort-asc.svg.js +1 -1
  220. package/esm/icons/sort-default.svg.js +1 -1
  221. package/esm/icons/sort-desc.svg.js +1 -1
  222. package/esm/icons/star.svg.js +1 -1
  223. package/esm/icons/status-close.svg.js +1 -1
  224. package/esm/icons/status-fail.svg.js +1 -1
  225. package/esm/icons/status-info.svg.js +1 -1
  226. package/esm/icons/status-success.svg.js +1 -1
  227. package/esm/icons/status-warning.svg.js +1 -1
  228. package/esm/icons/steps-finsh.svg.js +1 -1
  229. package/esm/icons/success.svg.js +1 -1
  230. package/esm/icons/transparent.svg.js +1 -1
  231. package/esm/icons/trash.svg.js +1 -1
  232. package/esm/icons/tree-down.svg.js +1 -1
  233. package/esm/icons/undo.svg.js +1 -1
  234. package/esm/icons/upload.svg.js +1 -1
  235. package/esm/icons/user-remove.svg.js +1 -1
  236. package/esm/icons/view.svg.js +1 -1
  237. package/esm/icons/volume.svg.js +1 -1
  238. package/esm/icons/warning-mark.svg.js +1 -1
  239. package/esm/icons/warning.svg.js +1 -1
  240. package/esm/icons/window-restore.svg.js +1 -1
  241. package/esm/icons/zoom-in.svg.js +1 -1
  242. package/esm/icons/zoom-out.svg.js +1 -1
  243. package/esm/index.js +1 -1
  244. package/esm/locale/de-DE.js +2 -1
  245. package/esm/locale/en-US.js +2 -1
  246. package/esm/locale/zh-CN.js +2 -1
  247. package/esm/themes/ang.js +1 -1
  248. package/esm/themes/antd.js +1 -1
  249. package/esm/themes/cxd.js +1 -1
  250. package/esm/themes/dark.js +1 -1
  251. package/lib/components/404.js +1 -1
  252. package/lib/components/Alert.js +1 -1
  253. package/lib/components/Alert2.d.ts +10 -10
  254. package/lib/components/Alert2.js +1 -1
  255. package/lib/components/AnchorNav.d.ts +10 -10
  256. package/lib/components/AnchorNav.js +1 -1
  257. package/lib/components/ArrayInput.d.ts +40 -40
  258. package/lib/components/ArrayInput.js +1 -1
  259. package/lib/components/AsideNav.js +1 -1
  260. package/lib/components/AssociatedSelection.d.ts +40 -40
  261. package/lib/components/AssociatedSelection.js +1 -1
  262. package/lib/components/Avatar.d.ts +10 -10
  263. package/lib/components/Avatar.js +1 -1
  264. package/lib/components/Badge.js +1 -1
  265. package/lib/components/BaiduMapPicker.js +1 -1
  266. package/lib/components/BarCode.js +1 -1
  267. package/lib/components/Breadcrumb.js +1 -1
  268. package/lib/components/Button.d.ts +10 -10
  269. package/lib/components/Button.js +1 -1
  270. package/lib/components/CalendarMobile.d.ts +40 -40
  271. package/lib/components/CalendarMobile.js +1 -1
  272. package/lib/components/Card.d.ts +10 -10
  273. package/lib/components/Card.js +1 -1
  274. package/lib/components/Cascader.js +1 -1
  275. package/lib/components/ChainedSelection.d.ts +40 -40
  276. package/lib/components/ChainedSelection.js +1 -1
  277. package/lib/components/Checkbox.d.ts +10 -10
  278. package/lib/components/Checkbox.js +1 -1
  279. package/lib/components/CityArea.js +1 -1
  280. package/lib/components/CityDB.js +1 -1
  281. package/lib/components/CodeMirror.js +1 -1
  282. package/lib/components/Collapse.d.ts +10 -10
  283. package/lib/components/Collapse.js +1 -1
  284. package/lib/components/CollapseGroup.js +1 -1
  285. package/lib/components/ColorPicker.d.ts +40 -40
  286. package/lib/components/ColorPicker.js +1 -1
  287. package/lib/components/ContextMenu.js +1 -1
  288. package/lib/components/DatePicker.d.ts +40 -40
  289. package/lib/components/DatePicker.js +1 -1
  290. package/lib/components/DateRangePicker.d.ts +40 -40
  291. package/lib/components/DateRangePicker.js +1 -1
  292. package/lib/components/Drawer.d.ts +10 -10
  293. package/lib/components/Drawer.js +1 -1
  294. package/lib/components/Editor.d.ts +40 -40
  295. package/lib/components/Editor.js +1 -1
  296. package/lib/components/Form.js +1 -1
  297. package/lib/components/FormField.js +1 -1
  298. package/lib/components/GridNav.js +1 -1
  299. package/lib/components/GroupedSelection.d.ts +40 -40
  300. package/lib/components/GroupedSelection.js +1 -1
  301. package/lib/components/Html.js +1 -1
  302. package/lib/components/ImageGallery.js +1 -1
  303. package/lib/components/Input.js +1 -1
  304. package/lib/components/InputBox.d.ts +10 -10
  305. package/lib/components/InputBox.js +1 -1
  306. package/lib/components/InputBoxWithSuggestion.js +1 -1
  307. package/lib/components/Layout.js +1 -1
  308. package/lib/components/Link.js +1 -1
  309. package/lib/components/ListGroup.d.ts +10 -10
  310. package/lib/components/ListGroup.js +1 -1
  311. package/lib/components/ListMenu.d.ts +40 -40
  312. package/lib/components/ListMenu.js +1 -1
  313. package/lib/components/LocationPicker.d.ts +40 -40
  314. package/lib/components/LocationPicker.js +1 -1
  315. package/lib/components/Markdown.js +1 -1
  316. package/lib/components/Modal.d.ts +40 -40
  317. package/lib/components/Modal.js +1 -1
  318. package/lib/components/ModalManager.js +1 -1
  319. package/lib/components/MonthRangePicker.d.ts +40 -40
  320. package/lib/components/NumberInput.d.ts +10 -10
  321. package/lib/components/NumberInput.js +1 -1
  322. package/lib/components/Pagination.js +1 -1
  323. package/lib/components/Picker.js +1 -1
  324. package/lib/components/PickerColumn.js +1 -1
  325. package/lib/components/PickerContainer.js +1 -1
  326. package/lib/components/PopOverContainer.js +1 -1
  327. package/lib/components/PopUp.js +1 -1
  328. package/lib/components/Progress.d.ts +10 -10
  329. package/lib/components/Progress.js +1 -1
  330. package/lib/components/PullRefresh.js +1 -1
  331. package/lib/components/Radios.d.ts +10 -10
  332. package/lib/components/Radios.js +1 -1
  333. package/lib/components/Range.js +1 -1
  334. package/lib/components/Rating.d.ts +10 -10
  335. package/lib/components/Rating.js +1 -1
  336. package/lib/components/ResultBox.d.ts +40 -40
  337. package/lib/components/ResultBox.js +1 -1
  338. package/lib/components/ResultList.d.ts +40 -40
  339. package/lib/components/ResultList.js +1 -1
  340. package/lib/components/ResultTableList.d.ts +40 -40
  341. package/lib/components/ResultTableList.js +1 -1
  342. package/lib/components/ResultTreeList.d.ts +40 -40
  343. package/lib/components/ResultTreeList.js +1 -1
  344. package/lib/components/RichText.js +1 -1
  345. package/lib/components/SearchBox.d.ts +40 -40
  346. package/lib/components/SearchBox.js +1 -1
  347. package/lib/components/Select.d.ts +193 -193
  348. package/lib/components/Select.js +1 -1
  349. package/lib/components/Selection.d.ts +40 -40
  350. package/lib/components/Selection.js +1 -1
  351. package/lib/components/SparkLine.d.ts +40 -40
  352. package/lib/components/SparkLine.js +1 -1
  353. package/lib/components/Spinner.d.ts +21 -11
  354. package/lib/components/Spinner.js +15 -4
  355. package/lib/components/Steps.js +1 -1
  356. package/lib/components/Switch.d.ts +10 -10
  357. package/lib/components/Switch.js +1 -1
  358. package/lib/components/TableSelection.d.ts +40 -40
  359. package/lib/components/TableSelection.js +1 -1
  360. package/lib/components/Tabs.d.ts +40 -40
  361. package/lib/components/Tabs.js +1 -1
  362. package/lib/components/TabsTransfer.js +1 -1
  363. package/lib/components/TabsTransferPicker.js +1 -1
  364. package/lib/components/Tag.d.ts +10 -10
  365. package/lib/components/Tag.js +1 -1
  366. package/lib/components/Textarea.d.ts +40 -40
  367. package/lib/components/Textarea.js +1 -1
  368. package/lib/components/Timeline.js +1 -1
  369. package/lib/components/TimelineItem.js +1 -1
  370. package/lib/components/Tinymce.js +1 -1
  371. package/lib/components/TitleBar.js +1 -1
  372. package/lib/components/Toast.js +1 -1
  373. package/lib/components/Tooltip.js +1 -1
  374. package/lib/components/TooltipWrapper.js +1 -1
  375. package/lib/components/Transfer.d.ts +40 -40
  376. package/lib/components/Transfer.js +1 -1
  377. package/lib/components/TransferDropDown.d.ts +40 -40
  378. package/lib/components/TransferDropDown.js +1 -1
  379. package/lib/components/TransferPicker.js +1 -1
  380. package/lib/components/TransferSearch.js +1 -1
  381. package/lib/components/Tree.d.ts +40 -40
  382. package/lib/components/Tree.js +1 -1
  383. package/lib/components/TreeSelection.d.ts +40 -40
  384. package/lib/components/TreeSelection.js +1 -1
  385. package/lib/components/UserSelect.d.ts +40 -40
  386. package/lib/components/UserSelect.js +1 -1
  387. package/lib/components/UserTabSelect.d.ts +40 -40
  388. package/lib/components/UserTabSelect.js +1 -1
  389. package/lib/components/WithRemoteConfig.js +1 -1
  390. package/lib/components/WithStore.js +1 -1
  391. package/lib/components/calendar/Calendar.js +1 -1
  392. package/lib/components/calendar/CalendarContainer.js +1 -1
  393. package/lib/components/calendar/DaysView.js +1 -1
  394. package/lib/components/calendar/MonthsView.js +1 -1
  395. package/lib/components/calendar/QuartersView.js +1 -1
  396. package/lib/components/calendar/TimeView.js +1 -1
  397. package/lib/components/calendar/YearsView.js +1 -1
  398. package/lib/components/condition-builder/Expression.js +1 -1
  399. package/lib/components/condition-builder/Field.js +1 -1
  400. package/lib/components/condition-builder/Formula.js +1 -1
  401. package/lib/components/condition-builder/Func.js +1 -1
  402. package/lib/components/condition-builder/Group.js +1 -1
  403. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  404. package/lib/components/condition-builder/InputSwitch.js +1 -1
  405. package/lib/components/condition-builder/Item.js +1 -1
  406. package/lib/components/condition-builder/Value.js +1 -1
  407. package/lib/components/condition-builder/config.js +1 -1
  408. package/lib/components/condition-builder/index.js +1 -1
  409. package/lib/components/formula/Editor.d.ts +40 -40
  410. package/lib/components/formula/Editor.js +1 -1
  411. package/lib/components/formula/FuncList.js +1 -1
  412. package/lib/components/formula/Picker.d.ts +40 -40
  413. package/lib/components/formula/Picker.js +1 -1
  414. package/lib/components/formula/VariableList.js +1 -1
  415. package/lib/components/formula/plugin.js +1 -1
  416. package/lib/components/icons.js +1 -1
  417. package/lib/components/json-schema/Array.js +1 -1
  418. package/lib/components/json-schema/Item.js +1 -1
  419. package/lib/components/json-schema/Object.js +1 -1
  420. package/lib/components/json-schema/index.js +1 -1
  421. package/lib/components/schema-editor/Array.js +1 -1
  422. package/lib/components/schema-editor/Common.js +1 -1
  423. package/lib/components/schema-editor/Item.js +1 -1
  424. package/lib/components/schema-editor/Object.js +1 -1
  425. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  426. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  427. package/lib/components/schema-editor/index.d.ts +40 -40
  428. package/lib/components/schema-editor/index.js +1 -1
  429. package/lib/components/table/Cell.d.ts +40 -40
  430. package/lib/components/table/Cell.js +1 -1
  431. package/lib/components/table/HeadCellDropDown.js +1 -1
  432. package/lib/components/table/HeadCellFilter.js +1 -1
  433. package/lib/components/table/HeadCellSelect.js +1 -1
  434. package/lib/components/table/HeadCellSort.js +1 -1
  435. package/lib/components/table/ItemActionsWrapper.js +1 -1
  436. package/lib/components/table/index.d.ts +40 -40
  437. package/lib/components/table/index.js +1 -1
  438. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  439. package/lib/components/virtual-list/constants.js +1 -1
  440. package/lib/components/virtual-list/index.js +1 -1
  441. package/lib/hooks/use-set-state.js +1 -1
  442. package/lib/hooks/use-touch.js +1 -1
  443. package/lib/hooks/use-update-effect.js +1 -1
  444. package/lib/hooks/use-validation-resolver.js +1 -1
  445. package/lib/icons/alert-danger.svg.js +1 -1
  446. package/lib/icons/alert-info.svg.js +1 -1
  447. package/lib/icons/alert-success.svg.js +1 -1
  448. package/lib/icons/alert-warning.svg.js +1 -1
  449. package/lib/icons/back.svg.js +1 -1
  450. package/lib/icons/calendar.svg.js +1 -1
  451. package/lib/icons/caret.svg.js +1 -1
  452. package/lib/icons/check-circle.svg.js +1 -1
  453. package/lib/icons/check.svg.js +1 -1
  454. package/lib/icons/clock.svg.js +1 -1
  455. package/lib/icons/close-small.svg.js +1 -1
  456. package/lib/icons/close.svg.js +1 -1
  457. package/lib/icons/cloud-upload.svg.js +1 -1
  458. package/lib/icons/column-filter.svg.js +1 -1
  459. package/lib/icons/columns.svg.js +1 -1
  460. package/lib/icons/compress-alt.svg.js +1 -1
  461. package/lib/icons/copy.svg.js +1 -1
  462. package/lib/icons/date.svg.js +1 -1
  463. package/lib/icons/department.svg.js +1 -1
  464. package/lib/icons/desk-empty.svg.js +1 -1
  465. package/lib/icons/dot.svg.js +1 -1
  466. package/lib/icons/down-arrow-bold.svg.js +1 -1
  467. package/lib/icons/down.svg.js +1 -1
  468. package/lib/icons/download.svg.js +1 -1
  469. package/lib/icons/drag-bar.svg.js +1 -1
  470. package/lib/icons/drag.svg.js +1 -1
  471. package/lib/icons/edit.svg.js +1 -1
  472. package/lib/icons/ellipsis-v.svg.js +1 -1
  473. package/lib/icons/enter.svg.js +1 -1
  474. package/lib/icons/exchange.svg.js +1 -1
  475. package/lib/icons/expand-alt.svg.js +1 -1
  476. package/lib/icons/fail.svg.js +1 -1
  477. package/lib/icons/file.svg.js +1 -1
  478. package/lib/icons/filter.svg.js +1 -1
  479. package/lib/icons/folder.svg.js +1 -1
  480. package/lib/icons/function.svg.js +1 -1
  481. package/lib/icons/home.svg.js +1 -1
  482. package/lib/icons/image.svg.js +1 -1
  483. package/lib/icons/info-circle.svg.js +1 -1
  484. package/lib/icons/info.svg.js +1 -1
  485. package/lib/icons/input-clear.svg.js +1 -1
  486. package/lib/icons/invisible.svg.js +1 -1
  487. package/lib/icons/left-arrow.svg.js +1 -1
  488. package/lib/icons/loading-outline.svg.js +1 -1
  489. package/lib/icons/location.svg.js +1 -1
  490. package/lib/icons/menu.svg.js +1 -1
  491. package/lib/icons/minus.svg.js +1 -1
  492. package/lib/icons/move.svg.js +1 -1
  493. package/lib/icons/mute.svg.js +1 -1
  494. package/lib/icons/new-edit.svg.js +1 -1
  495. package/lib/icons/pause.svg.js +1 -1
  496. package/lib/icons/pencil.svg.js +1 -1
  497. package/lib/icons/play.svg.js +1 -1
  498. package/lib/icons/plus-cicle.svg.js +1 -1
  499. package/lib/icons/plus-fine.svg.js +1 -1
  500. package/lib/icons/plus.svg.js +1 -1
  501. package/lib/icons/post.svg.js +1 -1
  502. package/lib/icons/question-mark.svg.js +1 -1
  503. package/lib/icons/question.svg.js +1 -1
  504. package/lib/icons/redo.svg.js +1 -1
  505. package/lib/icons/refresh.svg.js +1 -1
  506. package/lib/icons/reload.svg.js +1 -1
  507. package/lib/icons/remove.svg.js +1 -1
  508. package/lib/icons/retry.svg.js +1 -1
  509. package/lib/icons/right-arrow-bold.svg.js +1 -1
  510. package/lib/icons/right-arrow.svg.js +1 -1
  511. package/lib/icons/right-double-arrow.svg.js +1 -1
  512. package/lib/icons/role.svg.js +1 -1
  513. package/lib/icons/rotate-left.svg.js +1 -1
  514. package/lib/icons/rotate-right.svg.js +1 -1
  515. package/lib/icons/scale-origin.svg.js +1 -1
  516. package/lib/icons/schedule.svg.js +1 -1
  517. package/lib/icons/search.svg.js +1 -1
  518. package/lib/icons/setting.svg.js +1 -1
  519. package/lib/icons/slider-handle-icon.svg.js +1 -1
  520. package/lib/icons/sort-asc.svg.js +1 -1
  521. package/lib/icons/sort-default.svg.js +1 -1
  522. package/lib/icons/sort-desc.svg.js +1 -1
  523. package/lib/icons/star.svg.js +1 -1
  524. package/lib/icons/status-close.svg.js +1 -1
  525. package/lib/icons/status-fail.svg.js +1 -1
  526. package/lib/icons/status-info.svg.js +1 -1
  527. package/lib/icons/status-success.svg.js +1 -1
  528. package/lib/icons/status-warning.svg.js +1 -1
  529. package/lib/icons/steps-finsh.svg.js +1 -1
  530. package/lib/icons/success.svg.js +1 -1
  531. package/lib/icons/transparent.svg.js +1 -1
  532. package/lib/icons/trash.svg.js +1 -1
  533. package/lib/icons/tree-down.svg.js +1 -1
  534. package/lib/icons/undo.svg.js +1 -1
  535. package/lib/icons/upload.svg.js +1 -1
  536. package/lib/icons/user-remove.svg.js +1 -1
  537. package/lib/icons/view.svg.js +1 -1
  538. package/lib/icons/volume.svg.js +1 -1
  539. package/lib/icons/warning-mark.svg.js +1 -1
  540. package/lib/icons/warning.svg.js +1 -1
  541. package/lib/icons/window-restore.svg.js +1 -1
  542. package/lib/icons/zoom-in.svg.js +1 -1
  543. package/lib/icons/zoom-out.svg.js +1 -1
  544. package/lib/index.js +1 -1
  545. package/lib/locale/de-DE.js +2 -1
  546. package/lib/locale/en-US.js +2 -1
  547. package/lib/locale/zh-CN.js +2 -1
  548. package/lib/scss/helper.scss.js +1 -1
  549. package/lib/scss/themes/ang.scss.js +1 -1
  550. package/lib/scss/themes/antd.scss.js +1 -1
  551. package/lib/scss/themes/cxd.scss.js +1 -1
  552. package/lib/scss/themes/dark.scss.js +1 -1
  553. package/lib/scss/themes/default.scss.js +1 -1
  554. package/lib/themes/ang.js +1 -1
  555. package/lib/themes/antd.js +1 -1
  556. package/lib/themes/cxd.js +1 -1
  557. package/lib/themes/dark.js +1 -1
  558. package/package.json +4 -4
@@ -24,7 +24,7 @@ export declare class SparkLine extends React.Component<SparkLineProps> {
24
24
  render(): JSX.Element;
25
25
  }
26
26
  declare const _default: {
27
- new (props: Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
27
+ new (props: Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
28
28
  width: number;
29
29
  height: number;
30
30
  }, never>> & {
@@ -36,7 +36,7 @@ declare const _default: {
36
36
  getWrappedInstance(): any;
37
37
  render(): JSX.Element;
38
38
  context: any;
39
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
39
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
40
40
  width: number;
41
41
  height: number;
42
42
  }, never>> & {
@@ -44,7 +44,7 @@ declare const _default: {
44
44
  translate?: ((str: string, ...args: any[]) => string) | undefined;
45
45
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
46
46
  forceUpdate(callback?: (() => void) | undefined): void;
47
- readonly props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
47
+ readonly props: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
48
48
  width: number;
49
49
  height: number;
50
50
  }, never>> & {
@@ -58,7 +58,7 @@ declare const _default: {
58
58
  [key: string]: React.ReactInstance;
59
59
  };
60
60
  componentDidMount?(): void;
61
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
61
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
62
62
  width: number;
63
63
  height: number;
64
64
  }, never>> & {
@@ -67,14 +67,14 @@ declare const _default: {
67
67
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
68
68
  componentWillUnmount?(): void;
69
69
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
70
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
70
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
71
71
  width: number;
72
72
  height: number;
73
73
  }, never>> & {
74
74
  locale?: string | undefined;
75
75
  translate?: ((str: string, ...args: any[]) => string) | undefined;
76
76
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
77
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
77
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
78
78
  width: number;
79
79
  height: number;
80
80
  }, never>> & {
@@ -83,28 +83,28 @@ declare const _default: {
83
83
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
84
84
  componentWillMount?(): void;
85
85
  UNSAFE_componentWillMount?(): void;
86
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
86
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
87
87
  width: number;
88
88
  height: number;
89
89
  }, never>> & {
90
90
  locale?: string | undefined;
91
91
  translate?: ((str: string, ...args: any[]) => string) | undefined;
92
92
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
93
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
93
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
94
94
  width: number;
95
95
  height: number;
96
96
  }, never>> & {
97
97
  locale?: string | undefined;
98
98
  translate?: ((str: string, ...args: any[]) => string) | undefined;
99
99
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
100
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
100
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
101
101
  width: number;
102
102
  height: number;
103
103
  }, never>> & {
104
104
  locale?: string | undefined;
105
105
  translate?: ((str: string, ...args: any[]) => string) | undefined;
106
106
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
107
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
107
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
108
108
  width: number;
109
109
  height: number;
110
110
  }, never>> & {
@@ -115,7 +115,7 @@ declare const _default: {
115
115
  displayName: string;
116
116
  contextType: React.Context<string>;
117
117
  ComposedComponent: React.ComponentType<{
118
- new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
118
+ new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
119
119
  width: number;
120
120
  height: number;
121
121
  }, never>> & {
@@ -127,7 +127,7 @@ declare const _default: {
127
127
  getWrappedInstance(): any;
128
128
  render(): JSX.Element;
129
129
  context: any;
130
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
130
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
131
131
  width: number;
132
132
  height: number;
133
133
  }, never>> & {
@@ -135,7 +135,7 @@ declare const _default: {
135
135
  translate?: ((str: string, ...args: any[]) => string) | undefined;
136
136
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
137
137
  forceUpdate(callback?: (() => void) | undefined): void;
138
- readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
138
+ readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
139
139
  width: number;
140
140
  height: number;
141
141
  }, never>> & {
@@ -149,7 +149,7 @@ declare const _default: {
149
149
  [key: string]: React.ReactInstance;
150
150
  };
151
151
  componentDidMount?(): void;
152
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
152
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
153
153
  width: number;
154
154
  height: number;
155
155
  }, never>> & {
@@ -158,14 +158,14 @@ declare const _default: {
158
158
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
159
159
  componentWillUnmount?(): void;
160
160
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
161
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
161
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
162
162
  width: number;
163
163
  height: number;
164
164
  }, never>> & {
165
165
  locale?: string | undefined;
166
166
  translate?: ((str: string, ...args: any[]) => string) | undefined;
167
167
  }>, prevState: Readonly<{}>): any;
168
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
168
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
169
169
  width: number;
170
170
  height: number;
171
171
  }, never>> & {
@@ -174,28 +174,28 @@ declare const _default: {
174
174
  }>, prevState: Readonly<{}>, snapshot?: any): void;
175
175
  componentWillMount?(): void;
176
176
  UNSAFE_componentWillMount?(): void;
177
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
177
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
178
178
  width: number;
179
179
  height: number;
180
180
  }, never>> & {
181
181
  locale?: string | undefined;
182
182
  translate?: ((str: string, ...args: any[]) => string) | undefined;
183
183
  }>, nextContext: any): void;
184
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
184
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
185
185
  width: number;
186
186
  height: number;
187
187
  }, never>> & {
188
188
  locale?: string | undefined;
189
189
  translate?: ((str: string, ...args: any[]) => string) | undefined;
190
190
  }>, nextContext: any): void;
191
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
191
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
192
192
  width: number;
193
193
  height: number;
194
194
  }, never>> & {
195
195
  locale?: string | undefined;
196
196
  translate?: ((str: string, ...args: any[]) => string) | undefined;
197
197
  }>, nextState: Readonly<{}>, nextContext: any): void;
198
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
198
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
199
199
  width: number;
200
200
  height: number;
201
201
  }, never>> & {
@@ -210,7 +210,7 @@ declare const _default: {
210
210
  ComposedComponent: typeof SparkLine;
211
211
  }>;
212
212
  } & import("hoist-non-react-statics").NonReactStatics<{
213
- new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
213
+ new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
214
214
  width: number;
215
215
  height: number;
216
216
  }, never>> & {
@@ -222,7 +222,7 @@ declare const _default: {
222
222
  getWrappedInstance(): any;
223
223
  render(): JSX.Element;
224
224
  context: any;
225
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
225
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
226
226
  width: number;
227
227
  height: number;
228
228
  }, never>> & {
@@ -230,7 +230,7 @@ declare const _default: {
230
230
  translate?: ((str: string, ...args: any[]) => string) | undefined;
231
231
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
232
232
  forceUpdate(callback?: (() => void) | undefined): void;
233
- readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
233
+ readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
234
234
  width: number;
235
235
  height: number;
236
236
  }, never>> & {
@@ -244,7 +244,7 @@ declare const _default: {
244
244
  [key: string]: React.ReactInstance;
245
245
  };
246
246
  componentDidMount?(): void;
247
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
247
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
248
248
  width: number;
249
249
  height: number;
250
250
  }, never>> & {
@@ -253,14 +253,14 @@ declare const _default: {
253
253
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
254
254
  componentWillUnmount?(): void;
255
255
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
256
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
256
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
257
257
  width: number;
258
258
  height: number;
259
259
  }, never>> & {
260
260
  locale?: string | undefined;
261
261
  translate?: ((str: string, ...args: any[]) => string) | undefined;
262
262
  }>, prevState: Readonly<{}>): any;
263
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
263
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
264
264
  width: number;
265
265
  height: number;
266
266
  }, never>> & {
@@ -269,28 +269,28 @@ declare const _default: {
269
269
  }>, prevState: Readonly<{}>, snapshot?: any): void;
270
270
  componentWillMount?(): void;
271
271
  UNSAFE_componentWillMount?(): void;
272
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
272
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
273
273
  width: number;
274
274
  height: number;
275
275
  }, never>> & {
276
276
  locale?: string | undefined;
277
277
  translate?: ((str: string, ...args: any[]) => string) | undefined;
278
278
  }>, nextContext: any): void;
279
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
279
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
280
280
  width: number;
281
281
  height: number;
282
282
  }, never>> & {
283
283
  locale?: string | undefined;
284
284
  translate?: ((str: string, ...args: any[]) => string) | undefined;
285
285
  }>, nextContext: any): void;
286
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
286
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
287
287
  width: number;
288
288
  height: number;
289
289
  }, never>> & {
290
290
  locale?: string | undefined;
291
291
  translate?: ((str: string, ...args: any[]) => string) | undefined;
292
292
  }>, nextState: Readonly<{}>, nextContext: any): void;
293
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
293
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
294
294
  width: number;
295
295
  height: number;
296
296
  }, never>> & {
@@ -305,7 +305,7 @@ declare const _default: {
305
305
  ComposedComponent: typeof SparkLine;
306
306
  }, {}> & {
307
307
  ComposedComponent: {
308
- new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
308
+ new (props: Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
309
309
  width: number;
310
310
  height: number;
311
311
  }, never>> & {
@@ -317,7 +317,7 @@ declare const _default: {
317
317
  getWrappedInstance(): any;
318
318
  render(): JSX.Element;
319
319
  context: any;
320
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
320
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
321
321
  width: number;
322
322
  height: number;
323
323
  }, never>> & {
@@ -325,7 +325,7 @@ declare const _default: {
325
325
  translate?: ((str: string, ...args: any[]) => string) | undefined;
326
326
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
327
327
  forceUpdate(callback?: (() => void) | undefined): void;
328
- readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
328
+ readonly props: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
329
329
  width: number;
330
330
  height: number;
331
331
  }, never>> & {
@@ -339,7 +339,7 @@ declare const _default: {
339
339
  [key: string]: React.ReactInstance;
340
340
  };
341
341
  componentDidMount?(): void;
342
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
342
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
343
343
  width: number;
344
344
  height: number;
345
345
  }, never>> & {
@@ -348,14 +348,14 @@ declare const _default: {
348
348
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
349
349
  componentWillUnmount?(): void;
350
350
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
351
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
351
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
352
352
  width: number;
353
353
  height: number;
354
354
  }, never>> & {
355
355
  locale?: string | undefined;
356
356
  translate?: ((str: string, ...args: any[]) => string) | undefined;
357
357
  }>, prevState: Readonly<{}>): any;
358
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
358
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
359
359
  width: number;
360
360
  height: number;
361
361
  }, never>> & {
@@ -364,28 +364,28 @@ declare const _default: {
364
364
  }>, prevState: Readonly<{}>, snapshot?: any): void;
365
365
  componentWillMount?(): void;
366
366
  UNSAFE_componentWillMount?(): void;
367
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
367
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
368
368
  width: number;
369
369
  height: number;
370
370
  }, never>> & {
371
371
  locale?: string | undefined;
372
372
  translate?: ((str: string, ...args: any[]) => string) | undefined;
373
373
  }>, nextContext: any): void;
374
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
374
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
375
375
  width: number;
376
376
  height: number;
377
377
  }, never>> & {
378
378
  locale?: string | undefined;
379
379
  translate?: ((str: string, ...args: any[]) => string) | undefined;
380
380
  }>, nextContext: any): void;
381
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
381
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
382
382
  width: number;
383
383
  height: number;
384
384
  }, never>> & {
385
385
  locale?: string | undefined;
386
386
  translate?: ((str: string, ...args: any[]) => string) | undefined;
387
387
  }>, nextState: Readonly<{}>, nextContext: any): void;
388
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "placeholder" | "onClick"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
388
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SparkLineProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "placeholder" | "onClick" | "value"> & Partial<Pick<Omit<SparkLineProps, keyof LocaleProps>, "width" | "height">> & Partial<Pick<{
389
389
  width: number;
390
390
  height: number;
391
391
  }, never>> & {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.0
2
+ * amis-ui v2.3.1
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -22,7 +22,10 @@ export interface SpinnerProps extends ThemeProps {
22
22
  delay?: number;
23
23
  overlay?: boolean;
24
24
  }
25
- export declare class Spinner extends React.Component<SpinnerProps> {
25
+ export declare class Spinner extends React.Component<SpinnerProps, {
26
+ spinning: boolean;
27
+ showMark: boolean;
28
+ }> {
26
29
  static defaultProps: {
27
30
  show: boolean;
28
31
  className: string;
@@ -39,6 +42,13 @@ export declare class Spinner extends React.Component<SpinnerProps> {
39
42
  showMark: boolean;
40
43
  };
41
44
  parent: HTMLElement | null;
45
+ /**
46
+ * 解决同级(same parent node) spinner 的 show 不全为 true 时
47
+ * 辅助控制 spinning; push: + 1 ; remove: -1;
48
+ * > 0 : spinning = checkLoading
49
+ * = 0 : spinning = false; cannot remove
50
+ */
51
+ count: number;
42
52
  spinnerRef: (dom: HTMLElement) => void;
43
53
  componentDidUpdate(): void;
44
54
  componentWillUnmount(): void;
@@ -49,7 +59,7 @@ export declare class Spinner extends React.Component<SpinnerProps> {
49
59
  render(): JSX.Element;
50
60
  }
51
61
  declare const _default: {
52
- new (props: Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
62
+ new (props: Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
53
63
  show: boolean;
54
64
  className: string;
55
65
  spinnerClassName: string;
@@ -65,7 +75,7 @@ declare const _default: {
65
75
  getWrappedInstance(): any;
66
76
  render(): JSX.Element;
67
77
  context: any;
68
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
78
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
69
79
  show: boolean;
70
80
  className: string;
71
81
  spinnerClassName: string;
@@ -77,7 +87,7 @@ declare const _default: {
77
87
  overlay: boolean;
78
88
  }, "className">> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
79
89
  forceUpdate(callback?: (() => void) | undefined): void;
80
- readonly props: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
90
+ readonly props: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
81
91
  show: boolean;
82
92
  className: string;
83
93
  spinnerClassName: string;
@@ -95,7 +105,7 @@ declare const _default: {
95
105
  [key: string]: React.ReactInstance;
96
106
  };
97
107
  componentDidMount?(): void;
98
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
108
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
99
109
  show: boolean;
100
110
  className: string;
101
111
  spinnerClassName: string;
@@ -108,7 +118,7 @@ declare const _default: {
108
118
  }, "className">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
109
119
  componentWillUnmount?(): void;
110
120
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
111
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
121
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
112
122
  show: boolean;
113
123
  className: string;
114
124
  spinnerClassName: string;
@@ -119,7 +129,7 @@ declare const _default: {
119
129
  delay: number;
120
130
  overlay: boolean;
121
131
  }, "className">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
122
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
132
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
123
133
  show: boolean;
124
134
  className: string;
125
135
  spinnerClassName: string;
@@ -132,7 +142,7 @@ declare const _default: {
132
142
  }, "className">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
133
143
  componentWillMount?(): void;
134
144
  UNSAFE_componentWillMount?(): void;
135
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
145
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
136
146
  show: boolean;
137
147
  className: string;
138
148
  spinnerClassName: string;
@@ -143,7 +153,7 @@ declare const _default: {
143
153
  delay: number;
144
154
  overlay: boolean;
145
155
  }, "className">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
146
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
156
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
147
157
  show: boolean;
148
158
  className: string;
149
159
  spinnerClassName: string;
@@ -154,7 +164,7 @@ declare const _default: {
154
164
  delay: number;
155
165
  overlay: boolean;
156
166
  }, "className">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
157
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
167
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
158
168
  show: boolean;
159
169
  className: string;
160
170
  spinnerClassName: string;
@@ -165,7 +175,7 @@ declare const _default: {
165
175
  delay: number;
166
176
  overlay: boolean;
167
177
  }, "className">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
168
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "icon" | "size" | "overlay" | "show" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
178
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SpinnerProps, keyof ThemeProps>, "mode"> & Partial<Pick<Omit<SpinnerProps, keyof ThemeProps>, "size" | "overlay" | "show" | "icon" | "delay" | "spinnerClassName" | "tip" | "tipPlacement">> & Partial<Pick<{
169
179
  show: boolean;
170
180
  className: string;
171
181
  spinnerClassName: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.0
2
+ * amis-ui v2.3.1
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -50,7 +50,9 @@ var SpinnerSharedStore = mobxStateTree.types
50
50
  self.spinnerContainers.add(spinnerContainer);
51
51
  },
52
52
  remove: function (spinnerContainer) {
53
- self.spinnerContainers.delete(spinnerContainer);
53
+ if (self.spinnerContainers.has(spinnerContainer)) {
54
+ self.spinnerContainers.delete(spinnerContainer);
55
+ }
54
56
  },
55
57
  /**
56
58
  * 判断当前 Spinner 是否可以进入 loading 状态
@@ -86,6 +88,13 @@ var Spinner = /** @class */ (function (_super) {
86
88
  showMark: true
87
89
  };
88
90
  _this.parent = null;
91
+ /**
92
+ * 解决同级(same parent node) spinner 的 show 不全为 true 时
93
+ * 辅助控制 spinning; push: + 1 ; remove: -1;
94
+ * > 0 : spinning = checkLoading
95
+ * = 0 : spinning = false; cannot remove
96
+ */
97
+ _this.count = 0;
89
98
  _this.spinnerRef = function (dom) {
90
99
  if (dom) {
91
100
  _this.parent = dom.parentNode;
@@ -99,7 +108,7 @@ var Spinner = /** @class */ (function (_super) {
99
108
  */
100
109
  _this.loadingChecker = mobx.reaction(function () { return store.spinnerContainers.size; }, function () {
101
110
  _this.setState({
102
- spinning: store.checkLoading(_this.parent)
111
+ spinning: store.checkLoading(_this.parent) && _this.count > 0
103
112
  });
104
113
  });
105
114
  return _this;
@@ -107,10 +116,12 @@ var Spinner = /** @class */ (function (_super) {
107
116
  Spinner.prototype.componentDidUpdate = function () {
108
117
  if (this.parent) {
109
118
  if (this.props.show) {
119
+ this.count++;
110
120
  store.push(this.parent);
111
121
  }
112
- else if (this.state.spinning) {
122
+ else if (this.state.spinning && this.count > 0) {
113
123
  store.remove(this.parent);
124
+ this.count--;
114
125
  }
115
126
  }
116
127
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.0
2
+ * amis-ui v2.3.1
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5