@hi-ui/hiui 1.5.21 → 1.5.23

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 (314) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/es/alert/__test__/index.test.js +2 -2
  3. package/es/alert/index.js +23 -19
  4. package/es/badge/index.js +16 -12
  5. package/es/button/Button.js +17 -15
  6. package/es/button/ButtonGroup.js +14 -10
  7. package/es/button/IconLoading.js +4 -4
  8. package/es/button/__test__/index.test.js +1 -1
  9. package/es/card/index.js +21 -17
  10. package/es/cascader/Cascader.js +24 -20
  11. package/es/cascader/__test__/index.test.js +6 -6
  12. package/es/cascader/menu.js +18 -14
  13. package/es/checkbox/Base.js +16 -12
  14. package/es/checkbox/CheckBox.js +17 -13
  15. package/es/collapse/__test__/index.test.js +10 -10
  16. package/es/collapse/index.js +33 -25
  17. package/es/confirm/index.js +16 -12
  18. package/es/context/index.js +21 -17
  19. package/es/counter/__test__/index.test.js +1 -1
  20. package/es/counter/index.js +18 -14
  21. package/es/date-picker/BasePicker.js +21 -17
  22. package/es/date-picker/Calender.js +29 -21
  23. package/es/date-picker/DatePanel.js +39 -34
  24. package/es/date-picker/DatePicker.js +17 -13
  25. package/es/date-picker/DateRangePanel.js +40 -36
  26. package/es/date-picker/Modal.js +14 -10
  27. package/es/date-picker/Time.js +42 -38
  28. package/es/date-picker/TimePanel.js +15 -11
  29. package/es/date-picker/TimePeriodPanel.js +19 -15
  30. package/es/date-picker/TimePicker.js +15 -11
  31. package/es/date-picker/TimeRangePanel.js +17 -13
  32. package/es/date-picker/WeekRangePanel.js +33 -29
  33. package/es/date-picker/dateUtil.js +8 -0
  34. package/es/dropdown/Dropdown.js +30 -26
  35. package/es/dropdown/__test__/index.test.js +5 -5
  36. package/es/ficon/index.js +14 -10
  37. package/es/form/index.js +14 -10
  38. package/es/form/item.js +19 -15
  39. package/es/grid/index.js +24 -20
  40. package/es/icon/index.js +14 -10
  41. package/es/index.js +1 -1
  42. package/es/input/index.js +24 -20
  43. package/es/loading/index.js +20 -16
  44. package/es/locales/en-US.js +6 -1
  45. package/es/locales/zh-CN.js +6 -1
  46. package/es/menu/Item.js +15 -11
  47. package/es/menu/ItemGroup.js +16 -12
  48. package/es/menu/SubMenu.js +21 -17
  49. package/es/menu/Title.js +16 -12
  50. package/es/menu/index.js +31 -23
  51. package/es/modal/__test__/index.test.js +8 -8
  52. package/es/modal/index.js +24 -20
  53. package/es/nav-menu/NavMenu.js +21 -17
  54. package/es/nav-menu/__test__/index.test.js +6 -6
  55. package/es/notification/index.js +21 -17
  56. package/es/pagination/Pager.js +2 -2
  57. package/es/pagination/Pagination.js +34 -29
  58. package/es/pagination/__test__/index.test.js +3 -3
  59. package/es/panel/index.js +18 -14
  60. package/es/popover/__test__/index.test.js +8 -8
  61. package/es/popover/index.js +20 -16
  62. package/es/popper/index.js +22 -16
  63. package/es/progress/BarProgress.js +4 -4
  64. package/es/progress/CircleProgress.js +5 -5
  65. package/es/progress/DashboardProgress.js +5 -5
  66. package/es/progress/index.js +17 -13
  67. package/es/radio/__test__/index.test.js +3 -3
  68. package/es/radio/index.js +18 -14
  69. package/es/rate/Icons.js +68 -68
  70. package/es/rate/Rate.js +25 -23
  71. package/es/rate/__test__/index.test.js +3 -3
  72. package/es/select/Option.js +13 -9
  73. package/es/select/Select.js +34 -23
  74. package/es/select/SelectDropdown.js +33 -24
  75. package/es/select/SelectInput.js +47 -46
  76. package/es/select/__test__/index.test.js +9 -9
  77. package/es/stepper/index.js +21 -17
  78. package/es/switch/__test__/index.test.js +3 -3
  79. package/es/switch/index.js +15 -11
  80. package/es/table/__test__/index.test.js +2 -2
  81. package/es/table/body.js +33 -29
  82. package/es/table/checkbox/index.js +16 -12
  83. package/es/table/clickOuterside.js +14 -10
  84. package/es/table/footer.js +32 -24
  85. package/es/table/header.js +41 -41
  86. package/es/table/index.js +86 -73
  87. package/es/table/menu/index.js +18 -14
  88. package/es/table/pover.js +23 -21
  89. package/es/table/tableContent.js +19 -15
  90. package/es/tabs/ItemDropdown.js +20 -16
  91. package/es/tabs/TabPane.js +14 -10
  92. package/es/tabs/Tabs.js +27 -23
  93. package/es/timeline/__test__/index.test.js +1 -1
  94. package/es/timeline/foldingItem.js +17 -13
  95. package/es/timeline/index.js +31 -27
  96. package/es/tooltip/__test__/index.test.js +10 -10
  97. package/es/tooltip/index.js +18 -16
  98. package/es/transfer/Item.js +35 -32
  99. package/es/transfer/index.js +41 -33
  100. package/es/tree/Tree.js +41 -34
  101. package/es/tree/TreeDivider.js +3 -3
  102. package/es/tree/TreeItem.js +41 -38
  103. package/es/tree/TreeNode.js +38 -30
  104. package/es/tree/util.js +9 -5
  105. package/es/upload/Preview.js +28 -24
  106. package/es/upload/Upload.js +20 -16
  107. package/es/upload/UploadAvatar.js +31 -27
  108. package/es/upload/UploadClick.js +25 -23
  109. package/es/upload/UploadDrag.js +32 -28
  110. package/es/upload/UploadPhoto.js +31 -27
  111. package/es/upload/UploadPictureCard.js +26 -24
  112. package/es/upload/index.js +18 -14
  113. package/package.json +4 -1
  114. package/test/coverage/coverage-summary.json +0 -123
  115. package/test/coverage/lcov-report/Dropdown.jsx.html +0 -507
  116. package/test/coverage/lcov-report/DropdownButton.jsx.html +0 -285
  117. package/test/coverage/lcov-report/DropdownMenu.jsx.html +0 -276
  118. package/test/coverage/lcov-report/DropdownMenuItem.jsx.html +0 -402
  119. package/test/coverage/lcov-report/ItemDropdown.js.html +0 -399
  120. package/test/coverage/lcov-report/TabPane.js.html +0 -162
  121. package/test/coverage/lcov-report/Tabs.js.html +0 -804
  122. package/test/coverage/lcov-report/_util/SwitchVersion.js.html +0 -117
  123. package/test/coverage/lcov-report/_util/depreactedPropsCompat.js.html +0 -180
  124. package/test/coverage/lcov-report/_util/deprecatedPropsCheck.js.html +0 -120
  125. package/test/coverage/lcov-report/_util/index.html +0 -136
  126. package/test/coverage/lcov-report/_util/index.js.html +0 -75
  127. package/test/coverage/lcov-report/alert/Alert.js.html +0 -303
  128. package/test/coverage/lcov-report/alert/index.html +0 -97
  129. package/test/coverage/lcov-report/badge/Badge.js.html +0 -195
  130. package/test/coverage/lcov-report/badge/index.html +0 -97
  131. package/test/coverage/lcov-report/base.css +0 -224
  132. package/test/coverage/lcov-report/block-navigation.js +0 -79
  133. package/test/coverage/lcov-report/breadcrumb/index.html +0 -97
  134. package/test/coverage/lcov-report/breadcrumb/index.js.html +0 -165
  135. package/test/coverage/lcov-report/button/Button.js.html +0 -429
  136. package/test/coverage/lcov-report/button/ButtonGroup.js.html +0 -129
  137. package/test/coverage/lcov-report/button/IconLoading.js.html +0 -123
  138. package/test/coverage/lcov-report/button/index.html +0 -136
  139. package/test/coverage/lcov-report/button/index.js.html +0 -90
  140. package/test/coverage/lcov-report/card/index.html +0 -97
  141. package/test/coverage/lcov-report/card/index.js.html +0 -444
  142. package/test/coverage/lcov-report/carousel/index.html +0 -97
  143. package/test/coverage/lcov-report/carousel/index.js.html +0 -534
  144. package/test/coverage/lcov-report/cascader/Cascader.js.html +0 -1335
  145. package/test/coverage/lcov-report/cascader/Menu.js.html +0 -372
  146. package/test/coverage/lcov-report/cascader/index.html +0 -110
  147. package/test/coverage/lcov-report/checkbox/Checkbox.js.html +0 -360
  148. package/test/coverage/lcov-report/checkbox/Group.js.html +0 -429
  149. package/test/coverage/lcov-report/checkbox/index.html +0 -123
  150. package/test/coverage/lcov-report/checkbox/index.js.html +0 -105
  151. package/test/coverage/lcov-report/collapse/index.html +0 -97
  152. package/test/coverage/lcov-report/collapse/index.js.html +0 -432
  153. package/test/coverage/lcov-report/context/index.html +0 -97
  154. package/test/coverage/lcov-report/context/index.js.html +0 -252
  155. package/test/coverage/lcov-report/counter/Counter.js.html +0 -831
  156. package/test/coverage/lcov-report/counter/index.html +0 -110
  157. package/test/coverage/lcov-report/counter/index.js.html +0 -87
  158. package/test/coverage/lcov-report/date-picker/BasePicker.js.html +0 -1173
  159. package/test/coverage/lcov-report/date-picker/Calender.js.html +0 -975
  160. package/test/coverage/lcov-report/date-picker/DatePanel.js.html +0 -945
  161. package/test/coverage/lcov-report/date-picker/DatePicker.js.html +0 -270
  162. package/test/coverage/lcov-report/date-picker/DateRangePanel.js.html +0 -1260
  163. package/test/coverage/lcov-report/date-picker/Modal.js.html +0 -150
  164. package/test/coverage/lcov-report/date-picker/Time.js.html +0 -537
  165. package/test/coverage/lcov-report/date-picker/TimeList.js.html +0 -459
  166. package/test/coverage/lcov-report/date-picker/TimePanel.js.html +0 -195
  167. package/test/coverage/lcov-report/date-picker/TimePeriodPanel.js.html +0 -264
  168. package/test/coverage/lcov-report/date-picker/TimePicker.js.html +0 -225
  169. package/test/coverage/lcov-report/date-picker/TimeRangePanel.js.html +0 -165
  170. package/test/coverage/lcov-report/date-picker/Type.js.html +0 -144
  171. package/test/coverage/lcov-report/date-picker/WeekRangePanel.js.html +0 -870
  172. package/test/coverage/lcov-report/date-picker/constants.js.html +0 -192
  173. package/test/coverage/lcov-report/date-picker/dateUtil.js.html +0 -453
  174. package/test/coverage/lcov-report/date-picker/index.html +0 -318
  175. package/test/coverage/lcov-report/date-picker/index.js.html +0 -90
  176. package/test/coverage/lcov-report/date-picker/util.js.html +0 -168
  177. package/test/coverage/lcov-report/dropdown/Dropdown.jsx.html +0 -507
  178. package/test/coverage/lcov-report/dropdown/DropdownButton.jsx.html +0 -285
  179. package/test/coverage/lcov-report/dropdown/DropdownMenu.jsx.html +0 -276
  180. package/test/coverage/lcov-report/dropdown/DropdownMenuItem.jsx.html +0 -402
  181. package/test/coverage/lcov-report/dropdown/index.html +0 -162
  182. package/test/coverage/lcov-report/dropdown/index.js.html +0 -201
  183. package/test/coverage/lcov-report/dropdown/utils.js.html +0 -114
  184. package/test/coverage/lcov-report/form/Form.js.html +0 -423
  185. package/test/coverage/lcov-report/form/Item.js.html +0 -729
  186. package/test/coverage/lcov-report/form/index.html +0 -123
  187. package/test/coverage/lcov-report/form/index.js.html +0 -93
  188. package/test/coverage/lcov-report/grid/index.html +0 -97
  189. package/test/coverage/lcov-report/grid/index.js.html +0 -357
  190. package/test/coverage/lcov-report/icon/index.html +0 -97
  191. package/test/coverage/lcov-report/icon/index.js.html +0 -114
  192. package/test/coverage/lcov-report/index.html +0 -656
  193. package/test/coverage/lcov-report/index.js.html +0 -207
  194. package/test/coverage/lcov-report/index.test.js.snap.html +0 -171
  195. package/test/coverage/lcov-report/input/Input.js.html +0 -1038
  196. package/test/coverage/lcov-report/input/index.html +0 -123
  197. package/test/coverage/lcov-report/input/index.js.html +0 -90
  198. package/test/coverage/lcov-report/input/util.js.html +0 -498
  199. package/test/coverage/lcov-report/lib/index.html +0 -97
  200. package/test/coverage/lcov-report/lib/withDragDropContext.js.html +0 -81
  201. package/test/coverage/lcov-report/loading/Loading.js.html +0 -423
  202. package/test/coverage/lcov-report/loading/index.html +0 -110
  203. package/test/coverage/lcov-report/loading/index.js.html +0 -84
  204. package/test/coverage/lcov-report/locales/en-US.js.html +0 -429
  205. package/test/coverage/lcov-report/locales/index.html +0 -123
  206. package/test/coverage/lcov-report/locales/index.js.html +0 -90
  207. package/test/coverage/lcov-report/locales/zh-CN.js.html +0 -354
  208. package/test/coverage/lcov-report/menu/Item.js.html +0 -219
  209. package/test/coverage/lcov-report/menu/Menu.js.html +0 -1032
  210. package/test/coverage/lcov-report/menu/SubMenu.js.html +0 -558
  211. package/test/coverage/lcov-report/menu/Title.js.html +0 -204
  212. package/test/coverage/lcov-report/menu/index.html +0 -149
  213. package/test/coverage/lcov-report/menu/index.js.html +0 -105
  214. package/test/coverage/lcov-report/message/index.html +0 -97
  215. package/test/coverage/lcov-report/message/index.js.html +0 -198
  216. package/test/coverage/lcov-report/modal/index.html +0 -97
  217. package/test/coverage/lcov-report/modal/index.js.html +0 -534
  218. package/test/coverage/lcov-report/nav-menu/NavMenu.js.html +0 -702
  219. package/test/coverage/lcov-report/nav-menu/index.html +0 -110
  220. package/test/coverage/lcov-report/nav-menu/index.js.html +0 -81
  221. package/test/coverage/lcov-report/notice/Notice.js.html +0 -243
  222. package/test/coverage/lcov-report/notice/NoticeContainer.js.html +0 -219
  223. package/test/coverage/lcov-report/notice/index.html +0 -123
  224. package/test/coverage/lcov-report/notice/index.js.html +0 -168
  225. package/test/coverage/lcov-report/notification/HandleNotification/index.html +0 -97
  226. package/test/coverage/lcov-report/notification/HandleNotification/index.js.html +0 -534
  227. package/test/coverage/lcov-report/notification/index.html +0 -97
  228. package/test/coverage/lcov-report/notification/index.js.html +0 -282
  229. package/test/coverage/lcov-report/pagination/Pager.js.html +0 -204
  230. package/test/coverage/lcov-report/pagination/Pagination.js.html +0 -1338
  231. package/test/coverage/lcov-report/pagination/index.html +0 -123
  232. package/test/coverage/lcov-report/pagination/index.js.html +0 -102
  233. package/test/coverage/lcov-report/popover/index.html +0 -97
  234. package/test/coverage/lcov-report/popover/index.js.html +0 -510
  235. package/test/coverage/lcov-report/popper/index.html +0 -97
  236. package/test/coverage/lcov-report/popper/index.js.html +0 -687
  237. package/test/coverage/lcov-report/prettify.css +0 -1
  238. package/test/coverage/lcov-report/prettify.js +0 -2
  239. package/test/coverage/lcov-report/progress/BarProgress.js.html +0 -186
  240. package/test/coverage/lcov-report/progress/CircleProgress.js.html +0 -168
  241. package/test/coverage/lcov-report/progress/DashboardProgress.js.html +0 -222
  242. package/test/coverage/lcov-report/progress/Progress.js.html +0 -219
  243. package/test/coverage/lcov-report/progress/index.html +0 -136
  244. package/test/coverage/lcov-report/radio/Group.js.html +0 -447
  245. package/test/coverage/lcov-report/radio/Radio.js.html +0 -399
  246. package/test/coverage/lcov-report/radio/index.html +0 -123
  247. package/test/coverage/lcov-report/radio/index.js.html +0 -105
  248. package/test/coverage/lcov-report/rate/Icons.js.html +0 -999
  249. package/test/coverage/lcov-report/rate/Rate.js.html +0 -579
  250. package/test/coverage/lcov-report/rate/index.html +0 -110
  251. package/test/coverage/lcov-report/rate/index.js.html +0 -84
  252. package/test/coverage/lcov-report/select/Select.js.html +0 -1992
  253. package/test/coverage/lcov-report/select/SelectDropdown.js.html +0 -468
  254. package/test/coverage/lcov-report/select/SelectInput.js.html +0 -885
  255. package/test/coverage/lcov-report/select/common.js.html +0 -105
  256. package/test/coverage/lcov-report/select/index.html +0 -149
  257. package/test/coverage/lcov-report/select/index.js.html +0 -87
  258. package/test/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  259. package/test/coverage/lcov-report/sorter.js +0 -170
  260. package/test/coverage/lcov-report/stepper/Stepper.js.html +0 -366
  261. package/test/coverage/lcov-report/stepper/index.html +0 -110
  262. package/test/coverage/lcov-report/stepper/index.js.html +0 -162
  263. package/test/coverage/lcov-report/switch/__tests__/__snapshots__/index.html +0 -97
  264. package/test/coverage/lcov-report/switch/__tests__/__snapshots__/index.test.js.snap.html +0 -171
  265. package/test/coverage/lcov-report/switch/index.html +0 -97
  266. package/test/coverage/lcov-report/switch/index.js.html +0 -282
  267. package/test/coverage/lcov-report/table/Body.js.html +0 -588
  268. package/test/coverage/lcov-report/table/ClickOuterside.js.html +0 -201
  269. package/test/coverage/lcov-report/table/Footer.js.html +0 -435
  270. package/test/coverage/lcov-report/table/Header.js.html +0 -480
  271. package/test/coverage/lcov-report/table/TableContent.js.html +0 -204
  272. package/test/coverage/lcov-report/table/checkbox/index.html +0 -97
  273. package/test/coverage/lcov-report/table/checkbox/index.js.html +0 -213
  274. package/test/coverage/lcov-report/table/index.html +0 -188
  275. package/test/coverage/lcov-report/table/index.js.html +0 -3078
  276. package/test/coverage/lcov-report/table/menu/index.html +0 -97
  277. package/test/coverage/lcov-report/table/menu/index.js.html +0 -207
  278. package/test/coverage/lcov-report/table/prefix.js.html +0 -87
  279. package/test/coverage/lcov-report/table/tool.js.html +0 -387
  280. package/test/coverage/lcov-report/tabs/ItemDropdown.js.html +0 -387
  281. package/test/coverage/lcov-report/tabs/TabPane.js.html +0 -162
  282. package/test/coverage/lcov-report/tabs/Tabs.js.html +0 -795
  283. package/test/coverage/lcov-report/tabs/index.html +0 -136
  284. package/test/coverage/lcov-report/tabs/index.js.html +0 -108
  285. package/test/coverage/lcov-report/tag/index.html +0 -97
  286. package/test/coverage/lcov-report/tag/index.js.html +0 -216
  287. package/test/coverage/lcov-report/timeline/FoldingItem.js.html +0 -135
  288. package/test/coverage/lcov-report/timeline/index.html +0 -110
  289. package/test/coverage/lcov-report/timeline/index.js.html +0 -435
  290. package/test/coverage/lcov-report/tooltip/index.html +0 -97
  291. package/test/coverage/lcov-report/tooltip/index.js.html +0 -483
  292. package/test/coverage/lcov-report/transfer/Item.js.html +0 -402
  293. package/test/coverage/lcov-report/transfer/Transfer.js.html +0 -1350
  294. package/test/coverage/lcov-report/transfer/index.html +0 -123
  295. package/test/coverage/lcov-report/transfer/index.js.html +0 -78
  296. package/test/coverage/lcov-report/tree/IconLoading.js.html +0 -123
  297. package/test/coverage/lcov-report/tree/Tree.js.html +0 -786
  298. package/test/coverage/lcov-report/tree/TreeDivider.js.html +0 -120
  299. package/test/coverage/lcov-report/tree/TreeItem.js.html +0 -1098
  300. package/test/coverage/lcov-report/tree/TreeNode.js.html +0 -2013
  301. package/test/coverage/lcov-report/tree/index.html +0 -175
  302. package/test/coverage/lcov-report/tree/index.js.html +0 -81
  303. package/test/coverage/lcov-report/tree/util.js.html +0 -483
  304. package/test/coverage/lcov-report/upload/Preview.js.html +0 -948
  305. package/test/coverage/lcov-report/upload/Upload.js.html +0 -1113
  306. package/test/coverage/lcov-report/upload/UploadAvatar.js.html +0 -825
  307. package/test/coverage/lcov-report/upload/UploadClick.js.html +0 -366
  308. package/test/coverage/lcov-report/upload/UploadDrag.js.html +0 -561
  309. package/test/coverage/lcov-report/upload/UploadPhoto.js.html +0 -498
  310. package/test/coverage/lcov-report/upload/UploadPictureCard.js.html +0 -372
  311. package/test/coverage/lcov-report/upload/index.html +0 -188
  312. package/test/coverage/lcov-report/upload/main.js.html +0 -153
  313. package/test/coverage/lcov-report/utils.js.html +0 -114
  314. package/test/coverage/lcov.info +0 -10561
