@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
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
loadNextPage: (d?: IDynamicGridListResult) => Promise<IDynamicGridListResult>;
|
|
7
|
-
reloadDeps?: any[];
|
|
8
|
-
isNoMore: (d: any) => boolean;
|
|
9
|
-
renderItem: (item: any) => React.ReactNode;
|
|
2
|
+
import { GridListCell } from '../GridList/interface';
|
|
3
|
+
import { TData } from '../../useInfiniteScroll';
|
|
4
|
+
export interface IDynamicGridListProps<T> {
|
|
5
|
+
itemHeight?: number;
|
|
10
6
|
className?: string;
|
|
11
|
-
getGridGap?: (elementWidth: number, windowHeight: number) => number;
|
|
12
|
-
}
|
|
13
|
-
export interface IDynamicGridListResult {
|
|
14
|
-
list: any[];
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
export interface IDynamicGridListRef {
|
|
18
7
|
/**
|
|
19
|
-
*
|
|
8
|
+
* 重载条件
|
|
20
9
|
*/
|
|
21
|
-
|
|
10
|
+
reloadDeps?: any[];
|
|
22
11
|
/**
|
|
23
|
-
*
|
|
12
|
+
* render列表
|
|
13
|
+
* @param options
|
|
24
14
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
renderItem: (item: T, cell: GridListCell<T>) => React.ReactNode;
|
|
16
|
+
loadPage(d: TData<T>): Promise<TData<T>>;
|
|
17
|
+
itemWidth?: number;
|
|
18
|
+
itemKey: string;
|
|
19
|
+
getGridGap?: (...args: any) => number;
|
|
20
|
+
isNoMore?: (data: TData<T>) => boolean;
|
|
21
|
+
threshold?: number;
|
|
22
|
+
}
|
|
23
|
+
declare function DynamicGridList<T>({ renderItem, itemHeight, itemKey, itemWidth, reloadDeps, getGridGap, loadPage, isNoMore, threshold, ...props }: IDynamicGridListProps<T>): JSX.Element;
|
|
24
|
+
declare namespace DynamicGridList {
|
|
25
|
+
var defaultProps: any;
|
|
34
26
|
}
|
|
35
|
-
|
|
36
|
-
export default _default;
|
|
27
|
+
export default DynamicGridList;
|
|
@@ -1,45 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "antd/lib/message/style";
|
|
2
|
+
import _message from "antd/lib/message";
|
|
3
|
+
import { __rest } from "tslib";
|
|
4
|
+
import React, { useEffect, useMemo, useRef } from 'react';
|
|
4
5
|
import GridList from '../GridList';
|
|
6
|
+
import useInfiniteScroll from '../../useInfiniteScroll';
|
|
7
|
+
|
|
8
|
+
function DynamicGridList(_a) {
|
|
9
|
+
var renderItem = _a.renderItem,
|
|
10
|
+
itemHeight = _a.itemHeight,
|
|
11
|
+
itemKey = _a.itemKey,
|
|
12
|
+
itemWidth = _a.itemWidth,
|
|
13
|
+
reloadDeps = _a.reloadDeps,
|
|
14
|
+
getGridGap = _a.getGridGap,
|
|
15
|
+
loadPage = _a.loadPage,
|
|
16
|
+
isNoMore = _a.isNoMore,
|
|
17
|
+
threshold = _a.threshold,
|
|
18
|
+
props = __rest(_a, ["renderItem", "itemHeight", "itemKey", "itemWidth", "reloadDeps", "getGridGap", "loadPage", "isNoMore", "threshold"]);
|
|
5
19
|
|
|
6
|
-
function DynamicGridList(props, ref) {
|
|
7
|
-
var _props$className = props.className,
|
|
8
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
9
|
-
renderItem = props.renderItem,
|
|
10
|
-
_props$getGridGap = props.getGridGap,
|
|
11
|
-
getGridGap = _props$getGridGap === void 0 ? function () {
|
|
12
|
-
return 20;
|
|
13
|
-
} : _props$getGridGap,
|
|
14
|
-
_props$itemHeight = props.itemHeight,
|
|
15
|
-
itemHeight = _props$itemHeight === void 0 ? 300 : _props$itemHeight,
|
|
16
|
-
_props$itemWidth = props.itemWidth,
|
|
17
|
-
itemWidth = _props$itemWidth === void 0 ? 250 : _props$itemWidth,
|
|
18
|
-
itemKey = props.itemKey,
|
|
19
|
-
reloadDeps = props.reloadDeps,
|
|
20
|
-
loadNextPage = props.loadNextPage,
|
|
21
|
-
isNoMore = props.isNoMore;
|
|
22
20
|
var containerRef = useRef(null);
|
|
23
21
|
|
|
24
|
-
var _useInfiniteScroll =
|
|
25
|
-
return loadNextPage(d);
|
|
26
|
-
}, {
|
|
22
|
+
var _useInfiniteScroll = useInfiniteScroll(loadPage, {
|
|
27
23
|
target: containerRef,
|
|
28
|
-
threshold:
|
|
24
|
+
threshold: threshold,
|
|
29
25
|
isNoMore: isNoMore,
|
|
30
|
-
manual: true,
|
|
31
26
|
reloadDeps: reloadDeps
|
|
32
27
|
}),
|
|
33
28
|
data = _useInfiniteScroll.data,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
loadMoreAsync = _useInfiniteScroll.loadMoreAsync,
|
|
40
|
-
loadingMore = _useInfiniteScroll.loadingMore,
|
|
41
|
-
noMore = _useInfiniteScroll.noMore,
|
|
42
|
-
cancel = _useInfiniteScroll.cancel;
|
|
29
|
+
noMore = _useInfiniteScroll.noMore;
|
|
30
|
+
|
|
31
|
+
useEffect(function () {
|
|
32
|
+
return _message.success('数据已全部加载完成!');
|
|
33
|
+
}, [noMore]);
|
|
43
34
|
|
|
44
35
|
function getItemData(data) {
|
|
45
36
|
return {
|
|
@@ -57,36 +48,12 @@ function DynamicGridList(props, ref) {
|
|
|
57
48
|
return Math.round(windowHeight * 1.5);
|
|
58
49
|
}
|
|
59
50
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
mutate({
|
|
64
|
-
list: [],
|
|
65
|
-
isMutate: true
|
|
66
|
-
});
|
|
67
|
-
(_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
68
|
-
left: 0,
|
|
69
|
-
top: 0
|
|
70
|
-
});
|
|
71
|
-
}, reloadDeps);
|
|
72
|
-
|
|
73
|
-
useImperativeHandle(ref, function () {
|
|
74
|
-
return {
|
|
75
|
-
data: data,
|
|
76
|
-
mutate: mutate,
|
|
77
|
-
reload: reload,
|
|
78
|
-
reloadAsync: reloadAsync,
|
|
79
|
-
loading: loading,
|
|
80
|
-
loadMore: loadMore,
|
|
81
|
-
loadMoreAsync: loadMoreAsync,
|
|
82
|
-
loadingMore: loadingMore,
|
|
83
|
-
noMore: noMore,
|
|
84
|
-
cancel: cancel
|
|
85
|
-
};
|
|
86
|
-
}, [data, mutate, reload, reloadAsync, loading, loadMore, loadMoreAsync, loadingMore, noMore, cancel]);
|
|
51
|
+
var dataList = useMemo(function () {
|
|
52
|
+
return data ? data.list || [] : [];
|
|
53
|
+
}, [data]);
|
|
87
54
|
return /*#__PURE__*/React.createElement(GridList, {
|
|
88
|
-
className: "cloudapp-dynamic-grid-list ".concat(className),
|
|
89
|
-
items:
|
|
55
|
+
className: "cloudapp-dynamic-grid-list ".concat(props.className),
|
|
56
|
+
items: dataList,
|
|
90
57
|
ref: containerRef,
|
|
91
58
|
getItemData: getItemData,
|
|
92
59
|
getColumnCount: getColumnCount,
|
|
@@ -96,4 +63,14 @@ function DynamicGridList(props, ref) {
|
|
|
96
63
|
});
|
|
97
64
|
}
|
|
98
65
|
|
|
99
|
-
|
|
66
|
+
DynamicGridList.defaultProps = {
|
|
67
|
+
reloadDeps: [],
|
|
68
|
+
className: '',
|
|
69
|
+
getGridGap: function getGridGap() {
|
|
70
|
+
return 20;
|
|
71
|
+
},
|
|
72
|
+
itemHeight: 300,
|
|
73
|
+
itemWidth: 250,
|
|
74
|
+
threshold: 50
|
|
75
|
+
};
|
|
76
|
+
export default DynamicGridList;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.l-c-dynamic-list-layout {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
border: 1px solid var(--gray2);
|
|
7
|
+
}
|
|
8
|
+
.l-c-dynamic-list-layout .dynamic-list-item {
|
|
9
|
+
padding: 0 10px;
|
|
10
|
+
}
|
|
11
|
+
.l-c-dynamic-list-layout .l-c-dynamic-box {
|
|
12
|
+
flex: 1;
|
|
13
|
+
overflow: auto;
|
|
14
|
+
contain: strict;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IDynamicListProps } from './interface';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare function DynamicDeviceList<T>({ renderItem, itemHeight, itemClassName, reloadDeps, loadPage }: IDynamicListProps<T>): JSX.Element;
|
|
5
|
+
declare namespace DynamicDeviceList {
|
|
6
|
+
var defaultProps: {
|
|
7
|
+
limit: number;
|
|
8
|
+
itemHeight: number;
|
|
9
|
+
params: {};
|
|
10
|
+
itemKey: string;
|
|
11
|
+
itemClassName: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export default DynamicDeviceList;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import "antd/lib/skeleton/style";
|
|
2
|
+
import _Skeleton from "antd/lib/skeleton";
|
|
3
|
+
import _useUpdateEffect from "ahooks/es/useUpdateEffect";
|
|
4
|
+
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
|
|
7
|
+
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."); }
|
|
8
|
+
|
|
9
|
+
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); }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
|
+
|
|
17
|
+
import React, { useMemo, useRef } from 'react';
|
|
18
|
+
import useVirtualList from '../../useVirtualList';
|
|
19
|
+
import { LIMIT, skeletonList } from './utils';
|
|
20
|
+
import useInfiniteScroll from '../../useInfiniteScroll';
|
|
21
|
+
import "./index.css";
|
|
22
|
+
|
|
23
|
+
function DynamicDeviceList(_ref) {
|
|
24
|
+
var renderItem = _ref.renderItem,
|
|
25
|
+
itemHeight = _ref.itemHeight,
|
|
26
|
+
itemClassName = _ref.itemClassName,
|
|
27
|
+
reloadDeps = _ref.reloadDeps,
|
|
28
|
+
loadPage = _ref.loadPage;
|
|
29
|
+
var containerRef = useRef();
|
|
30
|
+
var wrapperRef = useRef();
|
|
31
|
+
|
|
32
|
+
var _useInfiniteScroll = useInfiniteScroll(loadPage, {
|
|
33
|
+
target: containerRef,
|
|
34
|
+
threshold: 50,
|
|
35
|
+
isNoMore: function isNoMore(d) {
|
|
36
|
+
var _a;
|
|
37
|
+
|
|
38
|
+
return ((_a = d === null || d === void 0 ? void 0 : d.list) === null || _a === void 0 ? void 0 : _a.length) >= (d === null || d === void 0 ? void 0 : d.count);
|
|
39
|
+
},
|
|
40
|
+
reloadDeps: reloadDeps
|
|
41
|
+
}),
|
|
42
|
+
data = _useInfiniteScroll.data,
|
|
43
|
+
loading = _useInfiniteScroll.loading,
|
|
44
|
+
noMore = _useInfiniteScroll.noMore;
|
|
45
|
+
|
|
46
|
+
var isSkeleton = useMemo(function () {
|
|
47
|
+
return !noMore && loading;
|
|
48
|
+
}, [noMore, loading]);
|
|
49
|
+
var dataList = useMemo(function () {
|
|
50
|
+
return data ? data.list || [] : [];
|
|
51
|
+
}, [data]);
|
|
52
|
+
|
|
53
|
+
var _useVirtualList = useVirtualList(dataList, {
|
|
54
|
+
containerTarget: containerRef,
|
|
55
|
+
wrapperTarget: wrapperRef,
|
|
56
|
+
itemHeight: itemHeight,
|
|
57
|
+
overscan: 10
|
|
58
|
+
}),
|
|
59
|
+
_useVirtualList2 = _slicedToArray(_useVirtualList, 2),
|
|
60
|
+
list = _useVirtualList2[0],
|
|
61
|
+
scrollTo = _useVirtualList2[1];
|
|
62
|
+
|
|
63
|
+
_useUpdateEffect(function () {
|
|
64
|
+
return scrollTo(0);
|
|
65
|
+
}, reloadDeps ? reloadDeps : []);
|
|
66
|
+
|
|
67
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: "l-c-dynamic-list-layout"
|
|
69
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
70
|
+
className: "l-c-dynamic-box",
|
|
71
|
+
ref: containerRef
|
|
72
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
ref: wrapperRef
|
|
74
|
+
}, list.map(function (item) {
|
|
75
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
key: item.index,
|
|
77
|
+
style: {
|
|
78
|
+
height: itemHeight
|
|
79
|
+
},
|
|
80
|
+
className: itemClassName
|
|
81
|
+
}, renderItem(item));
|
|
82
|
+
})), isSkeleton && skeletonList.map(function (_, index) {
|
|
83
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
key: index,
|
|
85
|
+
style: {
|
|
86
|
+
padding: '0 10px',
|
|
87
|
+
height: itemHeight
|
|
88
|
+
},
|
|
89
|
+
className: itemClassName
|
|
90
|
+
}, /*#__PURE__*/React.createElement(_Skeleton, {
|
|
91
|
+
paragraph: false,
|
|
92
|
+
loading: true,
|
|
93
|
+
active: true
|
|
94
|
+
}));
|
|
95
|
+
})));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
DynamicDeviceList.defaultProps = {
|
|
99
|
+
limit: LIMIT,
|
|
100
|
+
itemHeight: 40,
|
|
101
|
+
params: {},
|
|
102
|
+
itemKey: 'id',
|
|
103
|
+
itemClassName: ''
|
|
104
|
+
};
|
|
105
|
+
export default DynamicDeviceList;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TData } from '../../useInfiniteScroll';
|
|
2
|
+
export interface IDynamicListProps<T> {
|
|
3
|
+
itemHeight?: number;
|
|
4
|
+
|
|
5
|
+
itemClassName?: string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 重载条件
|
|
9
|
+
*/
|
|
10
|
+
reloadDeps?: any[];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* render列表
|
|
14
|
+
* @param options
|
|
15
|
+
*/
|
|
16
|
+
renderItem(options: { index: number; data: T }): JSX.Element;
|
|
17
|
+
|
|
18
|
+
loadPage(d: TData<T>): Promise<TData<T>>;
|
|
19
|
+
}
|
package/es/List/GridList/Demo.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
3
|
+
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."); }
|
|
4
|
+
|
|
5
|
+
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); }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
13
|
+
import React, { useEffect, useState } from 'react';
|
|
2
14
|
import GridList from './index';
|
|
3
15
|
import data from './data.json';
|
|
4
16
|
var ITEM_WIDTH = 300;
|
|
@@ -20,22 +32,32 @@ function getWindowMargin(windowHeight) {
|
|
|
20
32
|
}
|
|
21
33
|
|
|
22
34
|
function getItemData(image, columnWidth) {
|
|
23
|
-
console.log(columnWidth);
|
|
24
35
|
return {
|
|
25
36
|
key: image.url,
|
|
26
37
|
height: 400,
|
|
27
|
-
width: ITEM_WIDTH
|
|
38
|
+
width: ITEM_WIDTH,
|
|
39
|
+
url: image.url
|
|
28
40
|
};
|
|
29
41
|
}
|
|
30
42
|
|
|
31
43
|
var App = function App() {
|
|
44
|
+
var _useState = useState([]),
|
|
45
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
46
|
+
list = _useState2[0],
|
|
47
|
+
setlist = _useState2[1];
|
|
48
|
+
|
|
49
|
+
useEffect(function () {
|
|
50
|
+
setTimeout(function () {
|
|
51
|
+
return setlist(data.data.list);
|
|
52
|
+
}, 2000);
|
|
53
|
+
}, []);
|
|
32
54
|
return /*#__PURE__*/React.createElement("div", {
|
|
33
55
|
style: {
|
|
34
56
|
height: 800,
|
|
35
57
|
overflow: 'auto'
|
|
36
58
|
}
|
|
37
59
|
}, /*#__PURE__*/React.createElement(GridList, {
|
|
38
|
-
items:
|
|
60
|
+
items: list,
|
|
39
61
|
getGridGap: getGridGap,
|
|
40
62
|
getColumnCount: getColumnCount,
|
|
41
63
|
getWindowMargin: getWindowMargin,
|
|
@@ -55,6 +77,7 @@ var App = function App() {
|
|
|
55
77
|
}
|
|
56
78
|
}, /*#__PURE__*/React.createElement("img", {
|
|
57
79
|
src: image.url,
|
|
80
|
+
alt: "",
|
|
58
81
|
style: {
|
|
59
82
|
objectFit: 'cover',
|
|
60
83
|
display: 'block',
|
|
@@ -11,5 +11,5 @@ export interface GridListProps<P> {
|
|
|
11
11
|
fixedColumnWidth?: number;
|
|
12
12
|
className?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
14
|
+
declare const GridList: React.ForwardRefExoticComponent<GridListProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export default GridList;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import React, { useRef
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
2
|
import { useGridListConfigData, useGridListContainerData, useGridListLayoutData, useGridListRenderData, useIntersecting } from './hook';
|
|
3
3
|
import { getGridRowStart } from './utils';
|
|
4
4
|
import "./index.css";
|
|
5
|
-
|
|
6
|
-
function GridList(props, ref) {
|
|
5
|
+
var GridList = /*#__PURE__*/React.forwardRef(function GridList(props, ref) {
|
|
7
6
|
var containerRef = useRef(null);
|
|
8
|
-
var
|
|
7
|
+
var domRef = ref !== null && ref !== void 0 ? ref : containerRef;
|
|
8
|
+
var containerData = useGridListContainerData(domRef);
|
|
9
9
|
var configData = useGridListConfigData(containerData, props);
|
|
10
10
|
var layoutData = useGridListLayoutData(configData);
|
|
11
11
|
var renderData = useGridListRenderData(containerData, configData, layoutData);
|
|
12
|
-
var intersecting = useIntersecting(
|
|
12
|
+
var intersecting = useIntersecting(domRef, "".concat(configData !== null ? configData.windowMargin : 0, "px"));
|
|
13
13
|
var colWidth = props.fixedColumnWidth ? "".concat(props.fixedColumnWidth, "px") : '1fr';
|
|
14
|
-
useImperativeHandle(ref, function () {
|
|
15
|
-
return containerRef.current;
|
|
16
|
-
}, []);
|
|
17
14
|
return /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
ref:
|
|
15
|
+
ref: domRef,
|
|
19
16
|
className: "cloudapp-grid-list ".concat(props.className || '')
|
|
20
17
|
}, /*#__PURE__*/React.createElement("div", {
|
|
21
18
|
style: {
|
|
@@ -42,6 +39,5 @@ function GridList(props, ref) {
|
|
|
42
39
|
}
|
|
43
40
|
}, props.renderItem(cell.item, cell));
|
|
44
41
|
}))));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export default /*#__PURE__*/React.forwardRef(GridList);
|
|
42
|
+
});
|
|
43
|
+
export default GridList;
|
package/es/List/VList/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _useVirtualList3 from "ahooks/es/useVirtualList";
|
|
2
|
-
|
|
3
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
2
|
|
|
5
3
|
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."); }
|
|
@@ -13,6 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
13
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
12
|
|
|
15
13
|
import React, { useRef } from 'react';
|
|
14
|
+
import useVirtualList from '../../useVirtualList';
|
|
16
15
|
import "./index.css";
|
|
17
16
|
|
|
18
17
|
function VList(_ref) {
|
|
@@ -23,7 +22,7 @@ function VList(_ref) {
|
|
|
23
22
|
var containerRef = useRef();
|
|
24
23
|
var wrapperRef = useRef();
|
|
25
24
|
|
|
26
|
-
var _useVirtualList =
|
|
25
|
+
var _useVirtualList = useVirtualList(data, {
|
|
27
26
|
containerTarget: containerRef,
|
|
28
27
|
wrapperTarget: wrapperRef,
|
|
29
28
|
itemHeight: rowHeight,
|
package/es/List/index.css
CHANGED
|
@@ -1,64 +1,12 @@
|
|
|
1
|
-
.lm-c-
|
|
1
|
+
.lm-c-list-wrapper {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
overflow: hidden;
|
|
5
5
|
height: 100%;
|
|
6
6
|
cursor: auto;
|
|
7
7
|
border: 1px solid var(--gray2);
|
|
8
|
-
/*列表项*/
|
|
9
8
|
}
|
|
10
|
-
.lm-c-
|
|
9
|
+
.lm-c-list-wrapper .lm-c-base-list-layout {
|
|
11
10
|
flex: 1;
|
|
12
11
|
overflow: hidden;
|
|
13
12
|
}
|
|
14
|
-
.lm-c-check-list-wrapper .list-item {
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
height: 30px;
|
|
17
|
-
line-height: 30px;
|
|
18
|
-
color: var(--color);
|
|
19
|
-
font-size: var(--fs-small);
|
|
20
|
-
padding: 0 10px;
|
|
21
|
-
}
|
|
22
|
-
.lm-c-check-list-wrapper .list-item > label {
|
|
23
|
-
margin: 0px;
|
|
24
|
-
width: 100%;
|
|
25
|
-
display: flex;
|
|
26
|
-
}
|
|
27
|
-
.lm-c-check-list-wrapper .list-item .item-info {
|
|
28
|
-
flex: 1;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
white-space: nowrap;
|
|
31
|
-
text-overflow: ellipsis;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
font-size: var(--fs-small);
|
|
34
|
-
}
|
|
35
|
-
.lm-c-check-list-wrapper .list-item .item-info > .anticon {
|
|
36
|
-
font-size: 16px;
|
|
37
|
-
margin: 0 4px;
|
|
38
|
-
position: relative;
|
|
39
|
-
top: 2px;
|
|
40
|
-
}
|
|
41
|
-
.lm-c-check-list-wrapper .list-item:hover > label,
|
|
42
|
-
.lm-c-check-list-wrapper .list-item.list-item-active > label {
|
|
43
|
-
color: var(--primary);
|
|
44
|
-
border-bottom: 1px solid var(--primary);
|
|
45
|
-
}
|
|
46
|
-
.lm-c-check-list-wrapper .list-item.has-check-box > label {
|
|
47
|
-
padding: 0 4px;
|
|
48
|
-
}
|
|
49
|
-
.cloudapp-c-check-list-checkext {
|
|
50
|
-
font-size: var(--fs-small);
|
|
51
|
-
padding: 5px 15px;
|
|
52
|
-
display: flex;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
border-bottom: 1px solid var(--gray2);
|
|
55
|
-
}
|
|
56
|
-
.cloudapp-c-check-list-checkext .select-group .anticon {
|
|
57
|
-
font-size: 16px;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
padding-right: 8px;
|
|
60
|
-
color: var(--icon);
|
|
61
|
-
}
|
|
62
|
-
.cloudapp-c-check-list-checkext .select-group .anticon:hover {
|
|
63
|
-
color: var(--primary);
|
|
64
|
-
}
|
package/es/List/index.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ListProps } from './interface';
|
|
3
3
|
import './index.less';
|
|
4
|
-
declare function List(props:
|
|
4
|
+
declare function List<T>(props: ListProps<T>): JSX.Element;
|
|
5
5
|
declare namespace List {
|
|
6
6
|
var defaultProps: {
|
|
7
7
|
className: string;
|
|
8
8
|
list: any[];
|
|
9
9
|
itemKey: string;
|
|
10
10
|
itemNameKey: string;
|
|
11
|
+
renderHeaderExt: () => JSX.Element;
|
|
11
12
|
};
|
|
12
13
|
var VList: typeof import("./VList").default;
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var GridList: React.ForwardRefExoticComponent<import("./GridList").GridListProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
var DynamicGridList: React.ForwardRefExoticComponent<Pick<import("./DynamicGridList").IDynamicGridListResult, keyof import("./DynamicGridList").IDynamicGridListResult> & React.RefAttributes<import("./DynamicGridList").IDynamicGridListRef>>;
|
|
14
|
+
var DynamicList: typeof import("./DynamicList").default;
|
|
15
|
+
var GridList: React.ForwardRefExoticComponent<import("./GridList").GridListProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
var DynamicGridList: typeof import("./DynamicGridList").default;
|
|
18
17
|
}
|
|
19
18
|
export default List;
|