@hi-ui/hiui 2.15.10 → 2.15.11

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 (340) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/es/_util/warning.js +2 -2
  3. package/es/alert/__test__/index.test.js +67 -0
  4. package/es/alert/index.js +147 -6
  5. package/es/alert/style/index.css +1 -1
  6. package/es/badge/index.js +87 -9
  7. package/es/badge/style/index.css +1 -1
  8. package/es/badge/style/index.js +0 -0
  9. package/es/button/Button.js +51 -59
  10. package/es/button/ButtonGroup.js +31 -23
  11. package/es/button/IconLoading.js +2 -2
  12. package/es/button/__test__/index.test.js +29 -0
  13. package/es/button/index.js +2 -3
  14. package/es/button/style/index.css +1 -1
  15. package/es/card/index.js +42 -54
  16. package/es/card/style/index.css +1 -1
  17. package/es/cascader/Cascader.js +116 -181
  18. package/es/cascader/__test__/index.test.js +283 -0
  19. package/es/cascader/index.js +2 -5
  20. package/es/cascader/menu.js +155 -0
  21. package/es/cascader/style/cascader.css +1 -1
  22. package/es/cascader/style/menu.css +1 -1
  23. package/es/checkbox/{checkbox-legacy/Base.js → Base.js} +31 -46
  24. package/es/checkbox/CheckBox.js +185 -0
  25. package/es/checkbox/index.js +4 -13
  26. package/es/checkbox/style/index.css +1 -1
  27. package/es/collapse/__test__/index.test.js +58 -0
  28. package/es/collapse/index.js +93 -79
  29. package/es/collapse/style/index.css +1 -1
  30. package/es/confirm/index.js +50 -37
  31. package/es/context/index.js +37 -39
  32. package/es/counter/__test__/index.test.js +52 -0
  33. package/es/counter/index.js +270 -6
  34. package/es/counter/style/index.css +1 -1
  35. package/es/date-picker/BasePicker.js +288 -374
  36. package/es/date-picker/Calender.js +90 -326
  37. package/es/date-picker/DatePanel.js +186 -175
  38. package/es/date-picker/DatePicker.js +51 -151
  39. package/es/date-picker/DateRangePanel.js +181 -253
  40. package/es/date-picker/Modal.js +25 -15
  41. package/es/date-picker/Time.js +336 -230
  42. package/es/date-picker/TimePanel.js +32 -27
  43. package/es/date-picker/TimePeriodPanel.js +32 -21
  44. package/es/date-picker/TimePicker.js +40 -42
  45. package/es/date-picker/TimeRangePanel.js +42 -32
  46. package/es/date-picker/Type.js +1 -5
  47. package/es/date-picker/WeekRangePanel.js +150 -237
  48. package/es/date-picker/constants.js +28 -14
  49. package/es/date-picker/dateUtil.js +52 -221
  50. package/es/date-picker/index.js +2 -5
  51. package/es/date-picker/style/index.css +1 -1
  52. package/es/date-picker/util.js +8 -101
  53. package/es/dropdown/Dropdown.js +199 -193
  54. package/es/dropdown/{tests → __test__}/index.test.js +2 -2
  55. package/es/dropdown/index.js +4 -73
  56. package/es/dropdown/style/index.css +1 -1
  57. package/es/dropdown/style/index.js +2 -0
  58. package/es/ficon/index.js +23 -13
  59. package/es/form/index.js +171 -6
  60. package/es/form/{Item.js → item.js} +53 -53
  61. package/es/form/style/index.css +1 -1
  62. package/es/grid/index.js +37 -25
  63. package/es/icon/index.js +32 -21
  64. package/es/index.js +9 -61
  65. package/es/input/index.js +345 -28
  66. package/es/input/style/index.css +1 -1
  67. package/es/input/util.js +18 -26
  68. package/es/lib/withDragDropContext.js +2 -2
  69. package/es/loading/index.js +129 -5
  70. package/es/loading/style/index.css +0 -0
  71. package/es/loading/style/index.js +0 -0
  72. package/es/locales/en-US.js +11 -45
  73. package/es/locales/index.js +2 -16
  74. package/es/locales/zh-CN.js +12 -46
  75. package/es/menu/Item.js +41 -32
  76. package/es/menu/ItemGroup.js +81 -0
  77. package/es/menu/SubMenu.js +74 -55
  78. package/es/menu/Title.js +42 -36
  79. package/es/menu/index.js +419 -12
  80. package/es/menu/style/index.css +1 -1
  81. package/es/modal/__test__/index.test.js +123 -0
  82. package/es/modal/index.js +61 -77
  83. package/es/modal/style/index.css +1 -1
  84. package/es/nav-menu/NavMenu.js +45 -31
  85. package/es/nav-menu/__test__/index.test.js +2 -2
  86. package/es/nav-menu/index.js +2 -2
  87. package/es/notification/__test__/index.test.js +56 -0
  88. package/es/notification/index.js +231 -68
  89. package/es/notification/style/index.css +1 -1
  90. package/es/notification/style/index.js +0 -0
  91. package/es/pagination/Pager.js +8 -6
  92. package/es/pagination/Pagination.js +115 -124
  93. package/es/pagination/__test__/index.test.js +140 -0
  94. package/es/pagination/index.js +8 -9
  95. package/es/pagination/style/index.css +1 -1
  96. package/es/panel/index.js +33 -23
  97. package/es/popover/__test__/index.test.js +2 -2
  98. package/es/popover/index.js +69 -71
  99. package/es/popper/index.js +54 -64
  100. package/es/popper/style/index.css +1 -1
  101. package/es/progress/BarProgress.js +43 -109
  102. package/es/progress/CircleProgress.js +10 -9
  103. package/es/progress/DashboardProgress.js +9 -7
  104. package/es/progress/index.js +100 -8
  105. package/es/progress/style/index.css +1 -1
  106. package/es/radio/{radio-legacy/__test__ → __test__}/index.test.js +10 -10
  107. package/es/radio/index.js +216 -10
  108. package/es/radio/style/index.css +1 -1
  109. package/es/rate/Icons.js +2 -2
  110. package/es/rate/Rate.js +90 -65
  111. package/es/rate/__test__/index.test.js +54 -0
  112. package/es/rate/index.js +2 -5
  113. package/es/rate/style/index.css +1 -1
  114. package/es/select/Option.js +93 -0
  115. package/es/select/Select.js +253 -325
  116. package/es/select/SelectDropdown.js +63 -215
  117. package/es/select/SelectInput.js +54 -88
  118. package/es/select/__test__/index.test.js +429 -0
  119. package/es/select/index.js +4 -6
  120. package/es/select/style/select-dropdown.css +1 -1
  121. package/es/select/style/select-input.css +1 -1
  122. package/es/stepper/index.js +127 -21
  123. package/es/stepper/style/index.css +1 -1
  124. package/es/style/color/colors.css +0 -0
  125. package/es/style/icon/diyIcon.css +1 -1
  126. package/es/style/icon/index.css +1 -1
  127. package/es/style/index.css +0 -0
  128. package/es/style/mixins/colors.css +0 -0
  129. package/es/style/mixins/index.css +0 -0
  130. package/es/style/theme/dark.css +0 -0
  131. package/es/style/theme/default.css +0 -0
  132. package/es/switch/{__tests__ → __test__}/index.test.js +2 -31
  133. package/es/switch/index.js +36 -24
  134. package/es/switch/style/index.css +1 -1
  135. package/es/table/__test__/index.test.js +73 -0
  136. package/es/table/{Body.js → body.js} +52 -36
  137. package/es/table/checkbox/index.js +36 -33
  138. package/es/table/clickOuterside.js +115 -0
  139. package/es/table/{Footer.js → footer.js} +41 -24
  140. package/es/table/{Header.js → header.js} +54 -41
  141. package/es/table/index.js +300 -262
  142. package/es/table/menu/index.js +34 -32
  143. package/es/table/pover.js +154 -0
  144. package/es/table/prefix.js +2 -2
  145. package/es/table/style/Table.css +1 -1
  146. package/es/table/style/index.css +1 -1
  147. package/es/table/tableContent.js +120 -0
  148. package/es/tabs/ItemDropdown.js +51 -39
  149. package/es/tabs/TabPane.js +35 -25
  150. package/es/tabs/Tabs.js +91 -98
  151. package/es/tabs/index.js +3 -9
  152. package/es/tabs/style/index.css +1 -1
  153. package/es/timeline/__test__/index.test.js +49 -0
  154. package/es/timeline/foldingItem.js +82 -0
  155. package/es/timeline/index.js +127 -203
  156. package/es/timeline/style/index.css +1 -1
  157. package/es/tooltip/__test__/index.test.js +67 -0
  158. package/es/tooltip/index.js +39 -86
  159. package/es/tooltip/style/index.css +1 -1
  160. package/es/transfer/Item.js +44 -53
  161. package/es/transfer/__test__/index.test.js +11 -0
  162. package/es/transfer/index.js +443 -4
  163. package/es/transfer/style/index.css +1 -1
  164. package/es/tree/Tree.js +86 -76
  165. package/es/tree/TreeDivider.js +3 -3
  166. package/es/tree/TreeItem.js +108 -204
  167. package/es/tree/TreeNode.js +318 -457
  168. package/es/tree/index.js +2 -9
  169. package/es/tree/style/index.css +1 -1
  170. package/es/tree/util.js +257 -9
  171. package/es/upload/{upload-legacy/Preview.js → Preview.js} +39 -33
  172. package/es/upload/Upload.js +193 -289
  173. package/es/upload/UploadAvatar.js +58 -44
  174. package/es/upload/UploadClick.js +45 -49
  175. package/es/upload/UploadDrag.js +43 -44
  176. package/es/upload/UploadPhoto.js +55 -70
  177. package/es/upload/UploadPictureCard.js +44 -39
  178. package/es/upload/index.js +71 -8
  179. package/es/upload/style/index.css +1 -1
  180. package/es/upload/tool.js +1 -0
  181. package/package.json +4 -1
  182. package/es/_util/SwitchVersion.js +0 -44
  183. package/es/_util/depreactedPropsCompat.js +0 -58
  184. package/es/_util/index.js +0 -32
  185. package/es/alert/Alert.js +0 -134
  186. package/es/alert/__tests__/index.test.js +0 -88
  187. package/es/badge/Badge.js +0 -90
  188. package/es/badge/__tests__/index.test.js +0 -82
  189. package/es/breadcrumb/__tests__/index.test.js +0 -61
  190. package/es/breadcrumb/index.js +0 -93
  191. package/es/breadcrumb/style/index.css +0 -1
  192. package/es/button/__tests__/index.test.js +0 -219
  193. package/es/card/__tests__/index.test.js +0 -169
  194. package/es/carousel/__tests__/index.test.js +0 -104
  195. package/es/carousel/index.js +0 -227
  196. package/es/carousel/style/index.css +0 -1
  197. package/es/carousel/style/index.js +0 -3
  198. package/es/cascader/Menu.js +0 -174
  199. package/es/cascader/__tests__/index.test.js +0 -389
  200. package/es/checkbox/Checkbox.js +0 -144
  201. package/es/checkbox/Group.js +0 -202
  202. package/es/checkbox/__tests__/index.test.js +0 -226
  203. package/es/checkbox/checkbox-legacy/CheckBox.js +0 -165
  204. package/es/checkbox/checkbox-legacy/index.js +0 -15
  205. package/es/checkbox/checkbox-legacy/style/index.css +0 -1
  206. package/es/checkbox/checkbox-legacy/style/index.js +0 -3
  207. package/es/collapse/__tests__/index.test.js +0 -111
  208. package/es/counter/Counter.js +0 -343
  209. package/es/counter/__tests__/index.test.js +0 -134
  210. package/es/counter/counter-legacy/index.js +0 -271
  211. package/es/date-picker/TimeList.js +0 -254
  212. package/es/date-picker/YMRangePanel.js +0 -372
  213. package/es/date-picker/__tests__/index.test.js +0 -961
  214. package/es/date-picker/datepicker-legacy/BasePicker.js +0 -519
  215. package/es/date-picker/datepicker-legacy/Calender.js +0 -430
  216. package/es/date-picker/datepicker-legacy/DatePanel.js +0 -463
  217. package/es/date-picker/datepicker-legacy/DatePicker.js +0 -107
  218. package/es/date-picker/datepicker-legacy/DateRangePanel.js +0 -496
  219. package/es/date-picker/datepicker-legacy/Modal.js +0 -71
  220. package/es/date-picker/datepicker-legacy/Time.js +0 -413
  221. package/es/date-picker/datepicker-legacy/TimePanel.js +0 -93
  222. package/es/date-picker/datepicker-legacy/TimePeriodPanel.js +0 -126
  223. package/es/date-picker/datepicker-legacy/TimePicker.js +0 -82
  224. package/es/date-picker/datepicker-legacy/TimeRangePanel.js +0 -98
  225. package/es/date-picker/datepicker-legacy/Type.js +0 -31
  226. package/es/date-picker/datepicker-legacy/WeekRangePanel.js +0 -345
  227. package/es/date-picker/datepicker-legacy/constants.js +0 -79
  228. package/es/date-picker/datepicker-legacy/dateUtil.js +0 -258
  229. package/es/date-picker/datepicker-legacy/index.js +0 -15
  230. package/es/date-picker/datepicker-legacy/local.js +0 -11
  231. package/es/date-picker/datepicker-legacy/style/index.css +0 -1
  232. package/es/date-picker/datepicker-legacy/style/index.js +0 -3
  233. package/es/date-picker/datepicker-legacy/style/timepicker.css +0 -1
  234. package/es/date-picker/datepicker-legacy/util.js +0 -60
  235. package/es/date-picker/toLunar.js +0 -172
  236. package/es/dropdown/DropdownButton.js +0 -106
  237. package/es/dropdown/DropdownMenu.js +0 -111
  238. package/es/dropdown/DropdownMenuItem.js +0 -178
  239. package/es/dropdown/__tests__/index.test.js +0 -317
  240. package/es/dropdown/utils.js +0 -35
  241. package/es/form/Form.js +0 -184
  242. package/es/form/__tests__/index.test.js +0 -575
  243. package/es/grid/__tests__/index.test.js +0 -104
  244. package/es/input/Input.js +0 -412
  245. package/es/input/__tests__/index.test.js +0 -381
  246. package/es/input/input-legacy/index.js +0 -353
  247. package/es/input/input-legacy/util.js +0 -176
  248. package/es/loading/Loading.js +0 -181
  249. package/es/loading/__tests__/index.test.js +0 -110
  250. package/es/locales/zh-Hant-HK.js +0 -121
  251. package/es/locales/zh-Hant-TW.js +0 -123
  252. package/es/menu/Menu.js +0 -422
  253. package/es/menu/__tests__/index.test.js +0 -279
  254. package/es/message/__tests__/index.test.js +0 -75
  255. package/es/message/index.js +0 -58
  256. package/es/message/style/index.css +0 -1
  257. package/es/message/style/index.js +0 -5
  258. package/es/modal/__tests__/index.test.js +0 -178
  259. package/es/nav-menu/__tests__/index.test.js +0 -27
  260. package/es/notice/Notice.js +0 -142
  261. package/es/notice/NoticeContainer.js +0 -113
  262. package/es/notice/__tests__/index.test.js +0 -174
  263. package/es/notice/index.js +0 -66
  264. package/es/notice/style/index.css +0 -1
  265. package/es/notice/style/index.js +0 -5
  266. package/es/notification/HandleNotification/index.js +0 -224
  267. package/es/notification/HandleNotification/style/index.css +0 -1
  268. package/es/notification/HandleNotification/style/index.js +0 -5
  269. package/es/notification/__tests__/index.test.js +0 -118
  270. package/es/pagination/__tests__/index.test.js +0 -248
  271. package/es/popover/__tests__/index.test.js +0 -152
  272. package/es/preview/index.js +0 -527
  273. package/es/preview/style/index.css +0 -1
  274. package/es/preview/style/index.js +0 -3
  275. package/es/progress/Progress.js +0 -110
  276. package/es/progress/__tests__/index.test.js +0 -131
  277. package/es/radio/Group.js +0 -203
  278. package/es/radio/Radio.js +0 -151
  279. package/es/radio/__tests__/index.test.js +0 -128
  280. package/es/radio/radio-legacy/index.js +0 -222
  281. package/es/radio/radio-legacy/style/index.css +0 -1
  282. package/es/radio/radio-legacy/style/index.js +0 -3
  283. package/es/rate/__tests__/index.test.js +0 -124
  284. package/es/select/__tests__/index.test.js +0 -505
  285. package/es/select/select-legacy/Option.js +0 -81
  286. package/es/select/select-legacy/Select.js +0 -710
  287. package/es/select/select-legacy/SelectDropdown.js +0 -164
  288. package/es/select/select-legacy/SelectInput.js +0 -312
  289. package/es/select/select-legacy/common.js +0 -19
  290. package/es/select/select-legacy/index.js +0 -16
  291. package/es/stepper/Stepper.js +0 -151
  292. package/es/stepper/__tests__/index.test.js +0 -161
  293. package/es/table/ClickOuterside.js +0 -103
  294. package/es/table/TableContent.js +0 -109
  295. package/es/table/__tests__/index.test.js +0 -133
  296. package/es/table/checkbox/style/index.css +0 -1
  297. package/es/table/checkbox/style/index.js +0 -3
  298. package/es/tabs/__tests__/index.test.js +0 -333
  299. package/es/tabs/tabs-legacy/ItemDropdown.js +0 -170
  300. package/es/tabs/tabs-legacy/TabPane.js +0 -78
  301. package/es/tabs/tabs-legacy/Tabs.js +0 -299
  302. package/es/tabs/tabs-legacy/index.js +0 -18
  303. package/es/tabs/tabs-legacy/style/index.css +0 -1
  304. package/es/tabs/tabs-legacy/style/index.js +0 -3
  305. package/es/tag/__tests__/index.test.js +0 -46
  306. package/es/tag/index.js +0 -94
  307. package/es/tag/style/index.css +0 -1
  308. package/es/tag/style/index.js +0 -3
  309. package/es/timeline/__tests__/index.test.js +0 -198
  310. package/es/tooltip/__tests__/index.test.js +0 -170
  311. package/es/transfer/Transfer.js +0 -566
  312. package/es/transfer/__tests__/index.test.js +0 -210
  313. package/es/tree/IconLoading.js +0 -38
  314. package/es/tree/__tests__/index.test.js +0 -603
  315. package/es/tree/tree-legacy/Tree.js +0 -337
  316. package/es/tree/tree-legacy/TreeDivider.js +0 -25
  317. package/es/tree/tree-legacy/TreeItem.js +0 -333
  318. package/es/tree/tree-legacy/TreeNode.js +0 -719
  319. package/es/tree/tree-legacy/index.js +0 -13
  320. package/es/tree/tree-legacy/style/index.css +0 -1
  321. package/es/tree/tree-legacy/style/index.js +0 -3
  322. package/es/tree/tree-legacy/util.js +0 -434
  323. package/es/upload/__tests__/index.test.js +0 -760
  324. package/es/upload/main.js +0 -91
  325. package/es/upload/upload-legacy/Upload.js +0 -435
  326. package/es/upload/upload-legacy/UploadAvatar.js +0 -322
  327. package/es/upload/upload-legacy/UploadClick.js +0 -125
  328. package/es/upload/upload-legacy/UploadDrag.js +0 -180
  329. package/es/upload/upload-legacy/UploadPhoto.js +0 -183
  330. package/es/upload/upload-legacy/UploadPictureCard.js +0 -126
  331. package/es/upload/upload-legacy/index.js +0 -75
  332. package/es/upload/upload-legacy/style/index.css +0 -1
  333. package/es/upload/upload-legacy/style/index.js +0 -5
  334. package/es/upload/upload-legacy/tool.js +0 -84
  335. package/es/watermark/index.js +0 -101
  336. package/es/watermark/watermark.js +0 -252
  337. /package/es/checkbox/{checkbox-legacy/common.js → common.js} +0 -0
  338. /package/es/{breadcrumb/style → style}/index.js +0 -0
  339. /package/es/upload/{upload-legacy/style → style}/preview.css +0 -0
  340. /package/es/upload/{upload-legacy/style → style}/preview.js +0 -0