@@ -21,7 +21,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
21
21
 
22
22
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
 
24
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
24
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
25
25
 
26
26
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
27
 
@@ -29,29 +29,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
29
29
 
30
30
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
31
31
 
32
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
+
34
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
+
36
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
37
+
32
38
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
33
39
 
34
40
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
35
41
 
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
37
43
 
38
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
-
40
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
44
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
45
 
42
46
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
43
47
 
44
48
  var prefixCls = 'hi-loading';
45
49
 
46
- var Loading =
47
- /*#__PURE__*/
48
- function (_Component) {
50
+ var Loading = /*#__PURE__*/function (_Component) {
49
51
  _inherits(Loading, _Component);
50
52
 
53
+ var _super = _createSuper(Loading);
54
+
51
55
  function Loading() {
52
56
  _classCallCheck(this, Loading);
53
57
 
54
- return _possibleConstructorReturn(this, _getPrototypeOf(Loading).apply(this, arguments));
58
+ return _super.apply(this, arguments);
55
59
  }
56
60
 
57
61
  _createClass(Loading, [{
@@ -69,15 +73,15 @@ function (_Component) {
69
73
  var mountNode = target || (full ? document.body : '');
70
74
  var iconCls = (0, _classnames["default"])("".concat(prefixCls, "__icon"), "".concat(prefixCls, "__icon--").concat(size));
71
75
  var maskCls = (0, _classnames["default"])("".concat(prefixCls, "__mask"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "__mask--global"), full), _defineProperty(_classNames, "".concat(prefixCls, "__mask--part"), !full), _defineProperty(_classNames, "".concat(prefixCls, "__mask--hide"), show === false), _classNames));
72
- return _react["default"].createElement(PortalWrapper, {
76
+ return /*#__PURE__*/_react["default"].createElement(PortalWrapper, {
73
77
  mountNode: mountNode
74
- }, children, _react["default"].createElement("div", {
78
+ }, children, /*#__PURE__*/_react["default"].createElement("div", {
75
79
  className: maskCls
76
- }, _react["default"].createElement("div", {
80
+ }, /*#__PURE__*/_react["default"].createElement("div", {
77
81
  className: "".concat(prefixCls, "__outter")
78
- }, _react["default"].createElement("div", {
82
+ }, /*#__PURE__*/_react["default"].createElement("div", {
79
83
  className: iconCls
80
- }, _react["default"].createElement("div", null), _react["default"].createElement("div", null)), _react["default"].createElement("div", {
84
+ }, /*#__PURE__*/_react["default"].createElement("div", null), /*#__PURE__*/_react["default"].createElement("div", null)), /*#__PURE__*/_react["default"].createElement("div", {
81
85
  className: "".concat(prefixCls, "__text")
82
86
  }, tip))));
83
87
  }
@@ -101,7 +105,7 @@ _defineProperty(Loading, "defaultProps", {
101
105
  function PortalWrapper(_ref) {
102
106
  var mountNode = _ref.mountNode,
103
107
  children = _ref.children;
104
- return mountNode ? _reactDom["default"].createPortal(children, mountNode) : _react["default"].createElement("div", {
108
+ return mountNode ? /*#__PURE__*/_reactDom["default"].createPortal(children, mountNode) : /*#__PURE__*/_react["default"].createElement("div", {
105
109
  className: "".concat(prefixCls, "__wrapper")
106
110
  }, children);
107
111
  }
@@ -116,7 +120,7 @@ function open() {
116
120
  window.getComputedStyle(mountNode).position === 'absolute' || mountNode.style.setProperty('position', 'relative');
117
121
  var full = !target;
118
122
 
119
- _reactDom["default"].render(_react["default"].createElement(Loading, {
123
+ _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(Loading, {
120
124
  tip: tip,
121
125
  full: full,
122
126
  show: true,
@@ -50,7 +50,8 @@ module.exports = {
50
50
  },
51
51
  select: {
52
52
  placeholder: 'Please select',
53
- noFoundTip: 'Not found'
53
+ noFoundTip: 'Not found',
54
+ checkAll: 'Check all'
54
55
  },
55
56
  upload: {
56
57
  buttonText: 'Upload',
@@ -79,5 +80,9 @@ module.exports = {
79
80
  },
80
81
  form: {
81
82
  colon: ':'
83
+ },
84
+ table: {
85
+ checkAll: 'Check All',
86
+ expand: 'Expand'
82
87
  }
83
88
  };
@@ -51,7 +51,8 @@ module.exports = {
51
51
  },
52
52
  select: {
53
53
  placeholder: '请选择',
54
- noFoundTip: '无匹配数据'
54
+ noFoundTip: '无匹配数据',
55
+ checkAll: '全选'
55
56
  },
56
57
  upload: {
57
58
  buttonText: '本地上传',
@@ -80,5 +81,9 @@ module.exports = {
80
81
  },
81
82
  form: {
82
83
  colon: ':'
84
+ },
85
+ table: {
86
+ checkAll: '多选',
87
+ expand: '展开'
83
88
  }
84
89
  };
package/es/menu/Item.js CHANGED
@@ -19,7 +19,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
19
19
 
20
20
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
21
 
22
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
22
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
23
23
 
24
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
25
 
@@ -27,27 +27,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
29
29
 
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
+
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
+
34
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
+
30
36
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
31
37
 
32
38
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
39
 
34
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
40
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
35
41
 
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
-
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
43
 
40
44
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
41
45
 
42
- var Item =
43
- /*#__PURE__*/
44
- function (_Component) {
46
+ var Item = /*#__PURE__*/function (_Component) {
45
47
  _inherits(Item, _Component);
46
48
 
49
+ var _super = _createSuper(Item);
50
+
47
51
  function Item() {
48
52
  _classCallCheck(this, Item);
49
53
 
50
- return _possibleConstructorReturn(this, _getPrototypeOf(Item).apply(this, arguments));
54
+ return _super.apply(this, arguments);
51
55
  }
52
56
 
53
57
  _createClass(Item, [{
@@ -68,7 +72,7 @@ function (_Component) {
68
72
  'hi-menu-item--disabled': disabled,
69
73
  'hi-menu-item--active': isActive
70
74
  });
71
- return _react["default"].createElement("li", {
75
+ return /*#__PURE__*/_react["default"].createElement("li", {
72
76
  className: cls,
73
77
  key: index,
74
78
  onClick: function onClick(e) {
@@ -78,7 +82,7 @@ function (_Component) {
78
82
  _onClick(index, id, data);
79
83
  }
80
84
  }
81
- }, _react["default"].createElement(_Title["default"], {
85
+ }, /*#__PURE__*/_react["default"].createElement(_Title["default"], {
82
86
  icon: icon,
83
87
  content: children
84
88
  }));
@@ -15,7 +15,7 @@ var _MixinMenu2 = _interopRequireDefault(require("./MixinMenu"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
17
 
18
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
18
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
19
19
 
20
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
21
 
@@ -23,27 +23,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
23
23
 
24
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25
25
 
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
+
28
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
+
30
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
+
26
32
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
27
33
 
28
34
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
35
 
30
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
36
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
31
37
 
32
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
-
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
38
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
39
 
36
40
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
37
41
 
38
- var ItemGroup =
39
- /*#__PURE__*/
40
- function (_MixinMenu) {
42
+ var ItemGroup = /*#__PURE__*/function (_MixinMenu) {
41
43
  _inherits(ItemGroup, _MixinMenu);
42
44
 
45
+ var _super = _createSuper(ItemGroup);
46
+
43
47
  function ItemGroup() {
44
48
  _classCallCheck(this, ItemGroup);
45
49
 
46
- return _possibleConstructorReturn(this, _getPrototypeOf(ItemGroup).apply(this, arguments));
50
+ return _super.apply(this, arguments);
47
51
  }
48
52
 
49
53
  _createClass(ItemGroup, [{
@@ -55,11 +59,11 @@ function (_MixinMenu) {
55
59
  children = _this$renderChildren.children;
56
60
 
57
61
  var cls = (0, _classnames["default"])('hi-menu-group');
58
- return _react["default"].createElement("li", {
62
+ return /*#__PURE__*/_react["default"].createElement("li", {
59
63
  className: cls
60
- }, _react["default"].createElement("div", {
64
+ }, /*#__PURE__*/_react["default"].createElement("div", {
61
65
  className: "hi-menu-group__title"
62
- }, title), _react["default"].createElement("ul", {
66
+ }, title), /*#__PURE__*/_react["default"].createElement("ul", {
63
67
  className: "hi-menu-group__content"
64
68
  }, children));
65
69
  }
@@ -23,7 +23,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
23
23
 
24
24
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
 
26
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
26
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
27
27
 
28
28
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
29
 
@@ -31,27 +31,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
31
31
 
32
32
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
33
33
 
34
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
+
36
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
+
38
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
39
+
34
40
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
35
41
 
36
42
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
43
 
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
44
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
39
45
 
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
-
42
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
46
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
47
 
44
48
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45
49
 
46
- var SubMenu =
47
- /*#__PURE__*/
48
- function (_Component) {
50
+ var SubMenu = /*#__PURE__*/function (_Component) {
49
51
  _inherits(SubMenu, _Component);
50
52
 
53
+ var _super = _createSuper(SubMenu);
54
+
51
55
  function SubMenu() {
52
56
  _classCallCheck(this, SubMenu);
53
57
 
54
- return _possibleConstructorReturn(this, _getPrototypeOf(SubMenu).apply(this, arguments));
58
+ return _super.apply(this, arguments);
55
59
  }
56
60
 
57
61
  _createClass(SubMenu, [{
@@ -109,7 +113,7 @@ function (_Component) {
109
113
  placement = 'bottom-start';
110
114
  }
111
115
 
112
- return _react["default"].createElement(_popper["default"], {
116
+ return /*#__PURE__*/_react["default"].createElement(_popper["default"], {
113
117
  show: isExpand,
114
118
  attachEle: this.submenuTrigger,
115
119
  zIndex: 1050,
@@ -120,7 +124,7 @@ function (_Component) {
120
124
  }),
121
125
  width: false,
122
126
  placement: placement
123
- }, _react["default"].createElement("ul", {
127
+ }, /*#__PURE__*/_react["default"].createElement("ul", {
124
128
  className: (0, _classnames["default"])('hi-submenu__items'),
125
129
  ref: function ref(node) {
126
130
  _this.submenuNode = node;
@@ -139,7 +143,7 @@ function (_Component) {
139
143
  index = _this$props2.index,
140
144
  renderMenu = _this$props2.renderMenu,
141
145
  clickInside = _this$props2.clickInside;
142
- return _react["default"].createElement("ul", {
146
+ return /*#__PURE__*/_react["default"].createElement("ul", {
143
147
  className: (0, _classnames["default"])('hi-submenu__items', {
144
148
  'hi-submenu__items--hide': !isExpand
145
149
  }),
@@ -182,25 +186,25 @@ function (_Component) {
182
186
  toggleIcon = isExpand ? 'up' : 'down';
183
187
  }
184
188
 
185
- return _react["default"].createElement("li", {
189
+ return /*#__PURE__*/_react["default"].createElement("li", {
186
190
  className: cls,
187
191
  ref: function ref(node) {
188
192
  _this2.submenuTrigger = node;
189
193
  },
190
194
  key: index
191
- }, _react["default"].createElement("div", {
195
+ }, /*#__PURE__*/_react["default"].createElement("div", {
192
196
  className: "hi-submenu__title hi-menu__title",
193
197
  onClick: function onClick() {
194
198
  if (!disabled) {
195
199
  _this2.onClick(index);
196
200
  }
197
201
  }
198
- }, _react["default"].createElement(_Title["default"], {
202
+ }, /*#__PURE__*/_react["default"].createElement(_Title["default"], {
199
203
  icon: icon,
200
204
  content: content
201
- }), _react["default"].createElement("div", {
205
+ }), /*#__PURE__*/_react["default"].createElement("div", {
202
206
  className: "hi-menu__title-toggle-icon"
203
- }, _react["default"].createElement(_icon["default"], {
207
+ }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
204
208
  name: toggleIcon
205
209
  }))), !mini && mode === 'vertical' ? this.renderVerticalMenu(isActive, isExpand) : this.renderPopperMenu(deepSubmenu, isExpand));
206
210
  }
package/es/menu/Title.js CHANGED
@@ -17,7 +17,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
17
17
 
18
18
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
19
 
20
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
20
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
21
21
 
22
22
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
23
 
@@ -25,27 +25,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
25
25
 
26
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
27
27
 
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
+
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
+
32
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
+
28
34
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
29
35
 
30
36
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
37
 
32
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
38
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
33
39
 
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
-
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
40
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
41
 
38
42
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39
43
 
40
- var Title =
41
- /*#__PURE__*/
42
- function (_Component) {
44
+ var Title = /*#__PURE__*/function (_Component) {
43
45
  _inherits(Title, _Component);
44
46
 
47
+ var _super = _createSuper(Title);
48
+
45
49
  function Title() {
46
50
  _classCallCheck(this, Title);
47
51
 
48
- return _possibleConstructorReturn(this, _getPrototypeOf(Title).apply(this, arguments));
52
+ return _super.apply(this, arguments);
49
53
  }
50
54
 
51
55
  _createClass(Title, [{
@@ -58,12 +62,12 @@ function (_Component) {
58
62
  var iconEle = icon;
59
63
 
60
64
  if (typeof icon === 'string') {
61
- iconEle = _react["default"].createElement(_icon["default"], {
65
+ iconEle = /*#__PURE__*/_react["default"].createElement(_icon["default"], {
62
66
  name: icon
63
67
  });
64
68
  }
65
69
 
66
- return _react["default"].createElement("div", {
70
+ return /*#__PURE__*/_react["default"].createElement("div", {
67
71
  className: "hi-menu__title-icon"
68
72
  }, iconEle);
69
73
  }
@@ -73,7 +77,7 @@ function (_Component) {
73
77
  var _this$props = this.props,
74
78
  content = _this$props.content,
75
79
  icon = _this$props.icon;
76
- return _react["default"].createElement(_react["default"].Fragment, null, this.renderIcon(icon), _react["default"].createElement("div", {
80
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, this.renderIcon(icon), /*#__PURE__*/_react["default"].createElement("div", {
77
81
  className: "hi-menu__title-content"
78
82
  }, content));
79
83
  }
package/es/menu/index.js CHANGED
@@ -27,15 +27,19 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
27
27
 
28
28
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
29
 
30
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
30
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
31
31
 
32
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
32
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
33
33
 
34
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
34
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
35
35
 
36
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
36
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37
37
 
38
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
38
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
39
+
40
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
41
+
42
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
39
43
 
40
44
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
41
45
 
@@ -43,29 +47,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
43
47
 
44
48
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
45
49
 
46
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
50
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
47
51
 
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
52
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
53
+
54
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
55
+
56
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
49
57
 
50
58
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
51
59
 
52
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
60
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
53
61
 
54
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
62
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
55
63
 
56
64
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
57
65
 
58
- var Menu =
59
- /*#__PURE__*/
60
- function (_Component) {
66
+ var Menu = /*#__PURE__*/function (_Component) {
61
67
  _inherits(Menu, _Component);
62
68
 
69
+ var _super = _createSuper(Menu);
70
+
63
71
  function Menu(props) {
64
72
  var _this;
65
73
 
66
74
  _classCallCheck(this, Menu);
67
75
 
68
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Menu).call(this, props));
76
+ _this = _super.call(this, props);
69
77
 
70
78
  _defineProperty(_assertThisInitialized(_this), "clickInsideFlag", false);
71
79
 
@@ -286,7 +294,7 @@ function (_Component) {
286
294
  key: index,
287
295
  data: data
288
296
  }, props);
289
- return _react["default"].createElement(_Item["default"], mergeProps, data.content);
297
+ return /*#__PURE__*/_react["default"].createElement(_Item["default"], mergeProps, data.content);
290
298
  }
291
299
  }, {
292
300
  key: "renderFatSubMenu",
@@ -296,15 +304,15 @@ function (_Component) {
296
304
  // render胖菜单
297
305
  var groups = [];
298
306
  datas.forEach(function (data, groupIndex) {
299
- groups.push(_react["default"].createElement("li", {
307
+ groups.push( /*#__PURE__*/_react["default"].createElement("li", {
300
308
  className: "hi-menu-fat",
301
309
  key: groupIndex
302
- }, _react["default"].createElement("div", {
310
+ }, /*#__PURE__*/_react["default"].createElement("div", {
303
311
  className: "hi-menu-fat__title hi-menu__title"
304
- }, _react["default"].createElement(_Title["default"], {
312
+ }, /*#__PURE__*/_react["default"].createElement(_Title["default"], {
305
313
  icon: data.icon,
306
314
  content: data.content
307
- })), _react["default"].createElement("ul", {
315
+ })), /*#__PURE__*/_react["default"].createElement("ul", {
308
316
  className: "hi-menu-fat__content"
309
317
  }, data.children.map(function (child, index) {
310
318
  return _this5.renderItem(child, parentIndex + '-' + groupIndex + '-' + index, {
@@ -334,7 +342,7 @@ function (_Component) {
334
342
  var level = indexStr.split('-').length;
335
343
 
336
344
  if (data.children) {
337
- items.push(_react["default"].createElement(_SubMenu["default"], {
345
+ items.push( /*#__PURE__*/_react["default"].createElement(_SubMenu["default"], {
338
346
  key: index,
339
347
  onClick: _this6.onClickSubMenu.bind(_this6),
340
348
  clickInside: _this6.clickInside.bind(_this6),
@@ -371,14 +379,14 @@ function (_Component) {
371
379
  'hi-menu--mini': mini
372
380
  });
373
381
  var miniIcon = mini ? 'double-right' : 'double-left';
374
- return _react["default"].createElement("div", {
382
+ return /*#__PURE__*/_react["default"].createElement("div", {
375
383
  className: cls
376
- }, _react["default"].createElement("ul", {
384
+ }, /*#__PURE__*/_react["default"].createElement("ul", {
377
385
  className: "hi-menu-items"
378
- }, this.renderMenu(datas)), mode === 'vertical' && miniToggle && _react["default"].createElement("div", {
386
+ }, this.renderMenu(datas)), mode === 'vertical' && miniToggle && /*#__PURE__*/_react["default"].createElement("div", {
379
387
  className: "hi-menu--mini__toggle",
380
388
  onClick: this.toggleMini.bind(this)
381
- }, _react["default"].createElement(_icon["default"], {
389
+ }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
382
390
  name: miniIcon
383
391
  })));
384
392
  }