@hi-ui/hiui 1.5.21 → 1.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/es/alert/__test__/index.test.js +2 -2
- package/es/alert/index.js +23 -19
- package/es/badge/index.js +16 -12
- package/es/button/Button.js +17 -15
- package/es/button/ButtonGroup.js +14 -10
- package/es/button/IconLoading.js +4 -4
- package/es/button/__test__/index.test.js +1 -1
- package/es/card/index.js +21 -17
- package/es/cascader/Cascader.js +24 -20
- package/es/cascader/__test__/index.test.js +6 -6
- package/es/cascader/menu.js +18 -14
- package/es/checkbox/Base.js +16 -12
- package/es/checkbox/CheckBox.js +17 -13
- package/es/collapse/__test__/index.test.js +10 -10
- package/es/collapse/index.js +33 -25
- package/es/confirm/index.js +16 -12
- package/es/context/index.js +21 -17
- package/es/counter/__test__/index.test.js +1 -1
- package/es/counter/index.js +18 -14
- package/es/date-picker/BasePicker.js +21 -17
- package/es/date-picker/Calender.js +29 -21
- package/es/date-picker/DatePanel.js +39 -34
- package/es/date-picker/DatePicker.js +17 -13
- package/es/date-picker/DateRangePanel.js +40 -36
- package/es/date-picker/Modal.js +14 -10
- package/es/date-picker/Time.js +42 -38
- package/es/date-picker/TimePanel.js +15 -11
- package/es/date-picker/TimePeriodPanel.js +19 -15
- package/es/date-picker/TimePicker.js +15 -11
- package/es/date-picker/TimeRangePanel.js +17 -13
- package/es/date-picker/WeekRangePanel.js +33 -29
- package/es/date-picker/dateUtil.js +8 -0
- package/es/dropdown/Dropdown.js +30 -26
- package/es/dropdown/__test__/index.test.js +5 -5
- package/es/ficon/index.js +14 -10
- package/es/form/index.js +14 -10
- package/es/form/item.js +19 -15
- package/es/grid/index.js +24 -20
- package/es/icon/index.js +14 -10
- package/es/index.js +1 -1
- package/es/input/index.js +24 -20
- package/es/loading/index.js +20 -16
- package/es/locales/en-US.js +6 -1
- package/es/locales/zh-CN.js +6 -1
- package/es/menu/Item.js +15 -11
- package/es/menu/ItemGroup.js +16 -12
- package/es/menu/SubMenu.js +21 -17
- package/es/menu/Title.js +16 -12
- package/es/menu/index.js +31 -23
- package/es/modal/__test__/index.test.js +8 -8
- package/es/modal/index.js +24 -20
- package/es/nav-menu/NavMenu.js +21 -17
- package/es/nav-menu/__test__/index.test.js +6 -6
- package/es/notification/index.js +21 -17
- package/es/pagination/Pager.js +2 -2
- package/es/pagination/Pagination.js +34 -29
- package/es/pagination/__test__/index.test.js +3 -3
- package/es/panel/index.js +18 -14
- package/es/popover/__test__/index.test.js +8 -8
- package/es/popover/index.js +20 -16
- package/es/popper/index.js +22 -16
- package/es/progress/BarProgress.js +4 -4
- package/es/progress/CircleProgress.js +5 -5
- package/es/progress/DashboardProgress.js +5 -5
- package/es/progress/index.js +17 -13
- package/es/radio/__test__/index.test.js +3 -3
- package/es/radio/index.js +18 -14
- package/es/rate/Icons.js +68 -68
- package/es/rate/Rate.js +25 -23
- package/es/rate/__test__/index.test.js +3 -3
- package/es/select/Option.js +13 -9
- package/es/select/Select.js +34 -23
- package/es/select/SelectDropdown.js +33 -24
- package/es/select/SelectInput.js +47 -46
- package/es/select/__test__/index.test.js +9 -9
- package/es/stepper/index.js +21 -17
- package/es/switch/__test__/index.test.js +3 -3
- package/es/switch/index.js +15 -11
- package/es/table/__test__/index.test.js +2 -2
- package/es/table/body.js +33 -29
- package/es/table/checkbox/index.js +16 -12
- package/es/table/clickOuterside.js +14 -10
- package/es/table/footer.js +32 -24
- package/es/table/header.js +41 -41
- package/es/table/index.js +86 -73
- package/es/table/menu/index.js +18 -14
- package/es/table/pover.js +23 -21
- package/es/table/tableContent.js +19 -15
- package/es/tabs/ItemDropdown.js +20 -16
- package/es/tabs/TabPane.js +14 -10
- package/es/tabs/Tabs.js +27 -23
- package/es/timeline/__test__/index.test.js +1 -1
- package/es/timeline/foldingItem.js +17 -13
- package/es/timeline/index.js +31 -27
- package/es/tooltip/__test__/index.test.js +10 -10
- package/es/tooltip/index.js +18 -16
- package/es/transfer/Item.js +35 -32
- package/es/transfer/index.js +41 -33
- package/es/tree/Tree.js +41 -34
- package/es/tree/TreeDivider.js +3 -3
- package/es/tree/TreeItem.js +41 -38
- package/es/tree/TreeNode.js +38 -30
- package/es/tree/util.js +9 -5
- package/es/upload/Preview.js +28 -24
- package/es/upload/Upload.js +20 -16
- package/es/upload/UploadAvatar.js +31 -27
- package/es/upload/UploadClick.js +25 -23
- package/es/upload/UploadDrag.js +32 -28
- package/es/upload/UploadPhoto.js +31 -27
- package/es/upload/UploadPictureCard.js +26 -24
- package/es/upload/index.js +18 -14
- package/package.json +4 -1
- package/test/coverage/coverage-summary.json +0 -123
- package/test/coverage/lcov-report/Dropdown.jsx.html +0 -507
- package/test/coverage/lcov-report/DropdownButton.jsx.html +0 -285
- package/test/coverage/lcov-report/DropdownMenu.jsx.html +0 -276
- package/test/coverage/lcov-report/DropdownMenuItem.jsx.html +0 -402
- package/test/coverage/lcov-report/ItemDropdown.js.html +0 -399
- package/test/coverage/lcov-report/TabPane.js.html +0 -162
- package/test/coverage/lcov-report/Tabs.js.html +0 -804
- package/test/coverage/lcov-report/_util/SwitchVersion.js.html +0 -117
- package/test/coverage/lcov-report/_util/depreactedPropsCompat.js.html +0 -180
- package/test/coverage/lcov-report/_util/deprecatedPropsCheck.js.html +0 -120
- package/test/coverage/lcov-report/_util/index.html +0 -136
- package/test/coverage/lcov-report/_util/index.js.html +0 -75
- package/test/coverage/lcov-report/alert/Alert.js.html +0 -303
- package/test/coverage/lcov-report/alert/index.html +0 -97
- package/test/coverage/lcov-report/badge/Badge.js.html +0 -195
- package/test/coverage/lcov-report/badge/index.html +0 -97
- package/test/coverage/lcov-report/base.css +0 -224
- package/test/coverage/lcov-report/block-navigation.js +0 -79
- package/test/coverage/lcov-report/breadcrumb/index.html +0 -97
- package/test/coverage/lcov-report/breadcrumb/index.js.html +0 -165
- package/test/coverage/lcov-report/button/Button.js.html +0 -429
- package/test/coverage/lcov-report/button/ButtonGroup.js.html +0 -129
- package/test/coverage/lcov-report/button/IconLoading.js.html +0 -123
- package/test/coverage/lcov-report/button/index.html +0 -136
- package/test/coverage/lcov-report/button/index.js.html +0 -90
- package/test/coverage/lcov-report/card/index.html +0 -97
- package/test/coverage/lcov-report/card/index.js.html +0 -444
- package/test/coverage/lcov-report/carousel/index.html +0 -97
- package/test/coverage/lcov-report/carousel/index.js.html +0 -534
- package/test/coverage/lcov-report/cascader/Cascader.js.html +0 -1335
- package/test/coverage/lcov-report/cascader/Menu.js.html +0 -372
- package/test/coverage/lcov-report/cascader/index.html +0 -110
- package/test/coverage/lcov-report/checkbox/Checkbox.js.html +0 -360
- package/test/coverage/lcov-report/checkbox/Group.js.html +0 -429
- package/test/coverage/lcov-report/checkbox/index.html +0 -123
- package/test/coverage/lcov-report/checkbox/index.js.html +0 -105
- package/test/coverage/lcov-report/collapse/index.html +0 -97
- package/test/coverage/lcov-report/collapse/index.js.html +0 -432
- package/test/coverage/lcov-report/context/index.html +0 -97
- package/test/coverage/lcov-report/context/index.js.html +0 -252
- package/test/coverage/lcov-report/counter/Counter.js.html +0 -831
- package/test/coverage/lcov-report/counter/index.html +0 -110
- package/test/coverage/lcov-report/counter/index.js.html +0 -87
- package/test/coverage/lcov-report/date-picker/BasePicker.js.html +0 -1173
- package/test/coverage/lcov-report/date-picker/Calender.js.html +0 -975
- package/test/coverage/lcov-report/date-picker/DatePanel.js.html +0 -945
- package/test/coverage/lcov-report/date-picker/DatePicker.js.html +0 -270
- package/test/coverage/lcov-report/date-picker/DateRangePanel.js.html +0 -1260
- package/test/coverage/lcov-report/date-picker/Modal.js.html +0 -150
- package/test/coverage/lcov-report/date-picker/Time.js.html +0 -537
- package/test/coverage/lcov-report/date-picker/TimeList.js.html +0 -459
- package/test/coverage/lcov-report/date-picker/TimePanel.js.html +0 -195
- package/test/coverage/lcov-report/date-picker/TimePeriodPanel.js.html +0 -264
- package/test/coverage/lcov-report/date-picker/TimePicker.js.html +0 -225
- package/test/coverage/lcov-report/date-picker/TimeRangePanel.js.html +0 -165
- package/test/coverage/lcov-report/date-picker/Type.js.html +0 -144
- package/test/coverage/lcov-report/date-picker/WeekRangePanel.js.html +0 -870
- package/test/coverage/lcov-report/date-picker/constants.js.html +0 -192
- package/test/coverage/lcov-report/date-picker/dateUtil.js.html +0 -453
- package/test/coverage/lcov-report/date-picker/index.html +0 -318
- package/test/coverage/lcov-report/date-picker/index.js.html +0 -90
- package/test/coverage/lcov-report/date-picker/util.js.html +0 -168
- package/test/coverage/lcov-report/dropdown/Dropdown.jsx.html +0 -507
- package/test/coverage/lcov-report/dropdown/DropdownButton.jsx.html +0 -285
- package/test/coverage/lcov-report/dropdown/DropdownMenu.jsx.html +0 -276
- package/test/coverage/lcov-report/dropdown/DropdownMenuItem.jsx.html +0 -402
- package/test/coverage/lcov-report/dropdown/index.html +0 -162
- package/test/coverage/lcov-report/dropdown/index.js.html +0 -201
- package/test/coverage/lcov-report/dropdown/utils.js.html +0 -114
- package/test/coverage/lcov-report/form/Form.js.html +0 -423
- package/test/coverage/lcov-report/form/Item.js.html +0 -729
- package/test/coverage/lcov-report/form/index.html +0 -123
- package/test/coverage/lcov-report/form/index.js.html +0 -93
- package/test/coverage/lcov-report/grid/index.html +0 -97
- package/test/coverage/lcov-report/grid/index.js.html +0 -357
- package/test/coverage/lcov-report/icon/index.html +0 -97
- package/test/coverage/lcov-report/icon/index.js.html +0 -114
- package/test/coverage/lcov-report/index.html +0 -656
- package/test/coverage/lcov-report/index.js.html +0 -207
- package/test/coverage/lcov-report/index.test.js.snap.html +0 -171
- package/test/coverage/lcov-report/input/Input.js.html +0 -1038
- package/test/coverage/lcov-report/input/index.html +0 -123
- package/test/coverage/lcov-report/input/index.js.html +0 -90
- package/test/coverage/lcov-report/input/util.js.html +0 -498
- package/test/coverage/lcov-report/lib/index.html +0 -97
- package/test/coverage/lcov-report/lib/withDragDropContext.js.html +0 -81
- package/test/coverage/lcov-report/loading/Loading.js.html +0 -423
- package/test/coverage/lcov-report/loading/index.html +0 -110
- package/test/coverage/lcov-report/loading/index.js.html +0 -84
- package/test/coverage/lcov-report/locales/en-US.js.html +0 -429
- package/test/coverage/lcov-report/locales/index.html +0 -123
- package/test/coverage/lcov-report/locales/index.js.html +0 -90
- package/test/coverage/lcov-report/locales/zh-CN.js.html +0 -354
- package/test/coverage/lcov-report/menu/Item.js.html +0 -219
- package/test/coverage/lcov-report/menu/Menu.js.html +0 -1032
- package/test/coverage/lcov-report/menu/SubMenu.js.html +0 -558
- package/test/coverage/lcov-report/menu/Title.js.html +0 -204
- package/test/coverage/lcov-report/menu/index.html +0 -149
- package/test/coverage/lcov-report/menu/index.js.html +0 -105
- package/test/coverage/lcov-report/message/index.html +0 -97
- package/test/coverage/lcov-report/message/index.js.html +0 -198
- package/test/coverage/lcov-report/modal/index.html +0 -97
- package/test/coverage/lcov-report/modal/index.js.html +0 -534
- package/test/coverage/lcov-report/nav-menu/NavMenu.js.html +0 -702
- package/test/coverage/lcov-report/nav-menu/index.html +0 -110
- package/test/coverage/lcov-report/nav-menu/index.js.html +0 -81
- package/test/coverage/lcov-report/notice/Notice.js.html +0 -243
- package/test/coverage/lcov-report/notice/NoticeContainer.js.html +0 -219
- package/test/coverage/lcov-report/notice/index.html +0 -123
- package/test/coverage/lcov-report/notice/index.js.html +0 -168
- package/test/coverage/lcov-report/notification/HandleNotification/index.html +0 -97
- package/test/coverage/lcov-report/notification/HandleNotification/index.js.html +0 -534
- package/test/coverage/lcov-report/notification/index.html +0 -97
- package/test/coverage/lcov-report/notification/index.js.html +0 -282
- package/test/coverage/lcov-report/pagination/Pager.js.html +0 -204
- package/test/coverage/lcov-report/pagination/Pagination.js.html +0 -1338
- package/test/coverage/lcov-report/pagination/index.html +0 -123
- package/test/coverage/lcov-report/pagination/index.js.html +0 -102
- package/test/coverage/lcov-report/popover/index.html +0 -97
- package/test/coverage/lcov-report/popover/index.js.html +0 -510
- package/test/coverage/lcov-report/popper/index.html +0 -97
- package/test/coverage/lcov-report/popper/index.js.html +0 -687
- package/test/coverage/lcov-report/prettify.css +0 -1
- package/test/coverage/lcov-report/prettify.js +0 -2
- package/test/coverage/lcov-report/progress/BarProgress.js.html +0 -186
- package/test/coverage/lcov-report/progress/CircleProgress.js.html +0 -168
- package/test/coverage/lcov-report/progress/DashboardProgress.js.html +0 -222
- package/test/coverage/lcov-report/progress/Progress.js.html +0 -219
- package/test/coverage/lcov-report/progress/index.html +0 -136
- package/test/coverage/lcov-report/radio/Group.js.html +0 -447
- package/test/coverage/lcov-report/radio/Radio.js.html +0 -399
- package/test/coverage/lcov-report/radio/index.html +0 -123
- package/test/coverage/lcov-report/radio/index.js.html +0 -105
- package/test/coverage/lcov-report/rate/Icons.js.html +0 -999
- package/test/coverage/lcov-report/rate/Rate.js.html +0 -579
- package/test/coverage/lcov-report/rate/index.html +0 -110
- package/test/coverage/lcov-report/rate/index.js.html +0 -84
- package/test/coverage/lcov-report/select/Select.js.html +0 -1992
- package/test/coverage/lcov-report/select/SelectDropdown.js.html +0 -468
- package/test/coverage/lcov-report/select/SelectInput.js.html +0 -885
- package/test/coverage/lcov-report/select/common.js.html +0 -105
- package/test/coverage/lcov-report/select/index.html +0 -149
- package/test/coverage/lcov-report/select/index.js.html +0 -87
- package/test/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/test/coverage/lcov-report/sorter.js +0 -170
- package/test/coverage/lcov-report/stepper/Stepper.js.html +0 -366
- package/test/coverage/lcov-report/stepper/index.html +0 -110
- package/test/coverage/lcov-report/stepper/index.js.html +0 -162
- package/test/coverage/lcov-report/switch/__tests__/__snapshots__/index.html +0 -97
- package/test/coverage/lcov-report/switch/__tests__/__snapshots__/index.test.js.snap.html +0 -171
- package/test/coverage/lcov-report/switch/index.html +0 -97
- package/test/coverage/lcov-report/switch/index.js.html +0 -282
- package/test/coverage/lcov-report/table/Body.js.html +0 -588
- package/test/coverage/lcov-report/table/ClickOuterside.js.html +0 -201
- package/test/coverage/lcov-report/table/Footer.js.html +0 -435
- package/test/coverage/lcov-report/table/Header.js.html +0 -480
- package/test/coverage/lcov-report/table/TableContent.js.html +0 -204
- package/test/coverage/lcov-report/table/checkbox/index.html +0 -97
- package/test/coverage/lcov-report/table/checkbox/index.js.html +0 -213
- package/test/coverage/lcov-report/table/index.html +0 -188
- package/test/coverage/lcov-report/table/index.js.html +0 -3078
- package/test/coverage/lcov-report/table/menu/index.html +0 -97
- package/test/coverage/lcov-report/table/menu/index.js.html +0 -207
- package/test/coverage/lcov-report/table/prefix.js.html +0 -87
- package/test/coverage/lcov-report/table/tool.js.html +0 -387
- package/test/coverage/lcov-report/tabs/ItemDropdown.js.html +0 -387
- package/test/coverage/lcov-report/tabs/TabPane.js.html +0 -162
- package/test/coverage/lcov-report/tabs/Tabs.js.html +0 -795
- package/test/coverage/lcov-report/tabs/index.html +0 -136
- package/test/coverage/lcov-report/tabs/index.js.html +0 -108
- package/test/coverage/lcov-report/tag/index.html +0 -97
- package/test/coverage/lcov-report/tag/index.js.html +0 -216
- package/test/coverage/lcov-report/timeline/FoldingItem.js.html +0 -135
- package/test/coverage/lcov-report/timeline/index.html +0 -110
- package/test/coverage/lcov-report/timeline/index.js.html +0 -435
- package/test/coverage/lcov-report/tooltip/index.html +0 -97
- package/test/coverage/lcov-report/tooltip/index.js.html +0 -483
- package/test/coverage/lcov-report/transfer/Item.js.html +0 -402
- package/test/coverage/lcov-report/transfer/Transfer.js.html +0 -1350
- package/test/coverage/lcov-report/transfer/index.html +0 -123
- package/test/coverage/lcov-report/transfer/index.js.html +0 -78
- package/test/coverage/lcov-report/tree/IconLoading.js.html +0 -123
- package/test/coverage/lcov-report/tree/Tree.js.html +0 -786
- package/test/coverage/lcov-report/tree/TreeDivider.js.html +0 -120
- package/test/coverage/lcov-report/tree/TreeItem.js.html +0 -1098
- package/test/coverage/lcov-report/tree/TreeNode.js.html +0 -2013
- package/test/coverage/lcov-report/tree/index.html +0 -175
- package/test/coverage/lcov-report/tree/index.js.html +0 -81
- package/test/coverage/lcov-report/tree/util.js.html +0 -483
- package/test/coverage/lcov-report/upload/Preview.js.html +0 -948
- package/test/coverage/lcov-report/upload/Upload.js.html +0 -1113
- package/test/coverage/lcov-report/upload/UploadAvatar.js.html +0 -825
- package/test/coverage/lcov-report/upload/UploadClick.js.html +0 -366
- package/test/coverage/lcov-report/upload/UploadDrag.js.html +0 -561
- package/test/coverage/lcov-report/upload/UploadPhoto.js.html +0 -498
- package/test/coverage/lcov-report/upload/UploadPictureCard.js.html +0 -372
- package/test/coverage/lcov-report/upload/index.html +0 -188
- package/test/coverage/lcov-report/upload/main.js.html +0 -153
- package/test/coverage/lcov-report/utils.js.html +0 -114
- package/test/coverage/lcov.info +0 -10561
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for collapse</title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<link rel="stylesheet" href="../prettify.css" />
|
|
7
|
-
<link rel="stylesheet" href="../base.css" />
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<style type='text/css'>
|
|
10
|
-
.coverage-summary .sorter {
|
|
11
|
-
background-image: url(../sort-arrow-sprite.png);
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div class='wrapper'>
|
|
17
|
-
<div class='pad1'>
|
|
18
|
-
<h1>
|
|
19
|
-
<a href="../index.html">All files</a> collapse
|
|
20
|
-
</h1>
|
|
21
|
-
<div class='clearfix'>
|
|
22
|
-
<div class='fl pad1y space-right2'>
|
|
23
|
-
<span class="strong">100% </span>
|
|
24
|
-
<span class="quiet">Statements</span>
|
|
25
|
-
<span class='fraction'>39/39</span>
|
|
26
|
-
</div>
|
|
27
|
-
<div class='fl pad1y space-right2'>
|
|
28
|
-
<span class="strong">90.91% </span>
|
|
29
|
-
<span class="quiet">Branches</span>
|
|
30
|
-
<span class='fraction'>30/33</span>
|
|
31
|
-
</div>
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Functions</span>
|
|
35
|
-
<span class='fraction'>10/10</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class='fl pad1y space-right2'>
|
|
38
|
-
<span class="strong">100% </span>
|
|
39
|
-
<span class="quiet">Lines</span>
|
|
40
|
-
<span class='fraction'>38/38</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<p class="quiet">
|
|
44
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
45
|
-
</p>
|
|
46
|
-
</div>
|
|
47
|
-
<div class='status-line high'></div>
|
|
48
|
-
<div class="pad1">
|
|
49
|
-
<table class="coverage-summary">
|
|
50
|
-
<thead>
|
|
51
|
-
<tr>
|
|
52
|
-
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
53
|
-
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
54
|
-
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
55
|
-
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
56
|
-
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
57
|
-
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
58
|
-
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
59
|
-
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
60
|
-
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
61
|
-
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
62
|
-
</tr>
|
|
63
|
-
</thead>
|
|
64
|
-
<tbody><tr>
|
|
65
|
-
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
|
66
|
-
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
|
|
67
|
-
<td data-value="100" class="pct high">100%</td>
|
|
68
|
-
<td data-value="39" class="abs high">39/39</td>
|
|
69
|
-
<td data-value="90.91" class="pct high">90.91%</td>
|
|
70
|
-
<td data-value="33" class="abs high">30/33</td>
|
|
71
|
-
<td data-value="100" class="pct high">100%</td>
|
|
72
|
-
<td data-value="10" class="abs high">10/10</td>
|
|
73
|
-
<td data-value="100" class="pct high">100%</td>
|
|
74
|
-
<td data-value="38" class="abs high">38/38</td>
|
|
75
|
-
</tr>
|
|
76
|
-
|
|
77
|
-
</tbody>
|
|
78
|
-
</table>
|
|
79
|
-
</div><div class='push'></div><!-- for sticky footer -->
|
|
80
|
-
</div><!-- /wrapper -->
|
|
81
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
82
|
-
Code coverage
|
|
83
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Jan 08 2020 19:06:13 GMT+0800 (GMT+08:00)
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
<script src="../prettify.js"></script>
|
|
87
|
-
<script>
|
|
88
|
-
window.onload = function () {
|
|
89
|
-
if (typeof prettyPrint === 'function') {
|
|
90
|
-
prettyPrint();
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
</script>
|
|
94
|
-
<script src="../sorter.js"></script>
|
|
95
|
-
<script src="../block-navigation.js"></script>
|
|
96
|
-
</body>
|
|
97
|
-
</html>
|
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for collapse/index.js</title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<link rel="stylesheet" href="../prettify.css" />
|
|
7
|
-
<link rel="stylesheet" href="../base.css" />
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<style type='text/css'>
|
|
10
|
-
.coverage-summary .sorter {
|
|
11
|
-
background-image: url(../sort-arrow-sprite.png);
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div class='wrapper'>
|
|
17
|
-
<div class='pad1'>
|
|
18
|
-
<h1>
|
|
19
|
-
<a href="../index.html">All files</a> / <a href="index.html">collapse</a> index.js
|
|
20
|
-
</h1>
|
|
21
|
-
<div class='clearfix'>
|
|
22
|
-
<div class='fl pad1y space-right2'>
|
|
23
|
-
<span class="strong">100% </span>
|
|
24
|
-
<span class="quiet">Statements</span>
|
|
25
|
-
<span class='fraction'>39/39</span>
|
|
26
|
-
</div>
|
|
27
|
-
<div class='fl pad1y space-right2'>
|
|
28
|
-
<span class="strong">90.91% </span>
|
|
29
|
-
<span class="quiet">Branches</span>
|
|
30
|
-
<span class='fraction'>30/33</span>
|
|
31
|
-
</div>
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Functions</span>
|
|
35
|
-
<span class='fraction'>10/10</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class='fl pad1y space-right2'>
|
|
38
|
-
<span class="strong">100% </span>
|
|
39
|
-
<span class="quiet">Lines</span>
|
|
40
|
-
<span class='fraction'>38/38</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<p class="quiet">
|
|
44
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
45
|
-
</p>
|
|
46
|
-
</div>
|
|
47
|
-
<div class='status-line high'></div>
|
|
48
|
-
<pre><table class="coverage">
|
|
49
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
50
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
51
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
52
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
53
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
54
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
55
|
-
<a name='L7'></a><a href='#L7'>7</a>
|
|
56
|
-
<a name='L8'></a><a href='#L8'>8</a>
|
|
57
|
-
<a name='L9'></a><a href='#L9'>9</a>
|
|
58
|
-
<a name='L10'></a><a href='#L10'>10</a>
|
|
59
|
-
<a name='L11'></a><a href='#L11'>11</a>
|
|
60
|
-
<a name='L12'></a><a href='#L12'>12</a>
|
|
61
|
-
<a name='L13'></a><a href='#L13'>13</a>
|
|
62
|
-
<a name='L14'></a><a href='#L14'>14</a>
|
|
63
|
-
<a name='L15'></a><a href='#L15'>15</a>
|
|
64
|
-
<a name='L16'></a><a href='#L16'>16</a>
|
|
65
|
-
<a name='L17'></a><a href='#L17'>17</a>
|
|
66
|
-
<a name='L18'></a><a href='#L18'>18</a>
|
|
67
|
-
<a name='L19'></a><a href='#L19'>19</a>
|
|
68
|
-
<a name='L20'></a><a href='#L20'>20</a>
|
|
69
|
-
<a name='L21'></a><a href='#L21'>21</a>
|
|
70
|
-
<a name='L22'></a><a href='#L22'>22</a>
|
|
71
|
-
<a name='L23'></a><a href='#L23'>23</a>
|
|
72
|
-
<a name='L24'></a><a href='#L24'>24</a>
|
|
73
|
-
<a name='L25'></a><a href='#L25'>25</a>
|
|
74
|
-
<a name='L26'></a><a href='#L26'>26</a>
|
|
75
|
-
<a name='L27'></a><a href='#L27'>27</a>
|
|
76
|
-
<a name='L28'></a><a href='#L28'>28</a>
|
|
77
|
-
<a name='L29'></a><a href='#L29'>29</a>
|
|
78
|
-
<a name='L30'></a><a href='#L30'>30</a>
|
|
79
|
-
<a name='L31'></a><a href='#L31'>31</a>
|
|
80
|
-
<a name='L32'></a><a href='#L32'>32</a>
|
|
81
|
-
<a name='L33'></a><a href='#L33'>33</a>
|
|
82
|
-
<a name='L34'></a><a href='#L34'>34</a>
|
|
83
|
-
<a name='L35'></a><a href='#L35'>35</a>
|
|
84
|
-
<a name='L36'></a><a href='#L36'>36</a>
|
|
85
|
-
<a name='L37'></a><a href='#L37'>37</a>
|
|
86
|
-
<a name='L38'></a><a href='#L38'>38</a>
|
|
87
|
-
<a name='L39'></a><a href='#L39'>39</a>
|
|
88
|
-
<a name='L40'></a><a href='#L40'>40</a>
|
|
89
|
-
<a name='L41'></a><a href='#L41'>41</a>
|
|
90
|
-
<a name='L42'></a><a href='#L42'>42</a>
|
|
91
|
-
<a name='L43'></a><a href='#L43'>43</a>
|
|
92
|
-
<a name='L44'></a><a href='#L44'>44</a>
|
|
93
|
-
<a name='L45'></a><a href='#L45'>45</a>
|
|
94
|
-
<a name='L46'></a><a href='#L46'>46</a>
|
|
95
|
-
<a name='L47'></a><a href='#L47'>47</a>
|
|
96
|
-
<a name='L48'></a><a href='#L48'>48</a>
|
|
97
|
-
<a name='L49'></a><a href='#L49'>49</a>
|
|
98
|
-
<a name='L50'></a><a href='#L50'>50</a>
|
|
99
|
-
<a name='L51'></a><a href='#L51'>51</a>
|
|
100
|
-
<a name='L52'></a><a href='#L52'>52</a>
|
|
101
|
-
<a name='L53'></a><a href='#L53'>53</a>
|
|
102
|
-
<a name='L54'></a><a href='#L54'>54</a>
|
|
103
|
-
<a name='L55'></a><a href='#L55'>55</a>
|
|
104
|
-
<a name='L56'></a><a href='#L56'>56</a>
|
|
105
|
-
<a name='L57'></a><a href='#L57'>57</a>
|
|
106
|
-
<a name='L58'></a><a href='#L58'>58</a>
|
|
107
|
-
<a name='L59'></a><a href='#L59'>59</a>
|
|
108
|
-
<a name='L60'></a><a href='#L60'>60</a>
|
|
109
|
-
<a name='L61'></a><a href='#L61'>61</a>
|
|
110
|
-
<a name='L62'></a><a href='#L62'>62</a>
|
|
111
|
-
<a name='L63'></a><a href='#L63'>63</a>
|
|
112
|
-
<a name='L64'></a><a href='#L64'>64</a>
|
|
113
|
-
<a name='L65'></a><a href='#L65'>65</a>
|
|
114
|
-
<a name='L66'></a><a href='#L66'>66</a>
|
|
115
|
-
<a name='L67'></a><a href='#L67'>67</a>
|
|
116
|
-
<a name='L68'></a><a href='#L68'>68</a>
|
|
117
|
-
<a name='L69'></a><a href='#L69'>69</a>
|
|
118
|
-
<a name='L70'></a><a href='#L70'>70</a>
|
|
119
|
-
<a name='L71'></a><a href='#L71'>71</a>
|
|
120
|
-
<a name='L72'></a><a href='#L72'>72</a>
|
|
121
|
-
<a name='L73'></a><a href='#L73'>73</a>
|
|
122
|
-
<a name='L74'></a><a href='#L74'>74</a>
|
|
123
|
-
<a name='L75'></a><a href='#L75'>75</a>
|
|
124
|
-
<a name='L76'></a><a href='#L76'>76</a>
|
|
125
|
-
<a name='L77'></a><a href='#L77'>77</a>
|
|
126
|
-
<a name='L78'></a><a href='#L78'>78</a>
|
|
127
|
-
<a name='L79'></a><a href='#L79'>79</a>
|
|
128
|
-
<a name='L80'></a><a href='#L80'>80</a>
|
|
129
|
-
<a name='L81'></a><a href='#L81'>81</a>
|
|
130
|
-
<a name='L82'></a><a href='#L82'>82</a>
|
|
131
|
-
<a name='L83'></a><a href='#L83'>83</a>
|
|
132
|
-
<a name='L84'></a><a href='#L84'>84</a>
|
|
133
|
-
<a name='L85'></a><a href='#L85'>85</a>
|
|
134
|
-
<a name='L86'></a><a href='#L86'>86</a>
|
|
135
|
-
<a name='L87'></a><a href='#L87'>87</a>
|
|
136
|
-
<a name='L88'></a><a href='#L88'>88</a>
|
|
137
|
-
<a name='L89'></a><a href='#L89'>89</a>
|
|
138
|
-
<a name='L90'></a><a href='#L90'>90</a>
|
|
139
|
-
<a name='L91'></a><a href='#L91'>91</a>
|
|
140
|
-
<a name='L92'></a><a href='#L92'>92</a>
|
|
141
|
-
<a name='L93'></a><a href='#L93'>93</a>
|
|
142
|
-
<a name='L94'></a><a href='#L94'>94</a>
|
|
143
|
-
<a name='L95'></a><a href='#L95'>95</a>
|
|
144
|
-
<a name='L96'></a><a href='#L96'>96</a>
|
|
145
|
-
<a name='L97'></a><a href='#L97'>97</a>
|
|
146
|
-
<a name='L98'></a><a href='#L98'>98</a>
|
|
147
|
-
<a name='L99'></a><a href='#L99'>99</a>
|
|
148
|
-
<a name='L100'></a><a href='#L100'>100</a>
|
|
149
|
-
<a name='L101'></a><a href='#L101'>101</a>
|
|
150
|
-
<a name='L102'></a><a href='#L102'>102</a>
|
|
151
|
-
<a name='L103'></a><a href='#L103'>103</a>
|
|
152
|
-
<a name='L104'></a><a href='#L104'>104</a>
|
|
153
|
-
<a name='L105'></a><a href='#L105'>105</a>
|
|
154
|
-
<a name='L106'></a><a href='#L106'>106</a>
|
|
155
|
-
<a name='L107'></a><a href='#L107'>107</a>
|
|
156
|
-
<a name='L108'></a><a href='#L108'>108</a>
|
|
157
|
-
<a name='L109'></a><a href='#L109'>109</a>
|
|
158
|
-
<a name='L110'></a><a href='#L110'>110</a>
|
|
159
|
-
<a name='L111'></a><a href='#L111'>111</a>
|
|
160
|
-
<a name='L112'></a><a href='#L112'>112</a>
|
|
161
|
-
<a name='L113'></a><a href='#L113'>113</a>
|
|
162
|
-
<a name='L114'></a><a href='#L114'>114</a>
|
|
163
|
-
<a name='L115'></a><a href='#L115'>115</a>
|
|
164
|
-
<a name='L116'></a><a href='#L116'>116</a>
|
|
165
|
-
<a name='L117'></a><a href='#L117'>117</a>
|
|
166
|
-
<a name='L118'></a><a href='#L118'>118</a>
|
|
167
|
-
<a name='L119'></a><a href='#L119'>119</a>
|
|
168
|
-
<a name='L120'></a><a href='#L120'>120</a>
|
|
169
|
-
<a name='L121'></a><a href='#L121'>121</a>
|
|
170
|
-
<a name='L122'></a><a href='#L122'>122</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
171
|
-
<span class="cline-any cline-neutral"> </span>
|
|
172
|
-
<span class="cline-any cline-neutral"> </span>
|
|
173
|
-
<span class="cline-any cline-neutral"> </span>
|
|
174
|
-
<span class="cline-any cline-neutral"> </span>
|
|
175
|
-
<span class="cline-any cline-yes">1x</span>
|
|
176
|
-
<span class="cline-any cline-neutral"> </span>
|
|
177
|
-
<span class="cline-any cline-neutral"> </span>
|
|
178
|
-
<span class="cline-any cline-neutral"> </span>
|
|
179
|
-
<span class="cline-any cline-neutral"> </span>
|
|
180
|
-
<span class="cline-any cline-neutral"> </span>
|
|
181
|
-
<span class="cline-any cline-neutral"> </span>
|
|
182
|
-
<span class="cline-any cline-neutral"> </span>
|
|
183
|
-
<span class="cline-any cline-neutral"> </span>
|
|
184
|
-
<span class="cline-any cline-neutral"> </span>
|
|
185
|
-
<span class="cline-any cline-neutral"> </span>
|
|
186
|
-
<span class="cline-any cline-neutral"> </span>
|
|
187
|
-
<span class="cline-any cline-neutral"> </span>
|
|
188
|
-
<span class="cline-any cline-neutral"> </span>
|
|
189
|
-
<span class="cline-any cline-neutral"> </span>
|
|
190
|
-
<span class="cline-any cline-neutral"> </span>
|
|
191
|
-
<span class="cline-any cline-neutral"> </span>
|
|
192
|
-
<span class="cline-any cline-neutral"> </span>
|
|
193
|
-
<span class="cline-any cline-neutral"> </span>
|
|
194
|
-
<span class="cline-any cline-neutral"> </span>
|
|
195
|
-
<span class="cline-any cline-neutral"> </span>
|
|
196
|
-
<span class="cline-any cline-neutral"> </span>
|
|
197
|
-
<span class="cline-any cline-yes">6x</span>
|
|
198
|
-
<span class="cline-any cline-yes">6x</span>
|
|
199
|
-
<span class="cline-any cline-yes">6x</span>
|
|
200
|
-
<span class="cline-any cline-yes">6x</span>
|
|
201
|
-
<span class="cline-any cline-neutral"> </span>
|
|
202
|
-
<span class="cline-any cline-neutral"> </span>
|
|
203
|
-
<span class="cline-any cline-neutral"> </span>
|
|
204
|
-
<span class="cline-any cline-neutral"> </span>
|
|
205
|
-
<span class="cline-any cline-yes">6x</span>
|
|
206
|
-
<span class="cline-any cline-yes">6x</span>
|
|
207
|
-
<span class="cline-any cline-yes">2x</span>
|
|
208
|
-
<span class="cline-any cline-neutral"> </span>
|
|
209
|
-
<span class="cline-any cline-yes">4x</span>
|
|
210
|
-
<span class="cline-any cline-yes">4x</span>
|
|
211
|
-
<span class="cline-any cline-yes">4x</span>
|
|
212
|
-
<span class="cline-any cline-yes">4x</span>
|
|
213
|
-
<span class="cline-any cline-yes">1x</span>
|
|
214
|
-
<span class="cline-any cline-neutral"> </span>
|
|
215
|
-
<span class="cline-any cline-yes">3x</span>
|
|
216
|
-
<span class="cline-any cline-neutral"> </span>
|
|
217
|
-
<span class="cline-any cline-neutral"> </span>
|
|
218
|
-
<span class="cline-any cline-yes">6x</span>
|
|
219
|
-
<span class="cline-any cline-neutral"> </span>
|
|
220
|
-
<span class="cline-any cline-neutral"> </span>
|
|
221
|
-
<span class="cline-any cline-yes">6x</span>
|
|
222
|
-
<span class="cline-any cline-yes">6x</span>
|
|
223
|
-
<span class="cline-any cline-neutral"> </span>
|
|
224
|
-
<span class="cline-any cline-neutral"> </span>
|
|
225
|
-
<span class="cline-any cline-neutral"> </span>
|
|
226
|
-
<span class="cline-any cline-yes">14x</span>
|
|
227
|
-
<span class="cline-any cline-yes">14x</span>
|
|
228
|
-
<span class="cline-any cline-neutral"> </span>
|
|
229
|
-
<span class="cline-any cline-yes">14x</span>
|
|
230
|
-
<span class="cline-any cline-yes">14x</span>
|
|
231
|
-
<span class="cline-any cline-yes">50x</span>
|
|
232
|
-
<span class="cline-any cline-yes">42x</span>
|
|
233
|
-
<span class="cline-any cline-yes">42x</span>
|
|
234
|
-
<span class="cline-any cline-yes">42x</span>
|
|
235
|
-
<span class="cline-any cline-yes">42x</span>
|
|
236
|
-
<span class="cline-any cline-neutral"> </span>
|
|
237
|
-
<span class="cline-any cline-neutral"> </span>
|
|
238
|
-
<span class="cline-any cline-neutral"> </span>
|
|
239
|
-
<span class="cline-any cline-neutral"> </span>
|
|
240
|
-
<span class="cline-any cline-neutral"> </span>
|
|
241
|
-
<span class="cline-any cline-neutral"> </span>
|
|
242
|
-
<span class="cline-any cline-neutral"> </span>
|
|
243
|
-
<span class="cline-any cline-yes">6x</span>
|
|
244
|
-
<span class="cline-any cline-neutral"> </span>
|
|
245
|
-
<span class="cline-any cline-yes">42x</span>
|
|
246
|
-
<span class="cline-any cline-neutral"> </span>
|
|
247
|
-
<span class="cline-any cline-yes">14x</span>
|
|
248
|
-
<span class="cline-any cline-neutral"> </span>
|
|
249
|
-
<span class="cline-any cline-neutral"> </span>
|
|
250
|
-
<span class="cline-any cline-yes">14x</span>
|
|
251
|
-
<span class="cline-any cline-yes">14x</span>
|
|
252
|
-
<span class="cline-any cline-yes">14x</span>
|
|
253
|
-
<span class="cline-any cline-neutral"> </span>
|
|
254
|
-
<span class="cline-any cline-neutral"> </span>
|
|
255
|
-
<span class="cline-any cline-neutral"> </span>
|
|
256
|
-
<span class="cline-any cline-neutral"> </span>
|
|
257
|
-
<span class="cline-any cline-neutral"> </span>
|
|
258
|
-
<span class="cline-any cline-neutral"> </span>
|
|
259
|
-
<span class="cline-any cline-neutral"> </span>
|
|
260
|
-
<span class="cline-any cline-neutral"> </span>
|
|
261
|
-
<span class="cline-any cline-neutral"> </span>
|
|
262
|
-
<span class="cline-any cline-neutral"> </span>
|
|
263
|
-
<span class="cline-any cline-neutral"> </span>
|
|
264
|
-
<span class="cline-any cline-neutral"> </span>
|
|
265
|
-
<span class="cline-any cline-neutral"> </span>
|
|
266
|
-
<span class="cline-any cline-neutral"> </span>
|
|
267
|
-
<span class="cline-any cline-neutral"> </span>
|
|
268
|
-
<span class="cline-any cline-neutral"> </span>
|
|
269
|
-
<span class="cline-any cline-neutral"> </span>
|
|
270
|
-
<span class="cline-any cline-yes">42x</span>
|
|
271
|
-
<span class="cline-any cline-yes">42x</span>
|
|
272
|
-
<span class="cline-any cline-neutral"> </span>
|
|
273
|
-
<span class="cline-any cline-neutral"> </span>
|
|
274
|
-
<span class="cline-any cline-neutral"> </span>
|
|
275
|
-
<span class="cline-any cline-yes">42x</span>
|
|
276
|
-
<span class="cline-any cline-yes">42x</span>
|
|
277
|
-
<span class="cline-any cline-neutral"> </span>
|
|
278
|
-
<span class="cline-any cline-yes">7x</span>
|
|
279
|
-
<span class="cline-any cline-neutral"> </span>
|
|
280
|
-
<span class="cline-any cline-neutral"> </span>
|
|
281
|
-
<span class="cline-any cline-neutral"> </span>
|
|
282
|
-
<span class="cline-any cline-neutral"> </span>
|
|
283
|
-
<span class="cline-any cline-neutral"> </span>
|
|
284
|
-
<span class="cline-any cline-neutral"> </span>
|
|
285
|
-
<span class="cline-any cline-neutral"> </span>
|
|
286
|
-
<span class="cline-any cline-neutral"> </span>
|
|
287
|
-
<span class="cline-any cline-neutral"> </span>
|
|
288
|
-
<span class="cline-any cline-yes">1x</span>
|
|
289
|
-
<span class="cline-any cline-neutral"> </span>
|
|
290
|
-
<span class="cline-any cline-neutral"> </span>
|
|
291
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { Component, Children } from 'react'
|
|
292
|
-
import PropTypes from 'prop-types'
|
|
293
|
-
import classNames from 'classnames'
|
|
294
|
-
import './style/index'
|
|
295
|
-
|
|
296
|
-
const noop = () => {}
|
|
297
|
-
class Collapse extends Component {
|
|
298
|
-
static propTypes = {
|
|
299
|
-
accordion: PropTypes.bool, // 手风琴模式
|
|
300
|
-
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
|
|
301
|
-
activeId: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
|
|
302
|
-
onChange: PropTypes.func,
|
|
303
|
-
icon: PropTypes.string,
|
|
304
|
-
type: PropTypes.string, // TODO:废弃
|
|
305
|
-
arrow: PropTypes.oneOf(['left', 'right']), // TODO:废弃,使用 arrowPlacement
|
|
306
|
-
arrowPlacement: PropTypes.oneOf(['left', 'right']),
|
|
307
|
-
showArrow: PropTypes.bool
|
|
308
|
-
}
|
|
309
|
-
static defaultProps = {
|
|
310
|
-
prefixCls: 'hi-collapse',
|
|
311
|
-
accordion: false,
|
|
312
|
-
arrow: 'left',
|
|
313
|
-
arrowPlacement: 'left',
|
|
314
|
-
type: 'default',
|
|
315
|
-
showArrow: true
|
|
316
|
-
}
|
|
317
|
-
constructor (props) {
|
|
318
|
-
super(props)
|
|
319
|
-
const { activeId, activeKey } = this.props
|
|
320
|
-
const _activeId = activeId || activeKey
|
|
321
|
-
this.state = {
|
|
322
|
-
activeId: Array.isArray(_activeId) ? <span class="branch-0 cbranch-no" title="branch not covered" >_activeId </span>: [_activeId]
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
onClickPanel (key) {
|
|
326
|
-
let activeKey = this.state.activeId
|
|
327
|
-
if (this.props.accordion) {
|
|
328
|
-
activeKey = activeKey[0] === key ? <span class="branch-0 cbranch-no" title="branch not covered" >[] </span>: [key]
|
|
329
|
-
} else {
|
|
330
|
-
activeKey = [...activeKey]
|
|
331
|
-
const index = activeKey.indexOf(key)
|
|
332
|
-
const isActive = index > -1
|
|
333
|
-
if (isActive) {
|
|
334
|
-
activeKey.splice(index, 1)
|
|
335
|
-
} else {
|
|
336
|
-
activeKey.push(key)
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
this.setActiveKey(activeKey)
|
|
340
|
-
}
|
|
341
|
-
setActiveKey (activeKey) {
|
|
342
|
-
this.setState({ activeId: activeKey })
|
|
343
|
-
this.props.onChange(this.props.accordion ? activeKey[0] : activeKey)
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
renderPanels () {
|
|
347
|
-
const activeKey = this.state.activeId
|
|
348
|
-
const { children, accordion, arrow, arrowPlacement, showArrow } = this.props
|
|
349
|
-
|
|
350
|
-
const newChildren = []
|
|
351
|
-
Children.forEach(children, (child, index) => {
|
|
352
|
-
if (!child) return
|
|
353
|
-
const key = child.props.id || child.key || String(index)
|
|
354
|
-
const { header, disabled, title } = child.props
|
|
355
|
-
let isActive = accordion ? activeKey[0] === key : activeKey.includes(key)
|
|
356
|
-
const props = {
|
|
357
|
-
key,
|
|
358
|
-
header: title || header,
|
|
359
|
-
disabled,
|
|
360
|
-
isActive,
|
|
361
|
-
arrow: arrowPlacement !== 'left' ? <span class="branch-0 cbranch-no" title="branch not covered" >arrowPlacement </span>: arrow,
|
|
362
|
-
showArrow,
|
|
363
|
-
children: child.props.children,
|
|
364
|
-
onClickPanel: disabled ? noop : () => this.onClickPanel(key)
|
|
365
|
-
}
|
|
366
|
-
newChildren.push(React.cloneElement(child, props))
|
|
367
|
-
})
|
|
368
|
-
return newChildren
|
|
369
|
-
}
|
|
370
|
-
render () {
|
|
371
|
-
const { prefixCls, type } = this.props
|
|
372
|
-
let classnames = classNames(prefixCls, type && `${prefixCls}__${type}`)
|
|
373
|
-
return <div className={classnames}>{this.renderPanels()}</div>
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
class CollapsePanel extends Component {
|
|
378
|
-
static propTypes = {
|
|
379
|
-
header: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
380
|
-
disabled: PropTypes.bool,
|
|
381
|
-
isActive: PropTypes.bool,
|
|
382
|
-
arrow: PropTypes.string,
|
|
383
|
-
showArrow: PropTypes.bool,
|
|
384
|
-
onClickPanel: PropTypes.func
|
|
385
|
-
}
|
|
386
|
-
static defaultProps = {
|
|
387
|
-
disabled: false
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
render () {
|
|
391
|
-
const { key, arrow, header, disabled, isActive, children, onClickPanel, showArrow } = this.props
|
|
392
|
-
let classnames = classNames('collapse-item', {
|
|
393
|
-
'collapse-item--show': isActive,
|
|
394
|
-
'collapse-item--disabled': disabled
|
|
395
|
-
})
|
|
396
|
-
const collapseIcon = classNames('collapse-item__icon', 'hi-icon', 'icon-down')
|
|
397
|
-
return (
|
|
398
|
-
<div className={classnames}>
|
|
399
|
-
<div className='collapse-item__head' onClick={() => onClickPanel(key)}>
|
|
400
|
-
{showArrow && arrow === 'left' && <i className={collapseIcon} />}
|
|
401
|
-
<div className='collapse-item__title'>{header}</div>
|
|
402
|
-
{showArrow && arrow === 'right' && <i className={collapseIcon} />}
|
|
403
|
-
</div>
|
|
404
|
-
<div className='collapse-item__content'>{children}</div>
|
|
405
|
-
</div>
|
|
406
|
-
)
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
Collapse.Panel = CollapsePanel
|
|
410
|
-
|
|
411
|
-
export default Collapse
|
|
412
|
-
</pre></td></tr>
|
|
413
|
-
</table></pre>
|
|
414
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
415
|
-
</div><!-- /wrapper -->
|
|
416
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
417
|
-
Code coverage
|
|
418
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Jan 08 2020 19:06:13 GMT+0800 (GMT+08:00)
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
<script src="../prettify.js"></script>
|
|
422
|
-
<script>
|
|
423
|
-
window.onload = function () {
|
|
424
|
-
if (typeof prettyPrint === 'function') {
|
|
425
|
-
prettyPrint();
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
</script>
|
|
429
|
-
<script src="../sorter.js"></script>
|
|
430
|
-
<script src="../block-navigation.js"></script>
|
|
431
|
-
</body>
|
|
432
|
-
</html>
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Code coverage report for context</title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<link rel="stylesheet" href="../prettify.css" />
|
|
7
|
-
<link rel="stylesheet" href="../base.css" />
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<style type='text/css'>
|
|
10
|
-
.coverage-summary .sorter {
|
|
11
|
-
background-image: url(../sort-arrow-sprite.png);
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div class='wrapper'>
|
|
17
|
-
<div class='pad1'>
|
|
18
|
-
<h1>
|
|
19
|
-
<a href="../index.html">All files</a> context
|
|
20
|
-
</h1>
|
|
21
|
-
<div class='clearfix'>
|
|
22
|
-
<div class='fl pad1y space-right2'>
|
|
23
|
-
<span class="strong">100% </span>
|
|
24
|
-
<span class="quiet">Statements</span>
|
|
25
|
-
<span class='fraction'>19/19</span>
|
|
26
|
-
</div>
|
|
27
|
-
<div class='fl pad1y space-right2'>
|
|
28
|
-
<span class="strong">100% </span>
|
|
29
|
-
<span class="quiet">Branches</span>
|
|
30
|
-
<span class='fraction'>8/8</span>
|
|
31
|
-
</div>
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Functions</span>
|
|
35
|
-
<span class='fraction'>7/7</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class='fl pad1y space-right2'>
|
|
38
|
-
<span class="strong">100% </span>
|
|
39
|
-
<span class="quiet">Lines</span>
|
|
40
|
-
<span class='fraction'>19/19</span>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<p class="quiet">
|
|
44
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
45
|
-
</p>
|
|
46
|
-
</div>
|
|
47
|
-
<div class='status-line high'></div>
|
|
48
|
-
<div class="pad1">
|
|
49
|
-
<table class="coverage-summary">
|
|
50
|
-
<thead>
|
|
51
|
-
<tr>
|
|
52
|
-
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
53
|
-
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
54
|
-
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
55
|
-
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
56
|
-
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
57
|
-
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
58
|
-
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
59
|
-
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
60
|
-
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
61
|
-
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
62
|
-
</tr>
|
|
63
|
-
</thead>
|
|
64
|
-
<tbody><tr>
|
|
65
|
-
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
|
66
|
-
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
|
|
67
|
-
<td data-value="100" class="pct high">100%</td>
|
|
68
|
-
<td data-value="19" class="abs high">19/19</td>
|
|
69
|
-
<td data-value="100" class="pct high">100%</td>
|
|
70
|
-
<td data-value="8" class="abs high">8/8</td>
|
|
71
|
-
<td data-value="100" class="pct high">100%</td>
|
|
72
|
-
<td data-value="7" class="abs high">7/7</td>
|
|
73
|
-
<td data-value="100" class="pct high">100%</td>
|
|
74
|
-
<td data-value="19" class="abs high">19/19</td>
|
|
75
|
-
</tr>
|
|
76
|
-
|
|
77
|
-
</tbody>
|
|
78
|
-
</table>
|
|
79
|
-
</div><div class='push'></div><!-- for sticky footer -->
|
|
80
|
-
</div><!-- /wrapper -->
|
|
81
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
82
|
-
Code coverage
|
|
83
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Jan 08 2020 19:06:13 GMT+0800 (GMT+08:00)
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
<script src="../prettify.js"></script>
|
|
87
|
-
<script>
|
|
88
|
-
window.onload = function () {
|
|
89
|
-
if (typeof prettyPrint === 'function') {
|
|
90
|
-
prettyPrint();
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
</script>
|
|
94
|
-
<script src="../sorter.js"></script>
|
|
95
|
-
<script src="../block-navigation.js"></script>
|
|
96
|
-
</body>
|
|
97
|
-
</html>
|