@hi-ui/hiui 2.15.11 → 2.15.12

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 (344) hide show
  1. package/es/_util/SwitchVersion.js +40 -0
  2. package/es/_util/depreactedPropsCompat.js +58 -0
  3. package/es/_util/index.js +31 -0
  4. package/es/_util/warning.js +2 -2
  5. package/es/alert/Alert.js +126 -0
  6. package/es/alert/__tests__/index.test.js +84 -0
  7. package/es/alert/index.js +6 -147
  8. package/es/alert/style/index.css +1 -1
  9. package/es/badge/Badge.js +82 -0
  10. package/es/badge/__tests__/index.test.js +82 -0
  11. package/es/badge/index.js +9 -87
  12. package/es/badge/style/index.css +1 -1
  13. package/es/badge/style/index.js +0 -0
  14. package/es/breadcrumb/__tests__/index.test.js +61 -0
  15. package/es/breadcrumb/index.js +85 -0
  16. package/es/breadcrumb/style/index.css +1 -0
  17. package/es/button/Button.js +62 -60
  18. package/es/button/ButtonGroup.js +24 -40
  19. package/es/button/IconLoading.js +6 -6
  20. package/es/button/__tests__/index.test.js +221 -0
  21. package/es/button/index.js +3 -2
  22. package/es/button/style/index.css +1 -1
  23. package/es/card/__tests__/index.test.js +179 -0
  24. package/es/card/index.js +61 -57
  25. package/es/card/style/index.css +1 -1
  26. package/es/carousel/__tests__/index.test.js +104 -0
  27. package/es/carousel/index.js +219 -0
  28. package/es/carousel/style/index.css +1 -0
  29. package/es/carousel/style/index.js +3 -0
  30. package/es/cascader/Cascader.js +190 -133
  31. package/es/cascader/Menu.js +168 -0
  32. package/es/cascader/__tests__/index.test.js +392 -0
  33. package/es/cascader/index.js +5 -2
  34. package/es/cascader/style/cascader.css +1 -1
  35. package/es/cascader/style/menu.css +1 -1
  36. package/es/checkbox/Checkbox.js +136 -0
  37. package/es/checkbox/Group.js +194 -0
  38. package/es/checkbox/__tests__/index.test.js +226 -0
  39. package/es/checkbox/checkbox-legacy/Base.js +212 -0
  40. package/es/checkbox/checkbox-legacy/CheckBox.js +157 -0
  41. package/es/checkbox/checkbox-legacy/index.js +15 -0
  42. package/es/checkbox/checkbox-legacy/style/index.css +1 -0
  43. package/es/checkbox/checkbox-legacy/style/index.js +3 -0
  44. package/es/checkbox/index.js +13 -4
  45. package/es/checkbox/style/index.css +1 -1
  46. package/es/collapse/__tests__/index.test.js +111 -0
  47. package/es/collapse/index.js +88 -110
  48. package/es/collapse/style/index.css +1 -1
  49. package/es/confirm/index.js +39 -60
  50. package/es/context/index.js +45 -51
  51. package/es/counter/Counter.js +339 -0
  52. package/es/counter/__tests__/index.test.js +134 -0
  53. package/es/counter/counter-legacy/index.js +267 -0
  54. package/es/counter/index.js +6 -270
  55. package/es/counter/style/index.css +1 -1
  56. package/es/date-picker/BasePicker.js +380 -302
  57. package/es/date-picker/Calender.js +326 -98
  58. package/es/date-picker/DatePanel.js +194 -213
  59. package/es/date-picker/DatePicker.js +143 -47
  60. package/es/date-picker/DateRangePanel.js +272 -208
  61. package/es/date-picker/Modal.js +18 -32
  62. package/es/date-picker/Time.js +231 -345
  63. package/es/date-picker/TimeList.js +246 -0
  64. package/es/date-picker/TimePanel.js +28 -41
  65. package/es/date-picker/TimePeriodPanel.js +27 -46
  66. package/es/date-picker/TimePicker.js +44 -46
  67. package/es/date-picker/TimeRangePanel.js +33 -51
  68. package/es/date-picker/Type.js +5 -1
  69. package/es/date-picker/WeekRangePanel.js +254 -175
  70. package/es/date-picker/YMRangePanel.js +364 -0
  71. package/es/date-picker/__tests__/index.test.js +956 -0
  72. package/es/date-picker/constants.js +14 -28
  73. package/es/date-picker/dateUtil.js +221 -52
  74. package/es/date-picker/datepicker-legacy/BasePicker.js +511 -0
  75. package/es/date-picker/datepicker-legacy/Calender.js +422 -0
  76. package/es/date-picker/datepicker-legacy/DatePanel.js +455 -0
  77. package/es/date-picker/datepicker-legacy/DatePicker.js +103 -0
  78. package/es/date-picker/datepicker-legacy/DateRangePanel.js +488 -0
  79. package/es/date-picker/datepicker-legacy/Modal.js +67 -0
  80. package/es/date-picker/datepicker-legacy/Time.js +405 -0
  81. package/es/date-picker/datepicker-legacy/TimePanel.js +85 -0
  82. package/es/date-picker/datepicker-legacy/TimePeriodPanel.js +118 -0
  83. package/es/date-picker/datepicker-legacy/TimePicker.js +78 -0
  84. package/es/date-picker/datepicker-legacy/TimeRangePanel.js +90 -0
  85. package/es/date-picker/datepicker-legacy/Type.js +31 -0
  86. package/es/date-picker/datepicker-legacy/WeekRangePanel.js +337 -0
  87. package/es/date-picker/datepicker-legacy/constants.js +79 -0
  88. package/es/date-picker/datepicker-legacy/dateUtil.js +258 -0
  89. package/es/date-picker/datepicker-legacy/index.js +15 -0
  90. package/es/date-picker/datepicker-legacy/local.js +11 -0
  91. package/es/date-picker/datepicker-legacy/style/index.css +1 -0
  92. package/es/date-picker/datepicker-legacy/style/index.js +3 -0
  93. package/es/date-picker/datepicker-legacy/style/timepicker.css +1 -0
  94. package/es/date-picker/datepicker-legacy/util.js +60 -0
  95. package/es/date-picker/index.js +5 -2
  96. package/es/date-picker/style/index.css +1 -1
  97. package/es/date-picker/toLunar.js +172 -0
  98. package/es/date-picker/util.js +101 -8
  99. package/es/dropdown/Dropdown.js +191 -203
  100. package/es/dropdown/DropdownButton.js +102 -0
  101. package/es/dropdown/DropdownMenu.js +107 -0
  102. package/es/dropdown/DropdownMenuItem.js +172 -0
  103. package/es/dropdown/__tests__/index.test.js +313 -0
  104. package/es/dropdown/index.js +69 -4
  105. package/es/dropdown/style/index.css +1 -1
  106. package/es/dropdown/style/index.js +0 -2
  107. package/es/dropdown/{__test__ → tests}/index.test.js +7 -7
  108. package/es/dropdown/utils.js +35 -0
  109. package/es/ficon/index.js +16 -30
  110. package/es/form/Form.js +176 -0
  111. package/es/form/{item.js → Item.js} +52 -60
  112. package/es/form/__tests__/index.test.js +571 -0
  113. package/es/form/index.js +6 -171
  114. package/es/form/style/index.css +1 -1
  115. package/es/grid/__tests__/index.test.js +100 -0
  116. package/es/grid/index.js +36 -56
  117. package/es/icon/index.js +23 -38
  118. package/es/index.js +61 -9
  119. package/es/input/Input.js +400 -0
  120. package/es/input/__tests__/index.test.js +376 -0
  121. package/es/input/index.js +26 -347
  122. package/es/input/input-legacy/index.js +341 -0
  123. package/es/input/input-legacy/util.js +176 -0
  124. package/es/input/style/index.css +1 -1
  125. package/es/input/util.js +26 -18
  126. package/es/lib/withDragDropContext.js +2 -2
  127. package/es/loading/Loading.js +173 -0
  128. package/es/loading/__tests__/index.test.js +110 -0
  129. package/es/loading/index.js +5 -129
  130. package/es/loading/style/index.css +0 -0
  131. package/es/loading/style/index.js +0 -0
  132. package/es/locales/en-US.js +45 -9
  133. package/es/locales/index.js +16 -2
  134. package/es/locales/zh-CN.js +46 -10
  135. package/es/locales/zh-Hant-HK.js +123 -0
  136. package/es/locales/zh-Hant-TW.js +125 -0
  137. package/es/menu/Item.js +34 -51
  138. package/es/menu/Menu.js +414 -0
  139. package/es/menu/SubMenu.js +63 -90
  140. package/es/menu/Title.js +37 -51
  141. package/es/menu/__tests__/index.test.js +274 -0
  142. package/es/menu/index.js +12 -419
  143. package/es/menu/style/index.css +1 -1
  144. package/es/message/__tests__/index.test.js +71 -0
  145. package/es/message/index.js +58 -0
  146. package/es/message/style/index.css +1 -0
  147. package/es/message/style/index.js +5 -0
  148. package/es/modal/__tests__/index.test.js +178 -0
  149. package/es/modal/index.js +85 -77
  150. package/es/modal/style/index.css +1 -1
  151. package/es/nav-menu/NavMenu.js +44 -61
  152. package/es/nav-menu/__test__/index.test.js +8 -8
  153. package/es/nav-menu/__tests__/index.test.js +23 -0
  154. package/es/nav-menu/index.js +2 -2
  155. package/es/notice/Notice.js +136 -0
  156. package/es/notice/NoticeContainer.js +107 -0
  157. package/es/notice/__tests__/index.test.js +174 -0
  158. package/es/notice/index.js +66 -0
  159. package/es/notice/style/index.css +1 -0
  160. package/es/notice/style/index.js +5 -0
  161. package/es/notification/HandleNotification/index.js +216 -0
  162. package/es/notification/HandleNotification/style/index.css +1 -0
  163. package/es/notification/HandleNotification/style/index.js +5 -0
  164. package/es/notification/__tests__/index.test.js +114 -0
  165. package/es/notification/index.js +68 -231
  166. package/es/notification/style/index.css +1 -1
  167. package/es/notification/style/index.js +0 -0
  168. package/es/pagination/Pager.js +7 -9
  169. package/es/pagination/Pagination.js +134 -133
  170. package/es/pagination/__tests__/index.test.js +244 -0
  171. package/es/pagination/index.js +9 -8
  172. package/es/pagination/style/index.css +1 -1
  173. package/es/panel/index.js +28 -46
  174. package/es/popover/__test__/index.test.js +10 -10
  175. package/es/popover/__tests__/index.test.js +152 -0
  176. package/es/popover/index.js +77 -83
  177. package/es/popper/index.js +68 -64
  178. package/es/popper/style/index.css +1 -1
  179. package/es/preview/index.js +529 -0
  180. package/es/preview/style/index.css +1 -0
  181. package/es/preview/style/index.js +3 -0
  182. package/es/progress/BarProgress.js +107 -43
  183. package/es/progress/CircleProgress.js +13 -14
  184. package/es/progress/DashboardProgress.js +11 -13
  185. package/es/progress/Progress.js +102 -0
  186. package/es/progress/__tests__/index.test.js +131 -0
  187. package/es/progress/index.js +8 -100
  188. package/es/progress/style/index.css +1 -1
  189. package/es/radio/Group.js +199 -0
  190. package/es/radio/Radio.js +147 -0
  191. package/es/radio/__tests__/index.test.js +127 -0
  192. package/es/radio/index.js +10 -216
  193. package/es/radio/{__test__ → radio-legacy/__test__}/index.test.js +13 -13
  194. package/es/radio/radio-legacy/index.js +214 -0
  195. package/es/radio/radio-legacy/style/index.css +1 -0
  196. package/es/radio/radio-legacy/style/index.js +3 -0
  197. package/es/radio/style/index.css +1 -1
  198. package/es/rate/Icons.js +70 -70
  199. package/es/rate/Rate.js +75 -108
  200. package/es/rate/__tests__/index.test.js +124 -0
  201. package/es/rate/index.js +5 -2
  202. package/es/rate/style/index.css +1 -1
  203. package/es/select/Select.js +330 -265
  204. package/es/select/SelectDropdown.js +223 -79
  205. package/es/select/SelectInput.js +120 -91
  206. package/es/select/__tests__/index.test.js +505 -0
  207. package/es/select/index.js +6 -4
  208. package/es/select/select-legacy/Option.js +78 -0
  209. package/es/select/select-legacy/Select.js +702 -0
  210. package/es/select/select-legacy/SelectDropdown.js +157 -0
  211. package/es/select/select-legacy/SelectInput.js +308 -0
  212. package/es/select/select-legacy/common.js +19 -0
  213. package/es/select/select-legacy/index.js +16 -0
  214. package/es/select/style/select-dropdown.css +1 -1
  215. package/es/select/style/select-input.css +1 -1
  216. package/es/stepper/Stepper.js +147 -0
  217. package/es/stepper/__tests__/index.test.js +161 -0
  218. package/es/stepper/index.js +21 -127
  219. package/es/stepper/style/index.css +1 -1
  220. package/es/style/icon/diyIcon.css +1 -1
  221. package/es/style/icon/index.css +1 -1
  222. package/es/switch/__tests__/index.test.js +68 -0
  223. package/es/switch/index.js +26 -46
  224. package/es/switch/style/index.css +1 -1
  225. package/es/table/Body.js +294 -0
  226. package/es/table/ClickOuterside.js +95 -0
  227. package/es/table/Footer.js +171 -0
  228. package/es/table/Header.js +320 -0
  229. package/es/table/TableContent.js +101 -0
  230. package/es/table/__tests__/index.test.js +129 -0
  231. package/es/table/checkbox/index.js +36 -47
  232. package/es/table/checkbox/style/index.css +1 -0
  233. package/es/table/checkbox/style/index.js +3 -0
  234. package/es/table/index.js +269 -314
  235. package/es/table/menu/index.js +34 -44
  236. package/es/table/prefix.js +2 -2
  237. package/es/table/style/Table.css +1 -1
  238. package/es/table/style/index.css +1 -1
  239. package/es/tabs/ItemDropdown.js +45 -65
  240. package/es/tabs/TabPane.js +26 -44
  241. package/es/tabs/Tabs.js +110 -111
  242. package/es/tabs/__tests__/index.test.js +329 -0
  243. package/es/tabs/index.js +9 -3
  244. package/es/tabs/style/index.css +1 -1
  245. package/es/tabs/tabs-legacy/ItemDropdown.js +162 -0
  246. package/es/tabs/tabs-legacy/TabPane.js +70 -0
  247. package/es/tabs/tabs-legacy/Tabs.js +291 -0
  248. package/es/tabs/tabs-legacy/index.js +18 -0
  249. package/es/tabs/tabs-legacy/style/index.css +1 -0
  250. package/es/tabs/tabs-legacy/style/index.js +3 -0
  251. package/es/tag/__tests__/index.test.js +46 -0
  252. package/es/tag/index.js +86 -0
  253. package/es/tag/style/index.css +1 -0
  254. package/es/tag/style/index.js +3 -0
  255. package/es/timeline/__tests__/index.test.js +198 -0
  256. package/es/timeline/index.js +206 -136
  257. package/es/timeline/style/index.css +1 -1
  258. package/es/tooltip/__tests__/index.test.js +166 -0
  259. package/es/tooltip/index.js +93 -52
  260. package/es/tooltip/style/index.css +1 -1
  261. package/es/transfer/Item.js +73 -71
  262. package/es/transfer/Transfer.js +558 -0
  263. package/es/transfer/__tests__/index.test.js +210 -0
  264. package/es/transfer/index.js +4 -443
  265. package/es/transfer/style/index.css +1 -1
  266. package/es/tree/IconLoading.js +38 -0
  267. package/es/tree/Tree.js +94 -111
  268. package/es/tree/TreeDivider.js +6 -6
  269. package/es/tree/TreeItem.js +217 -123
  270. package/es/tree/TreeNode.js +472 -333
  271. package/es/tree/__tests__/index.test.js +599 -0
  272. package/es/tree/index.js +9 -2
  273. package/es/tree/style/index.css +1 -1
  274. package/es/tree/tree-legacy/Tree.js +330 -0
  275. package/es/tree/tree-legacy/TreeDivider.js +25 -0
  276. package/es/tree/tree-legacy/TreeItem.js +326 -0
  277. package/es/tree/tree-legacy/TreeNode.js +711 -0
  278. package/es/tree/tree-legacy/index.js +13 -0
  279. package/es/tree/tree-legacy/style/index.css +1 -0
  280. package/es/tree/tree-legacy/style/index.js +3 -0
  281. package/es/tree/tree-legacy/util.js +434 -0
  282. package/es/tree/util.js +8 -256
  283. package/es/upload/Upload.js +292 -200
  284. package/es/upload/UploadAvatar.js +61 -79
  285. package/es/upload/UploadClick.js +62 -60
  286. package/es/upload/UploadDrag.js +63 -66
  287. package/es/upload/UploadPhoto.js +86 -75
  288. package/es/upload/UploadPictureCard.js +53 -60
  289. package/es/upload/__tests__/index.test.js +760 -0
  290. package/es/upload/index.js +8 -71
  291. package/es/upload/main.js +83 -0
  292. package/es/upload/style/index.css +1 -1
  293. package/es/upload/tool.js +0 -1
  294. package/es/upload/{Preview.js → upload-legacy/Preview.js} +48 -62
  295. package/es/upload/upload-legacy/Upload.js +431 -0
  296. package/es/upload/upload-legacy/UploadAvatar.js +318 -0
  297. package/es/upload/upload-legacy/UploadClick.js +121 -0
  298. package/es/upload/upload-legacy/UploadDrag.js +176 -0
  299. package/es/upload/upload-legacy/UploadPhoto.js +179 -0
  300. package/es/upload/upload-legacy/UploadPictureCard.js +122 -0
  301. package/es/upload/upload-legacy/index.js +67 -0
  302. package/es/upload/upload-legacy/style/index.css +1 -0
  303. package/es/upload/upload-legacy/style/index.js +5 -0
  304. package/es/upload/upload-legacy/tool.js +84 -0
  305. package/es/watermark/index.js +97 -0
  306. package/es/watermark/watermark.js +263 -0
  307. package/package.json +1 -1
  308. package/es/alert/__test__/index.test.js +0 -67
  309. package/es/button/__test__/index.test.js +0 -29
  310. package/es/cascader/__test__/index.test.js +0 -283
  311. package/es/cascader/menu.js +0 -155
  312. package/es/checkbox/Base.js +0 -205
  313. package/es/checkbox/CheckBox.js +0 -185
  314. package/es/collapse/__test__/index.test.js +0 -58
  315. package/es/counter/__test__/index.test.js +0 -52
  316. package/es/menu/ItemGroup.js +0 -81
  317. package/es/modal/__test__/index.test.js +0 -123
  318. package/es/notification/__test__/index.test.js +0 -56
  319. package/es/pagination/__test__/index.test.js +0 -140
  320. package/es/rate/__test__/index.test.js +0 -54
  321. package/es/select/Option.js +0 -93
  322. package/es/select/__test__/index.test.js +0 -429
  323. package/es/style/color/colors.css +0 -0
  324. package/es/style/index.css +0 -0
  325. package/es/style/mixins/colors.css +0 -0
  326. package/es/style/mixins/index.css +0 -0
  327. package/es/style/theme/dark.css +0 -0
  328. package/es/style/theme/default.css +0 -0
  329. package/es/switch/__test__/index.test.js +0 -39
  330. package/es/table/__test__/index.test.js +0 -73
  331. package/es/table/body.js +0 -318
  332. package/es/table/clickOuterside.js +0 -115
  333. package/es/table/footer.js +0 -196
  334. package/es/table/header.js +0 -337
  335. package/es/table/pover.js +0 -154
  336. package/es/table/tableContent.js +0 -120
  337. package/es/timeline/__test__/index.test.js +0 -49
  338. package/es/timeline/foldingItem.js +0 -82
  339. package/es/tooltip/__test__/index.test.js +0 -67
  340. package/es/transfer/__test__/index.test.js +0 -11
  341. /package/es/{style → breadcrumb/style}/index.js +0 -0
  342. /package/es/checkbox/{common.js → checkbox-legacy/common.js} +0 -0
  343. /package/es/upload/{style → upload-legacy/style}/preview.css +0 -0
  344. /package/es/upload/{style → upload-legacy/style}/preview.js +0 -0