@@ -1,52 +1,59 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
3
  Object.defineProperty(exports, "__esModule", {
8
4
  value: true
9
5
  });
10
6
  exports["default"] = void 0;
11
7
 
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
+ var _react = _interopRequireWildcard(require("react"));
13
9
 
14
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
+ var _reactDom = _interopRequireDefault(require("react-dom"));
15
11
 
16
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
+ var _prefix = _interopRequireDefault(require("../prefix"));
17
13
 
18
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
15
 
20
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
16
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
21
17
 
22
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
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; }
23
19
 
24
- var _react = _interopRequireWildcard(require("react"));
20
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
21
 
26
- var _reactDom = _interopRequireDefault(require("react-dom"));
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); }
27
23
 
28
- var _prefix = _interopRequireDefault(require("../prefix"));
24
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
25
 
30
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
26
+ 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); } }
31
27
 
32
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && 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; }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
33
29
 
34
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
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); }
35
31
 
36
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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
+
36
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
37
+
38
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
+
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; } }
41
+
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
43
 
38
44
  // import {scrollTop, scrollLeft} from '../tool'
39
45
  var HeaderMenu = /*#__PURE__*/function (_Component) {
40
- (0, _inherits2["default"])(HeaderMenu, _Component);
46
+ _inherits(HeaderMenu, _Component);
41
47
 
42
48
  var _super = _createSuper(HeaderMenu);
43
49
 
44
50
  function HeaderMenu() {
45
- (0, _classCallCheck2["default"])(this, HeaderMenu);
51
+ _classCallCheck(this, HeaderMenu);
52
+
46
53
  return _super.apply(this, arguments);
47
54
  }
48
55
 
49
- (0, _createClass2["default"])(HeaderMenu, [{
56
+ _createClass(HeaderMenu, [{
50
57
  key: "render",
51
58
  value: function render() {
52
59
  var _this$props = this.props,
@@ -54,26 +61,25 @@ var HeaderMenu = /*#__PURE__*/function (_Component) {
54
61
  freezeCol = _this$props.freezeCol,
55
62
  hideCol = _this$props.hideCol,
56
63
  index = _this$props.index,
57
- freeze = _this$props.freeze,
58
- canHideCol = _this$props.canHideCol,
59
- localeDatas = _this$props.localeDatas;
64
+ freeze = _this$props.freeze;
60
65
  return /*#__PURE__*/_react["default"].createElement("div", {
61
66
  className: (0, _prefix["default"])('table-header-menu')
62
67
  }, /*#__PURE__*/_react["default"].createElement("p", {
63
68
  onClick: function onClick(e) {
64
69
  return highlighCol(index);
65
70
  }
66
- }, localeDatas.table.highlight), freeze && /*#__PURE__*/_react["default"].createElement("p", {
71
+ }, "\u9AD8\u4EAE"), freeze && /*#__PURE__*/_react["default"].createElement("p", {
67
72
  onClick: function onClick(e) {
68
73
  return freezeCol(index);
69
74
  }
70
- }, localeDatas.table.freeze), canHideCol && /*#__PURE__*/_react["default"].createElement("p", {
75
+ }, "\u51BB\u7ED3"), /*#__PURE__*/_react["default"].createElement("p", {
71
76
  onClick: function onClick(e) {
72
77
  return hideCol(index);
73
78
  }
74
- }, localeDatas.table.hide));
79
+ }, "\u9690\u85CF"));
75
80
  }
76
81
  }]);
82
+
77
83
  return HeaderMenu;
78
84
  }(_react.Component);
79
85
 
@@ -94,18 +100,14 @@ document.addEventListener('click', function () {
94
100
  var _default = {
95
101
  show: function show(e, cbs, key, freeze) {
96
102
  var size = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'normal';
97
- var canHideCol = arguments.length > 5 ? arguments[5] : undefined;
98
- var localeDatas = arguments.length > 6 ? arguments[6] : undefined;
99
103
  div && hide();
100
104
  div = document.createElement('div');
101
105
  div.className = 'hi-table-header-menu-' + size;
102
106
  div.style.zIndex = '99999';
103
107
 
104
- _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(HeaderMenu, (0, _extends2["default"])({}, cbs, {
105
- canHideCol: canHideCol,
108
+ _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(HeaderMenu, _extends({}, cbs, {
106
109
  index: key,
107
- freeze: freeze,
108
- localeDatas: localeDatas
110
+ freeze: freeze
109
111
  })), div);
110
112
 
111
113
  div.style.position = 'absolute';
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _reactDom = _interopRequireDefault(require("react-dom"));
11
+
12
+ require("./pover.css");
13
+
14
+ var _tool = require("./tool");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
19
+
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
+
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
+
24
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
+
26
+ 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); } }
27
+
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
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
+
36
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
37
+
38
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
+
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; } }
41
+
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
+
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; }
45
+
46
+ var Pover = /*#__PURE__*/function (_Component) {
47
+ _inherits(Pover, _Component);
48
+
49
+ var _super = _createSuper(Pover);
50
+
51
+ function Pover() {
52
+ var _this;
53
+
54
+ _classCallCheck(this, Pover);
55
+
56
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
57
+ args[_key] = arguments[_key];
58
+ }
59
+
60
+ _this = _super.call.apply(_super, [this].concat(args));
61
+
62
+ _defineProperty(_assertThisInitialized(_this), "state", {
63
+ value: ''
64
+ });
65
+
66
+ return _this;
67
+ }
68
+
69
+ _createClass(Pover, [{
70
+ key: "render",
71
+ value: function render() {
72
+ var _this2 = this;
73
+
74
+ var _this$props = this.props,
75
+ slot = _this$props.slot,
76
+ remove = _this$props.remove,
77
+ onOk = _this$props.onOk,
78
+ action = _this$props.action;
79
+ var value = this.state.value;
80
+ var form = null;
81
+
82
+ switch (action) {
83
+ case 'input':
84
+ form = /*#__PURE__*/_react["default"].createElement("input", {
85
+ value: value,
86
+ onChange: function onChange(e) {
87
+ return _this2.setState({
88
+ value: e.target.value
89
+ });
90
+ }
91
+ });
92
+ break;
93
+
94
+ case 'select':
95
+ form = /*#__PURE__*/_react["default"].createElement("select", null, /*#__PURE__*/_react["default"].createElement("option", {
96
+ value: '小孩'
97
+ }, "\u5C0F\u5B69"), /*#__PURE__*/_react["default"].createElement("option", {
98
+ value: '青年'
99
+ }, "\u9752\u5E74"), /*#__PURE__*/_react["default"].createElement("option", {
100
+ value: '老年'
101
+ }, "\u8001\u5E74"));
102
+ break;
103
+
104
+ default:
105
+ break;
106
+ }
107
+
108
+ return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
109
+ className: 'title'
110
+ }, slot), /*#__PURE__*/_react["default"].createElement("div", {
111
+ className: 'form'
112
+ }, form), /*#__PURE__*/_react["default"].createElement("div", {
113
+ className: 'pover-action'
114
+ }, /*#__PURE__*/_react["default"].createElement("span", {
115
+ onClick: remove
116
+ }, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement("span", {
117
+ onClick: function onClick() {
118
+ onOk(value);
119
+ remove();
120
+ }
121
+ }, "\u786E\u5B9A")));
122
+ }
123
+ }]);
124
+
125
+ return Pover;
126
+ }(_react.Component);
127
+
128
+ var _default = function _default(_ref) {
129
+ var target = _ref.target,
130
+ title = _ref.title,
131
+ onOk = _ref.onOk,
132
+ _ref$action = _ref.action,
133
+ action = _ref$action === void 0 ? false : _ref$action;
134
+ target.parentNode.style.position = 'relative';
135
+ var div = document.createElement('div');
136
+ div.className = 'pover';
137
+ div.style.position = 'absolute';
138
+ (0, _tool.insertAfter)(div, target);
139
+
140
+ var remove = function remove() {
141
+ _reactDom["default"].unmountComponentAtNode(div);
142
+
143
+ target.parentNode.removeChild(div);
144
+ };
145
+
146
+ _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(Pover, {
147
+ slot: title,
148
+ remove: remove,
149
+ onOk: onOk,
150
+ action: action
151
+ }), div);
152
+ };
153
+
154
+ exports["default"] = _default;
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
@@ -9,6 +7,8 @@ exports["default"] = _default;
9
7
 
