@cloud-app-dev/vidc 3.2.18 → 3.2.20
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/es/Api/index.d.ts +12 -0
- package/es/AppContext/Sync.d.ts +7 -0
- package/es/AppContext/index.d.ts +10 -0
- package/es/AppContext/static.d.ts +8 -0
- package/es/Auth/index.d.ts +8 -0
- package/es/AutoExit/index.d.ts +6 -0
- package/es/Box/BetweenBox/index.d.ts +12 -0
- package/es/Box/InfoBox/index.d.ts +12 -0
- package/es/Box/TwoColumnBox/index.d.ts +10 -0
- package/es/Box/deps/content-grid.d.ts +9 -0
- package/es/Box/deps/grid-factory.d.ts +10 -0
- package/es/Box/deps/simple-grid.d.ts +9 -0
- package/es/Box/index.d.ts +14 -0
- package/es/CheckGroupFixed/demo.d.ts +2 -0
- package/es/CheckGroupFixed/index.d.ts +17 -0
- package/es/Config/index.d.ts +4 -0
- package/es/Config/utils.d.ts +4 -0
- package/es/ConfigContext/index.d.ts +22 -0
- package/es/CustomRenderSelect/index.d.ts +12 -0
- package/es/DisableMark/index.d.ts +9 -0
- package/es/DomMove/demo.d.ts +1 -0
- package/es/DomMove/index.d.ts +16 -0
- package/es/DomMove/utils.d.ts +8 -0
- package/es/Drag/DragAndDropItem.d.ts +4 -0
- package/es/Drag/DropItem.d.ts +4 -0
- package/es/Drag/index.d.ts +7 -9
- package/es/Drawer/Footer.d.ts +4 -0
- package/es/Drawer/demo.d.ts +3 -0
- package/es/Drawer/index.d.ts +38 -0
- package/es/DynamicGridList/Demo.d.ts +2 -0
- package/es/DynamicGridList/index.d.ts +27 -0
- package/es/DynamicList/demo.d.ts +1 -0
- package/es/DynamicList/index.d.ts +30 -0
- package/es/DynamicList/utils.d.ts +4 -0
- package/es/ErrorFallback/index.d.ts +8 -0
- package/es/FrontendPlayer/index.d.ts +2 -0
- package/es/FullScreen/index.d.ts +21 -0
- package/es/GridList/Demo.d.ts +2 -0
- package/es/GridList/data.d.ts +16 -0
- package/es/GridList/hook.d.ts +13 -0
- package/es/GridList/index.d.ts +15 -0
- package/es/GridList/utils.d.ts +9 -0
- package/es/HightLevel/index.d.ts +9 -0
- package/es/IconFont/index.d.ts +12 -0
- package/es/ImageView/index.d.ts +17 -0
- package/es/Input/demo.d.ts +2 -0
- package/es/Input/index.d.ts +18 -0
- package/es/InstanceHistory/index.d.ts +3 -0
- package/es/LabelValue/index.d.ts +23 -0
- package/es/List/demo.d.ts +2 -0
- package/es/List/index.d.ts +41 -0
- package/es/ListWithSizeAnimate/demo.d.ts +1 -0
- package/es/ListWithSizeAnimate/index.d.ts +14 -0
- package/es/LoaderApp/index.d.ts +31 -0
- package/es/LoaderApp/loader.d.ts +19 -0
- package/es/LoaderApp/sandbox.back.d.ts +18 -0
- package/es/LoaderApp/sandbox.d.ts +12 -0
- package/es/LoaderApp/utils.d.ts +19 -0
- package/es/LoaderScript/index.d.ts +26 -0
- package/es/LoaderScript/utils.d.ts +14 -0
- package/es/Map/BasicMap/AMapInstance.d.ts +19 -0
- package/es/Map/BasicMap/LeafletInstance.d.ts +18 -0
- package/es/Map/BasicMap/index.d.ts +9 -0
- package/es/Map/ClusterLayer/hook.d.ts +5 -0
- package/es/Map/ClusterLayer/index.d.ts +5 -0
- package/es/Map/Config/index.d.ts +7 -0
- package/es/Map/Config/utils.d.ts +2 -0
- package/es/Map/Context/index.d.ts +11 -0
- package/es/Map/FindPio/index.d.ts +3 -0
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +3 -0
- package/es/Map/InfoWindow/demo.d.ts +2 -0
- package/es/Map/InfoWindow/index.d.ts +9 -0
- package/es/Map/LevelCenter/DragMarker/index.d.ts +9 -0
- package/es/Map/LevelCenter/demo.d.ts +2 -0
- package/es/Map/LevelCenter/index.d.ts +15 -0
- package/es/Map/LoaderMap/index.d.ts +12 -0
- package/es/Map/MapDrawSelect/demo.d.ts +2 -0
- package/es/Map/MapDrawSelect/index.d.ts +15 -0
- package/es/Map/MouseTool/index.d.ts +10 -0
- package/es/Map/MouseTool/useMouseTools.d.ts +7 -0
- package/es/Map/ResetTools/index.d.ts +9 -0
- package/es/Map/SinglePoint/index.d.ts +27 -0
- package/es/Map/hook/useMapEvent.d.ts +2 -0
- package/es/Map/hook/useMapType.d.ts +4 -0
- package/es/Map/icon.d.ts +2 -0
- package/es/Map/index.d.ts +14 -0
- package/es/Map/useMarker/index.d.ts +10 -0
- package/es/Map/withMap/index.d.ts +2 -0
- package/es/Modal/demo.d.ts +2 -0
- package/es/Modal/index.d.ts +44 -0
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +7 -0
- package/es/Picture/component/DefaultRects/index.d.ts +12 -0
- package/es/Picture/component/DefaultRects/utils.d.ts +2 -0
- package/es/Picture/component/DrawRect/index.d.ts +12 -0
- package/es/Picture/component/RectMenu/index.d.ts +11 -0
- package/es/Picture/component/RectMenu/utils.d.ts +12 -0
- package/es/Picture/component/Tools/index.d.ts +13 -0
- package/es/Picture/component/WheelScale/index.d.ts +6 -0
- package/es/Picture/demo.d.ts +1 -0
- package/es/Picture/dragBound.d.ts +5 -0
- package/es/Picture/index.d.ts +18 -0
- package/es/Picture/loadCaptureRectImage.d.ts +8 -0
- package/es/Picture/useDraw.d.ts +1 -0
- package/es/Picture/utils.d.ts +21 -0
- package/es/Player/api/index.d.ts +68 -0
- package/es/Player/context.d.ts +21 -0
- package/es/Player/contraller_bar/bar.d.ts +8 -0
- package/es/Player/contraller_bar/contraller_event.d.ts +6 -0
- package/es/Player/contraller_bar/index.d.ts +14 -0
- package/es/Player/contraller_bar/left_bar.d.ts +10 -0
- package/es/Player/contraller_bar/right_bar.d.ts +8 -0
- package/es/Player/contraller_bar/time.d.ts +2 -0
- package/es/Player/contraller_bar/useBarStatus.d.ts +2 -0
- package/es/Player/contraller_bar/volume.d.ts +9 -0
- package/es/Player/demo.d.ts +2 -0
- package/es/Player/empty.d.ts +1 -0
- package/es/Player/event/errorEvent.d.ts +14 -0
- package/es/Player/event/eventName.d.ts +18 -0
- package/es/Player/event/index.d.ts +24 -0
- package/es/Player/fps_play.d.ts +10 -0
- package/es/Player/frontend_player.d.ts +7 -0
- package/es/Player/frontend_timeline.d.ts +9 -0
- package/es/Player/iconfont.d.ts +4 -0
- package/es/Player/index.d.ts +2 -0
- package/es/Player/live_heart.d.ts +8 -0
- package/es/Player/message.d.ts +4 -0
- package/es/Player/segment_player.d.ts +8 -0
- package/es/Player/segment_timeline.d.ts +11 -0
- package/es/Player/single_player.d.ts +5 -0
- package/es/Player/timeline.d.ts +4 -0
- package/es/Player/util.d.ts +42 -0
- package/es/PlayerExt/demo.d.ts +2 -0
- package/es/PlayerExt/index.d.ts +47 -0
- package/es/Progress/index.d.ts +10 -8
- package/es/ROI/demo.d.ts +2 -0
- package/es/ROI/index.d.ts +39 -0
- package/es/ROI/utils.d.ts +1 -0
- package/es/ScreenPlayer/Live.d.ts +9 -0
- package/es/ScreenPlayer/LiveTools.d.ts +29 -0
- package/es/ScreenPlayer/PlayerWithExt.d.ts +34 -0
- package/es/ScreenPlayer/RatePick.d.ts +6 -0
- package/es/ScreenPlayer/Record.d.ts +9 -0
- package/es/ScreenPlayer/RecordTools.d.ts +37 -0
- package/es/ScreenPlayer/ScreenSelect.d.ts +6 -0
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +16 -0
- package/es/ScreenPlayer/TimeMode.d.ts +6 -0
- package/es/ScreenPlayer/TimeSelect.d.ts +6 -0
- package/es/ScreenPlayer/demo.d.ts +1 -0
- package/es/ScreenPlayer/demo2.d.ts +1 -0
- package/es/ScreenPlayer/index.d.ts +5 -0
- package/es/ScreenPlayer/useTimeSlider.d.ts +24 -0
- package/es/ScreenPlayer/useVideoFit.d.ts +5 -0
- package/es/ScreenPlayer/utils.d.ts +19 -0
- package/es/SegmentPlayer/index.d.ts +2 -0
- package/es/Service/fetch-adapter.d.ts +12 -0
- package/es/Service/fetch-adapter.js +8 -1
- package/es/Service/http.d.ts +6 -0
- package/es/Service/http.js +1 -0
- package/es/Service/index.d.ts +3 -0
- package/es/Service/interface.d.ts +1 -1
- package/es/Service/middleware.d.ts +5 -0
- package/es/TableLayout/index.d.ts +13 -0
- package/es/ThemeAntd/demo.d.ts +3 -0
- package/es/ThemeAntd/index.d.ts +7 -0
- package/es/Timeout/index.d.ts +31 -0
- package/es/Tree/demo.d.ts +2 -0
- package/es/Tree/index.d.ts +24 -0
- package/es/VList/index.d.ts +17 -12
- package/es/VList/utils.d.ts +14 -0
- package/es/index.d.ts +52 -0
- package/es/useDrawROI/index.d.ts +16 -0
- package/es/useEventEmitterHandle/index.d.ts +2 -0
- package/es/useFullscreen/demo.d.ts +1 -0
- package/es/useFullscreen/index.d.ts +11 -0
- package/es/useHistory/index.d.ts +3 -0
- package/es/useHistory/interface.d.ts +4 -0
- package/es/useInfiniteScroll/index.d.ts +16 -0
- package/es/useRafInterval/index.d.ts +5 -0
- package/es/useSimpleState/index.d.ts +3 -0
- package/es/useVirtualList/index.d.ts +13 -0
- package/es/utils.d.ts +25 -0
- package/package.json +1 -1
- package/tsconfig.json +0 -11
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BzTreeItemType, PostItemType, OrgItemType } from '../core';
|
|
2
|
+
import { UserInfoType } from '../AppContext/interface';
|
|
3
|
+
declare class Api {
|
|
4
|
+
getOrgs(): Promise<OrgItemType[]>;
|
|
5
|
+
getUsers(organizationId: string, params?: any, filterUserIds?: string[]): Promise<UserInfoType[]>;
|
|
6
|
+
getPosts(orgId: string): Promise<PostItemType[]>;
|
|
7
|
+
getDeviceBzTree(): Promise<BzTreeItemType[]>;
|
|
8
|
+
getCustomDeviceGroup(): Promise<BzTreeItemType[]>;
|
|
9
|
+
getPlacesByHasDevice(): Promise<BzTreeItemType[]>;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: Api;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppContextInterface, AppStoreType } from './interface';
|
|
2
|
+
interface ISyncProps {
|
|
3
|
+
stateChange: (options: AppContextInterface) => void;
|
|
4
|
+
storeChange: (store: AppStoreType) => void;
|
|
5
|
+
}
|
|
6
|
+
declare function Sync({ stateChange, storeChange }: ISyncProps): JSX.Element;
|
|
7
|
+
export default Sync;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AppContextInterface } from './interface';
|
|
3
|
+
declare function Provider({ children }: {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
Provider: typeof Provider;
|
|
8
|
+
Context: React.Context<AppContextInterface>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const _USER_EVENT_CHANGE_ = "_USER_EVENT_CHANGE_";
|
|
2
|
+
export declare const _OPERATION_EVENT_CHANGE_ = "_OPERATION_EVENT_CHANGE_";
|
|
3
|
+
export declare const _LOGIN_STATUS_EVENT_CHANGE_ = "_LOGIN_STATUS_EVENT_CHANGE_";
|
|
4
|
+
export declare const _STORE_EVENT_CHANGE_ = "_STORE_EVENT_CHANGE_";
|
|
5
|
+
export declare const _USER_SESSION_ = "_USER_SESSION_";
|
|
6
|
+
export declare const _OPERATION_SESSION_ = "_OPERATION_SESSION_";
|
|
7
|
+
export declare const _LOGIN_STATUS_SESSION_ = "_LOGIN_STATUS_SESSION_";
|
|
8
|
+
export declare const _STORE_SESSION_ = "_STORE_SESSION_";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface BetweentBoxProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
extNode?: React.ReactNode;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
left?: React.ReactNode;
|
|
9
|
+
right?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare function BetweenBox({ className, left, right, style, children, extNode }: BetweentBoxProps): JSX.Element;
|
|
12
|
+
export default BetweenBox;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface InfoBoxProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
titleExt?: React.ReactNode;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
contentStyle?: React.CSSProperties;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare function InfoBox({ title, titleExt, children, className, style, contentStyle }: InfoBoxProps): JSX.Element;
|
|
12
|
+
export default InfoBox;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TwoColumnBoxProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
collapsible?: boolean;
|
|
6
|
+
leftContent?: React.ReactNode | JSX.Element;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function TwoColumnBox({ className, collapsible, leftContent, children }: TwoColumnBoxProps): JSX.Element;
|
|
10
|
+
export default TwoColumnBox;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function getGridClassName(grid: any): never[];
|
|
2
|
+
export declare function computedGrid(grid: any): {
|
|
3
|
+
xxl: number;
|
|
4
|
+
xl: number;
|
|
5
|
+
lg: number;
|
|
6
|
+
md: number;
|
|
7
|
+
sm: number;
|
|
8
|
+
xs: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function computedCuurentGrid(): "xxl" | "xl" | "lg" | "md" | "sm" | "xs" | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface ContentBoxProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
contentGrid?: any;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function Box({ className, contentGrid, children }: ContentBoxProps): JSX.Element;
|
|
9
|
+
declare namespace Box {
|
|
10
|
+
var TwoColumnBox: any;
|
|
11
|
+
var InfoBox: any;
|
|
12
|
+
var BetweenBox: any;
|
|
13
|
+
}
|
|
14
|
+
export default Box;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
export interface SourceDictType {
|
|
3
|
+
value?: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ICheckGroupFixedProps {
|
|
8
|
+
label: string;
|
|
9
|
+
source: SourceDictType[];
|
|
10
|
+
onChange?: (keys: string[] & number[] & boolean[]) => void;
|
|
11
|
+
checboxSize?: number;
|
|
12
|
+
labelSize?: number;
|
|
13
|
+
cutRow?: number;
|
|
14
|
+
value?: string[] & number[] & boolean[];
|
|
15
|
+
}
|
|
16
|
+
declare function CheckGroupFixed({ label, source, checboxSize, cutRow, labelSize, value, onChange }: ICheckGroupFixedProps): JSX.Element;
|
|
17
|
+
export default CheckGroupFixed;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IConfigContextProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 用于获取微应用顶层的dom节点
|
|
5
|
+
*/
|
|
6
|
+
root: HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
interface IProviderProps {
|
|
9
|
+
getContainer?: () => HTMLElement;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare function Provider({ getContainer, children }: IProviderProps): JSX.Element;
|
|
13
|
+
declare namespace Provider {
|
|
14
|
+
var defaultProps: {
|
|
15
|
+
getContainer: () => HTMLElement;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare const _default: {
|
|
19
|
+
Context: React.Context<IConfigContextProps>;
|
|
20
|
+
Provider: typeof Provider;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface ICustomRenderSelectProps extends SelectProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
value: any;
|
|
7
|
+
customRender: (value: any) => JSX.Element;
|
|
8
|
+
onChange: (value: any) => void;
|
|
9
|
+
selectAotoClose?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function CustomRenderSelect({ children, value, customRender, popupClassName, getPopupContainer, onChange, selectAotoClose, ...props }: ICustomRenderSelectProps): JSX.Element;
|
|
12
|
+
export default CustomRenderSelect;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface IDisableMarkProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
width?: string | number;
|
|
7
|
+
}
|
|
8
|
+
export default function DisableMark({ children, disabled, width }: IDisableMarkProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function App(): JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PositionType, SizeType } from '../Picture/interface';
|
|
3
|
+
interface IDomMoveProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onDrag?: (e: MouseEvent, position: PositionType) => void;
|
|
6
|
+
onDragChange?: (position: PositionType) => void;
|
|
7
|
+
onDragEnd?: (e: MouseEvent, position: PositionType) => void;
|
|
8
|
+
position?: PositionType;
|
|
9
|
+
size?: SizeType;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
forwordRef?: React.MutableRefObject<any>;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<IDomMoveProps & React.RefAttributes<unknown>>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDragAndDropItemProps } from './interface';
|
|
3
|
+
declare function DragAndDropItem<T>({ children, dragData, dragId, style, onDropEnd, disabledCopyElement }: IDragAndDropItemProps<T>): React.FunctionComponentElement<any>;
|
|
4
|
+
export default DragAndDropItem;
|
package/es/Drag/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default IDragInterface;
|
|
1
|
+
import DragAndDropItem from './DragAndDropItem';
|
|
2
|
+
import DropItem from './DropItem';
|
|
3
|
+
declare const Drag: {
|
|
4
|
+
DragAndDropItem: typeof DragAndDropItem;
|
|
5
|
+
DropItem: typeof DropItem;
|
|
6
|
+
};
|
|
7
|
+
export default Drag;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDrawerProps } from './interface';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare function Drawer({ style, getContainer, onClose, className, onOk, cancelText, okText, children, ...props }: IDrawerProps): JSX.Element;
|
|
5
|
+
declare namespace Drawer {
|
|
6
|
+
var defaultProps: {
|
|
7
|
+
getContainer: boolean;
|
|
8
|
+
className: string;
|
|
9
|
+
cancelText: string;
|
|
10
|
+
okText: string;
|
|
11
|
+
};
|
|
12
|
+
var useDrawer: (prefixCls?: string) => {
|
|
13
|
+
open: (options: IUseDrawerHookState) => void;
|
|
14
|
+
close: () => void;
|
|
15
|
+
};
|
|
16
|
+
var RefDrawer: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IRefDrawerMethodsProps>>;
|
|
17
|
+
}
|
|
18
|
+
export interface IUseDrawerHookState {
|
|
19
|
+
content?: React.ReactNode;
|
|
20
|
+
visible?: boolean;
|
|
21
|
+
title?: React.ReactNode;
|
|
22
|
+
onOk?: () => void;
|
|
23
|
+
width?: number | string;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IUseDrawerHookState {
|
|
27
|
+
content?: React.ReactNode;
|
|
28
|
+
visible?: boolean;
|
|
29
|
+
title?: React.ReactNode;
|
|
30
|
+
onOk?: () => void;
|
|
31
|
+
width?: number | string;
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface IRefDrawerMethodsProps {
|
|
35
|
+
open: (options: IUseDrawerHookState) => void;
|
|
36
|
+
close: () => void;
|
|
37
|
+
}
|
|
38
|
+
export default Drawer;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridListCell } from '../GridList/interface';
|
|
3
|
+
import { TData } from '../useInfiniteScroll';
|
|
4
|
+
export interface IDynamicGridListProps<T> {
|
|
5
|
+
itemHeight?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 重载条件
|
|
9
|
+
*/
|
|
10
|
+
reloadDeps?: any[];
|
|
11
|
+
/**
|
|
12
|
+
* render列表
|
|
13
|
+
* @param options
|
|
14
|
+
*/
|
|
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;
|
|
26
|
+
}
|
|
27
|
+
export default DynamicGridList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { TData } from '../useInfiniteScroll';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface IDynamicListProps<T> {
|
|
4
|
+
itemHeight?: number;
|
|
5
|
+
itemClassName?: string;
|
|
6
|
+
/**
|
|
7
|
+
* 重载条件
|
|
8
|
+
*/
|
|
9
|
+
reloadDeps?: any[];
|
|
10
|
+
/**
|
|
11
|
+
* render列表
|
|
12
|
+
* @param options
|
|
13
|
+
*/
|
|
14
|
+
renderItem(options: {
|
|
15
|
+
index: number;
|
|
16
|
+
data: T;
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
loadPage(d?: TData<T>): Promise<TData<T>>;
|
|
19
|
+
}
|
|
20
|
+
declare function DynamicList<T>({ renderItem, itemHeight, itemClassName, reloadDeps, loadPage }: IDynamicListProps<T>): JSX.Element;
|
|
21
|
+
declare namespace DynamicList {
|
|
22
|
+
var defaultProps: {
|
|
23
|
+
limit: number;
|
|
24
|
+
itemHeight: number;
|
|
25
|
+
params: {};
|
|
26
|
+
itemKey: string;
|
|
27
|
+
itemClassName: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export default DynamicList;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ErrorBoundaryProps } from './inerface';
|
|
2
|
+
interface IErrorFallbackProps {
|
|
3
|
+
error: Error;
|
|
4
|
+
resetErrorBoundary: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare function ErrorFallback({ error, resetErrorBoundary }: IErrorFallbackProps): JSX.Element;
|
|
7
|
+
export declare const errorBoundaryOptions: ErrorBoundaryProps;
|
|
8
|
+
export default ErrorFallback;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './index.less';
|
|
2
|
+
interface IFullScrenProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 类名
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @description 全屏dom对象
|
|
9
|
+
*/
|
|
10
|
+
getContainer: () => HTMLElement | Element;
|
|
11
|
+
/**
|
|
12
|
+
* @description 状态监听
|
|
13
|
+
*/
|
|
14
|
+
fullScreenChange?: (flag: boolean) => void;
|
|
15
|
+
/**
|
|
16
|
+
* @description 显示默认文本
|
|
17
|
+
*/
|
|
18
|
+
hasText?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare function FullScreen({ className, getContainer, fullScreenChange, hasText }: IFullScrenProps): JSX.Element;
|
|
21
|
+
export default FullScreen;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
code: number;
|
|
3
|
+
codeRemark: string;
|
|
4
|
+
data: {
|
|
5
|
+
list: {
|
|
6
|
+
id: string;
|
|
7
|
+
cid: number;
|
|
8
|
+
deviceName: string;
|
|
9
|
+
captureTime: number;
|
|
10
|
+
url: string;
|
|
11
|
+
}[];
|
|
12
|
+
totalCount: number;
|
|
13
|
+
totalPage: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { GridListProps } from '.';
|
|
3
|
+
import { ConstRef, ElementScroll, ElementSize, GridListConfigData, GridListContainerData, GridListLayoutData, GridListRenderData } from './interface';
|
|
4
|
+
export declare function useConstRef<T>(value: T): ConstRef<T>;
|
|
5
|
+
export declare function useWindowSize(): ElementSize;
|
|
6
|
+
export declare function useElementSize(ref: RefObject<Element>): ElementSize | null;
|
|
7
|
+
export declare function useWindowScroll(): ElementScroll;
|
|
8
|
+
export declare function useElementWindowOffset(ref: RefObject<HTMLElement>): number | null;
|
|
9
|
+
export declare function useIntersecting(ref: RefObject<HTMLElement>, rootMargin: string): boolean;
|
|
10
|
+
export declare function useGridListContainerData(ref: RefObject<HTMLElement>): GridListContainerData;
|
|
11
|
+
export declare function useGridListConfigData<P>(containerData: GridListContainerData, props: GridListProps<P>): GridListConfigData<P> | null;
|
|
12
|
+
export declare function useGridListLayoutData<P>(configData: GridListConfigData<P> | null): GridListLayoutData<P> | null;
|
|
13
|
+
export declare function useGridListRenderData<P>(containerData: GridListContainerData, configData: GridListConfigData<P> | null, layoutData: GridListLayoutData<P> | null): GridListRenderData<P> | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import { GridListCell, GridListItemData } from './interface';
|
|
4
|
+
export interface GridListProps<P> {
|
|
5
|
+
items: P[];
|
|
6
|
+
getGridGap?: (elementWidth: number, windowHeight: number) => number;
|
|
7
|
+
getWindowMargin?: (windowHeight: number) => number;
|
|
8
|
+
getColumnCount: (elementWidth: number, gridGap: number) => number;
|
|
9
|
+
getItemData: (item: P, columnWidth: number) => GridListItemData;
|
|
10
|
+
renderItem: (item: P, cell: GridListCell<P>) => React.ReactNode;
|
|
11
|
+
fixedColumnWidth?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const GridList: React.ForwardRefExoticComponent<GridListProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export default GridList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementScroll, ElementSize, GridListCell, GridListRenderData } from './interface';
|
|
2
|
+
export declare function isSameElementSize(a: ElementSize, b: ElementSize): boolean;
|
|
3
|
+
export declare function getWindowSize(): ElementSize;
|
|
4
|
+
export declare function getElementSize(element: Element): ElementSize;
|
|
5
|
+
export declare function isSameElementScroll(a: ElementScroll, b: ElementScroll): boolean;
|
|
6
|
+
export declare function getWindowScroll(): ElementScroll;
|
|
7
|
+
export declare function getElementOffset(element: Element): number;
|
|
8
|
+
export declare function getColumnWidth(columnCount: number | null, gridGap: number | null, elementWidth: number | null): number | null;
|
|
9
|
+
export declare function getGridRowStart<P>(cell: GridListCell<P>, renderData: GridListRenderData<P> | null): string | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface HightLevelProps {
|
|
4
|
+
keyword: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
declare function HighLevel({ keyword, name }: HightLevelProps): JSX.Element;
|
|
8
|
+
declare const _default: React.MemoExoticComponent<typeof HighLevel>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IIconFontProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
type?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare function IconFont({ type, className, title, style, ...props }: IIconFontProps): JSX.Element;
|
|
9
|
+
declare namespace IconFont {
|
|
10
|
+
var registerIconFont: (scriptUrl: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export default IconFont;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ImageViewProps extends React.HTMLAttributes<HTMLImageElement> {
|
|
4
|
+
defaultSrc?: string;
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
onError?: (e: any) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function ImageView({ src, defaultSrc, alt, onError, className, ...props }: ImageViewProps): JSX.Element;
|
|
11
|
+
declare namespace ImageView {
|
|
12
|
+
var defaultProps: {
|
|
13
|
+
className: string;
|
|
14
|
+
defaultSrc: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export default ImageView;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InputProps } from 'antd';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface IInputProps extends Omit<InputProps, 'onChange'> {
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
onEnter?: (val: string) => void;
|
|
8
|
+
onChange?: (val: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare function Input({ prefix, className, suffix, allowClear, defaultValue, value, onChange, onEnter, ...props }: IInputProps): JSX.Element;
|
|
11
|
+
declare namespace Input {
|
|
12
|
+
var defaultProps: {
|
|
13
|
+
className: string;
|
|
14
|
+
prefix: JSX.Element;
|
|
15
|
+
allowClear: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export default Input;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface ILabelValueProps {
|
|
4
|
+
label?: any;
|
|
5
|
+
value?: any;
|
|
6
|
+
emptyValue?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
noWrap?: boolean;
|
|
9
|
+
noColon?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
labelStyle?: React.CSSProperties;
|
|
12
|
+
valueStyle?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
declare function LabelValue({ label, value, emptyValue, className, style, labelStyle, valueStyle, noWrap, noColon }: ILabelValueProps): JSX.Element;
|
|
15
|
+
declare namespace LabelValue {
|
|
16
|
+
var defaultProps: {
|
|
17
|
+
value: string;
|
|
18
|
+
emptyValue: string;
|
|
19
|
+
noWrap: boolean;
|
|
20
|
+
className: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export default LabelValue;
|