@@ -1,83 +1,20 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports["default"] = void 0;
7
9
 
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _UploadClick = _interopRequireDefault(require("./UploadClick"));
11
-
12
- var _UploadDrag = _interopRequireDefault(require("./UploadDrag"));
13
-
14
- var _UploadPhoto = _interopRequireDefault(require("./UploadPhoto"));
15
-
16
- var _UploadAvatar = _interopRequireDefault(require("./UploadAvatar"));
17
-
18
- var _UploadPictureCard = _interopRequireDefault(require("./UploadPictureCard"));
19
-
20
- require("./style/index");
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
25
-
26
- 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; }
27
-
28
- 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); }
29
-
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
32
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
35
-
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); }
39
-
40
- 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); }; }
41
-
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
43
-
44
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
-
46
- 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; } }
47
-
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
-
50
- var Upload = /*#__PURE__*/function (_Component) {
51
- _inherits(Upload, _Component);
52
-
53
- var _super = _createSuper(Upload);
54
-
55
- function Upload() {
56
- _classCallCheck(this, Upload);
10
+ var _main = _interopRequireDefault(require("./main.js"));
57
11
 
58
- return _super.apply(this, arguments);
59
- }
12
+ var _SwitchVersion = _interopRequireDefault(require("../_util/SwitchVersion"));
60
13
 
61
- _createClass(Upload, [{
62
- key: "render",
63
- value: function render() {
64
- var type = this.props.type;
14
+ var _uploadLegacy = _interopRequireDefault(require("./upload-legacy"));
65
15
 
66
- if (type === 'normal') {
67
- return /*#__PURE__*/_react["default"].createElement(_UploadClick["default"], this.props);
68
- } else if (type === 'drag') {
69
- return /*#__PURE__*/_react["default"].createElement(_UploadDrag["default"], this.props);
70
- } else if (type === 'photo') {
71
- return /*#__PURE__*/_react["default"].createElement(_UploadPhoto["default"], this.props);
72
- } else if (type === 'avatar') {
73
- return /*#__PURE__*/_react["default"].createElement(_UploadAvatar["default"], this.props);
74
- } else if (type === 'pictureCard') {
75
- return /*#__PURE__*/_react["default"].createElement(_UploadPictureCard["default"], this.props);
76
- }
77
- }
78
- }]);
16
+ var _context = _interopRequireDefault(require("../context"));
79
17
 
80
- return Upload;
81
- }(_react.Component);
18
+ var _default = (0, _SwitchVersion["default"])((0, _context["default"])(_main["default"]), _uploadLegacy["default"]);
82
19
 
