@douyinfe/semi-ui 2.28.0-alpha.0 → 2.28.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 (353) hide show
  1. package/dist/css/semi.css +227 -0
  2. package/dist/css/semi.min.css +1 -1
  3. package/dist/umd/semi-ui.js +2393 -2068
  4. package/dist/umd/semi-ui.js.map +1 -1
  5. package/dist/umd/semi-ui.min.js +1 -1
  6. package/dist/umd/semi-ui.min.js.map +1 -1
  7. package/lib/cjs/_portal/index.js +2 -2
  8. package/lib/cjs/_utils/index.js +3 -1
  9. package/lib/cjs/anchor/index.js +9 -9
  10. package/lib/cjs/anchor/link.js +8 -8
  11. package/lib/cjs/autoComplete/index.js +8 -4
  12. package/lib/cjs/autoComplete/option.js +7 -7
  13. package/lib/cjs/avatar/avatarGroup.js +7 -7
  14. package/lib/cjs/avatar/index.js +12 -12
  15. package/lib/cjs/badge/index.js +8 -8
  16. package/lib/cjs/banner/index.js +12 -12
  17. package/lib/cjs/breadcrumb/index.js +12 -12
  18. package/lib/cjs/breadcrumb/item.js +8 -8
  19. package/lib/cjs/button/Button.js +9 -9
  20. package/lib/cjs/button/buttonGroup.js +5 -5
  21. package/lib/cjs/button/splitButtonGroup.js +1 -1
  22. package/lib/cjs/calendar/dayCalendar.js +13 -13
  23. package/lib/cjs/calendar/dayCol.js +17 -17
  24. package/lib/cjs/calendar/monthCalendar.js +38 -38
  25. package/lib/cjs/calendar/rangeCalendar.js +27 -27
  26. package/lib/cjs/calendar/timeCol.js +6 -6
  27. package/lib/cjs/calendar/weekCalendar.js +27 -27
  28. package/lib/cjs/card/cardGroup.js +2 -2
  29. package/lib/cjs/card/index.js +16 -16
  30. package/lib/cjs/card/meta.js +5 -5
  31. package/lib/cjs/carousel/CarouselArrow.js +6 -6
  32. package/lib/cjs/carousel/CarouselIndicator.js +6 -6
  33. package/lib/cjs/carousel/index.js +12 -12
  34. package/lib/cjs/cascader/index.d.ts +5 -2
  35. package/lib/cjs/cascader/index.js +40 -38
  36. package/lib/cjs/cascader/item.d.ts +15 -1
  37. package/lib/cjs/cascader/item.js +64 -32
  38. package/lib/cjs/checkbox/checkbox.js +14 -14
  39. package/lib/cjs/checkbox/checkboxGroup.js +4 -4
  40. package/lib/cjs/checkbox/checkboxInner.js +6 -6
  41. package/lib/cjs/collapse/item.js +9 -9
  42. package/lib/cjs/collapsible/index.js +3 -3
  43. package/lib/cjs/configProvider/index.js +1 -1
  44. package/lib/cjs/datePicker/dateInput.js +16 -16
  45. package/lib/cjs/datePicker/datePicker.js +9 -9
  46. package/lib/cjs/datePicker/footer.js +1 -1
  47. package/lib/cjs/datePicker/index.js +1 -1
  48. package/lib/cjs/datePicker/month.js +2 -2
  49. package/lib/cjs/datePicker/monthsGrid.js +27 -27
  50. package/lib/cjs/datePicker/navigation.js +1 -1
  51. package/lib/cjs/datePicker/quickControl.js +14 -14
  52. package/lib/cjs/datePicker/yearAndMonth.js +4 -4
  53. package/lib/cjs/descriptions/index.js +3 -3
  54. package/lib/cjs/descriptions/item.js +5 -5
  55. package/lib/cjs/divider/index.js +7 -7
  56. package/lib/cjs/dropdown/dropdownDivider.js +1 -1
  57. package/lib/cjs/dropdown/dropdownItem.js +7 -7
  58. package/lib/cjs/dropdown/dropdownMenu.js +1 -1
  59. package/lib/cjs/dropdown/dropdownTitle.js +2 -2
  60. package/lib/cjs/dropdown/index.js +3 -3
  61. package/lib/cjs/empty/index.js +7 -7
  62. package/lib/cjs/form/arrayField.js +1 -1
  63. package/lib/cjs/form/baseForm.d.ts +2 -0
  64. package/lib/cjs/form/baseForm.js +2 -2
  65. package/lib/cjs/form/errorMessage.js +1 -1
  66. package/lib/cjs/form/field.d.ts +2 -0
  67. package/lib/cjs/form/group.js +2 -2
  68. package/lib/cjs/form/hoc/withField.js +16 -16
  69. package/lib/cjs/form/label.js +9 -9
  70. package/lib/cjs/form/slot.js +5 -5
  71. package/lib/cjs/grid/col.js +11 -11
  72. package/lib/cjs/grid/row.js +4 -4
  73. package/lib/cjs/highlight/index.js +1 -1
  74. package/lib/cjs/iconButton/index.js +5 -5
  75. package/lib/cjs/image/image.js +10 -10
  76. package/lib/cjs/image/preview.js +3 -3
  77. package/lib/cjs/image/previewFooter.js +12 -12
  78. package/lib/cjs/image/previewHeader.js +3 -3
  79. package/lib/cjs/image/previewImage.js +7 -7
  80. package/lib/cjs/image/previewInner.js +7 -7
  81. package/lib/cjs/input/index.js +38 -38
  82. package/lib/cjs/input/inputGroup.js +7 -7
  83. package/lib/cjs/input/textarea.js +14 -14
  84. package/lib/cjs/inputNumber/index.js +11 -11
  85. package/lib/cjs/layout/Sider.d.ts +1 -1
  86. package/lib/cjs/layout/Sider.js +4 -4
  87. package/lib/cjs/layout/index.js +3 -3
  88. package/lib/cjs/list/index.js +11 -11
  89. package/lib/cjs/list/item.js +6 -6
  90. package/lib/cjs/modal/ConfirmModal.js +7 -7
  91. package/lib/cjs/modal/Modal.js +4 -4
  92. package/lib/cjs/modal/ModalContent.js +24 -24
  93. package/lib/cjs/modal/useModal/index.js +1 -1
  94. package/lib/cjs/navigation/CollapseButton.js +1 -1
  95. package/lib/cjs/navigation/Footer.js +2 -2
  96. package/lib/cjs/navigation/Header.js +5 -5
  97. package/lib/cjs/navigation/Item.js +16 -16
  98. package/lib/cjs/navigation/SubNav.js +14 -14
  99. package/lib/cjs/navigation/index.js +8 -8
  100. package/lib/cjs/notification/index.js +3 -3
  101. package/lib/cjs/notification/notice.js +12 -12
  102. package/lib/cjs/overflowList/index.d.ts +1 -1
  103. package/lib/cjs/overflowList/index.js +32 -35
  104. package/lib/cjs/overflowList/intersectionObserver.js +3 -1
  105. package/lib/cjs/pagination/index.js +26 -26
  106. package/lib/cjs/popconfirm/index.js +9 -9
  107. package/lib/cjs/popover/index.js +2 -2
  108. package/lib/cjs/progress/index.js +14 -14
  109. package/lib/cjs/radio/radio.js +22 -22
  110. package/lib/cjs/radio/radioGroup.js +5 -5
  111. package/lib/cjs/radio/radioInner.js +7 -7
  112. package/lib/cjs/rating/index.js +5 -5
  113. package/lib/cjs/rating/item.js +11 -11
  114. package/lib/cjs/scrollList/index.js +5 -5
  115. package/lib/cjs/scrollList/scrollItem.js +13 -13
  116. package/lib/cjs/select/index.d.ts +11 -0
  117. package/lib/cjs/select/index.js +297 -116
  118. package/lib/cjs/select/option.js +7 -7
  119. package/lib/cjs/sideSheet/SideSheetContent.js +10 -10
  120. package/lib/cjs/sideSheet/index.js +7 -7
  121. package/lib/cjs/skeleton/index.js +1 -1
  122. package/lib/cjs/skeleton/item.js +4 -4
  123. package/lib/cjs/slider/index.js +28 -28
  124. package/lib/cjs/space/index.js +12 -12
  125. package/lib/cjs/spin/icon.js +2 -2
  126. package/lib/cjs/spin/index.js +6 -6
  127. package/lib/cjs/steps/basicStep.js +14 -14
  128. package/lib/cjs/steps/basicSteps.js +6 -6
  129. package/lib/cjs/steps/fillStep.js +10 -10
  130. package/lib/cjs/steps/fillSteps.js +4 -4
  131. package/lib/cjs/steps/navStep.js +5 -5
  132. package/lib/cjs/steps/navSteps.js +2 -2
  133. package/lib/cjs/table/Body/BaseRow.js +5 -5
  134. package/lib/cjs/table/Body/ExpandedRow.js +3 -3
  135. package/lib/cjs/table/Body/SectionRow.js +1 -1
  136. package/lib/cjs/table/Body/index.js +8 -8
  137. package/lib/cjs/table/ColGroup.js +2 -2
  138. package/lib/cjs/table/ColumnFilter.js +3 -3
  139. package/lib/cjs/table/ColumnSelection.js +2 -2
  140. package/lib/cjs/table/ColumnSorter.js +7 -7
  141. package/lib/cjs/table/CustomExpandIcon.js +2 -2
  142. package/lib/cjs/table/HeadTable.js +3 -3
  143. package/lib/cjs/table/Table.js +20 -20
  144. package/lib/cjs/table/TableCell.js +8 -8
  145. package/lib/cjs/table/TableHeader.js +1 -1
  146. package/lib/cjs/table/TableHeaderRow.js +8 -8
  147. package/lib/cjs/table/TablePagination.js +3 -3
  148. package/lib/cjs/tabs/TabBar.js +31 -49
  149. package/lib/cjs/tabs/TabItem.d.ts +18 -0
  150. package/lib/cjs/tabs/TabItem.js +95 -0
  151. package/lib/cjs/tabs/TabPane.js +3 -3
  152. package/lib/cjs/tabs/index.d.ts +2 -1
  153. package/lib/cjs/tabs/index.js +5 -2
  154. package/lib/cjs/tag/group.js +5 -5
  155. package/lib/cjs/tag/index.js +13 -13
  156. package/lib/cjs/tagInput/index.d.ts +6 -2
  157. package/lib/cjs/tagInput/index.js +37 -34
  158. package/lib/cjs/timePicker/Combobox.js +4 -4
  159. package/lib/cjs/timePicker/TimeInput.js +4 -4
  160. package/lib/cjs/timePicker/TimePicker.js +8 -8
  161. package/lib/cjs/timeline/index.js +8 -8
  162. package/lib/cjs/timeline/item.js +7 -7
  163. package/lib/cjs/toast/index.js +5 -5
  164. package/lib/cjs/toast/toast.js +9 -9
  165. package/lib/cjs/tooltip/index.js +7 -7
  166. package/lib/cjs/transfer/index.js +31 -31
  167. package/lib/cjs/tree/autoSizer.js +1 -1
  168. package/lib/cjs/tree/index.js +6 -6
  169. package/lib/cjs/tree/interface.d.ts +1 -0
  170. package/lib/cjs/tree/nodeList.js +1 -1
  171. package/lib/cjs/tree/treeNode.js +26 -26
  172. package/lib/cjs/treeSelect/index.js +41 -41
  173. package/lib/cjs/typography/base.js +14 -14
  174. package/lib/cjs/typography/copyable.js +3 -3
  175. package/lib/cjs/typography/paragraph.js +1 -1
  176. package/lib/cjs/typography/title.js +1 -1
  177. package/lib/cjs/typography/util.js +1 -1
  178. package/lib/cjs/upload/fileCard.js +32 -32
  179. package/lib/cjs/upload/index.js +37 -37
  180. package/lib/es/_portal/index.js +2 -2
  181. package/lib/es/_utils/index.js +3 -1
  182. package/lib/es/anchor/index.js +9 -9
  183. package/lib/es/anchor/link.js +8 -8
  184. package/lib/es/autoComplete/index.js +8 -4
  185. package/lib/es/autoComplete/option.js +7 -7
  186. package/lib/es/avatar/avatarGroup.js +7 -7
  187. package/lib/es/avatar/index.js +12 -12
  188. package/lib/es/badge/index.js +8 -8
  189. package/lib/es/banner/index.js +12 -12
  190. package/lib/es/breadcrumb/index.js +12 -12
  191. package/lib/es/breadcrumb/item.js +8 -8
  192. package/lib/es/button/Button.js +9 -9
  193. package/lib/es/button/buttonGroup.js +5 -5
  194. package/lib/es/button/splitButtonGroup.js +1 -1
  195. package/lib/es/calendar/dayCalendar.js +13 -13
  196. package/lib/es/calendar/dayCol.js +17 -17
  197. package/lib/es/calendar/monthCalendar.js +38 -38
  198. package/lib/es/calendar/rangeCalendar.js +27 -27
  199. package/lib/es/calendar/timeCol.js +6 -6
  200. package/lib/es/calendar/weekCalendar.js +27 -27
  201. package/lib/es/card/cardGroup.js +2 -2
  202. package/lib/es/card/index.js +16 -16
  203. package/lib/es/card/meta.js +5 -5
  204. package/lib/es/carousel/CarouselArrow.js +6 -6
  205. package/lib/es/carousel/CarouselIndicator.js +6 -6
  206. package/lib/es/carousel/index.js +12 -12
  207. package/lib/es/cascader/index.d.ts +5 -2
  208. package/lib/es/cascader/index.js +40 -38
  209. package/lib/es/cascader/item.d.ts +15 -1
  210. package/lib/es/cascader/item.js +64 -32
  211. package/lib/es/checkbox/checkbox.js +14 -14
  212. package/lib/es/checkbox/checkboxGroup.js +4 -4
  213. package/lib/es/checkbox/checkboxInner.js +6 -6
  214. package/lib/es/collapse/item.js +9 -9
  215. package/lib/es/collapsible/index.js +3 -3
  216. package/lib/es/configProvider/index.js +1 -1
  217. package/lib/es/datePicker/dateInput.js +16 -16
  218. package/lib/es/datePicker/datePicker.js +9 -9
  219. package/lib/es/datePicker/footer.js +1 -1
  220. package/lib/es/datePicker/index.js +1 -1
  221. package/lib/es/datePicker/month.js +2 -2
  222. package/lib/es/datePicker/monthsGrid.js +27 -27
  223. package/lib/es/datePicker/navigation.js +1 -1
  224. package/lib/es/datePicker/quickControl.js +14 -14
  225. package/lib/es/datePicker/yearAndMonth.js +4 -4
  226. package/lib/es/descriptions/index.js +3 -3
  227. package/lib/es/descriptions/item.js +5 -5
  228. package/lib/es/divider/index.js +7 -7
  229. package/lib/es/dropdown/dropdownDivider.js +1 -1
  230. package/lib/es/dropdown/dropdownItem.js +7 -7
  231. package/lib/es/dropdown/dropdownMenu.js +1 -1
  232. package/lib/es/dropdown/dropdownTitle.js +2 -2
  233. package/lib/es/dropdown/index.js +3 -3
  234. package/lib/es/empty/index.js +7 -7
  235. package/lib/es/form/arrayField.js +1 -1
  236. package/lib/es/form/baseForm.d.ts +2 -0
  237. package/lib/es/form/baseForm.js +2 -2
  238. package/lib/es/form/errorMessage.js +1 -1
  239. package/lib/es/form/field.d.ts +2 -0
  240. package/lib/es/form/group.js +2 -2
  241. package/lib/es/form/hoc/withField.js +16 -16
  242. package/lib/es/form/label.js +9 -9
  243. package/lib/es/form/slot.js +5 -5
  244. package/lib/es/grid/col.js +11 -11
  245. package/lib/es/grid/row.js +4 -4
  246. package/lib/es/highlight/index.js +1 -1
  247. package/lib/es/iconButton/index.js +5 -5
  248. package/lib/es/image/image.js +10 -10
  249. package/lib/es/image/preview.js +3 -3
  250. package/lib/es/image/previewFooter.js +12 -12
  251. package/lib/es/image/previewHeader.js +3 -3
  252. package/lib/es/image/previewImage.js +7 -7
  253. package/lib/es/image/previewInner.js +7 -7
  254. package/lib/es/input/index.js +38 -38
  255. package/lib/es/input/inputGroup.js +7 -7
  256. package/lib/es/input/textarea.js +14 -14
  257. package/lib/es/inputNumber/index.js +11 -11
  258. package/lib/es/layout/Sider.d.ts +1 -1
  259. package/lib/es/layout/Sider.js +4 -4
  260. package/lib/es/layout/index.js +3 -3
  261. package/lib/es/list/index.js +11 -11
  262. package/lib/es/list/item.js +6 -6
  263. package/lib/es/modal/ConfirmModal.js +7 -7
  264. package/lib/es/modal/Modal.js +4 -4
  265. package/lib/es/modal/ModalContent.js +24 -24
  266. package/lib/es/modal/useModal/index.js +1 -1
  267. package/lib/es/navigation/CollapseButton.js +1 -1
  268. package/lib/es/navigation/Footer.js +2 -2
  269. package/lib/es/navigation/Header.js +5 -5
  270. package/lib/es/navigation/Item.js +16 -16
  271. package/lib/es/navigation/SubNav.js +14 -14
  272. package/lib/es/navigation/index.js +8 -8
  273. package/lib/es/notification/index.js +3 -3
  274. package/lib/es/notification/notice.js +12 -12
  275. package/lib/es/overflowList/index.d.ts +1 -1
  276. package/lib/es/overflowList/index.js +31 -35
  277. package/lib/es/overflowList/intersectionObserver.js +2 -1
  278. package/lib/es/pagination/index.js +26 -26
  279. package/lib/es/popconfirm/index.js +9 -9
  280. package/lib/es/popover/index.js +2 -2
  281. package/lib/es/progress/index.js +14 -14
  282. package/lib/es/radio/radio.js +22 -22
  283. package/lib/es/radio/radioGroup.js +5 -5
  284. package/lib/es/radio/radioInner.js +7 -7
  285. package/lib/es/rating/index.js +5 -5
  286. package/lib/es/rating/item.js +11 -11
  287. package/lib/es/scrollList/index.js +5 -5
  288. package/lib/es/scrollList/scrollItem.js +13 -13
  289. package/lib/es/select/index.d.ts +11 -0
  290. package/lib/es/select/index.js +288 -112
  291. package/lib/es/select/option.js +7 -7
  292. package/lib/es/sideSheet/SideSheetContent.js +10 -10
  293. package/lib/es/sideSheet/index.js +7 -7
  294. package/lib/es/skeleton/index.js +1 -1
  295. package/lib/es/skeleton/item.js +4 -4
  296. package/lib/es/slider/index.js +28 -28
  297. package/lib/es/space/index.js +12 -12
  298. package/lib/es/spin/icon.js +2 -2
  299. package/lib/es/spin/index.js +6 -6
  300. package/lib/es/steps/basicStep.js +14 -14
  301. package/lib/es/steps/basicSteps.js +6 -6
  302. package/lib/es/steps/fillStep.js +10 -10
  303. package/lib/es/steps/fillSteps.js +4 -4
  304. package/lib/es/steps/navStep.js +5 -5
  305. package/lib/es/steps/navSteps.js +2 -2
  306. package/lib/es/table/Body/BaseRow.js +5 -5
  307. package/lib/es/table/Body/ExpandedRow.js +3 -3
  308. package/lib/es/table/Body/SectionRow.js +1 -1
  309. package/lib/es/table/Body/index.js +8 -8
  310. package/lib/es/table/ColGroup.js +2 -2
  311. package/lib/es/table/ColumnFilter.js +3 -3
  312. package/lib/es/table/ColumnSelection.js +2 -2
  313. package/lib/es/table/ColumnSorter.js +7 -7
  314. package/lib/es/table/CustomExpandIcon.js +2 -2
  315. package/lib/es/table/HeadTable.js +3 -3
  316. package/lib/es/table/Table.js +20 -20
  317. package/lib/es/table/TableCell.js +8 -8
  318. package/lib/es/table/TableHeader.js +1 -1
  319. package/lib/es/table/TableHeaderRow.js +8 -8
  320. package/lib/es/table/TablePagination.js +3 -3
  321. package/lib/es/tabs/TabBar.js +30 -50
  322. package/lib/es/tabs/TabItem.d.ts +18 -0
  323. package/lib/es/tabs/TabItem.js +78 -0
  324. package/lib/es/tabs/TabPane.js +3 -3
  325. package/lib/es/tabs/index.d.ts +2 -1
  326. package/lib/es/tabs/index.js +4 -2
  327. package/lib/es/tag/group.js +5 -5
  328. package/lib/es/tag/index.js +13 -13
  329. package/lib/es/tagInput/index.d.ts +6 -2
  330. package/lib/es/tagInput/index.js +37 -34
  331. package/lib/es/timePicker/Combobox.js +4 -4
  332. package/lib/es/timePicker/TimeInput.js +4 -4
  333. package/lib/es/timePicker/TimePicker.js +8 -8
  334. package/lib/es/timeline/index.js +8 -8
  335. package/lib/es/timeline/item.js +7 -7
  336. package/lib/es/toast/index.js +5 -5
  337. package/lib/es/toast/toast.js +9 -9
  338. package/lib/es/tooltip/index.js +7 -7
  339. package/lib/es/transfer/index.js +31 -31
  340. package/lib/es/tree/autoSizer.js +1 -1
  341. package/lib/es/tree/index.js +6 -6
  342. package/lib/es/tree/interface.d.ts +1 -0
  343. package/lib/es/tree/nodeList.js +1 -1
  344. package/lib/es/tree/treeNode.js +26 -26
  345. package/lib/es/treeSelect/index.js +41 -41
  346. package/lib/es/typography/base.js +14 -14
  347. package/lib/es/typography/copyable.js +3 -3
  348. package/lib/es/typography/paragraph.js +1 -1
  349. package/lib/es/typography/title.js +1 -1
  350. package/lib/es/typography/util.js +1 -1
  351. package/lib/es/upload/fileCard.js +32 -32
  352. package/lib/es/upload/index.js +37 -37
  353. package/package.json +8 -8
