@cloud-app-dev/vidc 2.3.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.umirc.ts +2 -2
- package/es/Config/interface.d.ts +2 -1
- package/es/DomMove/demo.d.ts +2 -0
- package/es/DomMove/demo.js +16 -0
- package/es/DomMove/index.d.ts +16 -0
- package/es/DomMove/index.js +145 -0
- package/es/DomMove/utils.d.ts +8 -0
- package/es/{Picture/component/MoveContent → DomMove}/utils.js +19 -0
- package/es/Drawer/index.d.ts +2 -2
- package/es/Drawer/interface.d.ts +4 -174
- package/es/ErrorBoundary/index.d.ts +18 -0
- package/es/ErrorBoundary/index.js +84 -0
- package/es/List/DynamicGridList/Demo.js +40 -27
- package/es/List/DynamicGridList/index.d.ts +20 -29
- package/es/List/DynamicGridList/index.js +40 -63
- package/es/List/DynamicList/index.css +15 -0
- package/es/List/DynamicList/index.d.ts +14 -0
- package/es/List/DynamicList/index.js +105 -0
- package/es/List/DynamicList/interface.d.ts +19 -0
- package/es/List/DynamicList/utils.d.ts +4 -0
- package/es/List/DynamicList/utils.js +6 -0
- package/es/List/GridList/Demo.js +27 -4
- package/es/List/GridList/index.css +1 -0
- package/es/List/GridList/index.d.ts +2 -2
- package/es/List/GridList/index.js +8 -12
- package/es/List/GridList/interface.d.ts +1 -1
- package/es/List/VList/index.js +2 -3
- package/es/List/index.css +2 -54
- package/es/List/index.d.ts +6 -7
- package/es/List/index.js +14 -153
- package/es/List/interface.d.ts +3 -61
- package/es/LoaderApp/index.d.ts +1 -1
- package/es/LoaderApp/index.js +27 -46
- package/es/LoaderApp/interface.d.ts +3 -0
- package/es/LoaderApp/loader.d.ts +6 -7
- package/es/LoaderApp/loader.js +20 -30
- package/es/LoaderApp/sandbox.back.d.ts +18 -0
- package/es/LoaderApp/sandbox.back.js +356 -0
- package/es/LoaderApp/sandbox.d.ts +12 -0
- package/es/LoaderApp/sandbox.js +110 -0
- package/es/LoaderApp/utils.d.ts +5 -1
- package/es/LoaderApp/utils.js +98 -2
- package/es/Map/AMap.d.ts +1572 -0
- package/es/Map/BasicMap/AMapInstance.d.ts +15 -0
- package/es/Map/BasicMap/AMapInstance.js +66 -0
- package/es/Map/BasicMap/LeafletInstance.d.ts +15 -0
- package/es/Map/BasicMap/LeafletInstance.js +98 -0
- package/es/Map/BasicMap/index.css +24 -0
- package/es/Map/BasicMap/index.d.ts +9 -0
- package/es/Map/BasicMap/index.js +108 -0
- package/es/Map/ClusterLayer/hook.d.ts +5 -0
- package/es/Map/ClusterLayer/hook.js +144 -0
- package/es/Map/ClusterLayer/index.css +26 -0
- package/es/Map/ClusterLayer/index.d.ts +5 -0
- package/es/Map/ClusterLayer/index.js +31 -0
- package/es/Map/ClusterLayer/props.d.ts +8 -0
- package/es/Map/Config/index.d.ts +7 -0
- package/es/{InitialConfig → Map/Config}/index.js +35 -36
- package/es/Map/Config/utils.d.ts +2 -0
- package/es/{List/DynamicDeviceList → Map/Config}/utils.js +48 -45
- package/es/Map/Context/index.d.ts +11 -0
- package/es/Map/Context/index.js +66 -0
- package/es/Map/FindPio/index.css +7 -0
- package/es/Map/FindPio/index.d.ts +4 -0
- package/es/Map/FindPio/index.js +16 -0
- package/es/{WorkerFlow/Demo.d.ts → Map/InfoWindow/demo.d.ts} +0 -0
- package/es/{List/DynamicDeviceList/Demo.js → Map/InfoWindow/demo.js} +27 -25
- package/es/Map/InfoWindow/index.d.ts +8 -0
- package/es/Map/InfoWindow/index.js +74 -0
- package/es/Map/LevelCenter/DragMarker/index.d.ts +12 -0
- package/es/Map/LevelCenter/DragMarker/index.js +48 -0
- package/es/{List/DeviceList → Map/LevelCenter}/index.css +0 -0
- package/es/Map/LevelCenter/index.d.ts +13 -0
- package/es/Map/LevelCenter/index.js +42 -0
- package/es/Map/LoaderMap/index.d.ts +12 -0
- package/es/Map/LoaderMap/index.js +58 -0
- package/es/Map/ResetTools/index.css +32 -0
- package/es/Map/ResetTools/index.d.ts +9 -0
- package/es/Map/ResetTools/index.js +61 -0
- package/es/Map/SinglePoint/Marker/index.d.ts +7 -0
- package/es/Map/SinglePoint/Marker/index.js +29 -0
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Hover.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Normal.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Hover.svg +15 -0
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Normal.svg +15 -0
- package/es/Map/SinglePoint/index.css +29 -0
- package/es/Map/SinglePoint/index.d.ts +7 -0
- package/es/Map/SinglePoint/index.js +32 -0
- package/es/Map/hook/useMapType.d.ts +4 -0
- package/es/Map/hook/useMapType.js +13 -0
- package/es/Map/icon.d.ts +2 -0
- package/es/Map/icon.js +10 -0
- package/es/Map/index.d.ts +23 -0
- package/es/Map/index.js +25 -0
- package/es/Map/interface.d.ts +55 -0
- package/es/Map/points.json +61247 -0
- package/es/{Picture/component/MoveContent → Map/useMarker}/index.css +0 -0
- package/es/Map/useMarker/index.d.ts +11 -0
- package/es/{WorkerFlow/Form/FormAuth.js → Map/useMarker/index.js} +57 -80
- package/es/Map/withMap/index.d.ts +2 -0
- package/es/Map/withMap/index.js +12 -0
- package/es/Picture/index.d.ts +1 -1
- package/es/Picture/index.js +2 -2
- package/es/Player/api/index.d.ts +1 -0
- package/es/Player/api/index.js +7 -1
- package/es/Player/demo.js +13 -21
- package/es/Player/event/index.js +5 -1
- package/es/Player/frontend_player.d.ts +1 -1
- package/es/Player/frontend_player.js +20 -13
- package/es/Player/frontend_timeline.d.ts +1 -1
- package/es/Player/live_heart.js +45 -12
- package/es/Player/message.js +23 -12
- package/es/Player/player.d.ts +31 -7
- package/es/Player/segment_player.d.ts +1 -1
- package/es/Player/segment_player.js +30 -18
- package/es/Player/segment_timeline.js +6 -6
- package/es/Player/single_player.js +50 -9
- package/es/Player/timeline.js +8 -6
- package/es/Player/util.d.ts +2 -1
- package/es/Player/util.js +4 -1
- package/es/PlayerExt/index.css +2 -2
- package/es/PlayerExt/index.d.ts +3 -1
- package/es/PlayerExt/index.js +19 -5
- package/es/ScreenPlayer/Live.d.ts +5 -0
- package/es/ScreenPlayer/Live.js +109 -0
- package/es/ScreenPlayer/LiveTools.d.ts +15 -0
- package/es/ScreenPlayer/LiveTools.js +95 -0
- package/es/ScreenPlayer/PlayerWithExt.d.ts +22 -0
- package/es/ScreenPlayer/PlayerWithExt.js +169 -0
- package/es/ScreenPlayer/Record.d.ts +5 -0
- package/es/{WorkerFlow/index.js → ScreenPlayer/Record.js} +290 -273
- package/es/ScreenPlayer/RecordTools.d.ts +17 -0
- package/es/ScreenPlayer/RecordTools.js +102 -0
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +10 -0
- package/es/ScreenPlayer/SegmentTimeLine.js +40 -0
- package/es/ScreenPlayer/TimeSlider.d.ts +127 -0
- package/es/ScreenPlayer/TimeSlider.js +528 -0
- package/es/ScreenPlayer/demo.d.ts +2 -0
- package/es/ScreenPlayer/demo.js +25 -0
- package/es/ScreenPlayer/demo2.d.ts +2 -0
- package/es/ScreenPlayer/demo2.js +153 -0
- package/es/ScreenPlayer/index.css +50 -0
- package/es/ScreenPlayer/index.d.ts +6 -0
- package/es/ScreenPlayer/index.js +7 -0
- package/es/ScreenPlayer/interface.d.ts +81 -0
- package/es/ScreenPlayer/useRecordList.d.ts +3 -0
- package/es/{WorkerFlow/Form/UserAndGroupSelect.js → ScreenPlayer/useRecordList.js} +173 -176
- package/es/ScreenPlayer/useVideoFit.d.ts +5 -0
- package/es/ScreenPlayer/useVideoFit.js +46 -0
- package/es/ScreenPlayer/utils.d.ts +25 -0
- package/es/ScreenPlayer/utils.js +84 -0
- package/es/Tree/demo.js +9 -12
- package/es/Tree/index.css +55 -29
- package/es/Tree/index.d.ts +20 -19
- package/es/Tree/index.js +70 -185
- package/es/index.d.ts +7 -9
- package/es/index.js +7 -9
- package/es/useInfiniteScroll/index.d.ts +16 -0
- package/es/{useHttp → useInfiniteScroll}/index.js +79 -43
- package/es/useVirtualList/index.d.ts +13 -0
- package/es/useVirtualList/index.js +175 -0
- package/es/withErrorBoundary/index.d.ts +8 -0
- package/es/withErrorBoundary/index.js +43 -0
- package/package.json +18 -21
- package/test.js +48 -0
- package/es/DeviceIcon/icon.d.ts +0 -9
- package/es/DeviceIcon/icon.js +0 -138
- package/es/DeviceIcon/index.css +0 -8
- package/es/DeviceIcon/index.d.ts +0 -14
- package/es/DeviceIcon/index.js +0 -37
- package/es/DeviceSelect/TreeType.d.ts +0 -7
- package/es/DeviceSelect/TreeType.js +0 -36
- package/es/DeviceSelect/demo.d.ts +0 -3
- package/es/DeviceSelect/demo.js +0 -22
- package/es/DeviceSelect/index.css +0 -11
- package/es/DeviceSelect/index.d.ts +0 -13
- package/es/DeviceSelect/index.js +0 -191
- package/es/Dict/cache.d.ts +0 -3
- package/es/Dict/cache.js +0 -21
- package/es/Dict/device.d.ts +0 -28
- package/es/Dict/device.js +0 -117
- package/es/Dict/hook.d.ts +0 -3
- package/es/Dict/hook.js +0 -98
- package/es/Dict/index.d.ts +0 -9
- package/es/Dict/index.js +0 -10
- package/es/Dict/interface.d.ts +0 -16
- package/es/Dict/utils.d.ts +0 -10
- package/es/Dict/utils.js +0 -44
- package/es/InitialConfig/index.d.ts +0 -8
- package/es/InitialConfig/utils.d.ts +0 -20
- package/es/InitialConfig/utils.js +0 -110
- package/es/InitialRequest/index.d.ts +0 -9
- package/es/InitialRequest/index.js +0 -97
- package/es/InitialRequest/utils.d.ts +0 -10
- package/es/InitialRequest/utils.js +0 -116
- package/es/List/CheckExt.d.ts +0 -9
- package/es/List/CheckExt.js +0 -36
- package/es/List/DeviceList/index.d.ts +0 -11
- package/es/List/DeviceList/index.js +0 -50
- package/es/List/DynamicDeviceList/Demo.d.ts +0 -3
- package/es/List/DynamicDeviceList/index.css +0 -39
- package/es/List/DynamicDeviceList/index.d.ts +0 -12
- package/es/List/DynamicDeviceList/index.js +0 -205
- package/es/List/DynamicDeviceList/interface.d.ts +0 -37
- package/es/List/DynamicDeviceList/utils.d.ts +0 -16
- package/es/List/ListExt/index.css +0 -3
- package/es/List/ListExt/index.d.ts +0 -19
- package/es/List/ListExt/index.js +0 -44
- package/es/Picture/component/MoveContent/index.d.ts +0 -39
- package/es/Picture/component/MoveContent/index.js +0 -244
- package/es/Picture/component/MoveContent/utils.d.ts +0 -4
- package/es/Title/index.css +0 -25
- package/es/Title/index.d.ts +0 -12
- package/es/Title/index.js +0 -30
- package/es/Tree/BaseTree/index.css +0 -64
- package/es/Tree/BaseTree/index.d.ts +0 -24
- package/es/Tree/BaseTree/index.js +0 -83
- package/es/UserSelect/demo.d.ts +0 -3
- package/es/UserSelect/demo.js +0 -21
- package/es/UserSelect/index.css +0 -16
- package/es/UserSelect/index.d.ts +0 -18
- package/es/UserSelect/index.js +0 -194
- package/es/WorkerFlow/Demo.js +0 -57
- package/es/WorkerFlow/Form/Approver.d.ts +0 -10
- package/es/WorkerFlow/Form/Approver.js +0 -33
- package/es/WorkerFlow/Form/Condition.d.ts +0 -11
- package/es/WorkerFlow/Form/Condition.js +0 -235
- package/es/WorkerFlow/Form/EmptyUserSet.d.ts +0 -8
- package/es/WorkerFlow/Form/EmptyUserSet.js +0 -137
- package/es/WorkerFlow/Form/FormAuth.d.ts +0 -8
- package/es/WorkerFlow/Form/GroupList.d.ts +0 -12
- package/es/WorkerFlow/Form/GroupList.js +0 -44
- package/es/WorkerFlow/Form/GroupSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/GroupSelect.js +0 -167
- package/es/WorkerFlow/Form/GroupSelectModalContent.d.ts +0 -6
- package/es/WorkerFlow/Form/GroupSelectModalContent.js +0 -177
- package/es/WorkerFlow/Form/Handle.d.ts +0 -10
- package/es/WorkerFlow/Form/Handle.js +0 -33
- package/es/WorkerFlow/Form/LevelGroupSelect.d.ts +0 -12
- package/es/WorkerFlow/Form/LevelGroupSelect.js +0 -208
- package/es/WorkerFlow/Form/Notifier.d.ts +0 -8
- package/es/WorkerFlow/Form/Notifier.js +0 -16
- package/es/WorkerFlow/Form/UserAndGroupSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/UserSelect.d.ts +0 -8
- package/es/WorkerFlow/Form/UserSelect.js +0 -150
- package/es/WorkerFlow/Form/UserSelectModalContent.d.ts +0 -6
- package/es/WorkerFlow/Form/UserSelectModalContent.js +0 -166
- package/es/WorkerFlow/Form/UserSet.d.ts +0 -14
- package/es/WorkerFlow/Form/UserSet.js +0 -308
- package/es/WorkerFlow/Form/UsersHandleType.d.ts +0 -7
- package/es/WorkerFlow/Form/UsersHandleType.js +0 -32
- package/es/WorkerFlow/Form/utils.d.ts +0 -3
- package/es/WorkerFlow/Form/utils.js +0 -47
- package/es/WorkerFlow/Nodes/Add.d.ts +0 -7
- package/es/WorkerFlow/Nodes/Add.js +0 -98
- package/es/WorkerFlow/Nodes/AddOption.d.ts +0 -10
- package/es/WorkerFlow/Nodes/AddOption.js +0 -23
- package/es/WorkerFlow/Nodes/AddOptionList.d.ts +0 -8
- package/es/WorkerFlow/Nodes/AddOptionList.js +0 -46
- package/es/WorkerFlow/Nodes/Approver.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Approver.js +0 -53
- package/es/WorkerFlow/Nodes/Condition.d.ts +0 -10
- package/es/WorkerFlow/Nodes/Condition.js +0 -140
- package/es/WorkerFlow/Nodes/Constants.d.ts +0 -35
- package/es/WorkerFlow/Nodes/Constants.js +0 -150
- package/es/WorkerFlow/Nodes/End.d.ts +0 -7
- package/es/WorkerFlow/Nodes/End.js +0 -16
- package/es/WorkerFlow/Nodes/Handle.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Handle.js +0 -52
- package/es/WorkerFlow/Nodes/Node.d.ts +0 -8
- package/es/WorkerFlow/Nodes/Node.js +0 -26
- package/es/WorkerFlow/Nodes/Notifier.d.ts +0 -11
- package/es/WorkerFlow/Nodes/Notifier.js +0 -52
- package/es/WorkerFlow/Nodes/Render.d.ts +0 -8
- package/es/WorkerFlow/Nodes/Render.js +0 -16
- package/es/WorkerFlow/Nodes/Start.d.ts +0 -12
- package/es/WorkerFlow/Nodes/Start.js +0 -26
- package/es/WorkerFlow/Nodes/TitleElement.d.ts +0 -10
- package/es/WorkerFlow/Nodes/TitleElement.js +0 -127
- package/es/WorkerFlow/Nodes/Wrap.d.ts +0 -13
- package/es/WorkerFlow/Nodes/Wrap.js +0 -35
- package/es/WorkerFlow/OperatorContext.d.ts +0 -4
- package/es/WorkerFlow/OperatorContext.js +0 -3
- package/es/WorkerFlow/Tools.d.ts +0 -8
- package/es/WorkerFlow/Tools.js +0 -78
- package/es/WorkerFlow/XML/CanvasTag.d.ts +0 -3
- package/es/WorkerFlow/XML/CanvasTag.js +0 -142
- package/es/WorkerFlow/XML/EndEvent.d.ts +0 -1
- package/es/WorkerFlow/XML/EndEvent.js +0 -14
- package/es/WorkerFlow/XML/ExclusiveGateway.d.ts +0 -9
- package/es/WorkerFlow/XML/ExclusiveGateway.js +0 -101
- package/es/WorkerFlow/XML/Root.d.ts +0 -1
- package/es/WorkerFlow/XML/Root.js +0 -5
- package/es/WorkerFlow/XML/StartEvent.d.ts +0 -5
- package/es/WorkerFlow/XML/StartEvent.js +0 -28
- package/es/WorkerFlow/XML/UserTask.d.ts +0 -5
- package/es/WorkerFlow/XML/UserTask.js +0 -93
- package/es/WorkerFlow/XML/index.d.ts +0 -4
- package/es/WorkerFlow/XML/index.js +0 -100
- package/es/WorkerFlow/XML/utils.d.ts +0 -6
- package/es/WorkerFlow/XML/utils.js +0 -97
- package/es/WorkerFlow/data.json +0 -83
- package/es/WorkerFlow/index.css +0 -779
- package/es/WorkerFlow/index.d.ts +0 -13
- package/es/WorkerFlow/interface.d.ts +0 -93
- package/es/WorkerFlow/template.d.ts +0 -2
- package/es/WorkerFlow/template.js +0 -17
- package/es/WorkerFlow/utils.d.ts +0 -14
- package/es/WorkerFlow/utils.js +0 -212
- package/es/useHttp/index.d.ts +0 -8
package/es/Tree/index.css
CHANGED
|
@@ -1,38 +1,64 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
border: 1px solid var(--gray2);
|
|
6
|
-
margin-left: -1px;
|
|
1
|
+
.cloudapp-c-base-tree-component {
|
|
2
|
+
padding: 10px 0;
|
|
3
|
+
user-select: none;
|
|
7
4
|
}
|
|
8
|
-
.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
overflow: auto;
|
|
15
|
-
}
|
|
16
|
-
.bc-type-tree-layout .cloudapp-tree {
|
|
17
|
-
height: 100%;
|
|
18
|
-
overflow: auto;
|
|
5
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-switcher {
|
|
6
|
+
position: relative;
|
|
7
|
+
top: -2px;
|
|
8
|
+
left: 8px;
|
|
9
|
+
z-index: 2;
|
|
10
|
+
margin-right: 5px;
|
|
19
11
|
}
|
|
20
|
-
.
|
|
21
|
-
font-size: var(--fs);
|
|
12
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-title {
|
|
13
|
+
font-size: var(--fs-small);
|
|
14
|
+
flex: 1 1;
|
|
22
15
|
}
|
|
23
|
-
.
|
|
16
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode {
|
|
17
|
+
width: 100%;
|
|
18
|
+
white-space: nowrap;
|
|
24
19
|
font-size: var(--fs-small);
|
|
25
|
-
|
|
20
|
+
min-width: max-content;
|
|
21
|
+
position: relative;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
width: calc(100% - 32px);
|
|
26
24
|
}
|
|
27
|
-
.
|
|
28
|
-
|
|
25
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper {
|
|
26
|
+
font-size: var(--fs-small);
|
|
27
|
+
min-width: max-content;
|
|
28
|
+
position: relative;
|
|
29
29
|
display: inline-flex;
|
|
30
|
-
|
|
30
|
+
width: calc(100% - 32px);
|
|
31
31
|
}
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper:hover,
|
|
33
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper.cloudapp-tree-node-selected {
|
|
34
|
+
background: transparent;
|
|
35
|
+
color: var(--primary);
|
|
36
36
|
position: relative;
|
|
37
|
-
|
|
37
|
+
}
|
|
38
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper:hover:after,
|
|
39
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper.cloudapp-tree-node-selected:after {
|
|
40
|
+
content: '';
|
|
41
|
+
width: 100%;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
left: 0;
|
|
44
|
+
position: absolute;
|
|
45
|
+
border-bottom: 1px solid var(--primary);
|
|
46
|
+
}
|
|
47
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper:hover .cloudapp-tree-switcher,
|
|
48
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper.cloudapp-tree-node-selected .cloudapp-tree-switcher,
|
|
49
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper:hover .cloudapp-tree-iconEle,
|
|
50
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper.cloudapp-tree-node-selected .cloudapp-tree-iconEle {
|
|
51
|
+
color: var(--primary);
|
|
52
|
+
}
|
|
53
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper:hover .cloudapp-tree-switcher .anticon,
|
|
54
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper.cloudapp-tree-node-selected .cloudapp-tree-switcher .anticon,
|
|
55
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper:hover .cloudapp-tree-iconEle .anticon,
|
|
56
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode span.cloudapp-tree-node-content-wrapper.cloudapp-tree-node-selected .cloudapp-tree-iconEle .anticon {
|
|
57
|
+
color: var(--primary);
|
|
58
|
+
}
|
|
59
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode-switcher-open .cloudapp-tree-switcher,
|
|
60
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode-switcher-close .cloudapp-tree-switcher,
|
|
61
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode-switcher-open .cloudapp-tree-iconEle,
|
|
62
|
+
.cloudapp-c-base-tree-component .cloudapp-tree-treenode-switcher-close .cloudapp-tree-iconEle {
|
|
63
|
+
color: var(--icon);
|
|
38
64
|
}
|
package/es/Tree/index.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tree 基础组件支持各种自定义其他tree可用过它来拓展
|
|
3
|
+
*/
|
|
1
4
|
import React from 'react';
|
|
2
|
-
import {
|
|
5
|
+
import type { DataNode, TreeProps } from 'antd/lib/tree';
|
|
3
6
|
import './index.less';
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onDefailtSelect?: (id?: string) => void;
|
|
12
|
-
mode?: 'Bz' | 'Custom' | 'Place' | 'Org';
|
|
7
|
+
export interface ITreeNodeProps {
|
|
8
|
+
prefix?: (node: DataNode) => JSX.Element;
|
|
9
|
+
suffix?: (node: DataNode) => JSX.Element;
|
|
10
|
+
keyword?: string;
|
|
11
|
+
key?: string;
|
|
12
|
+
nameKey?: string;
|
|
13
|
+
RenderTreeTitle?: (node: DataNode) => JSX.Element;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
15
|
+
export interface BaseTreeProps extends Omit<TreeProps, 'icon'> {
|
|
16
|
+
checkable?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
treeData?: DataNode[] | any[];
|
|
19
|
+
showIcon?: boolean;
|
|
20
|
+
treeNodeProps?: ITreeNodeProps;
|
|
21
|
+
icon?: (node: DataNode) => JSX.Element;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
declare const BTree: React.ForwardRefExoticComponent<BaseTreeProps & React.RefAttributes<any>>;
|
|
24
|
+
export default BTree;
|
package/es/Tree/index.js
CHANGED
|
@@ -1,198 +1,83 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
-
|
|
5
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
-
|
|
7
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
|
-
|
|
9
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
-
|
|
11
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
-
|
|
13
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
14
|
-
|
|
15
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
|
-
|
|
17
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
18
|
-
|
|
19
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
20
|
-
|
|
21
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
-
|
|
1
|
+
import "antd/lib/tree/style";
|
|
2
|
+
import _Tree from "antd/lib/tree";
|
|
23
3
|
import { __rest } from "tslib";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
4
|
+
/**
|
|
5
|
+
* tree 基础组件支持各种自定义其他tree可用过它来拓展
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { useImperativeHandle, useMemo, useRef } from 'react';
|
|
28
9
|
import IconFont from '../IconFont';
|
|
29
|
-
import
|
|
30
|
-
import Tree from './BaseTree';
|
|
10
|
+
import HightLevel from '../HightLevel';
|
|
31
11
|
import "./index.css";
|
|
32
|
-
var defaultList = [];
|
|
33
12
|
|
|
34
|
-
function
|
|
35
|
-
var
|
|
13
|
+
function BaseTree(_a, ref) {
|
|
14
|
+
var treeData = _a.treeData,
|
|
36
15
|
className = _a.className,
|
|
37
|
-
renderHeader = _a.renderHeader,
|
|
38
|
-
inputPlaceholder = _a.inputPlaceholder,
|
|
39
|
-
treeNodeProps = _a.treeNodeProps,
|
|
40
|
-
onDefailtSelect = _a.onDefailtSelect,
|
|
41
|
-
mode = _a.mode,
|
|
42
16
|
showIcon = _a.showIcon,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}, [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
useEffect(function () {
|
|
76
|
-
var _a, _b;
|
|
77
|
-
|
|
78
|
-
var keys = [];
|
|
79
|
-
var defaultKeys = mode === 'Place' ? [] : ((_a = treeData[0]) === null || _a === void 0 ? void 0 : _a.id) ? [(_b = treeData[0]) === null || _b === void 0 ? void 0 : _b.id] : [];
|
|
80
|
-
|
|
81
|
-
if (!state.keyword) {
|
|
82
|
-
setState(function (old) {
|
|
83
|
-
return Object.assign(Object.assign({}, old), {
|
|
84
|
-
expandedKeys: defaultKeys,
|
|
85
|
-
focusKey: Date.now()
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
switch (mode) {
|
|
92
|
-
case 'Place':
|
|
93
|
-
var places = list.filter(function (v) {
|
|
94
|
-
return v.areaName.includes(state.keyword);
|
|
95
|
-
});
|
|
96
|
-
places.forEach(function (v) {
|
|
97
|
-
var codes = getPlaceCodesWithParent(v.areaCode, list);
|
|
98
|
-
keys = [].concat(keys, codes);
|
|
99
|
-
});
|
|
100
|
-
break;
|
|
101
|
-
|
|
102
|
-
case 'Bz':
|
|
103
|
-
case 'Custom':
|
|
104
|
-
var trees = list.filter(function (v) {
|
|
105
|
-
return v.groupName.includes(state.keyword);
|
|
106
|
-
});
|
|
107
|
-
trees.forEach(function (v) {
|
|
108
|
-
var ids = getParentListById(v.id, list).map(function (v) {
|
|
109
|
-
return v.id;
|
|
110
|
-
});
|
|
111
|
-
keys = [].concat(keys, ids);
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
case 'Org':
|
|
115
|
-
var orgs = list.filter(function (v) {
|
|
116
|
-
return v.organizationName.includes(state.keyword);
|
|
117
|
-
});
|
|
118
|
-
orgs.forEach(function (v) {
|
|
119
|
-
var ids = getParentListById(v.id, list).map(function (v) {
|
|
120
|
-
return v.id;
|
|
121
|
-
});
|
|
122
|
-
keys = [].concat(keys, ids);
|
|
123
|
-
});
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
var expandedKeys = _toConsumableArray(new Set(_toConsumableArray(keys)));
|
|
128
|
-
|
|
129
|
-
setState(function (old) {
|
|
130
|
-
var _a;
|
|
131
|
-
|
|
132
|
-
return Object.assign(Object.assign({}, old), {
|
|
133
|
-
expandedKeys: expandedKeys.length > 0 ? expandedKeys : [(_a = treeData[0]) === null || _a === void 0 ? void 0 : _a.id],
|
|
134
|
-
focusKey: Date.now()
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
}, [state.keyword, list, treeData, mode]);
|
|
138
|
-
var treeKey = useMemo(function () {
|
|
139
|
-
return mode === 'Place' ? 'areaCode' : 'id';
|
|
140
|
-
}, [mode]);
|
|
141
|
-
var treeName = useMemo(function () {
|
|
142
|
-
return mode === 'Place' ? 'areaName' : mode === 'Org' ? 'organizationName' : 'groupName';
|
|
143
|
-
}, [mode]);
|
|
144
|
-
/**
|
|
145
|
-
* @description 触发默认选中节点事件
|
|
146
|
-
*/
|
|
147
|
-
|
|
148
|
-
useEffect(function () {
|
|
149
|
-
var id = treeData[0] ? treeData[0][treeKey] : undefined;
|
|
150
|
-
id && onDefailtSelect && onDefailtSelect(id);
|
|
151
|
-
}, [treeData, treeKey]);
|
|
152
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
153
|
-
className: "bc-type-tree-layout ".concat(className)
|
|
154
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
155
|
-
title: title,
|
|
156
|
-
value: state.keyword,
|
|
157
|
-
inputPlaceholder: inputPlaceholder,
|
|
158
|
-
onChange: function onChange(val) {
|
|
159
|
-
return setState(function (old) {
|
|
160
|
-
return Object.assign(Object.assign({}, old), {
|
|
161
|
-
keyword: val
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}), renderHeader && renderHeader(), list.length > 0 && /*#__PURE__*/React.createElement(Tree, Object.assign({}, props, {
|
|
166
|
-
treeData: treeData,
|
|
167
|
-
key: state.focusKey,
|
|
17
|
+
treeNodeProps = _a.treeNodeProps,
|
|
18
|
+
icon = _a.icon,
|
|
19
|
+
props = __rest(_a, ["treeData", "className", "showIcon", "treeNodeProps", "icon"]);
|
|
20
|
+
|
|
21
|
+
var _useMemo = useMemo(function () {
|
|
22
|
+
return treeNodeProps;
|
|
23
|
+
}, []),
|
|
24
|
+
prefix = _useMemo.prefix,
|
|
25
|
+
suffix = _useMemo.suffix,
|
|
26
|
+
keyword = _useMemo.keyword,
|
|
27
|
+
_useMemo$key = _useMemo.key,
|
|
28
|
+
key = _useMemo$key === void 0 ? 'id' : _useMemo$key,
|
|
29
|
+
_useMemo$nameKey = _useMemo.nameKey,
|
|
30
|
+
nameKey = _useMemo$nameKey === void 0 ? 'name' : _useMemo$nameKey,
|
|
31
|
+
RenderTreeTitle = _useMemo.RenderTreeTitle;
|
|
32
|
+
|
|
33
|
+
var treeRef = useRef(null);
|
|
34
|
+
useImperativeHandle(ref, function () {
|
|
35
|
+
return {
|
|
36
|
+
getCheckedKeys: function getCheckedKeys() {
|
|
37
|
+
if (!props.checkable || !treeRef.current) {
|
|
38
|
+
return [];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return treeRef.current.tree.state.checkedKeys;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}, [props.checkable]);
|
|
45
|
+
return /*#__PURE__*/React.createElement(_Tree, Object.assign({
|
|
46
|
+
className: "cloudapp-c-base-tree-component ".concat(className),
|
|
47
|
+
ref: treeRef,
|
|
168
48
|
showIcon: showIcon,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
suffix: treeNodeProps === null || treeNodeProps === void 0 ? void 0 : treeNodeProps.suffix,
|
|
181
|
-
nameKey: treeName,
|
|
182
|
-
key: treeKey
|
|
49
|
+
switcherIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
50
|
+
style: {
|
|
51
|
+
fontSize: 20,
|
|
52
|
+
verticalAlign: '-0.4em'
|
|
53
|
+
},
|
|
54
|
+
type: "icon-S_Arrow_SmallDown"
|
|
55
|
+
}),
|
|
56
|
+
treeData: treeData,
|
|
57
|
+
fieldNames: {
|
|
58
|
+
key: key,
|
|
59
|
+
title: nameKey
|
|
183
60
|
},
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
61
|
+
key: keyword,
|
|
62
|
+
titleRender: RenderTreeTitle ? RenderTreeTitle : function (node) {
|
|
63
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
64
|
+
title: node[nameKey],
|
|
65
|
+
className: "tree-item-title"
|
|
66
|
+
}, /*#__PURE__*/React.createElement("span", null, showIcon && icon && icon(node), prefix && prefix(node), /*#__PURE__*/React.createElement(HightLevel, {
|
|
67
|
+
keyword: keyword,
|
|
68
|
+
name: node[nameKey]
|
|
69
|
+
})), suffix && suffix(node));
|
|
188
70
|
}
|
|
189
|
-
}))
|
|
71
|
+
}, props));
|
|
190
72
|
}
|
|
191
73
|
|
|
192
|
-
|
|
193
|
-
|
|
74
|
+
var BTree = /*#__PURE__*/React.forwardRef(BaseTree);
|
|
75
|
+
BTree.defaultProps = {
|
|
76
|
+
treeData: [],
|
|
194
77
|
className: '',
|
|
195
|
-
treeNodeProps: {
|
|
196
|
-
|
|
78
|
+
treeNodeProps: {
|
|
79
|
+
nameKey: 'name',
|
|
80
|
+
key: 'id'
|
|
81
|
+
}
|
|
197
82
|
};
|
|
198
|
-
export default
|
|
83
|
+
export default BTree;
|
package/es/index.d.ts
CHANGED
|
@@ -6,36 +6,34 @@ export { default as Box } from './Box';
|
|
|
6
6
|
export { default as CheckGroupFixed } from './CheckGroupFixed';
|
|
7
7
|
export { default as Config } from './Config';
|
|
8
8
|
export { default as ConfigContext } from './ConfigContext';
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as DeviceSelect } from './DeviceSelect';
|
|
11
|
-
export { default as Dict } from './Dict';
|
|
9
|
+
export { default as DomMove } from './DomMove';
|
|
12
10
|
export { default as Drag } from './Drag';
|
|
13
11
|
export { default as Drawer } from './Drawer';
|
|
12
|
+
export { default as ErrorBoundary } from './ErrorBoundary';
|
|
14
13
|
export { default as FrontendPlayer } from './FrontendPlayer';
|
|
15
14
|
export { default as FullScreen } from './FullScreen';
|
|
16
15
|
export { default as HightLevel } from './HightLevel';
|
|
17
16
|
export { default as IconFont } from './IconFont';
|
|
18
17
|
export { default as ImageView } from './ImageView';
|
|
19
|
-
export { default as InitialConfig } from './InitialConfig';
|
|
20
|
-
export { default as InitialRequest } from './InitialRequest';
|
|
21
18
|
export { default as Input } from './Input';
|
|
22
19
|
export { default as InstanceHistory } from './InstanceHistory';
|
|
23
20
|
export { default as LabelValue } from './LabelValue';
|
|
24
21
|
export { default as List } from './List';
|
|
25
22
|
export { default as LoaderApp } from './LoaderApp';
|
|
26
23
|
export { default as LoaderScript } from './LoaderScript';
|
|
24
|
+
export { default as Map } from './Map';
|
|
27
25
|
export { default as Modal } from './Modal';
|
|
28
26
|
export { default as Picture } from './Picture';
|
|
29
27
|
export { default as Player } from './Player';
|
|
30
28
|
export { default as PlayerExt } from './PlayerExt';
|
|
31
29
|
export { default as Progress } from './Progress';
|
|
30
|
+
export { default as ScreenPlayer } from './ScreenPlayer';
|
|
32
31
|
export { default as SegmentPlayer } from './SegmentPlayer';
|
|
33
32
|
export { default as Service } from './Service';
|
|
34
33
|
export { default as TableLayout } from './TableLayout';
|
|
35
34
|
export { default as ThemeAntd } from './ThemeAntd';
|
|
36
|
-
export { default as Title } from './Title';
|
|
37
35
|
export { default as Tree } from './Tree';
|
|
38
|
-
export { default as UserSelect } from './UserSelect';
|
|
39
|
-
export { default as WorkerFlow } from './WorkerFlow';
|
|
40
36
|
export { default as useHistory } from './useHistory';
|
|
41
|
-
export { default as
|
|
37
|
+
export { default as useInfiniteScroll } from './useInfiniteScroll';
|
|
38
|
+
export { default as useVirtualList } from './useVirtualList';
|
|
39
|
+
export { default as withErrorBoundary } from './withErrorBoundary';
|
package/es/index.js
CHANGED
|
@@ -6,36 +6,34 @@ export { default as Box } from './Box';
|
|
|
6
6
|
export { default as CheckGroupFixed } from './CheckGroupFixed';
|
|
7
7
|
export { default as Config } from './Config';
|
|
8
8
|
export { default as ConfigContext } from './ConfigContext';
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as DeviceSelect } from './DeviceSelect';
|
|
11
|
-
export { default as Dict } from './Dict';
|
|
9
|
+
export { default as DomMove } from './DomMove';
|
|
12
10
|
export { default as Drag } from './Drag';
|
|
13
11
|
export { default as Drawer } from './Drawer';
|
|
12
|
+
export { default as ErrorBoundary } from './ErrorBoundary';
|
|
14
13
|
export { default as FrontendPlayer } from './FrontendPlayer';
|
|
15
14
|
export { default as FullScreen } from './FullScreen';
|
|
16
15
|
export { default as HightLevel } from './HightLevel';
|
|
17
16
|
export { default as IconFont } from './IconFont';
|
|
18
17
|
export { default as ImageView } from './ImageView';
|
|
19
|
-
export { default as InitialConfig } from './InitialConfig';
|
|
20
|
-
export { default as InitialRequest } from './InitialRequest';
|
|
21
18
|
export { default as Input } from './Input';
|
|
22
19
|
export { default as InstanceHistory } from './InstanceHistory';
|
|
23
20
|
export { default as LabelValue } from './LabelValue';
|
|
24
21
|
export { default as List } from './List';
|
|
25
22
|
export { default as LoaderApp } from './LoaderApp';
|
|
26
23
|
export { default as LoaderScript } from './LoaderScript';
|
|
24
|
+
export { default as Map } from './Map';
|
|
27
25
|
export { default as Modal } from './Modal';
|
|
28
26
|
export { default as Picture } from './Picture';
|
|
29
27
|
export { default as Player } from './Player';
|
|
30
28
|
export { default as PlayerExt } from './PlayerExt';
|
|
31
29
|
export { default as Progress } from './Progress';
|
|
30
|
+
export { default as ScreenPlayer } from './ScreenPlayer';
|
|
32
31
|
export { default as SegmentPlayer } from './SegmentPlayer';
|
|
33
32
|
export { default as Service } from './Service';
|
|
34
33
|
export { default as TableLayout } from './TableLayout';
|
|
35
34
|
export { default as ThemeAntd } from './ThemeAntd';
|
|
36
|
-
export { default as Title } from './Title';
|
|
37
35
|
export { default as Tree } from './Tree';
|
|
38
|
-
export { default as UserSelect } from './UserSelect';
|
|
39
|
-
export { default as WorkerFlow } from './WorkerFlow';
|
|
40
36
|
export { default as useHistory } from './useHistory';
|
|
41
|
-
export { default as
|
|
37
|
+
export { default as useInfiniteScroll } from './useInfiniteScroll';
|
|
38
|
+
export { default as useVirtualList } from './useVirtualList';
|
|
39
|
+
export { default as withErrorBoundary } from './withErrorBoundary';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BasicTarget } from 'ahooks/lib/utils/domTarget';
|
|
2
|
+
export declare type TData<T> = {
|
|
3
|
+
list: T[];
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
};
|
|
6
|
+
declare function useInfiniteScroll<T>(fetcher: (currentData?: TData<T>) => Promise<TData<T>>, options: {
|
|
7
|
+
target?: BasicTarget;
|
|
8
|
+
isNoMore?: (data?: TData<T>) => boolean;
|
|
9
|
+
threshold?: number;
|
|
10
|
+
reloadDeps?: any[];
|
|
11
|
+
}): {
|
|
12
|
+
noMore: boolean;
|
|
13
|
+
data: TData<T>;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
};
|
|
16
|
+
export default useInfiniteScroll;
|