83
- exports["default"] = Upload;
20
+ exports["default"] = _default;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
+
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
+
18
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
+
20
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
+
22
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
23
+
24
+ var _react = _interopRequireWildcard(require("react"));
25
+
26
+ var _UploadClick = _interopRequireDefault(require("./UploadClick"));
27
+
28
+ var _UploadDrag = _interopRequireDefault(require("./UploadDrag"));
29
+
30
+ var _UploadPhoto = _interopRequireDefault(require("./UploadPhoto"));
31
+
32
+ var _UploadAvatar = _interopRequireDefault(require("./UploadAvatar"));
33
+
34
+ var _UploadPictureCard = _interopRequireDefault(require("./UploadPictureCard"));
35
+
36
+ require("./style/index");
37
+
38
+ var Upload =
39
+ /*#__PURE__*/
40
+ function (_Component) {
41
+ (0, _inherits2["default"])(Upload, _Component);
42
+
43
+ function Upload() {
44
+ var _this;
45
+
46
+ (0, _classCallCheck2["default"])(this, Upload);
47
+ _this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(Upload).call(this));
48
+ _this.uploadRef = _react["default"].createRef();
49
+ return _this;
50
+ }
51
+
52
+ (0, _createClass2["default"])(Upload, [{
53
+ key: "render",
54
+ value: function render() {
55
+ var type = this.props.type;
56
+
57
+ if (type === 'drag') {
58
+ return _react["default"].createElement(_UploadDrag["default"], (0, _extends2["default"])({}, this.props, {
59
+ ref: this.uploadRef
60
+ }));
61
+ } else if (type === 'photo') {
62
+ return _react["default"].createElement(_UploadPhoto["default"], (0, _extends2["default"])({}, this.props, {
63
+ ref: this.uploadRef
64
+ }));
65
+ } else if (type === 'avatar') {
66
+ return _react["default"].createElement(_UploadAvatar["default"], (0, _extends2["default"])({}, this.props, {
67
+ ref: this.uploadRef
68
+ }));
69
+ } else if (type === 'pictureCard') {
70
+ return _react["default"].createElement(_UploadPictureCard["default"], (0, _extends2["default"])({}, this.props, {
71
+ ref: this.uploadRef
72
+ }));
73
+ } else {
74
+ return _react["default"].createElement(_UploadClick["default"], (0, _extends2["default"])({}, this.props, {
75
+ ref: this.uploadRef
76
+ }));
77
+ }
78
+ }
79
+ }]);
80
+ return Upload;
81
+ }(_react.Component);
82
+
83
+ exports["default"] = Upload;
@@ -1 +1 @@
1
- .hi-upload--disabled{cursor:not-allowed}.hi-upload__button{display:inline-block;width:88px;height:32px;font-size:14px;background:#4284f5;color:#fff;cursor:pointer;line-height:32px;text-align:center;border-radius:2px}.hi-upload__button--disabled{cursor:not-allowed;opacity:0.5}.hi-upload__tips{font-size:12px;color:#999}.hi-upload__tips--single-line{display:block;padding:12px 0 8px}.hi-upload__tips--exist{padding-left:3px}.hi-upload__list{width:100%;overflow:hidden}.hi-upload__item{height:36px;cursor:default;color:#666;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:4px 0;overflow:hidden;position:relative}.hi-upload__item-tips{color:#428ef5;background:#edf2fc;border-radius:2px;font-size:14px;padding:4px 6px;height:auto !important;border:1px solid #d8e5ff}.hi-upload__item .hi-icon{cursor:pointer;font-size:18px}.hi-upload__item .icon-plus{font-size:32px}.hi-upload__right-content{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:8px;overflow:hidden}.hi-upload__filename{-webkit-box-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14px}.hi-upload__filename--error{color:red}.hi-upload__upstatus{width:100%;height:2px;background:#f2f2f2;border-radius:9px;position:absolute;bottom:0}.hi-upload__upstatus-line{display:inline-block;height:2px;width:0;background:#4284f5;border-radius:4px 0 0 4px;position:absolute;left:0;top:0;-webkit-transition:width 0.1s linear;transition:width 0.1s linear}.hi-upload__upstatus-num{position:absolute;right:38px;top:-32px;font-style:normal;font-size:12px;color:#999}.hi-upload--drag{position:relative;width:100%;min-height:140px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px dashed #dbdbdb;cursor:pointer;padding:12px}.hi-upload--drag:hover:not(.hi-upload--nohover){border-color:#4284f5}.hi-upload--drag .hi-upload__operate-icon{color:#4284f5;cursor:pointer}.hi-upload--drag.hi-upload--disabled{cursor:not-allowed;opacity:0.6}.hi-upload--drag.hi-upload--disabled,.hi-upload--drag.hi-upload--disabled:hover{border-color:#d9d9d9}.hi-upload--drag.hi-upload--disabled .drop-click{cursor:not-allowed}.hi-upload--drag .hi-upload__item:not(:first-child):not(:last-child){border-bottom:1px solid #e6e6e6}.hi-upload--drag .drop-content{display:none}.hi-upload--drag .show-drop-content{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;display:inline-block;height:60px;text-align:center;font-size:12px;color:#333;letter-spacing:0;line-height:20px;cursor:inherit}.hi-upload--drag .show-drop-content .icon{display:block;cursor:inherit;margin-bottom:10px}.hi-upload--drag .show-drop-content .icon::before{font-size:30px;color:#4284f5}.hi-upload--drag .drop-over{border:1px dashed #0099fb}.hi-upload--avatar.hi-upload--disabled .photo-upload,.hi-upload--photo.hi-upload--disabled .photo-upload{cursor:not-allowed}.hi-upload--avatar.hi-upload--disabled .photo-upload,.hi-upload--avatar.hi-upload--disabled .photo-upload:hover,.hi-upload--photo.hi-upload--disabled .photo-upload,.hi-upload--photo.hi-upload--disabled .photo-upload:hover{border-color:#d9d9d9}.hi-upload--avatar .hi-upload__list,.hi-upload--photo .hi-upload__list{overflow:visible}.hi-upload--avatar .hi-upload__item,.hi-upload--photo .hi-upload__item{width:140px;height:140px;display:inline-block;position:relative;text-align:center;padding:0;margin:8px;overflow:visible;vertical-align:middle;background:#fff}.hi-upload--avatar .hi-upload__item:not(:last-child),.hi-upload--photo .hi-upload__item:not(:last-child){background:#e7e7e7}.hi-upload--avatar .hi-upload__item img,.hi-upload--photo .hi-upload__item img{margin-top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.hi-upload--avatar .hi-upload__item--upload,.hi-upload--photo .hi-upload__item--upload{text-align:center;font-size:28px;color:#e7e7e7;border:1px dashed #d8d8d8;line-height:140px}.hi-upload--avatar .hi-upload__item--upload:hover,.hi-upload--photo .hi-upload__item--upload:hover{border-color:#0099fb}.hi-upload--avatar .hi-upload__item:hover .hi-upload__photo-del,.hi-upload--photo .hi-upload__item:hover .hi-upload__photo-del{display:block}.hi-upload__photo-del{position:absolute;right:-8px;top:-12px;font-size:18px;display:none;z-index:2}.hi-upload__precent{position:absolute;width:140px;height:140px;left:0;top:0;background:rgba(0,0,0,0.4);color:#fff;font-size:14px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.hi-upload__loading-bar{width:0;height:4px;position:absolute;left:0;bottom:0;background:#4284f5}.hi-upload__thumb{max-width:140px;max-height:140px}.hi-upload--picture-card .upload--disabled{cursor:not-allowed}.hi-upload--picture-card .hi-upload__list{margin-top:15px;overflow:auto}.hi-upload--picture-card .hi-upload__list .hi-upload__item{height:64px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #d8d8d8;border-radius:2px;padding:8px 18px 8px 8px;margin-bottom:8px;font-size:12px;color:#333}.hi-upload--picture-card .hi-upload__list .hi-upload__item--error{border:1px solid #f44141}.hi-upload--picture-card .hi-upload__list .hi-upload__item:hover{background:#f7f7f7}.hi-upload--picture-card .hi-upload__list .hi-upload__item.loading{color:#999}.hi-upload--picture-card .hi-upload__list .hi-upload__item .img-wrap{float:left;width:50px;height:50px;margin-right:12px;position:relative}.hi-upload--picture-card .hi-upload__list .hi-upload__item .img-wrap img{position:absolute;left:0;top:0;right:0;bottom:0;margin:auto;max-width:50px;max-height:50px}.hi-upload--picture-card .hi-upload__list .hi-upload__item .img-wrap .img-mask{width:50px;height:50px;position:absolute;left:0;top:0;background:rgba(0,0,0,0.3)}.hi-upload__modal-tips{display:-webkit-box;display:-ms-flexbox;display:flex}.hi-upload__error—content{margin:12px}.hi-upload__error-title{width:300px;line-height:24px;font-size:16px;color:#333;margin-bottom:4px}.hi-upload__error-info{font-size:14px;color:#666}.hi-upload p{margin:0;padding:0}.hi-upload ul{margin:0;padding:0;list-style:none}.hi-upload li{list-style:none}.hi-modal .content{font-size:0}
1
+ .hi-upload--disabled{cursor:not-allowed}.hi-upload__tips{font-size:12px;color:#999;line-height:20px}.hi-upload__tips--single-line{display:block;padding:7px 0 8px}.hi-upload__tips--exist{padding-left:3px;line-height:22px}.hi-upload__list{width:100%;overflow:hidden}.hi-upload__item{height:36px;cursor:default;color:#666;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:6px 0;overflow:hidden;position:relative}.hi-upload__item a.hi-upload__filename{-webkit-box-flex:1;-ms-flex:1;flex:1;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14px;cursor:pointer;color:#666}.hi-upload__item a.hi-upload__filename--error{color:red}.hi-upload__item a.hi-upload__filename--error:not([href]){color:red}.hi-upload__item-tips{color:#428ef5;background:#edf2fc;border-radius:2px;font-size:14px;padding:8px 12px;height:auto !important;border:1px solid #d8e5ff}.hi-upload__item .hi-icon{cursor:pointer;font-size:16px;color:#ccc}.hi-upload__item .icon-plus{font-size:24px}.hi-upload__right-content{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:8px;overflow:hidden}.hi-upload__upstatus{width:calc(100% - 30px);margin-left:30px;height:2px;background:#f2f2f2;border-radius:9px;position:absolute;bottom:0}.hi-upload__upstatus-line{display:inline-block;height:2px;width:0;background:#4284f5;border-radius:4px 0 0 4px;position:absolute;left:0;top:0;-webkit-transition:width 0.1s linear;transition:width 0.1s linear}.hi-upload__upstatus-num{position:absolute;right:60px;top:-32px;font-style:normal;font-size:12px;color:#999}.hi-upload--drag{position:relative;width:100%;min-height:172px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px dashed #dbdbdb;border-radius:2px;cursor:pointer;padding:12px}.hi-upload--drag:hover:not(.hi-upload--nohover){border-color:#4284f5}.hi-upload--drag .hi-upload__operate-icon{color:#4284f5;cursor:pointer}.hi-upload--drag .icon-tishi{color:#4284f5;margin-right:5px}.hi-upload--drag.hi-upload--disabled{cursor:not-allowed;opacity:0.6}.hi-upload--drag.hi-upload--disabled,.hi-upload--drag.hi-upload--disabled:hover{border-color:#d9d9d9}.hi-upload--drag.hi-upload--disabled .drop-click{cursor:not-allowed}.hi-upload--drag .hi-upload__item:not(:first-child){border-bottom:1px solid #e6e6e6}.hi-upload--drag .drop-content{display:none}.hi-upload--drag .show-drop-content{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;display:inline-block;height:60px;text-align:center;font-size:14px;color:#333;letter-spacing:0;line-height:22px;cursor:inherit}.hi-upload--drag .show-drop-content .hi-upload__tips--single-line{padding:0;margin-top:4px}.hi-upload--drag .show-drop-content .icon{display:block;cursor:inherit;margin-bottom:6px}.hi-upload--drag .show-drop-content .icon::before{font-size:40px;color:#4284f5}.hi-upload--drag .drop-over{border:1px dashed #0099fb}.hi-upload--avatar.hi-upload--disabled .photo-upload,.hi-upload--photo.hi-upload--disabled .photo-upload{cursor:not-allowed}.hi-upload--avatar.hi-upload--disabled .photo-upload,.hi-upload--avatar.hi-upload--disabled .photo-upload:hover,.hi-upload--photo.hi-upload--disabled .photo-upload,.hi-upload--photo.hi-upload--disabled .photo-upload:hover{border-color:#d9d9d9}.hi-upload--avatar .hi-upload__list,.hi-upload--photo .hi-upload__list{overflow:visible}.hi-upload--avatar .hi-upload__item,.hi-upload--photo .hi-upload__item{width:140px;height:140px;display:inline-block;position:relative;text-align:center;padding:0;margin:8px;overflow:visible;vertical-align:middle;background:#fff;border-radius:2px}.hi-upload--avatar .hi-upload__item--photo-error,.hi-upload--photo .hi-upload__item--photo-error{height:28px;background:rgba(0,0,0,0.5);position:absolute;width:100%;color:#fff;bottom:0;line-height:28px;font-size:16px;border-radius:0 0 2px 2px}.hi-upload--avatar .hi-upload__item:not(:last-child),.hi-upload--photo .hi-upload__item:not(:last-child){background:#e7e7e7}.hi-upload--avatar .hi-upload__item img,.hi-upload--photo .hi-upload__item img{margin-top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.hi-upload--avatar .hi-upload__item--upload,.hi-upload--photo .hi-upload__item--upload{text-align:center;font-size:28px;color:#e7e7e7;border:1px dashed #d8d8d8;line-height:140px}.hi-upload--avatar .hi-upload__item--upload:hover,.hi-upload--photo .hi-upload__item--upload:hover{border-color:#0099fb}.hi-upload--avatar .hi-upload__item-mask,.hi-upload--photo .hi-upload__item-mask{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,0.4);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;opacity:0;-webkit-transition:0.3s ease;transition:0.3s ease;z-index:2;border-radius:4px;cursor:pointer}.hi-upload--avatar .hi-upload__item-mask i,.hi-upload--photo .hi-upload__item-mask i{line-height:32px;font-size:32px}.hi-upload--avatar .hi-upload__item-mask span,.hi-upload--photo .hi-upload__item-mask span{font-size:16px}.hi-upload--avatar .hi-upload__item:hover .hi-upload__photo-del,.hi-upload--photo .hi-upload__item:hover .hi-upload__photo-del{display:block;color:#000;z-index:4}.hi-upload--avatar .hi-upload__item:hover .hi-upload__item-mask,.hi-upload--photo .hi-upload__item:hover .hi-upload__item-mask{opacity:1}.hi-upload--photo .hi-upload__item--small{width:80px;height:80px;line-height:80px}.hi-upload--photo .hi-upload__item--small .hi-upload__thumb{max-width:80px;max-height:80px}.hi-upload--photo .hi-upload__item--large{width:200px;height:200px;line-height:200px}.hi-upload--photo .hi-upload__item--large .hi-upload__thumb{max-width:200px;max-height:200px}.hi-upload__thumb{max-width:140px;max-height:140px}.hi-upload--avatar .hi-upload__item--upload{width:80px;height:80px;line-height:80px;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-upload__photo-del{position:absolute;right:-8px;top:-10px;font-size:20px;line-height:20px;display:none;z-index:3}.hi-upload__precent{position:absolute;width:140px;height:140px;left:0;top:0;background:rgba(0,0,0,0.5);color:#fff;font-size:14px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:2px}.hi-upload__precent--small{width:80px;height:80px}.hi-upload__precent--large{width:200px;height:200px}.hi-upload__loading-bar{width:0;height:4px;position:absolute;left:0;bottom:0;background:#4284f5;z-index:3}.hi-upload__loading-shadow{width:100%;height:4px;position:absolute;left:0;bottom:0;background:#000;opacity:0.34;z-index:2}.hi-upload--picture-card .hi-upload__upstatus{width:100%;margin-left:0}.hi-upload--picture-card .hi-upload__right-content{padding-left:0}.hi-upload--picture-card .upload--disabled{cursor:not-allowed}.hi-upload--picture-card .hi-upload__list{margin-top:15px;overflow:auto}.hi-upload--picture-card .hi-upload__list .hi-upload__item{height:64px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #d8d8d8;border-radius:2px;padding:8px 18px 8px 6px;margin-bottom:12px;font-size:12px;color:#333}.hi-upload--picture-card .hi-upload__list .hi-upload__item--error{border:1px solid #f44141}.hi-upload--picture-card .hi-upload__list .hi-upload__item:hover{background:#f7f7f7}.hi-upload--picture-card .hi-upload__list .hi-upload__item.loading{color:#999}.hi-upload--picture-card .hi-upload__list .hi-upload__item .img-wrap{float:left;width:50px;height:50px;margin-right:12px;position:relative}.hi-upload--picture-card .hi-upload__list .hi-upload__item .img-wrap img{position:absolute;left:0;top:0;right:0;bottom:0;margin:auto;max-width:50px;max-height:50px}.hi-upload--picture-card .hi-upload__list .hi-upload__item .img-wrap .img-mask{width:50px;height:50px;position:absolute;left:0;top:0;background:rgba(0,0,0,0.3)}.hi-upload .hi-modal__content{padding:16px 24px}.hi-upload__modal-tips{display:-webkit-box;display:-ms-flexbox;display:flex}.hi-upload__error—content{margin:12px}.hi-upload__error-title{width:300px;line-height:24px;font-size:16px;color:#333;margin-bottom:4px}.hi-upload__error-info{font-size:14px;color:#666}.hi-upload p{margin:0;padding:0}.hi-upload ul{margin:0;padding:0;list-style:none}.hi-upload li{list-style:none}.hi-modal .content{font-size:0}.theme__orange.hi-upload--drag:hover:not(.hi-upload--nohover){border-color:#f63}.theme__orange.hi-upload--drag .hi-upload__operate-icon{color:#f63}.theme__orange.hi-upload--drag .drop-over{border:1px dashed #f63}.theme__orange.hi-upload--drag .show-drop-content .icon::before{color:#f63}.theme__orange.hi-upload .hi-upload__item-tips{color:#f63}.theme__orange.hi-upload .hi-upload__item-tips .hi-upload__operate-icon{color:#f63}.theme__orange.hi-upload .hi-upload__item-tips .icon-tishi{color:#f63}.theme__orange.hi-upload--avatar .hi-upload__item--upload:hover,.theme__orange.hi-upload--photo .hi-upload__item--upload:hover{border-color:#f63}.theme__orange.hi-upload .hi-upload__upstatus-line{background-color:#f63}.theme__orange.hi-upload .hi-upload__upstatus-num{color:#f63}.theme__orange.hi-upload .hi-upload__loading-bar{background:#f63}.theme__cyan.hi-upload--drag:hover:not(.hi-upload--nohover){border-color:#46bc99}.theme__cyan.hi-upload--drag .hi-upload__operate-icon{color:#46bc99}.theme__cyan.hi-upload--drag .drop-over{border:1px dashed #46bc99}.theme__cyan.hi-upload--drag .show-drop-content .icon::before{color:#46bc99}.theme__cyan.hi-upload .hi-upload__item-tips{color:#46bc99}.theme__cyan.hi-upload .hi-upload__item-tips .hi-upload__operate-icon{color:#46bc99}.theme__cyan.hi-upload .hi-upload__item-tips .icon-tishi{color:#46bc99}.theme__cyan.hi-upload--avatar .hi-upload__item--upload:hover,.theme__cyan.hi-upload--photo .hi-upload__item--upload:hover{border-color:#46bc99}.theme__cyan.hi-upload .hi-upload__upstatus-line{background-color:#46bc99}.theme__cyan.hi-upload .hi-upload__upstatus-num{color:#46bc99}.theme__cyan.hi-upload .hi-upload__loading-bar{background:#46bc99}.theme__magenta.hi-upload--drag:hover:not(.hi-upload--nohover){border-color:#ff5975}.theme__magenta.hi-upload--drag .hi-upload__operate-icon{color:#ff5975}.theme__magenta.hi-upload--drag .drop-over{border:1px dashed #ff5975}.theme__magenta.hi-upload--drag .show-drop-content .icon::before{color:#ff5975}.theme__magenta.hi-upload .hi-upload__item-tips{color:#ff5975}.theme__magenta.hi-upload .hi-upload__item-tips .hi-upload__operate-icon{color:#ff5975}.theme__magenta.hi-upload .hi-upload__item-tips .icon-tishi{color:#ff5975}.theme__magenta.hi-upload--avatar .hi-upload__item--upload:hover,.theme__magenta.hi-upload--photo .hi-upload__item--upload:hover{border-color:#ff5975}.theme__magenta.hi-upload .hi-upload__upstatus-line{background-color:#ff5975}.theme__magenta.hi-upload .hi-upload__upstatus-num{color:#ff5975}.theme__magenta.hi-upload .hi-upload__loading-bar{background:#ff5975}.theme__lavender.hi-upload--drag:hover:not(.hi-upload--nohover){border-color:#b450de}.theme__lavender.hi-upload--drag .hi-upload__operate-icon{color:#b450de}.theme__lavender.hi-upload--drag .drop-over{border:1px dashed #b450de}.theme__lavender.hi-upload--drag .show-drop-content .icon::before{color:#b450de}.theme__lavender.hi-upload .hi-upload__item-tips{color:#b450de}.theme__lavender.hi-upload .hi-upload__item-tips .hi-upload__operate-icon{color:#b450de}.theme__lavender.hi-upload .hi-upload__item-tips .icon-tishi{color:#b450de}.theme__lavender.hi-upload--avatar .hi-upload__item--upload:hover,.theme__lavender.hi-upload--photo .hi-upload__item--upload:hover{border-color:#b450de}.theme__lavender.hi-upload .hi-upload__upstatus-line{background-color:#b450de}.theme__lavender.hi-upload .hi-upload__upstatus-num{color:#b450de}.theme__lavender.hi-upload .hi-upload__loading-bar{background:#b450de}.theme__blue.hi-upload--drag:hover:not(.hi-upload--nohover){border-color:#3da8f5}.theme__blue.hi-upload--drag .hi-upload__operate-icon{color:#3da8f5}.theme__blue.hi-upload--drag .drop-over{border:1px dashed #3da8f5}.theme__blue.hi-upload--drag .show-drop-content .icon::before{color:#3da8f5}.theme__blue.hi-upload .hi-upload__item-tips{color:#3da8f5}.theme__blue.hi-upload .hi-upload__item-tips .hi-upload__operate-icon{color:#3da8f5}.theme__blue.hi-upload .hi-upload__item-tips .icon-tishi{color:#3da8f5}.theme__blue.hi-upload--avatar .hi-upload__item--upload:hover,.theme__blue.hi-upload--photo .hi-upload__item--upload:hover{border-color:#3da8f5}.theme__blue.hi-upload .hi-upload__upstatus-line{background-color:#3da8f5}.theme__blue.hi-upload .hi-upload__upstatus-num{color:#3da8f5}.theme__blue.hi-upload .hi-upload__loading-bar{background:#3da8f5}.theme__purple.hi-upload--drag:hover:not(.hi-upload--nohover){border-color:#8a8acb}.theme__purple.hi-upload--drag .hi-upload__operate-icon{color:#8a8acb}.theme__purple.hi-upload--drag .drop-over{border:1px dashed #8a8acb}.theme__purple.hi-upload--drag .show-drop-content .icon::before{color:#8a8acb}.theme__purple.hi-upload .hi-upload__item-tips{color:#8a8acb}.theme__purple.hi-upload .hi-upload__item-tips .hi-upload__operate-icon{color:#8a8acb}.theme__purple.hi-upload .hi-upload__item-tips .icon-tishi{color:#8a8acb}.theme__purple.hi-upload--avatar .hi-upload__item--upload:hover,.theme__purple.hi-upload--photo .hi-upload__item--upload:hover{border-color:#8a8acb}.theme__purple.hi-upload .hi-upload__upstatus-line{background-color:#8a8acb}.theme__purple.hi-upload .hi-upload__upstatus-num{color:#8a8acb}.theme__purple.hi-upload .hi-upload__loading-bar{background:#8a8acb}
package/es/upload/tool.js CHANGED
@@ -33,7 +33,6 @@ var AJAX = function AJAX(obj) {
33
33
  if (obj.success) {
34
34
  obj.success(JSON.parse(ajaxObj.responseText));
35
35
  }
36
- } else {// console.log(JSON.parse(ajaxObj))
37
36
  }
38
37
  }
39
38
  }; // --------------------------------------------
