wargerm 0.6.24 → 0.7.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/dist/components/Calendar/index.d.ts +1 -1
- package/dist/components/Calendar/utils.d.ts +8 -8
- package/dist/components/Cascader/index.d.ts +3 -3
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DragBox/index.d.ts +2 -2
- package/dist/components/Modal/dialog.d.ts +2 -2
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/ModalTips/dialog.d.ts +1 -1
- package/dist/components/ModalTips/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Video/index.d.ts +2 -2
- package/dist/components/WDatePicker/index.d.ts +1 -1
- package/dist/hooks/useCallbackRef.d.ts +6 -0
- package/dist/hooks/useForceUpdate.d.ts +3 -0
- package/dist/index.css +12243 -34
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.css +12243 -34
- package/dist/index.esm.js +355 -339
- package/dist/index.js +357 -362
- package/package.json +90 -91
@@ -1,21 +1,21 @@
|
|
1
|
-
import {
|
2
|
-
export declare function getMonthDays(date?: string |
|
1
|
+
import { Dayjs } from 'dayjs';
|
2
|
+
export declare function getMonthDays(date?: string | Dayjs): number;
|
3
3
|
/**
|
4
4
|
* 获取当前月第一天是星期几
|
5
5
|
*/
|
6
|
-
export declare function getWeekDays(date?:
|
6
|
+
export declare function getWeekDays(date?: Dayjs): number;
|
7
7
|
/**
|
8
8
|
* 获取当前星期第一天到星期天
|
9
9
|
*/
|
10
|
-
export declare function getWeekList(date?:
|
10
|
+
export declare function getWeekList(date?: Dayjs): string[];
|
11
11
|
/**
|
12
12
|
* 获取上个月份
|
13
13
|
*/
|
14
|
-
export declare function getLastMonth(date?:
|
14
|
+
export declare function getLastMonth(date?: Dayjs): string;
|
15
15
|
/**
|
16
16
|
* 获取下个月份
|
17
17
|
*/
|
18
|
-
export declare function getNextMonth(date?:
|
18
|
+
export declare function getNextMonth(date?: Dayjs): string;
|
19
19
|
/**
|
20
20
|
* 格式化日期为两个单词,例如:‘1’号 格式为 ‘01’
|
21
21
|
* @param {*} dateNumber
|
@@ -24,7 +24,7 @@ export declare const formatDayWithTwoWords: (dateNumber: number) => string | num
|
|
24
24
|
/**
|
25
25
|
* 初始化日历
|
26
26
|
*/
|
27
|
-
export declare function initCalendar(date?:
|
27
|
+
export declare function initCalendar(date?: Dayjs): {
|
28
28
|
date: string;
|
29
29
|
text: string | number;
|
30
30
|
isCurrentMonth: boolean;
|
@@ -33,7 +33,7 @@ export declare function initCalendar(date?: Moment): {
|
|
33
33
|
/**
|
34
34
|
* 初始化日历
|
35
35
|
*/
|
36
|
-
export declare function initWeekCalendar(type: string, date?:
|
36
|
+
export declare function initWeekCalendar(type: string, date?: Dayjs): ({
|
37
37
|
text: string;
|
38
38
|
date?: undefined;
|
39
39
|
} | {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { FC } from 'react';
|
2
|
-
import { CascaderProps } from 'antd
|
3
|
-
export
|
2
|
+
import { CascaderProps } from 'antd';
|
3
|
+
export declare type ICascader = CascaderProps<any> & {
|
4
4
|
request?: () => Promise<any>;
|
5
5
|
onLoad?: (options: Record<string, any>[]) => void;
|
6
6
|
params?: Record<string, any>;
|
7
|
-
}
|
7
|
+
};
|
8
8
|
declare const WCascader: FC<ICascader>;
|
9
9
|
export default WCascader;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { DatePickerProps, RangePickerProps } from 'antd/lib/date-picker';
|
3
|
-
import '
|
3
|
+
import 'dayjs/locale/zh-cn';
|
4
4
|
export declare type IRangePickerProps = RangePickerProps & {
|
5
5
|
getRangePickerValue?: (value: any) => void;
|
6
6
|
panelType?: string;
|
@@ -4,11 +4,11 @@ declare type Props = {
|
|
4
4
|
children?: string | ReactNode;
|
5
5
|
closeIcon?: ReactNode;
|
6
6
|
onClose?: () => void;
|
7
|
-
|
7
|
+
open: boolean;
|
8
8
|
isDrag?: boolean;
|
9
9
|
isResize?: boolean;
|
10
10
|
className?: string;
|
11
11
|
style?: React.CSSProperties;
|
12
12
|
};
|
13
|
-
export default function DragBox({ title, children, closeIcon, onClose,
|
13
|
+
export default function DragBox({ title, children, closeIcon, onClose, open, isDrag, isResize, className, style, }: Props): JSX.Element;
|
14
14
|
export {};
|
@@ -12,12 +12,12 @@ declare type Props = {
|
|
12
12
|
destroyOnClose?: boolean;
|
13
13
|
hiddenMask?: boolean;
|
14
14
|
isResize?: boolean;
|
15
|
-
|
15
|
+
open?: boolean;
|
16
16
|
width?: number;
|
17
17
|
className?: string;
|
18
18
|
style?: React.CSSProperties;
|
19
19
|
children?: ReactNode;
|
20
20
|
ref?: any;
|
21
21
|
};
|
22
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "width" | "
|
22
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "width" | "open" | "destroyOnClose" | "closeCb" | "onClose" | "hiddenMask" | "isResize" | "className" | "style" | "title" | "onOk" | "onCancel" | "footer" | "content" | "okText" | "cancelText" | "children"> & React.RefAttributes<unknown>>;
|
23
23
|
export default _default;
|
@@ -12,5 +12,5 @@ export interface ISelect extends SelectProps<any> {
|
|
12
12
|
export declare type IWSelectComponent = React.FC<ISelect> & {
|
13
13
|
Option?: React.FC<IOptionProps>;
|
14
14
|
};
|
15
|
-
declare
|
16
|
-
export default
|
15
|
+
declare let Index: IWSelectComponent;
|
16
|
+
export default Index;
|
@@ -16,7 +16,7 @@ interface VideoProps extends Omit<IPlayerOptions, 'url' | 'loop'> {
|
|
16
16
|
/** 是否循环播放 */
|
17
17
|
isLoop?: boolean;
|
18
18
|
/** 是否可见 */
|
19
|
-
|
19
|
+
open?: boolean;
|
20
20
|
/** 是否静音播放 */
|
21
21
|
muted?: boolean;
|
22
22
|
/** 初始化显示首帧 */
|
@@ -31,5 +31,5 @@ interface VideoProps extends Omit<IPlayerOptions, 'url' | 'loop'> {
|
|
31
31
|
style?: CSSProperties;
|
32
32
|
className?: string;
|
33
33
|
}
|
34
|
-
declare const _default: ({ id, videoUrls, definitionList, isLoop, muted, currentIndex: parentIndex, setCurrentIndex: setParentIndex, className, style,
|
34
|
+
declare const _default: ({ id, videoUrls, definitionList, isLoop, muted, currentIndex: parentIndex, setCurrentIndex: setParentIndex, className, style, open, autoplay, videoInit, enableMemory, lastPlayTimeHideDelay, ...props }: VideoProps) => JSX.Element;
|
35
35
|
export default _default;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { DatePickerProps, RangePickerProps } from 'antd/lib/date-picker';
|
3
|
-
import '
|
3
|
+
import 'dayjs/locale/zh-cn';
|
4
4
|
export declare type IndexComponent = React.FC<DatePickerProps> & {
|
5
5
|
RangePicker: React.FC<RangePickerProps>;
|
6
6
|
showTime: Object | boolean;
|