@@ -142,9 +142,9 @@ class TimeInput extends _baseComponent.default {
142
142
  rest = __rest(_a, ["prefixCls", "placeholder", "inputReadOnly", "onFocus", "disabled", "type", "locale", "localeCode", "insetLabel", "validateStatus", "value", "onChange", "invalid", "format", "clearText", "disabledHours", "disabledMinutes", "disabledSeconds", "onEsc", "defaultOpenValue", "currentSelectPanel", "focusOnOpen", "timeStampValue", "timeZone", "defaultOpen", "dateFnsLocale"]); // const { focusing } = this.state;
143
143
 
144
144
 
145
- const inputCls = (0, _classnames.default)("".concat(prefixCls, "-input"), {
146
- ["".concat(prefixCls, "-input-invalid")]: invalid,
147
- ["".concat(prefixCls, "-input-readonly")]: inputReadOnly
145
+ const inputCls = (0, _classnames.default)(`${prefixCls}-input`, {
146
+ [`${prefixCls}-input-invalid`]: invalid,
147
+ [`${prefixCls}-input-readonly`]: inputReadOnly
148
148
  });
149
149
  const mergeValidateStatus = invalid ? 'error' : validateStatus;
150
150
  return /*#__PURE__*/_react.default.createElement(_input.default, Object.assign({}, rest, {
@@ -171,7 +171,7 @@ class TimeInput extends _baseComponent.default {
171
171
  prefixCls
172
172
  } = this.props;
173
173
  return /*#__PURE__*/_react.default.createElement("div", {
174
- className: "".concat(prefixCls, "-input-wrap")
174
+ className: `${prefixCls}-input-wrap`
175
175
  }, this.getInput());
176
176
  }
177
177
 
@@ -223,7 +223,7 @@ class TimePicker extends _baseComponent.default {
223
223
  format: format,
224
224
  isAM: isAM[0],
225
225
  timeStampValue: value[0],
226
- prefixCls: "".concat(prefixCls, "-panel"),
226
+ prefixCls: `${prefixCls}-panel`,
227
227
  onChange: v => this.handlePanelChange(v, 0),
228
228
  onCurrentSelectPanelChange: this.onCurrentSelectPanelChange
229
229
  }, this.createPanelProps(0)))];
@@ -234,7 +234,7 @@ class TimePicker extends _baseComponent.default {
234
234
  format: format,
235
235
  isAM: isAM[1],
236
236
  timeStampValue: value[1],
237
- prefixCls: "".concat(prefixCls, "-panel"),
237
+ prefixCls: `${prefixCls}-panel`,
238
238
  onChange: v => this.handlePanelChange(v, 1),
239
239
  onCurrentSelectPanelChange: this.onCurrentSelectPanelChange
240
240
  }, this.createPanelProps(1))));