@@ -1,69 +1,56 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
3
7
  Object.defineProperty(exports, "__esModule", {
4
8
  value: true
5
9
  });
6
10
  exports["default"] = void 0;
7
11
 
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _reactDom = require("react-dom");
11
-
12
- var _reactAddonsCssTransitionGroup = _interopRequireDefault(require("react-addons-css-transition-group"));
13
-
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
15
-
16
- var _classnames = _interopRequireDefault(require("classnames"));
17
-
18
- var _icon = _interopRequireDefault(require("../icon"));
12
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
13
 
20
- require("./style/preview.js");
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
23
15
 
24
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
25
17
 
26
- 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; }
18
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
27
19
 
28
- 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); }
29
-
30
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
20
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
31
21
 
32
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
22
+ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
33
23
 
34
- 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; }
24
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
35
25
 
36
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
37
-
38
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
39
-
40
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
26
+ var _react = _interopRequireWildcard(require("react"));
41
27
 
42
- 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); }
28
+ var _reactDom = require("react-dom");
43
29
 
44
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
+ var _reactAddonsCssTransitionGroup = _interopRequireDefault(require("react-addons-css-transition-group"));
45
31
 
46
- 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); }; }
32
+ var _propTypes = _interopRequireDefault(require("prop-types"));
47
33
 