10
8
  var _classnames = _interopRequireDefault(require("classnames"));
11
9
 
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
12
  var name = 'hi';
13
13
 
14
14
  function _default() {
@@ -1 +1 @@
1
- .hi-table-header-menu-small .hi-table-header-menu p{height:44px}.hi-table-header-menu-mini .hi-table-header-menu p{height:32px}.hi-table td,.hi-table th{-webkit-box-sizing:border-box;box-sizing:border-box}.hi-table-container{position:relative}.hi-table .hi-icon.icon-menu{color:#4284f5}.hi-table-pre-header{height:52px;line-height:52px;border-top:1px solid #e6e7e8;padding-left:8px;padding-right:16px}.hi-table-pre-footer{height:52px;line-height:52px;border-bottom:1px solid #e6e7e8;padding-left:8px;padding-right:16px;background:#f7fafe}.hi-table.striped table tr:nth-child(2n){background:#f7fafe}.hi-table.bordered .hi-table-pre-header{border-left:1px solid #e6e7e8;border-right:1px solid #e6e7e8}.hi-table.bordered .hi-table-pre-footer{border-left:1px solid #e6e7e8;border-right:1px solid #e6e7e8}.hi-table.bordered table{border-top:1px solid #e6e7e8}.hi-table.bordered table tr td,.hi-table.bordered table tr th{border-left:1px solid #e6e7e8}.hi-table.bordered table tr td:last-child,.hi-table.bordered table tr th:last-child{border-right:1px solid #e6e7e8}.hi-table.large-pre-header{height:64px;line-height:64px}.hi-table.large-pre-footer{height:64px;line-height:64px}.hi-table.large table tr{height:64px;font-size:14px}.hi-table.large .hi-table-header-menu>p{height:44px !important;font-size:14px}.hi-table.large .hi-table-setting-menu>div{height:44px}.hi-table.small-pre-header{height:44px;line-height:44px}.hi-table.small-pre-footer{height:44px;line-height:44px}.hi-table.small table tr{height:44px;font-size:14px}.hi-table.small .hi-table-header-menu>p{height:44px !important;font-size:14px}.hi-table.small .hi-table-setting-menu>div{height:44px}.hi-table.mini-pre-header{height:32px;line-height:32px}.hi-table.mini-pre-footer{height:32px;line-height:32px}.hi-table.mini table tr{height:32px;font-size:14px}.hi-table.mini .hi-table-header-menu>p{height:32px !important;font-size:32px}.hi-table.mini .hi-table-setting-menu>div{height:32px}.hi-table-header-menu{z-index:999999;background:#fff;border:1px solid #e6e7e8;-webkit-box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);border-radius:2px;width:140px}.hi-table-header-menu p{color:#383e47;text-align:left;margin:0;height:52px;text-indent:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer}.hi-table-header-menu p:hover{background:#f7fafe;color:#4284f5}.hi-table-setting-menu{z-index:999999;background:#fff;border-radius:2px;width:140px}.hi-table-setting-menu>div{color:#383e47;text-align:left;margin:0;padding-left:16px;padding-right:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;height:52px}.hi-table-setting-menu>div:hover{background:#f7fafe;color:#4284f5}.hi-table-setting-menu>div>p:first-child{width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hi-table-setting-menu .active{background:rgba(66,133,244,0.15)}.hi-table-setting-menu.column-menu{position:absolute;right:30px;top:40px;width:220px;max-height:240px;overflow-y:auto}.hi-table-container table{width:100%;border-collapse:separate;background:#fff;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;border-spacing:0}.hi-table-container table col{display:table-column}.hi-table-container table td,.hi-table-container table th{white-space:nowrap;padding-left:8px;padding-right:16px;border-bottom:1px solid #e6e7e8;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-table-container table th{background-color:#f7fafe;color:#83868c;position:relative}.hi-table-container table th i:hover{color:#4284f5}.hi-table-container table td{color:#3b4148;word-break:break-word}.hi-table-container table td.picked{background:#f7fafe}.hi-table-container table tr{-webkit-transition:0.2s;transition:0.2s;height:52px;font-size:14px;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.hi-table-container table tr.picked td{background:#f7fafe}.hi-table-container table tr.expanded{background:#f7fafe}.hi-table-container table tr:hover{background:#f7fafe}.hi-table-body-inner{height:100%}.hi-table-fixed-header>.hi-table-content>.hi-table-scroll>.hi-table-body{position:relative}.hi-table-fixed-header .hi-table-body-inner{overflow:scroll}.hi-table-fixed-header .hi-table-scroll .hi-table-header{overflow:scroll;padding-bottom:20px;margin-bottom:-20px}.hi-table-fixed-left,.hi-table-fixed-right{position:absolute;top:0;overflow:hidden;-webkit-transition:-webkit-box-shadow 0.3s ease;transition:-webkit-box-shadow 0.3s ease;transition:box-shadow 0.3s ease;transition:box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;border-radius:0}.hi-table-fixed-left table,.hi-table-fixed-right table{width:auto}.hi-table-fixed-header .hi-table-fixed-left .hi-table-body-outer .hi-table-fixed,.hi-table-fixed-header .hi-table-fixed-right .hi-table-body-outer .hi-table-fixed{border-radius:0}.hi-table-fixed-left{left:0;-webkit-box-shadow:6px 0 6px -4px rgba(0,0,0,0.15);box-shadow:6px 0 6px -4px rgba(0,0,0,0.15)}.hi-table-fixed-left .hi-table-header{overflow-y:hidden}.hi-table-fixed-left .hi-table-body-inner{margin-right:-20px;padding-right:20px}.hi-table-fixed-header .hi-table-fixed-left .hi-table-body-inner{padding-right:0}.hi-table-fixed-left,.hi-table-fixed-left table{border-radius:4px 0 0 0}.hi-table-fixed-right{right:0;-webkit-box-shadow:-6px 0 6px -4px rgba(0,0,0,0.15);box-shadow:-6px 0 6px -4px rgba(0,0,0,0.15)}.hi-table-fixed-right,.hi-table-fixed-right table{border-radius:0 4px 0 0}.hi-table-fixed-right .hi-table-expanded-row{color:transparent}.hi-table.hi-table-scroll-position-left .hi-table-fixed-left{-webkit-box-shadow:none;box-shadow:none}.hi-table.hi-table-scroll-position-right .hi-table-fixed-right{-webkit-box-shadow:none;box-shadow:none}.hi-table-thead>tr>th.hi-table-selection-column-custom{padding-left:16px;padding-right:0}.hi-table-thead>tr>th.hi-table-selection-column,.hi-table-tbody>tr>td.hi-table-selection-column{text-align:center;width:62px;min-width:62px}.hi-table-thead>tr>th.hi-table-selection-column .hi-radio-wrapper,.hi-table-tbody>tr>td.hi-table-selection-column .hi-radio-wrapper{margin-right:0}.hi-table-placeholder{position:relative;padding:16px;background:#fff;border-bottom:1px solid #e6e7e8;text-align:center;z-index:1}.hi-table-setting{position:absolute;right:10px;top:0;cursor:pointer;width:50px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.theme__orange.hi-table .hi-table-container table th{background-color:rgba(255,102,51,0.1);color:#83868c}.theme__orange.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__orange.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__orange.hi-table .hi-table-container table th i:hover{color:#f63}.theme__orange.hi-table .hi-icon.icon-menu{color:#f63}.theme__orange.hi-table .hi-table-container table tr:hover{background-color:rgba(255,102,51,0.1)}.theme__orange.hi-table a{color:#f63}.theme__orange.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(255,102,51,0.15);color:#f63}.theme__orange.hi-table.striped table tr:nth-child(2n){background:rgba(255,102,51,0.1)}.theme__orange.hi-table .hi-pagination .hi-icon{color:#666}.theme__orange.hi-table .hi-pagination .hi-icon:hover{color:#f63}.theme__orange.hi-table .hi-pagination:hover>span .hi-icon{color:#f63}.theme__cyan.hi-table .hi-table-container table th{background-color:rgba(70,188,153,0.1);color:#83868c}.theme__cyan.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__cyan.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__cyan.hi-table .hi-table-container table th i:hover{color:#46bc99}.theme__cyan.hi-table .hi-icon.icon-menu{color:#46bc99}.theme__cyan.hi-table .hi-table-container table tr:hover{background-color:rgba(70,188,153,0.1)}.theme__cyan.hi-table a{color:#46bc99}.theme__cyan.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(70,188,153,0.15);color:#46bc99}.theme__cyan.hi-table.striped table tr:nth-child(2n){background:rgba(70,188,153,0.1)}.theme__cyan.hi-table .hi-pagination .hi-icon{color:#666}.theme__cyan.hi-table .hi-pagination .hi-icon:hover{color:#46bc99}.theme__cyan.hi-table .hi-pagination:hover>span .hi-icon{color:#46bc99}.theme__magenta.hi-table .hi-table-container table th{background-color:rgba(255,89,117,0.1);color:#83868c}.theme__magenta.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__magenta.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__magenta.hi-table .hi-table-container table th i:hover{color:#ff5975}.theme__magenta.hi-table .hi-icon.icon-menu{color:#ff5975}.theme__magenta.hi-table .hi-table-container table tr:hover{background-color:rgba(255,89,117,0.1)}.theme__magenta.hi-table a{color:#ff5975}.theme__magenta.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(255,89,117,0.15);color:#ff5975}.theme__magenta.hi-table.striped table tr:nth-child(2n){background:rgba(255,89,117,0.1)}.theme__magenta.hi-table .hi-pagination .hi-icon{color:#666}.theme__magenta.hi-table .hi-pagination .hi-icon:hover{color:#ff5975}.theme__magenta.hi-table .hi-pagination:hover>span .hi-icon{color:#ff5975}.theme__lavender.hi-table .hi-table-container table th{background-color:rgba(180,80,222,0.1);color:#83868c}.theme__lavender.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__lavender.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__lavender.hi-table .hi-table-container table th i:hover{color:#b450de}.theme__lavender.hi-table .hi-icon.icon-menu{color:#b450de}.theme__lavender.hi-table .hi-table-container table tr:hover{background-color:rgba(180,80,222,0.1)}.theme__lavender.hi-table a{color:#b450de}.theme__lavender.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(180,80,222,0.15);color:#b450de}.theme__lavender.hi-table.striped table tr:nth-child(2n){background:rgba(180,80,222,0.1)}.theme__lavender.hi-table .hi-pagination .hi-icon{color:#666}.theme__lavender.hi-table .hi-pagination .hi-icon:hover{color:#b450de}.theme__lavender.hi-table .hi-pagination:hover>span .hi-icon{color:#b450de}.theme__blue.hi-table .hi-table-container table th{background-color:rgba(61,168,245,0.1);color:#83868c}.theme__blue.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__blue.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__blue.hi-table .hi-table-container table th i:hover{color:#3da8f5}.theme__blue.hi-table .hi-icon.icon-menu{color:#3da8f5}.theme__blue.hi-table .hi-table-container table tr:hover{background-color:rgba(61,168,245,0.1)}.theme__blue.hi-table a{color:#3da8f5}.theme__blue.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(61,168,245,0.15);color:#3da8f5}.theme__blue.hi-table.striped table tr:nth-child(2n){background:rgba(61,168,245,0.1)}.theme__blue.hi-table .hi-pagination .hi-icon{color:#666}.theme__blue.hi-table .hi-pagination .hi-icon:hover{color:#3da8f5}.theme__blue.hi-table .hi-pagination:hover>span .hi-icon{color:#3da8f5}.theme__purple.hi-table .hi-table-container table th{background-color:rgba(138,138,203,0.1);color:#83868c}.theme__purple.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__purple.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__purple.hi-table .hi-table-container table th i:hover{color:#8a8acb}.theme__purple.hi-table .hi-icon.icon-menu{color:#8a8acb}.theme__purple.hi-table .hi-table-container table tr:hover{background-color:rgba(138,138,203,0.1)}.theme__purple.hi-table a{color:#8a8acb}.theme__purple.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(138,138,203,0.15);color:#8a8acb}.theme__purple.hi-table.striped table tr:nth-child(2n){background:rgba(138,138,203,0.1)}.theme__purple.hi-table .hi-pagination .hi-icon{color:#666}.theme__purple.hi-table .hi-pagination .hi-icon:hover{color:#8a8acb}.theme__purple.hi-table .hi-pagination:hover>span .hi-icon{color:#8a8acb}
1
+ .hi-table-header-menu-small .hi-table-header-menu p{height:44px}.hi-table-header-menu-mini .hi-table-header-menu p{height:32px}.hi-table td,.hi-table th{-webkit-box-sizing:border-box;box-sizing:border-box}.hi-table-container{position:relative}.hi-table-pre-header{height:52px;line-height:52px;border-top:1px solid #e6e7e8;padding-left:8px;padding-right:16px}.hi-table-pre-footer{height:52px;line-height:52px;border-bottom:1px solid #e6e7e8;padding-left:8px;padding-right:16px;background:#f7fafe}.hi-table.striped table tr:nth-child(2n){background:#f7fafe}.hi-table.bordered .hi-table-pre-header{border-left:1px solid #e6e7e8;border-right:1px solid #e6e7e8}.hi-table.bordered .hi-table-pre-footer{border-left:1px solid #e6e7e8;border-right:1px solid #e6e7e8}.hi-table.bordered table{border-top:1px solid #e6e7e8}.hi-table.bordered table tr td,.hi-table.bordered table tr th{border-left:1px solid #e6e7e8}.hi-table.bordered table tr td:last-child,.hi-table.bordered table tr th:last-child{border-right:1px solid #e6e7e8}.hi-table.large-pre-header{height:64px;line-height:64px}.hi-table.large-pre-footer{height:64px;line-height:64px}.hi-table.large table tr{height:64px;font-size:14px}.hi-table.large .hi-table-header-menu>p{height:44px !important;font-size:14px}.hi-table.large .hi-table-setting-menu>div{height:44px}.hi-table.small-pre-header{height:44px;line-height:44px}.hi-table.small-pre-footer{height:44px;line-height:44px}.hi-table.small table tr{height:44px;font-size:14px}.hi-table.small .hi-table-header-menu>p{height:44px !important;font-size:14px}.hi-table.small .hi-table-setting-menu>div{height:44px}.hi-table.mini-pre-header{height:32px;line-height:32px}.hi-table.mini-pre-footer{height:32px;line-height:32px}.hi-table.mini table tr{height:32px;font-size:14px}.hi-table.mini .hi-table-header-menu>p{height:32px !important;font-size:32px}.hi-table.mini .hi-table-setting-menu>div{height:32px}.hi-table-header-menu{z-index:999999;background:#fff;border:1px solid #e6e7e8;-webkit-box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);border-radius:2px;width:140px}.hi-table-header-menu p{color:#383e47;text-align:left;margin:0;height:52px;text-indent:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer}.hi-table-header-menu p:hover{background:#f7fafe;color:#4284f5}.hi-table-setting-menu{z-index:999999;background:#fff;border-radius:2px;width:140px}.hi-table-setting-menu>div{color:#383e47;text-align:left;margin:0;padding-left:16px;padding-right:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;height:52px}.hi-table-setting-menu>div:hover{background:#f7fafe;color:#4284f5}.hi-table-setting-menu>div>p:first-child{width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hi-table-setting-menu .active{background:rgba(66,133,244,0.15)}.hi-table-setting-menu.column-menu{position:absolute;right:30px;top:40px;width:220px;max-height:240px;overflow-y:auto}.hi-table-container table{width:100%;border-collapse:separate;background:#fff;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;border-spacing:0}.hi-table-container table col{display:table-column}.hi-table-container table td,.hi-table-container table th{white-space:nowrap;padding-left:8px;padding-right:16px;border-bottom:1px solid #e6e7e8;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-table-container table th{background-color:#f7fafe;color:#83868c;position:relative}.hi-table-container table th i:hover{color:#4284f5}.hi-table-container table td{color:#3b4148;word-break:break-word}.hi-table-container table td.picked{background:#f7fafe}.hi-table-container table tr{-webkit-transition:0.2s;transition:0.2s;height:52px;font-size:14px;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.hi-table-container table tr.picked td{background:#f7fafe}.hi-table-container table tr.expanded{background:#f7fafe}.hi-table-container table tr:hover{background:#f7fafe}.hi-table-body-inner{height:100%}.hi-table-fixed-header>.hi-table-content>.hi-table-scroll>.hi-table-body{position:relative}.hi-table-fixed-header .hi-table-body-inner{overflow:scroll}.hi-table-fixed-header .hi-table-scroll .hi-table-header{overflow:scroll;padding-bottom:20px;margin-bottom:-20px}.hi-table-fixed-left,.hi-table-fixed-right{position:absolute;top:0;overflow:hidden;-webkit-transition:-webkit-box-shadow 0.3s ease;transition:-webkit-box-shadow 0.3s ease;transition:box-shadow 0.3s ease;transition:box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;border-radius:0}.hi-table-fixed-left table,.hi-table-fixed-right table{width:auto}.hi-table-fixed-header .hi-table-fixed-left .hi-table-body-outer .hi-table-fixed,.hi-table-fixed-header .hi-table-fixed-right .hi-table-body-outer .hi-table-fixed{border-radius:0}.hi-table-fixed-left{left:0;-webkit-box-shadow:6px 0 6px -4px rgba(0,0,0,0.15);box-shadow:6px 0 6px -4px rgba(0,0,0,0.15)}.hi-table-fixed-left .hi-table-header{overflow-y:hidden}.hi-table-fixed-left .hi-table-body-inner{margin-right:-20px;padding-right:20px}.hi-table-fixed-header .hi-table-fixed-left .hi-table-body-inner{padding-right:0}.hi-table-fixed-left,.hi-table-fixed-left table{border-radius:4px 0 0 0}.hi-table-fixed-right{right:0;-webkit-box-shadow:-6px 0 6px -4px rgba(0,0,0,0.15);box-shadow:-6px 0 6px -4px rgba(0,0,0,0.15)}.hi-table-fixed-right,.hi-table-fixed-right table{border-radius:0 4px 0 0}.hi-table-fixed-right .hi-table-expanded-row{color:transparent}.hi-table.hi-table-scroll-position-left .hi-table-fixed-left{-webkit-box-shadow:none;box-shadow:none}.hi-table.hi-table-scroll-position-right .hi-table-fixed-right{-webkit-box-shadow:none;box-shadow:none}.hi-table-thead>tr>th.hi-table-selection-column-custom{padding-left:16px;padding-right:0}.hi-table-thead>tr>th.hi-table-selection-column,.hi-table-tbody>tr>td.hi-table-selection-column{text-align:center;width:62px;min-width:62px}.hi-table-thead>tr>th.hi-table-selection-column .hi-radio-wrapper,.hi-table-tbody>tr>td.hi-table-selection-column .hi-radio-wrapper{margin-right:0}.hi-table-placeholder{position:relative;padding:16px;background:#fff;border-bottom:1px solid #e6e7e8;text-align:center;z-index:1}.hi-table-setting{position:absolute;right:10px;top:0;cursor:pointer;width:50px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}
@@ -1 +1 @@
1
- .hi-table-header-menu-small .hi-table-header-menu p{height:44px}.hi-table-header-menu-mini .hi-table-header-menu p{height:32px}.hi-table td,.hi-table th{-webkit-box-sizing:border-box;box-sizing:border-box}.hi-table-container{position:relative}.hi-table .hi-icon.icon-menu{color:#4284f5}.hi-table-pre-header{height:52px;line-height:52px;border-top:1px solid #e6e7e8;padding-left:8px;padding-right:16px}.hi-table-pre-footer{height:52px;line-height:52px;border-bottom:1px solid #e6e7e8;padding-left:8px;padding-right:16px;background:#f7fafe}.hi-table.striped table tr:nth-child(2n){background:#f7fafe}.hi-table.bordered .hi-table-pre-header{border-left:1px solid #e6e7e8;border-right:1px solid #e6e7e8}.hi-table.bordered .hi-table-pre-footer{border-left:1px solid #e6e7e8;border-right:1px solid #e6e7e8}.hi-table.bordered table{border-top:1px solid #e6e7e8}.hi-table.bordered table tr td,.hi-table.bordered table tr th{border-left:1px solid #e6e7e8}.hi-table.bordered table tr td:last-child,.hi-table.bordered table tr th:last-child{border-right:1px solid #e6e7e8}.hi-table.large-pre-header{height:64px;line-height:64px}.hi-table.large-pre-footer{height:64px;line-height:64px}.hi-table.large table tr{height:64px;font-size:14px}.hi-table.large .hi-table-header-menu>p{height:44px !important;font-size:14px}.hi-table.large .hi-table-setting-menu>div{height:44px}.hi-table.small-pre-header{height:44px;line-height:44px}.hi-table.small-pre-footer{height:44px;line-height:44px}.hi-table.small table tr{height:44px;font-size:14px}.hi-table.small .hi-table-header-menu>p{height:44px !important;font-size:14px}.hi-table.small .hi-table-setting-menu>div{height:44px}.hi-table.mini-pre-header{height:32px;line-height:32px}.hi-table.mini-pre-footer{height:32px;line-height:32px}.hi-table.mini table tr{height:32px;font-size:14px}.hi-table.mini .hi-table-header-menu>p{height:32px !important;font-size:32px}.hi-table.mini .hi-table-setting-menu>div{height:32px}.hi-table-header-menu{z-index:999999;background:#fff;border:1px solid #e6e7e8;-webkit-box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);border-radius:2px;width:140px}.hi-table-header-menu p{color:#383e47;text-align:left;margin:0;height:52px;text-indent:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer}.hi-table-header-menu p:hover{background:#f7fafe;color:#4284f5}.hi-table-setting-menu{z-index:999999;background:#fff;border-radius:2px;width:140px}.hi-table-setting-menu>div{color:#383e47;text-align:left;margin:0;padding-left:16px;padding-right:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;height:52px}.hi-table-setting-menu>div:hover{background:#f7fafe;color:#4284f5}.hi-table-setting-menu>div>p:first-child{width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hi-table-setting-menu .active{background:rgba(66,133,244,0.15)}.hi-table-setting-menu.column-menu{position:absolute;right:30px;top:40px;width:220px;max-height:240px;overflow-y:auto}.hi-table-container table{width:100%;border-collapse:separate;background:#fff;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;border-spacing:0}.hi-table-container table col{display:table-column}.hi-table-container table td,.hi-table-container table th{white-space:nowrap;padding-left:8px;padding-right:16px;border-bottom:1px solid #e6e7e8;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-table-container table th{background-color:#f7fafe;color:#83868c;position:relative}.hi-table-container table th i:hover{color:#4284f5}.hi-table-container table td{color:#3b4148;word-break:break-word}.hi-table-container table td.picked{background:#f7fafe}.hi-table-container table tr{-webkit-transition:0.2s;transition:0.2s;height:52px;font-size:14px;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.hi-table-container table tr.picked td{background:#f7fafe}.hi-table-container table tr.expanded{background:#f7fafe}.hi-table-container table tr:hover{background:#f7fafe}.hi-table-body-inner{height:100%}.hi-table-fixed-header>.hi-table-content>.hi-table-scroll>.hi-table-body{position:relative}.hi-table-fixed-header .hi-table-body-inner{overflow:scroll}.hi-table-fixed-header .hi-table-scroll .hi-table-header{overflow:scroll;padding-bottom:20px;margin-bottom:-20px}.hi-table-fixed-left,.hi-table-fixed-right{position:absolute;top:0;overflow:hidden;-webkit-transition:-webkit-box-shadow 0.3s ease;transition:-webkit-box-shadow 0.3s ease;transition:box-shadow 0.3s ease;transition:box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;border-radius:0}.hi-table-fixed-left table,.hi-table-fixed-right table{width:auto}.hi-table-fixed-header .hi-table-fixed-left .hi-table-body-outer .hi-table-fixed,.hi-table-fixed-header .hi-table-fixed-right .hi-table-body-outer .hi-table-fixed{border-radius:0}.hi-table-fixed-left{left:0;-webkit-box-shadow:6px 0 6px -4px rgba(0,0,0,0.15);box-shadow:6px 0 6px -4px rgba(0,0,0,0.15)}.hi-table-fixed-left .hi-table-header{overflow-y:hidden}.hi-table-fixed-left .hi-table-body-inner{margin-right:-20px;padding-right:20px}.hi-table-fixed-header .hi-table-fixed-left .hi-table-body-inner{padding-right:0}.hi-table-fixed-left,.hi-table-fixed-left table{border-radius:4px 0 0 0}.hi-table-fixed-right{right:0;-webkit-box-shadow:-6px 0 6px -4px rgba(0,0,0,0.15);box-shadow:-6px 0 6px -4px rgba(0,0,0,0.15)}.hi-table-fixed-right,.hi-table-fixed-right table{border-radius:0 4px 0 0}.hi-table-fixed-right .hi-table-expanded-row{color:transparent}.hi-table.hi-table-scroll-position-left .hi-table-fixed-left{-webkit-box-shadow:none;box-shadow:none}.hi-table.hi-table-scroll-position-right .hi-table-fixed-right{-webkit-box-shadow:none;box-shadow:none}.hi-table-thead>tr>th.hi-table-selection-column-custom{padding-left:16px;padding-right:0}.hi-table-thead>tr>th.hi-table-selection-column,.hi-table-tbody>tr>td.hi-table-selection-column{text-align:center;width:62px;min-width:62px}.hi-table-thead>tr>th.hi-table-selection-column .hi-radio-wrapper,.hi-table-tbody>tr>td.hi-table-selection-column .hi-radio-wrapper{margin-right:0}.hi-table-placeholder{position:relative;padding:16px;background:#fff;border-bottom:1px solid #e6e7e8;text-align:center;z-index:1}.hi-table-setting{position:absolute;right:10px;top:0;cursor:pointer;width:50px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.theme__orange.hi-table .hi-table-container table th{background-color:rgba(255,102,51,0.1);color:#83868c}.theme__orange.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__orange.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__orange.hi-table .hi-table-container table th i:hover{color:#f63}.theme__orange.hi-table .hi-icon.icon-menu{color:#f63}.theme__orange.hi-table .hi-table-container table tr:hover{background-color:rgba(255,102,51,0.1)}.theme__orange.hi-table a{color:#f63}.theme__orange.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(255,102,51,0.15);color:#f63}.theme__orange.hi-table.striped table tr:nth-child(2n){background:rgba(255,102,51,0.1)}.theme__orange.hi-table .hi-pagination .hi-icon{color:#666}.theme__orange.hi-table .hi-pagination .hi-icon:hover{color:#f63}.theme__orange.hi-table .hi-pagination:hover>span .hi-icon{color:#f63}.theme__cyan.hi-table .hi-table-container table th{background-color:rgba(70,188,153,0.1);color:#83868c}.theme__cyan.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__cyan.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__cyan.hi-table .hi-table-container table th i:hover{color:#46bc99}.theme__cyan.hi-table .hi-icon.icon-menu{color:#46bc99}.theme__cyan.hi-table .hi-table-container table tr:hover{background-color:rgba(70,188,153,0.1)}.theme__cyan.hi-table a{color:#46bc99}.theme__cyan.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(70,188,153,0.15);color:#46bc99}.theme__cyan.hi-table.striped table tr:nth-child(2n){background:rgba(70,188,153,0.1)}.theme__cyan.hi-table .hi-pagination .hi-icon{color:#666}.theme__cyan.hi-table .hi-pagination .hi-icon:hover{color:#46bc99}.theme__cyan.hi-table .hi-pagination:hover>span .hi-icon{color:#46bc99}.theme__magenta.hi-table .hi-table-container table th{background-color:rgba(255,89,117,0.1);color:#83868c}.theme__magenta.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__magenta.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__magenta.hi-table .hi-table-container table th i:hover{color:#ff5975}.theme__magenta.hi-table .hi-icon.icon-menu{color:#ff5975}.theme__magenta.hi-table .hi-table-container table tr:hover{background-color:rgba(255,89,117,0.1)}.theme__magenta.hi-table a{color:#ff5975}.theme__magenta.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(255,89,117,0.15);color:#ff5975}.theme__magenta.hi-table.striped table tr:nth-child(2n){background:rgba(255,89,117,0.1)}.theme__magenta.hi-table .hi-pagination .hi-icon{color:#666}.theme__magenta.hi-table .hi-pagination .hi-icon:hover{color:#ff5975}.theme__magenta.hi-table .hi-pagination:hover>span .hi-icon{color:#ff5975}.theme__lavender.hi-table .hi-table-container table th{background-color:rgba(180,80,222,0.1);color:#83868c}.theme__lavender.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__lavender.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__lavender.hi-table .hi-table-container table th i:hover{color:#b450de}.theme__lavender.hi-table .hi-icon.icon-menu{color:#b450de}.theme__lavender.hi-table .hi-table-container table tr:hover{background-color:rgba(180,80,222,0.1)}.theme__lavender.hi-table a{color:#b450de}.theme__lavender.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(180,80,222,0.15);color:#b450de}.theme__lavender.hi-table.striped table tr:nth-child(2n){background:rgba(180,80,222,0.1)}.theme__lavender.hi-table .hi-pagination .hi-icon{color:#666}.theme__lavender.hi-table .hi-pagination .hi-icon:hover{color:#b450de}.theme__lavender.hi-table .hi-pagination:hover>span .hi-icon{color:#b450de}.theme__blue.hi-table .hi-table-container table th{background-color:rgba(61,168,245,0.1);color:#83868c}.theme__blue.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__blue.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__blue.hi-table .hi-table-container table th i:hover{color:#3da8f5}.theme__blue.hi-table .hi-icon.icon-menu{color:#3da8f5}.theme__blue.hi-table .hi-table-container table tr:hover{background-color:rgba(61,168,245,0.1)}.theme__blue.hi-table a{color:#3da8f5}.theme__blue.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(61,168,245,0.15);color:#3da8f5}.theme__blue.hi-table.striped table tr:nth-child(2n){background:rgba(61,168,245,0.1)}.theme__blue.hi-table .hi-pagination .hi-icon{color:#666}.theme__blue.hi-table .hi-pagination .hi-icon:hover{color:#3da8f5}.theme__blue.hi-table .hi-pagination:hover>span .hi-icon{color:#3da8f5}.theme__purple.hi-table .hi-table-container table th{background-color:rgba(138,138,203,0.1);color:#83868c}.theme__purple.hi-table .hi-table-container table tr{background-color:#fff;color:#83868c}.theme__purple.hi-table .hi-table-container table .hi-table-thead tr:hover{background-color:#fff}.theme__purple.hi-table .hi-table-container table th i:hover{color:#8a8acb}.theme__purple.hi-table .hi-icon.icon-menu{color:#8a8acb}.theme__purple.hi-table .hi-table-container table tr:hover{background-color:rgba(138,138,203,0.1)}.theme__purple.hi-table a{color:#8a8acb}.theme__purple.hi-table .hi-table-setting-menu>div:hover{background-color:rgba(138,138,203,0.15);color:#8a8acb}.theme__purple.hi-table.striped table tr:nth-child(2n){background:rgba(138,138,203,0.1)}.theme__purple.hi-table .hi-pagination .hi-icon{color:#666}.theme__purple.hi-table .hi-pagination .hi-icon:hover{color:#8a8acb}.theme__purple.hi-table .hi-pagination:hover>span .hi-icon{color:#8a8acb}
1
+ .hi-table-header-menu-small .hi-table-header-menu p{height:44px}.hi-table-header-menu-mini .hi-table-header-menu p{height:32px}.hi-table td,.hi-table th{-webkit-box-sizing:border-box;box-sizing:border-box}.hi-table-container{position:relative}.hi-table-pre-header{height:52px;line-height:52px;border-top:1px solid #e6e7e8;padding-left:8px;padding-right:16px}.hi-table-pre-footer{height:52px;line-height:52px;border-bottom:1px solid #e6e7e8;padding-left:8px;padding-right:16px;background:#f7fafe}.hi-table.striped table tr:nth-child(2n){background:#f7fafe}.hi-table.bordered .hi-table-pre-header{border-left:1px solid #e6e7e8;border-right:1px solid #e6e7e8}.hi-table.bordered .hi-table-pre-footer{border-left:1px solid #e6e7e8;border-right:1px solid #e6e7e8}.hi-table.bordered table{border-top:1px solid #e6e7e8}.hi-table.bordered table tr td,.hi-table.bordered table tr th{border-left:1px solid #e6e7e8}.hi-table.bordered table tr td:last-child,.hi-table.bordered table tr th:last-child{border-right:1px solid #e6e7e8}.hi-table.large-pre-header{height:64px;line-height:64px}.hi-table.large-pre-footer{height:64px;line-height:64px}.hi-table.large table tr{height:64px;font-size:14px}.hi-table.large .hi-table-header-menu>p{height:44px !important;font-size:14px}.hi-table.large .hi-table-setting-menu>div{height:44px}.hi-table.small-pre-header{height:44px;line-height:44px}.hi-table.small-pre-footer{height:44px;line-height:44px}.hi-table.small table tr{height:44px;font-size:14px}.hi-table.small .hi-table-header-menu>p{height:44px !important;font-size:14px}.hi-table.small .hi-table-setting-menu>div{height:44px}.hi-table.mini-pre-header{height:32px;line-height:32px}.hi-table.mini-pre-footer{height:32px;line-height:32px}.hi-table.mini table tr{height:32px;font-size:14px}.hi-table.mini .hi-table-header-menu>p{height:32px !important;font-size:32px}.hi-table.mini .hi-table-setting-menu>div{height:32px}.hi-table-header-menu{z-index:999999;background:#fff;border:1px solid #e6e7e8;-webkit-box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);box-shadow:0 2px 8px 0 rgba(56,62,71,0.1);border-radius:2px;width:140px}.hi-table-header-menu p{color:#383e47;text-align:left;margin:0;height:52px;text-indent:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer}.hi-table-header-menu p:hover{background:#f7fafe;color:#4284f5}.hi-table-setting-menu{z-index:999999;background:#fff;border-radius:2px;width:140px}.hi-table-setting-menu>div{color:#383e47;text-align:left;margin:0;padding-left:16px;padding-right:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;cursor:pointer;height:52px}.hi-table-setting-menu>div:hover{background:#f7fafe;color:#4284f5}.hi-table-setting-menu>div>p:first-child{width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hi-table-setting-menu .active{background:rgba(66,133,244,0.15)}.hi-table-setting-menu.column-menu{position:absolute;right:30px;top:40px;width:220px;max-height:240px;overflow-y:auto}.hi-table-container table{width:100%;border-collapse:separate;background:#fff;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;border-spacing:0}.hi-table-container table col{display:table-column}.hi-table-container table td,.hi-table-container table th{white-space:nowrap;padding-left:8px;padding-right:16px;border-bottom:1px solid #e6e7e8;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box}.hi-table-container table th{background-color:#f7fafe;color:#83868c;position:relative}.hi-table-container table th i:hover{color:#4284f5}.hi-table-container table td{color:#3b4148;word-break:break-word}.hi-table-container table td.picked{background:#f7fafe}.hi-table-container table tr{-webkit-transition:0.2s;transition:0.2s;height:52px;font-size:14px;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.hi-table-container table tr.picked td{background:#f7fafe}.hi-table-container table tr.expanded{background:#f7fafe}.hi-table-container table tr:hover{background:#f7fafe}.hi-table-body-inner{height:100%}.hi-table-fixed-header>.hi-table-content>.hi-table-scroll>.hi-table-body{position:relative}.hi-table-fixed-header .hi-table-body-inner{overflow:scroll}.hi-table-fixed-header .hi-table-scroll .hi-table-header{overflow:scroll;padding-bottom:20px;margin-bottom:-20px}.hi-table-fixed-left,.hi-table-fixed-right{position:absolute;top:0;overflow:hidden;-webkit-transition:-webkit-box-shadow 0.3s ease;transition:-webkit-box-shadow 0.3s ease;transition:box-shadow 0.3s ease;transition:box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;border-radius:0}.hi-table-fixed-left table,.hi-table-fixed-right table{width:auto}.hi-table-fixed-header .hi-table-fixed-left .hi-table-body-outer .hi-table-fixed,.hi-table-fixed-header .hi-table-fixed-right .hi-table-body-outer .hi-table-fixed{border-radius:0}.hi-table-fixed-left{left:0;-webkit-box-shadow:6px 0 6px -4px rgba(0,0,0,0.15);box-shadow:6px 0 6px -4px rgba(0,0,0,0.15)}.hi-table-fixed-left .hi-table-header{overflow-y:hidden}.hi-table-fixed-left .hi-table-body-inner{margin-right:-20px;padding-right:20px}.hi-table-fixed-header .hi-table-fixed-left .hi-table-body-inner{padding-right:0}.hi-table-fixed-left,.hi-table-fixed-left table{border-radius:4px 0 0 0}.hi-table-fixed-right{right:0;-webkit-box-shadow:-6px 0 6px -4px rgba(0,0,0,0.15);box-shadow:-6px 0 6px -4px rgba(0,0,0,0.15)}.hi-table-fixed-right,.hi-table-fixed-right table{border-radius:0 4px 0 0}.hi-table-fixed-right .hi-table-expanded-row{color:transparent}.hi-table.hi-table-scroll-position-left .hi-table-fixed-left{-webkit-box-shadow:none;box-shadow:none}.hi-table.hi-table-scroll-position-right .hi-table-fixed-right{-webkit-box-shadow:none;box-shadow:none}.hi-table-thead>tr>th.hi-table-selection-column-custom{padding-left:16px;padding-right:0}.hi-table-thead>tr>th.hi-table-selection-column,.hi-table-tbody>tr>td.hi-table-selection-column{text-align:center;width:62px;min-width:62px}.hi-table-thead>tr>th.hi-table-selection-column .hi-radio-wrapper,.hi-table-tbody>tr>td.hi-table-selection-column .hi-radio-wrapper{margin-right:0}.hi-table-placeholder{position:relative;padding:16px;background:#fff;border-bottom:1px solid #e6e7e8;text-align:center;z-index:1}.hi-table-setting{position:absolute;right:10px;top:0;cursor:pointer;width:50px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _body = _interopRequireDefault(require("./body"));
11
+
12
+ var _header = _interopRequireDefault(require("./header"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
17
+
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
+
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
+
22
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
+
24
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
+
26
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
27
+
28
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
+
30
+ 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); } }
31
+
32
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
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
+
40
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
41
+
42
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
+
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; } }
45
+
46
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
+
48
+ var TableContent = /*#__PURE__*/function (_Component) {
49
+ _inherits(TableContent, _Component);
50
+
51
+ var _super = _createSuper(TableContent);
52
+
53
+ function TableContent(props) {
54
+ var _this;
55
+
56
+ _classCallCheck(this, TableContent);
57
+
58
+ _this = _super.call(this, props);
59
+ _this.dom = /*#__PURE__*/_react["default"].createRef();
60
+ return _this;
61
+ }
62
+
63
+ _createClass(TableContent, [{
64
+ key: "render",
65
+ value: function render() {
66
+ var _this$props = this.props,
67
+ columns = _this$props.columns,
68
+ className = _this$props.className,
69
+ style = _this$props.style,
70
+ _this$props$head = _this$props.head,
71
+ head = _this$props$head === void 0 ? true : _this$props$head,
72
+ _this$props$body = _this$props.body,
73
+ body = _this$props$body === void 0 ? true : _this$props$body,
74
+ parent = _this$props.parent,
75
+ rest = _objectWithoutProperties(_this$props, ["columns", "className", "style", "head", "body", "parent"]);
76
+
77
+ rest.columns = columns;
78
+ var showColumns = rest.columns.filter(function (item) {
79
+ return !item.hide;
80
+ });
81
+ var showHeaderColumns = rest.headerColumns.filter(function (item) {
82
+ return !item.hide;
83
+ });
84
+
85
+ if (rest.headerColumns.length > 1 && parent.setting && parent.setting.current) {
86
+ parent.setting.current.style.display = 'none';
87
+ }
88
+
89
+ return /*#__PURE__*/_react["default"].createElement("table", {
90
+ className: className,
91
+ style: style,
92
+ ref: this.dom
93
+ }, /*#__PURE__*/_react["default"].createElement("colgroup", null, showColumns.map(function (item, index) {
94
+ var sty = {};
95
+
96
+ if (item.width) {
97
+ sty.minWidth = parseInt(item.width) + 'px';
98
+ sty.width = parseInt(item.width) + 'px';
99
+ }
100
+
101
+ return /*#__PURE__*/_react["default"].createElement("col", {
102
+ style: sty,
103
+ key: 'col-' + index
104
+ });
105
+ })), head ? /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({}, rest, {
106
+ columns: showColumns,
107
+ showHeaderColumns: showHeaderColumns,
108
+ parent: parent
109
+ })) : null, body ? /*#__PURE__*/_react["default"].createElement(_body["default"], _extends({}, rest, {
110
+ columns: showColumns,
111
+ showHeaderColumns: showHeaderColumns,
112
+ parent: parent
113
+ })) : null);
114
+ }
115
+ }]);
116
+
117
+ return TableContent;
118
+ }(_react.Component);
119
+
120
+ exports["default"] = TableContent;