wargerm 0.7.31 → 0.7.33
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/dist/components/Modal/dialog.d.ts +2 -1
- package/dist/components/Modal/index.d.ts +7 -1
- package/dist/components/Swiper/index.d.ts +1 -0
- package/dist/components/Upload/example/UploadBigFile/api.d.ts +0 -0
- package/dist/components/Upload/example/UploadBigFile/index.d.ts +0 -0
- package/dist/components/Upload/example/UploadBigFile/utils/hash.d.ts +0 -0
- package/dist/components/Video/index.d.ts +5 -14
- package/dist/components/WForm/example/demo4.d.ts +3 -0
- package/dist/components/WForm/example/demo5.d.ts +3 -0
- package/dist/index.esm.js +166 -181
- package/dist/index.js +165 -180
- package/package.json +92 -92
@@ -17,9 +17,10 @@ declare type Props = {
|
|
17
17
|
width?: number;
|
18
18
|
className?: string;
|
19
19
|
wrapClassName?: string;
|
20
|
+
fullScreenStyle?: React.CSSProperties;
|
20
21
|
style?: React.CSSProperties;
|
21
22
|
children?: ReactNode;
|
22
23
|
ref?: any;
|
23
24
|
};
|
24
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "width" | "open" | "destroyOnClose" | "closeCb" | "onClose" | "hiddenMask" | "isResize" | "isDrag" | "className" | "wrapClassName" | "style" | "title" | "onOk" | "onCancel" | "footer" | "content" | "okText" | "cancelText" | "children"> & React.RefAttributes<unknown>>;
|
25
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "width" | "open" | "destroyOnClose" | "closeCb" | "onClose" | "hiddenMask" | "isResize" | "isDrag" | "className" | "wrapClassName" | "fullScreenStyle" | "style" | "title" | "onOk" | "onCancel" | "footer" | "content" | "okText" | "cancelText" | "children"> & React.RefAttributes<unknown>>;
|
25
26
|
export default _default;
|
@@ -11,9 +11,12 @@ declare type Props = {
|
|
11
11
|
cancelText?: string;
|
12
12
|
open?: boolean;
|
13
13
|
renderClose?: ReactNode;
|
14
|
+
renderMin?: ReactNode;
|
15
|
+
renderFullScreen?: ReactNode;
|
14
16
|
destroyOnClose?: boolean;
|
15
17
|
hiddenMask?: boolean;
|
16
18
|
isDrag?: boolean;
|
19
|
+
showFullscreen?: boolean;
|
17
20
|
isResize?: boolean;
|
18
21
|
width?: number;
|
19
22
|
className?: string;
|
@@ -30,11 +33,14 @@ declare class Modal extends React.PureComponent<Props> {
|
|
30
33
|
} | undefined;
|
31
34
|
static hidden: () => void;
|
32
35
|
static destory: () => void;
|
36
|
+
state: {
|
37
|
+
isFullScreen: boolean;
|
38
|
+
};
|
33
39
|
renderFooter: () => JSX.Element | null;
|
34
40
|
containerRef: React.RefObject<any>;
|
35
41
|
titleRef: React.RefObject<any>;
|
42
|
+
componentDidUpdate(prevProps: Readonly<Props>, prevState: Readonly<{}>, snapshot?: any): void;
|
36
43
|
renderTop: () => JSX.Element;
|
37
|
-
componentDidMount(): void;
|
38
44
|
renderContent: () => any;
|
39
45
|
render(): JSX.Element;
|
40
46
|
}
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,14 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
interface PlayerProps extends Player {
|
4
|
-
currentVideoIndex?: number;
|
5
|
-
video?: {
|
6
|
-
duration: number;
|
7
|
-
};
|
8
|
-
on: (eventName: string | symbol, listener: (...args: any[]) => void) => this;
|
9
|
-
off: (eventName: string | symbol, listener: (...args: any[]) => void) => this;
|
10
|
-
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
11
|
-
}
|
1
|
+
import { CSSProperties } from 'react';
|
2
|
+
import { IPlayerOptions } from 'xgplayer';
|
12
3
|
/** 清晰度视频项目,name 为清晰度,url 为视频源 */
|
13
4
|
export interface DefinitionItemProps {
|
14
5
|
name: string;
|
@@ -22,10 +13,10 @@ interface VideoProps extends Omit<IPlayerOptions, 'url' | 'loop'> {
|
|
22
13
|
videoUrls: string[];
|
23
14
|
/** 清晰度视频数组,顺序应与 videoUrls 保持一致 */
|
24
15
|
definitionList?: DefinitionItemProps[][];
|
25
|
-
/** 是否循环播放
|
16
|
+
/** 是否循环播放 */
|
26
17
|
isLoop?: boolean;
|
27
18
|
/** 是否可见 */
|
28
|
-
|
19
|
+
open?: boolean;
|
29
20
|
/** 是否静音播放 */
|
30
21
|
muted?: boolean;
|
31
22
|
/** 初始化显示首帧 */
|
@@ -40,5 +31,5 @@ interface VideoProps extends Omit<IPlayerOptions, 'url' | 'loop'> {
|
|
40
31
|
style?: CSSProperties;
|
41
32
|
className?: string;
|
42
33
|
}
|
43
|
-
declare const _default:
|
34
|
+
declare const _default: ({ id, videoUrls, definitionList, isLoop, muted, currentIndex: parentIndex, setCurrentIndex: setParentIndex, className, style, open, autoplay, videoInit, enableMemory, lastPlayTimeHideDelay, ...props }: VideoProps) => JSX.Element;
|
44
35
|
export default _default;
|