@@ -278,10 +278,10 @@ class TimePicker extends _baseComponent.default {
278
278
  selectColumnCount += 1;
279
279
  }
280
280
 
281
- return (0, _classnames.default)("".concat(prefixCls, "-panel"), popupClassName, {
282
- ["".concat(prefixCls, "-panel-narrow")]: (!showHour || !showMinute || !showSecond) && !use12Hours,
281
+ return (0, _classnames.default)(`${prefixCls}-panel`, popupClassName, {
282
+ [`${prefixCls}-panel-narrow`]: (!showHour || !showMinute || !showSecond) && !use12Hours,
283
283
  [_constants.cssClasses.RANGE_PICKER]: this.adapter.isRangePicker()
284
- }, "".concat(prefixCls, "-panel-column-").concat(selectColumnCount));
284
+ }, `${prefixCls}-panel-column-${selectColumnCount}`);
285
285
  }
286
286
 
287
287
  focus() {// TODO this.picker is undefined, confirm keep this func or not
@@ -341,11 +341,11 @@ class TimePicker extends _baseComponent.default {
341
341
  } = this.state;
342
342
  const popupClassName = this.getPopupClassName();
343
343
  const headerPrefix = (0, _classnames.default)({
344
- ["".concat(prefixCls, "-header")]: true
344
+ [`${prefixCls}-header`]: true
345
345
  });
346
346
  const panelPrefix = (0, _classnames.default)({
347
- ["".concat(prefixCls, "-panel")]: true,
348
- ["".concat(prefixCls, "-panel-").concat(size)]: size
347
+ [`${prefixCls}-panel`]: true,
348
+ [`${prefixCls}-panel-${size}`]: size
349
349
  });
350
350
  const inputProps = Object.assign(Object.assign({}, rest), {
351
351
  disabled,
@@ -38,26 +38,26 @@ class Timeline extends _react.PureComponent {
38
38
 
39
39
  if (mode === 'alternate') {
40
40
  if (ele.props.position) {
41
- return "".concat(prefixCls, "-item-").concat(ele.props.position);
41
+ return `${prefixCls}-item-${ele.props.position}`;
42
42
  }
43
43
 
44
- return idx % 2 === 0 ? "".concat(prefixCls, "-item-left") : "".concat(prefixCls, "-item-right");
44
+ return idx % 2 === 0 ? `${prefixCls}-item-left` : `${prefixCls}-item-right`;
45
45
  }
46
46
 
47
47
  if (mode === 'center') {
48
48
  if (ele.props.position) {
49
- return "".concat(prefixCls, "-item-").concat(ele.props.position);
49
+ return `${prefixCls}-item-${ele.props.position}`;
50
50
  }
51
51
 
52
- return "".concat(prefixCls, "-item-left");
52
+ return `${prefixCls}-item-left`;
53
53
  }
54
54
 
55
55
  if (mode === 'left' || mode === 'right') {
56
- return "".concat(prefixCls, "-item-").concat(mode);
56
+ return `${prefixCls}-item-${mode}`;
57
57
  }
58
58
 
59
59
  if (ele.props.position) {
60
- return "".concat(prefixCls, "-item-").concat(ele.props.position);
60
+ return `${prefixCls}-item-${ele.props.position}`;
61
61
  }
62
62
 
63
63
  return '';
@@ -84,13 +84,13 @@ class Timeline extends _react.PureComponent {
84
84
  dataSource
85
85
  } = this.props;
86
86
  const classString = (0, _classnames.default)(prefixCls, className, {
87
- ["".concat(prefixCls, "-").concat(mode)]: mode
87
+ [`${prefixCls}-${mode}`]: mode
88
88
  });
89
89
  let childrenList;
90
90
 
91
91
  if (dataSource && dataSource.length) {
92
92
  const items = dataSource.map((item, index) => /*#__PURE__*/_react.default.createElement(_item.default, Object.assign({
93
- key: "timeline-item-".concat(index)
93
+ key: `timeline-item-${index}`
94
94
  }, item), item.content));
95
95
  childrenList = this.addClassName(items);
96
96
  }
@@ -40,9 +40,9 @@ class Item extends _react.PureComponent {
40
40
  } = this.props;
41
41
  const itemCls = (0, _classnames.default)(prefixCls, className);
42
42
  const dotCls = (0, _classnames.default)({
43
- ["".concat(prefixCls, "-head")]: true,
44
- ["".concat(prefixCls, "-head-custom")]: dot,
45
- ["".concat(prefixCls, "-head-").concat(type)]: type
43
+ [`${prefixCls}-head`]: true,
44
+ [`${prefixCls}-head-custom`]: dot,
45
+ [`${prefixCls}-head-${type}`]: type
46
46
  });
47
47
  const dotStyle = color ? {
48
48
  style: {
@@ -54,17 +54,17 @@ class Item extends _react.PureComponent {
54
54
  style: style,
55
55
  onClick: onClick
56
56
  }, /*#__PURE__*/_react.default.createElement("div", {
57
- className: "".concat(prefixCls, "-tail"),
57
+ className: `${prefixCls}-tail`,
58
58
  "aria-hidden": true
59
59
  }), /*#__PURE__*/_react.default.createElement("div", Object.assign({
60
60
  className: dotCls,
61
61
  "aria-hidden": true
62
62
  }, dotStyle), dot), /*#__PURE__*/_react.default.createElement("div", {
63
- className: "".concat(prefixCls, "-content")
63
+ className: `${prefixCls}-content`
64
64
  }, children, extra && /*#__PURE__*/_react.default.createElement("div", {
65
- className: "".concat(prefixCls, "-content-extra")
65
+ className: `${prefixCls}-content-extra`
66
66
  }, extra), time && /*#__PURE__*/_react.default.createElement("div", {
67
- className: "".concat(prefixCls, "-content-time")
67
+ className: `${prefixCls}-content-time`
68
68
  }, time)));
69
69
  }
70
70
 
@@ -76,7 +76,7 @@ const createBaseToast = () => {
76
76
  ['top', 'left', 'bottom', 'right'].map(pos => {
77
77
  if (pos in ToastList.defaultOpts || pos in opts) {
78
78
  const val = opts[pos] ? opts[pos] : ToastList.defaultOpts[pos];
79
- div.style[pos] = typeof val === 'number' ? "".concat(val, "px") : val;
79
+ div.style[pos] = typeof val === 'number' ? `${val}px` : val;
80
80
  }
81
81
  }); // document.body.appendChild(div);
82
82
 
@@ -95,10 +95,10 @@ const createBaseToast = () => {
95
95
  }));
96
96
  });
97
97
  } else {
98
- const node = document.querySelector("#".concat(this.wrapperId));
98
+ const node = document.querySelector(`#${this.wrapperId}`);
99
99
  ['top', 'left', 'bottom', 'right'].map(pos => {
100
100
  if (pos in opts) {
101
- node.style[pos] = typeof opts[pos] === 'number' ? "".concat(opts[pos], "px") : opts[pos];
101
+ node.style[pos] = typeof opts[pos] === 'number' ? `${opts[pos]}px` : opts[pos];
102
102
  }
103
103
  });
104
104
 
@@ -125,7 +125,7 @@ const createBaseToast = () => {
125
125
  static destroyAll() {
126
126
  if (ToastList.ref) {
127
127
  ToastList.ref.destroyAll();
128
- const wrapper = document.querySelector("#".concat(this.wrapperId));
128
+ const wrapper = document.querySelector(`#${this.wrapperId}`);
129
129
 
130
130
  _reactDom.default.unmountComponentAtNode(wrapper);
131
131
 
@@ -260,7 +260,7 @@ const createBaseToast = () => {
260
260
  key: item.id,
261
261
  motion: item.motion,
262
262
  animationState: isRemoved ? "leave" : "enter",
263
- startClassName: isRemoved ? "".concat(_constants.cssClasses.PREFIX, "-animation-hide") : "".concat(_constants.cssClasses.PREFIX, "-animation-show")
263
+ startClassName: isRemoved ? `${_constants.cssClasses.PREFIX}-animation-hide` : `${_constants.cssClasses.PREFIX}-animation-show`
264
264
  }, _ref2 => {
265
265
  let {
266
266
  animationClassName,
@@ -88,12 +88,12 @@ class Toast extends _baseComponent.default {
88
88
  };
89
89
  const iconType = iconMap[type];
90
90
  const iconSize = 'large';
91
- const iconCls = (0, _classnames.default)("".concat(prefixCls, "-icon"), "".concat(prefixCls, "-icon-").concat(type));
91
+ const iconCls = (0, _classnames.default)(`${prefixCls}-icon`, `${prefixCls}-icon-${type}`);
92
92
 
93
93
  if (icon) {
94
94
  return (0, _utils.isSemiIcon)(icon) ? /*#__PURE__*/_react.default.cloneElement(icon, {
95
95
  size: iconSize,
96
- className: "".concat(prefixCls, "-icon")
96
+ className: `${prefixCls}-icon`
97
97
  }) : icon;
98
98
  }
99
99
 
@@ -119,9 +119,9 @@ class Toast extends _baseComponent.default {
119
119
  } = this.props;
120
120
  const direction = this.props.direction || this.context.direction;
121
121
  const toastCls = (0, _classnames.default)(prefixCls, className, {
122
- ["".concat(prefixCls, "-").concat(type)]: true,
123
- ["".concat(prefixCls, "-").concat(theme)]: theme === 'light',
124
- ["".concat(prefixCls, "-rtl")]: direction === 'rtl'
122
+ [`${prefixCls}-${type}`]: true,
123
+ [`${prefixCls}-${theme}`]: theme === 'light',
124
+ [`${prefixCls}-rtl`]: direction === 'rtl'
125
125
  });
126
126
  const textStyle = {};
127
127
  textStyle.maxWidth = textMaxWidth;
@@ -129,7 +129,7 @@ class Toast extends _baseComponent.default {
129
129
  const btnSize = 'small';
130
130
  return /*#__PURE__*/_react.default.createElement("div", {
131
131
  role: "alert",
132
- "aria-label": "".concat(type ? type : 'default', " type"),
132
+ "aria-label": `${type ? type : 'default'} type`,
133
133
  className: toastCls,
134
134
  style: style,
135
135
  onMouseEnter: this.clearCloseTimer,
@@ -137,13 +137,13 @@ class Toast extends _baseComponent.default {
137
137
  onAnimationStart: this.props.onAnimationStart,
138
138
  onAnimationEnd: this.props.onAnimationEnd
139
139
  }, /*#__PURE__*/_react.default.createElement("div", {
140
- className: "".concat(prefixCls, "-content")
140
+ className: `${prefixCls}-content`
141
141
  }, this.renderIcon(), /*#__PURE__*/_react.default.createElement("span", {
142
- className: "".concat(prefixCls, "-content-text"),
142
+ className: `${prefixCls}-content-text`,
143
143
  style: textStyle,
144
144
  "x-semi-prop": "content"
145
145
  }, content), showClose && /*#__PURE__*/_react.default.createElement("div", {
146
- className: "".concat(prefixCls, "-close-button")
146
+ className: `${prefixCls}-close-button`
147
147
  }, /*#__PURE__*/_react.default.createElement(_index.default, {
148
148
  onClick: e => this.close(e),
149
149
  type: "tertiary",
@@ -139,7 +139,7 @@ class Tooltip extends _baseComponent.default {
139
139
  style
140
140
  } = this.props;
141
141
  let icon = null;
142
- const triangleCls = (0, _classnames.default)(["".concat(prefixCls, "-icon-arrow")]);
142
+ const triangleCls = (0, _classnames.default)([`${prefixCls}-icon-arrow`]);
143
143
  const bgColor = (0, _get2.default)(style, 'backgroundColor');
144
144
  const iconComponent = placement.includes('left') || placement.includes('right') ? /*#__PURE__*/_react.default.createElement(_TriangleArrowVertical.default, null) : /*#__PURE__*/_react.default.createElement(_TriangleArrow.default, null);
145
145
 
@@ -212,10 +212,10 @@ class Tooltip extends _baseComponent.default {
212
212
  } = this.props;
213
213
  const direction = this.context.direction;
214
214
  const className = (0, _classnames.default)(propClassName, {
215
- ["".concat(prefixCls, "-wrapper")]: true,
216
- ["".concat(prefixCls, "-wrapper-show")]: visible,
217
- ["".concat(prefixCls, "-with-arrow")]: Boolean(showArrow),
218
- ["".concat(prefixCls, "-rtl")]: direction === 'rtl'
215
+ [`${prefixCls}-wrapper`]: true,
216
+ [`${prefixCls}-wrapper-show`]: visible,
217
+ [`${prefixCls}-with-arrow`]: Boolean(showArrow),
218
+ [`${prefixCls}-rtl`]: direction === 'rtl'
219
219
  });
220
220
  const icon = this.renderIcon();
221
221
  const portalInnerStyle = (0, _omit2.default)(containerStyle, motion ? ['transformOrigin'] : undefined);
@@ -227,7 +227,7 @@ class Tooltip extends _baseComponent.default {
227
227
  fillMode: "forwards",
228
228
  animationState: transitionState,
229
229
  motion: motion && isPositionUpdated,
230
- startClassName: transitionState === 'enter' ? "".concat(prefix, "-animation-show") : "".concat(prefix, "-animation-hide"),
230
+ startClassName: transitionState === 'enter' ? `${prefix}-animation-show` : `${prefix}-animation-hide`,
231
231
  onAnimationEnd: () => {
232
232
  var _a, _b;
233
233
 
@@ -262,7 +262,7 @@ class Tooltip extends _baseComponent.default {
262
262
  zIndex
263
263
  }
264
264
  }, /*#__PURE__*/_react.default.createElement("div", {
265
- className: "".concat(_constants.BASE_CLASS_PREFIX, "-portal-inner"),
265
+ className: `${_constants.BASE_CLASS_PREFIX}-portal-inner`,
266
266
  style: portalInnerStyle,
267
267
  ref: this.setContainerEl,
268
268
  onClick: this.handlePortalInnerClick,
@@ -57,7 +57,7 @@ const SortableList = (0, _reactSortableHoc.SortableContainer)(_ref => {
57
57
  items
58
58
  } = _ref;
59
59
  return /*#__PURE__*/_react.default.createElement("div", {
60
- className: "".concat(prefixCls, "-right-list"),
60
+ className: `${prefixCls}-right-list`,
61
61
  role: "list",
62
62
  "aria-label": "Selected list"
63
63
  }, items.map((item, index) =>
@@ -209,7 +209,7 @@ class Transfer extends _baseComponent.default {
209
209
  return /*#__PURE__*/_react.default.createElement("div", {
210
210
  role: "search",
211
211
  "aria-label": "Transfer filter",
212
- className: "".concat(prefixCls, "-filter")
212
+ className: `${prefixCls}-filter`
213
213
  }, /*#__PURE__*/_react.default.createElement(_index2.default, Object.assign({
214
214
  prefix: /*#__PURE__*/_react.default.createElement(_semiIcons.IconSearch, null),
215
215
  placeholder: locale.placeholder,
@@ -232,20 +232,20 @@ class Transfer extends _baseComponent.default {
232
232
  showButton
233
233
  } = headerConfig;
234
234
  const headerCls = (0, _classnames.default)({
235
- ["".concat(prefixCls, "-header")]: true,
236
- ["".concat(prefixCls, "-right-header")]: type === 'right',
237
- ["".concat(prefixCls, "-left-header")]: type === 'left'
235
+ [`${prefixCls}-header`]: true,
236
+ [`${prefixCls}-right-header`]: type === 'right',
237
+ [`${prefixCls}-left-header`]: type === 'left'
238
238
  });
239
239
  return /*#__PURE__*/_react.default.createElement("div", {
240
240
  className: headerCls
241
241
  }, /*#__PURE__*/_react.default.createElement("span", {
242
- className: "".concat(prefixCls, "-header-total")
242
+ className: `${prefixCls}-header-total`
243
243
  }, totalContent), showButton ? /*#__PURE__*/_react.default.createElement(_button.default, {
244
244
  theme: "borderless",
245
245
  disabled: disabled,
246
246
  type: "tertiary",
247
247
  size: "small",
248
- className: "".concat(prefixCls, "-header-all"),
248
+ className: `${prefixCls}-header-all`,
249
249
  onClick: onAllClick
250
250
  }, allContent) : null);
251
251
  }
@@ -268,8 +268,8 @@ class Transfer extends _baseComponent.default {
268
268
  }
269
269
 
270
270
  const leftItemCls = (0, _classnames.default)({
271
- ["".concat(prefixCls, "-item")]: true,
272
- ["".concat(prefixCls, "-item-disabled")]: item.disabled
271
+ [`${prefixCls}-item`]: true,
272
+ [`${prefixCls}-item-disabled`]: item.disabled
273
273
  });
274
274
  return /*#__PURE__*/_react.default.createElement(_index.Checkbox, {
275
275
  key: index,
@@ -278,7 +278,7 @@ class Transfer extends _baseComponent.default {
278
278
  checked: checked,
279
279
  role: "listitem",
280
280
  onChange: () => this.onSelectOrRemove(item),
281
- "x-semi-children-alias": "dataSource[".concat(index, "].label")
281
+ "x-semi-children-alias": `dataSource[${index}].label`
282
282
  }, item.label);
283
283
  }
284
284
 
@@ -305,7 +305,7 @@ class Transfer extends _baseComponent.default {
305
305
  // The selected option is 2,3,4, then it is false
306
306
 
307
307
  const leftContainesNotInSelected = Boolean(filterData.find(f => !selectedItems.has(f.key)));
308
- const totalText = totalToken.replace('${total}', "".concat(showNumber));
308
+ const totalText = totalToken.replace('${total}', `${showNumber}`);
309
309
  const headerConfig = {
310
310
  totalContent: totalText,
311
311
  allContent: leftContainesNotInSelected ? locale.selectAll : locale.clearSelectAll,
@@ -376,15 +376,15 @@ class Transfer extends _baseComponent.default {
376
376
  }
377
377
 
378
378
  return /*#__PURE__*/_react.default.createElement("section", {
379
- className: "".concat(prefixCls, "-left")
379
+ className: `${prefixCls}-left`
380
380
  }, inputCom, content);
381
381
  }
382
382
 
383
383
  renderGroupTitle(group, index) {
384
- const groupCls = (0, _classnames.default)("".concat(prefixCls, "-group-title"));
384
+ const groupCls = (0, _classnames.default)(`${prefixCls}-group-title`);
385
385
  return /*#__PURE__*/_react.default.createElement("div", {
386
386
  className: groupCls,
387
- key: "title-".concat(index)
387
+ key: `title-${index}`
388
388
  }, group.title);
389
389
  }
390
390
 
@@ -448,7 +448,7 @@ class Transfer extends _baseComponent.default {
448
448
  }
449
449
  });
450
450
  return /*#__PURE__*/_react.default.createElement("div", {
451
- className: "".concat(prefixCls, "-left-list"),
451
+ className: `${prefixCls}-left-list`,
452
452
  role: "list",
453
453
  "aria-label": "Option list"
454
454
  }, content);
@@ -465,9 +465,9 @@ class Transfer extends _baseComponent.default {
465
465
  const onRemove = () => this.foundation.handleSelectOrRemove(item);
466
466
 
467
467
  const rightItemCls = (0, _classnames.default)({
468
- ["".concat(prefixCls, "-item")]: true,
469
- ["".concat(prefixCls, "-right-item")]: true,
470
- ["".concat(prefixCls, "-right-item-draggable")]: draggable
468
+ [`${prefixCls}-item`]: true,
469
+ [`${prefixCls}-right-item`]: true,
470
+ [`${prefixCls}-right-item-draggable`]: draggable
471
471
  });
472
472
  const shouldShowPath = type === _constants.strings.TYPE_TREE_TO_LIST && showPath === true;
473
473
  const label = shouldShowPath ? this.foundation._generatePath(item) : item.label;
@@ -482,7 +482,7 @@ class Transfer extends _baseComponent.default {
482
482
  const DragHandle = (0, _reactSortableHoc.SortableHandle)(() => /*#__PURE__*/_react.default.createElement(_semiIcons.IconHandle, {
483
483
  role: "button",
484
484
  "aria-label": "Drag and sort",
485
- className: "".concat(prefixCls, "-right-item-drag-handler")
485
+ className: `${prefixCls}-right-item-drag-handler`
486
486
  }));
487
487
  return (
488
488
  /*#__PURE__*/
@@ -492,12 +492,12 @@ class Transfer extends _baseComponent.default {
492
492
  className: rightItemCls,
493
493
  key: item.key
494
494
  }, draggable ? /*#__PURE__*/_react.default.createElement(DragHandle, null) : null, /*#__PURE__*/_react.default.createElement("div", {
495
- className: "".concat(prefixCls, "-right-item-text")
495
+ className: `${prefixCls}-right-item-text`
496
496
  }, label), /*#__PURE__*/_react.default.createElement(_semiIcons.IconClose, {
497
497
  onClick: onRemove,
498
498
  "aria-disabled": item.disabled,
499
- className: (0, _classnames.default)("".concat(prefixCls, "-item-close-icon"), {
500
- ["".concat(prefixCls, "-item-close-icon-disabled")]: item.disabled
499
+ className: (0, _classnames.default)(`${prefixCls}-item-close-icon`, {
500
+ [`${prefixCls}-item-close-icon-disabled`]: item.disabled
501
501
  })
502
502
  }))
503
503
  );
@@ -505,9 +505,9 @@ class Transfer extends _baseComponent.default {
505
505
 
506
506
  renderEmpty(type, emptyText) {
507
507
  const emptyCls = (0, _classnames.default)({
508
- ["".concat(prefixCls, "-empty")]: true,
509
- ["".concat(prefixCls, "-right-empty")]: type === 'right',
510
- ["".concat(prefixCls, "-left-empty")]: type === 'left'
508
+ [`${prefixCls}-empty`]: true,
509
+ [`${prefixCls}-right-empty`]: type === 'right',
510
+ [`${prefixCls}-left-empty`]: type === 'left'
511
511
  });
512
512
  return /*#__PURE__*/_react.default.createElement("div", {
513
513
  "aria-label": "empty",
@@ -523,7 +523,7 @@ class Transfer extends _baseComponent.default {
523
523
 
524
524
  const sortList = /*#__PURE__*/_react.default.createElement(SortableList, {
525
525
  useDragHandle: true,
526
- helperClass: "".concat(prefixCls, "-right-item-drag-item-move"),
526
+ helperClass: `${prefixCls}-right-item-drag-item-move`,
527
527
  onSortEnd: this.onSortEnd,
528
528
  items: sortableListItems
529
529
  });
@@ -555,7 +555,7 @@ class Transfer extends _baseComponent.default {
555
555
  }
556
556
 
557
557
  const selectedToken = locale.selected;
558
- const selectedText = selectedToken.replace('${total}', "".concat(selectedData.length));
558
+ const selectedText = selectedToken.replace('${total}', `${selectedData.length}`);
559
559
  const headerConfig = {
560
560
  totalContent: selectedText,
561
561
  allContent: locale.clear,
@@ -565,7 +565,7 @@ class Transfer extends _baseComponent.default {
565
565
  };
566
566
  const headerCom = this.renderHeader(headerConfig);
567
567
  const emptyCom = this.renderEmpty('right', emptyContent.right ? emptyContent.right : locale.emptyRight);
568
- const panelCls = "".concat(prefixCls, "-right");
568
+ const panelCls = `${prefixCls}-right`;
569
569
  let content = null;
570
570
 
571
571
  switch (true) {
@@ -576,7 +576,7 @@ class Transfer extends _baseComponent.default {
576
576
 
577
577
  case selectedData.length && !draggable:
578
578
  const list = /*#__PURE__*/_react.default.createElement("div", {
579
- className: "".concat(prefixCls, "-right-list"),
579
+ className: `${prefixCls}-right-list`,
580
580
  role: "list",
581
581
  "aria-label": "Selected list"
582
582
  }, selectedData.map(item => this.renderRightItem(Object.assign({}, item))));
@@ -606,8 +606,8 @@ class Transfer extends _baseComponent.default {
606
606
  renderSourcePanel
607
607
  } = this.props;
608
608
  const transferCls = (0, _classnames.default)(prefixCls, className, {
609
- ["".concat(prefixCls, "-disabled")]: disabled,
610
- ["".concat(prefixCls, "-custom-panel")]: renderSelectedPanel && renderSourcePanel
609
+ [`${prefixCls}-disabled`]: disabled,
610
+ [`${prefixCls}-custom-panel`]: renderSelectedPanel && renderSourcePanel
611
611
  });
612
612
  return /*#__PURE__*/_react.default.createElement(_localeConsumer.default, {
613
613
  componentName: "Transfer"
@@ -86,7 +86,7 @@ class AutoSizer extends _react.PureComponent {
86
86
  height: defaultHeight,
87
87
  overflow: 'visible'
88
88
  },
89
- className: "".concat(prefixcls, "-auto-wrapper")
89
+ className: `${prefixcls}-auto-wrapper`
90
90
  }, !bailoutOnChildren && children({
91
91
  height,
92
92
  width: defaultWidth
@@ -560,7 +560,7 @@ class Tree extends _baseComponent.default {
560
560
  searchPlaceholder,
561
561
  showClear
562
562
  } = this.props;
563
- const inputcls = (0, _classnames.default)("".concat(prefixcls, "-input"));
563
+ const inputcls = (0, _classnames.default)(`${prefixcls}-input`);
564
564
  const {
565
565
  inputValue
566
566
  } = this.state;
@@ -572,7 +572,7 @@ class Tree extends _baseComponent.default {
572
572
  showClear,
573
573
  placeholder: searchPlaceholder
574
574
  };
575
- const wrapperCls = (0, _classnames.default)("".concat(prefixcls, "-search-wrapper"), searchClassName);
575
+ const wrapperCls = (0, _classnames.default)(`${prefixcls}-search-wrapper`, searchClassName);
576
576
  return /*#__PURE__*/_react.default.createElement("div", {
577
577
  className: wrapperCls,
578
578
  style: searchStyle
@@ -651,7 +651,7 @@ class Tree extends _baseComponent.default {
651
651
  width: width,
652
652
  itemKey: this.itemKey,
653
653
  itemData: flattenNodes,
654
- className: "".concat(prefixcls, "-virtual-list"),
654
+ className: `${prefixcls}-virtual-list`,
655
655
  style: {
656
656
  direction
657
657
  }
@@ -691,9 +691,9 @@ class Tree extends _baseComponent.default {
691
691
  virtualize,
692
692
  checkRelation
693
693
  } = this.props;
694
- const wrapperCls = (0, _classnames.default)("".concat(prefixcls, "-wrapper"), className);
695
- const listCls = (0, _classnames.default)("".concat(prefixcls, "-option-list"), {
696
- ["".concat(prefixcls, "-option-list-block")]: blockNode
694
+ const wrapperCls = (0, _classnames.default)(`${prefixcls}-wrapper`, className);
695
+ const listCls = (0, _classnames.default)(`${prefixcls}-option-list`, {
696
+ [`${prefixcls}-option-list-block`]: blockNode
697
697
  });
698
698
  const searchNoRes = Boolean(inputValue) && !filteredKeys.size;
699
699
  const noData = (0, _isEmpty2.default)(keyEntities) || showFilteredOnly && searchNoRes;
@@ -42,6 +42,7 @@ export interface TreeProps extends BasicTreeProps {
42
42
  children?: ReactNode;
43
43
  defaultValue?: Value;
44
44
  emptyContent?: ReactNode;
45
+ filterTreeNode?: boolean | ((inputValue: string, treeNodeString: string, data?: TreeNodeData) => boolean);
45
46
  searchRender?: ((searchRenderProps: SearchRenderProps) => ReactNode) | false;
46
47
  searchStyle?: React.CSSProperties;
47
48
  style?: React.CSSProperties;
@@ -111,7 +111,7 @@ class NodeList extends _react.PureComponent {
111
111
  open: motionType === 'hide',
112
112
  duration: 200,
113
113
  motion: Boolean(motionType),
114
- key: "motion-".concat(nodeKey),
114
+ key: `motion-${nodeKey}`,
115
115
  onMotionEnd: this.onMotionEnd
116
116
  }, treeNode.map(node => renderTreeNode(node)));
117
117
  }