48
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
34
+ var _classnames = _interopRequireDefault(require("classnames"));
49
35
 
50
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
36
+ var _icon = _interopRequireDefault(require("../../icon"));
51
37
 
52
- 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; } }
38
+ require("./style/preview.js");
53
39
 
54
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
40
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
55
41
 
56
- var Preview = /*#__PURE__*/function (_Component) {
57
- _inherits(Preview, _Component);
42
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
58
43
 
59
- var _super = _createSuper(Preview);
44
+ var Preview =
45
+ /*#__PURE__*/
46
+ function (_Component) {
47
+ (0, _inherits2["default"])(Preview, _Component);
60
48
 
61
49
  function Preview(props) {
62
50
  var _this;
63
51
 
64
- _classCallCheck(this, Preview);
65
-
66
- _this = _super.call(this, props);
52
+ (0, _classCallCheck2["default"])(this, Preview);
53
+ _this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(Preview).call(this, props));
67
54
  _this.state = {
68
55
  extraClass: '',
69
56
  style: {
@@ -87,16 +74,16 @@ var Preview = /*#__PURE__*/function (_Component) {
87
74
  };
88
75
  _this.node = document.createElement('div');
89
76
  document.body.appendChild(_this.node);
90
- _this.imgRef = /*#__PURE__*/_react["default"].createRef();
91
- _this.previewRef = /*#__PURE__*/_react["default"].createRef();
92
- _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_this));
93
- _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));
94
- _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_this));
95
- _this.handleMouseWheel = _this.handleMouseWheel.bind(_assertThisInitialized(_this));
77
+ _this.imgRef = _react["default"].createRef();
78
+ _this.previewRef = _react["default"].createRef();
79
+ _this.handleMouseDown = _this.handleMouseDown.bind((0, _assertThisInitialized2["default"])(_this));
80
+ _this.handleMouseMove = _this.handleMouseMove.bind((0, _assertThisInitialized2["default"])(_this));
81
+ _this.handleMouseUp = _this.handleMouseUp.bind((0, _assertThisInitialized2["default"])(_this));
82
+ _this.handleMouseWheel = _this.handleMouseWheel.bind((0, _assertThisInitialized2["default"])(_this));
96
83
  return _this;
97
84
  }
98
85
 
99
- _createClass(Preview, [{
86
+ (0, _createClass2["default"])(Preview, [{
100
87
  key: "componentDidMount",
101
88
  value: function componentDidMount() {
102
89
  this.loadImg(this.state.activeIndex);
@@ -384,60 +371,59 @@ var Preview = /*#__PURE__*/function (_Component) {
384
371
  compileStyle = _this$state.compileStyle,
385
372
  isLoaded = _this$state.isLoaded,
386
373
  activeIndex = _this$state.activeIndex;
387
- return /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react["default"].createElement(_reactAddonsCssTransitionGroup["default"], {
374
+ return (0, _reactDom.createPortal)(_react["default"].createElement(_reactAddonsCssTransitionGroup["default"], {
388
375
  transitionName: "hi-preview",
389
376
  transitionEnterTimeout: 50,
390
377
  transitionLeaveTimeout: 50,
391
378
  component: "div"
392
- }, /*#__PURE__*/_react["default"].createElement("div", {
379
+ }, _react["default"].createElement("div", {
393
380
  key: 1,
394
381
  ref: this.previewRef,
395
382
  className: (0, _classnames["default"])('hi-preview', extraClass, {
396
383
  'hi-preview--hide': !show
397
384
  }),
398
385
  onMouseMove: this.handleMouseMove
399
- }, isLoaded && /*#__PURE__*/_react["default"].createElement("img", {
386
+ }, isLoaded && _react["default"].createElement("img", {
400
387
  ref: this.imgRef,
401
388
  src: images[activeIndex].url,
402
389
  style: _objectSpread({}, compileStyle),
403
390
  onMouseDown: this.handleMouseDown,
404
391
  onMouseUp: this.handleMouseUp,
405
392
  className: "hi-preview__image"
406
- }), /*#__PURE__*/_react["default"].createElement("div", {
393
+ }), _react["default"].createElement("div", {
407
394
  className: "hi-preview-toolbar",
408
395
  onClick: function onClick(e) {
409
396
  e.stopPropagation();
410
397
  }
411
- }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
412
- name: "zoom-out",
413
- onClick: this.clickEvent.bind(this, 'zoomIn')
414
- }), /*#__PURE__*/_react["default"].createElement(_icon["default"], {
398
+ }, _react["default"].createElement(_icon["default"], {
415
399
  name: "zoom-in",
400
+ onClick: this.clickEvent.bind(this, 'zoomIn')
401
+ }), _react["default"].createElement(_icon["default"], {
402
+ name: "zoom-out",
416
403
  onClick: this.clickEvent.bind(this, 'zoomOut')
417
- }), /*#__PURE__*/_react["default"].createElement(_icon["default"], {
404
+ }), _react["default"].createElement(_icon["default"], {
418
405
  name: "left",
419
406
  onClick: this.clickEvent.bind(this, 'prev')
420
- }), /*#__PURE__*/_react["default"].createElement(_icon["default"], {
407
+ }), _react["default"].createElement(_icon["default"], {
421
408
  name: "ratio",
422
409
  onClick: this.clickEvent.bind(this, 'reset')
423
- }), /*#__PURE__*/_react["default"].createElement(_icon["default"], {
410
+ }), _react["default"].createElement(_icon["default"], {
424
411
  name: "right",
425
412
  onClick: this.clickEvent.bind(this, 'next')
426
- }), /*#__PURE__*/_react["default"].createElement(_icon["default"], {
413
+ }), _react["default"].createElement(_icon["default"], {
427
414
  name: "rotate-left",
428
415
  onClick: this.clickEvent.bind(this, 'leftRotate')
429
- }), /*#__PURE__*/_react["default"].createElement(_icon["default"], {
416
+ }), _react["default"].createElement(_icon["default"], {
430
417
  name: "rotate-right",
431
418
  onClick: this.clickEvent.bind(this, 'rightRotate')
432
- })), /*#__PURE__*/_react["default"].createElement("div", {
419
+ })), _react["default"].createElement("div", {
433
420
  className: "hi-preview__close",
434
421
  onClick: this.onClose.bind(this)
435
- }, /*#__PURE__*/_react["default"].createElement("img", {
422
+ }, _react["default"].createElement("img", {
436
423
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAZGklEQVR4Xu2dC5QVxZnHv6/v5TE+QMAYNIpsHEVHmDu3emVPTASV5SVrjHmtoDGauNHFkAQjEUWPGhWFGNfEVwibRDYSTUJyoub4zEYii0lIqu6dgYyIGAFRwTDoIOwwzJ3+9tRwySICc7u6+lHdVefMGTlWfY9/1W9ud9+urxBsswpYBQ6oAFptrAJWgQMrYAGxq8MqcBAFLCB2eVgFLCB2DVgF1BSwnyBqutlRGVHAApKRibZpqilgAVHTzY7KiAIWkIxMtE1TTQELiJpudlRGFLCAZGSibZpqClhA1HSzozKigAUk4okeNWrUoFwuNxAR5c8AABgof+S/q/8tI2ononb5e8+P/Lf8KZfL70QccqbdWUD0T7/T2Nh4fD6fPwkATkTEk4joJEQ8EQCOB4BcQJfdALCOiF5GxDVEtAYRX+7u7l5TLpfXAwAFtG+H76WABSTgcigUCiflcrmxiDieiEYi4ikBTQYaTkQvImKZiJ7zPG9puVx+OZDBjA+2gPhcAE1NTSc6jnMmIp5JRPL3MT5NRNqdiF4HgKWIuJSIlgoh1kYagOHOLCA1TCBj7BREnEZEFyBifQ1DE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gidy4VCqVnk/7Y9rep/fgPSwg/hTMFQoFN5/PjyGiMxDxYwZ8tyJL6shqhcsqlcqy5uZmDgDd/tLObm8LSMC5Z4w1IuJHAeAMImpCRFnTK7ZGRC8iYsnzvGWO48iDZ1bGFkwKHFtA9E+i09TUNCyXy51ERCchovx9ovwNAMfL07UCupR//dcT0RpEXENEL8vfXV1dL7e0tKyzl0wB1d1nuAVEr569Whs1atSgXC43EBHlzwAAkPWIe/5d/W9po52I2uXvPT/y3/KnXC6/06sT20GbAhYQbVJaQ2lUwAKSxlm1OWlTwAKiTUprKI0KWEDSOKs2J20KWEC0SWkNpVEBC0gaZ9XmpE0BC4g2Ka2hNCpgAUnjrNqctClgAdEmpTWURgUsIGmcVZuTNgUsINqktIbSqIAFJI2zanPSpsD/AXXskF+F6TXSAAAAAElFTkSuQmCC"
437
424
  })))), this.node);
438
425
  }
439
426
  }]);
440
-
441
427
  return Preview;
442
428
  }(_react.Component);
443
429