@pointcloud/pcloud-components 0.1.31 → 0.1.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/README.md +11 -9
- package/dist/esm/AdvancedFilter/FormFilter.d.ts +4 -4
- package/dist/esm/AdvancedFilter/index.d.ts +5 -5
- package/dist/esm/AdvancedFilter/interface.d.ts +101 -101
- package/dist/esm/AnimatedScrollList/index.d.ts +7 -7
- package/dist/esm/AnimatedScrollList/interface.d.ts +71 -71
- package/dist/esm/AspectRatio/index.d.ts +9 -9
- package/dist/esm/AuthComponent/index.d.ts +3 -3
- package/dist/esm/AuthComponent/interface.d.ts +24 -24
- package/dist/esm/ColorPicker/index.d.ts +17 -17
- package/dist/esm/ColorPicker/index.js +1 -1
- package/dist/esm/ColorPicker/interface.d.ts +164 -164
- package/dist/esm/ConfigProvider/index.d.ts +6 -6
- package/dist/esm/ConfigProvider/index.js +7 -13
- package/dist/esm/ConfigProvider/interface.d.ts +9 -9
- package/dist/esm/ContextMenu/index.d.ts +28 -28
- package/dist/esm/DCascader/index.d.ts +24 -24
- package/dist/esm/DForm/DItem/index.d.ts +5 -5
- package/dist/esm/DForm/DItem/itemType.d.ts +123 -119
- package/dist/esm/DForm/DItem/itemsRender.d.ts +47 -45
- package/dist/esm/DForm/DItem/itemsRender.js +6 -0
- package/dist/esm/DForm/helper.d.ts +8 -8
- package/dist/esm/DForm/index.d.ts +29 -29
- package/dist/esm/DInput/index.d.ts +19 -19
- package/dist/esm/DModal/index.d.ts +18 -18
- package/dist/esm/DModal/interface.d.ts +14 -14
- package/dist/esm/DRangePicker/index.d.ts +7 -0
- package/dist/esm/DRangePicker/index.js +24 -0
- package/dist/esm/DRangePicker/index.less +30 -0
- package/dist/esm/DRangePicker/interface.d.ts +5 -0
- package/dist/esm/DRangePicker/interface.js +1 -0
- package/dist/esm/DSelect/index.d.ts +24 -24
- package/dist/esm/DTable/index.d.ts +46 -46
- package/dist/esm/DTreeSelect/index.d.ts +16 -16
- package/dist/esm/DUpload/helper.d.ts +107 -107
- package/dist/esm/DUpload/index.d.ts +55 -55
- package/dist/esm/ErrorBoundary/index.d.ts +5 -5
- package/dist/esm/IPAddress/index.d.ts +20 -20
- package/dist/esm/IconFont/index.d.ts +17 -17
- package/dist/esm/InfiniteScrollList/index.d.ts +63 -63
- package/dist/esm/LabelValue/index.d.ts +16 -16
- package/dist/esm/LabelValue/interface.d.ts +39 -39
- package/dist/esm/Loading/hooks/useLoading.d.ts +6 -6
- package/dist/esm/Loading/index.d.ts +10 -10
- package/dist/esm/Loading/interface.d.ts +23 -23
- package/dist/esm/Loading/loading.d.ts +7 -7
- package/dist/esm/LoginForm/defaultConfig.d.ts +4 -4
- package/dist/esm/LoginForm/index.d.ts +21 -21
- package/dist/esm/LoginForm/index.js +1 -1
- package/dist/esm/ModalForm/index.d.ts +11 -11
- package/dist/esm/NoData/index.d.ts +4 -4
- package/dist/esm/NoData/interface.d.ts +13 -13
- package/dist/esm/OrgTree/index.d.ts +5 -5
- package/dist/esm/OrgTree/interface.d.ts +41 -39
- package/dist/esm/PictureCard/index.d.ts +16 -16
- package/dist/esm/RCropper/handler.d.ts +16 -16
- package/dist/esm/RCropper/index.d.ts +4 -4
- package/dist/esm/RCropper/interface.d.ts +70 -70
- package/dist/esm/RCropper/svgIcons.d.ts +28 -28
- package/dist/esm/RCropper/toolbar.d.ts +5 -5
- package/dist/esm/RndDrag/index.d.ts +5 -5
- package/dist/esm/ScrollNumber/index.d.ts +7 -7
- package/dist/esm/SignaturePad/index.d.ts +32 -32
- package/dist/esm/TypewriterText/index.d.ts +5 -0
- package/dist/esm/TypewriterText/index.js +282 -0
- package/dist/esm/TypewriterText/index.less +29 -0
- package/dist/esm/TypewriterText/interface.d.ts +42 -0
- package/dist/esm/TypewriterText/interface.js +1 -0
- package/dist/esm/WordCloud/index.d.ts +10 -10
- package/dist/esm/index.d.ts +64 -60
- package/dist/esm/index.js +3 -1
- package/dist/umd/pcloud-components.min.css +1 -1
- package/dist/umd/pcloud-components.min.js +1 -1
- package/package.json +121 -112
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './styles/index.less';
|
|
3
|
-
interface ISLProps<T, P> {
|
|
4
|
-
/**
|
|
5
|
-
* @description 容器id
|
|
6
|
-
* @default scrollableDiv
|
|
7
|
-
*/
|
|
8
|
-
containerId?: string;
|
|
9
|
-
/**
|
|
10
|
-
* @description 列表项的唯一标识字段
|
|
11
|
-
* @default id
|
|
12
|
-
*/
|
|
13
|
-
itemKey?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @description 容器高度(超过此高度将滚动)
|
|
16
|
-
*/
|
|
17
|
-
containerHeight: number | string;
|
|
18
|
-
/**
|
|
19
|
-
* @description 列表请求的初始参数
|
|
20
|
-
*/
|
|
21
|
-
initialParams?: any;
|
|
22
|
-
/**
|
|
23
|
-
* @description 列表请求方法
|
|
24
|
-
* @param params 请求参数
|
|
25
|
-
* @returns Promise<{ data: { total: number; records: any[] } }>
|
|
26
|
-
*/
|
|
27
|
-
loadMore: (params?: T) => Promise<{
|
|
28
|
-
data: {
|
|
29
|
-
total: number;
|
|
30
|
-
records: any[];
|
|
31
|
-
};
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* @description 列表项的渲染方法
|
|
35
|
-
* @param item 列表项数据
|
|
36
|
-
* @returns React.ReactNode
|
|
37
|
-
*/
|
|
38
|
-
renderItem: (item: P, index: number) => React.ReactNode;
|
|
39
|
-
grid?: object;
|
|
40
|
-
className?: string;
|
|
41
|
-
/**
|
|
42
|
-
* @description 滚动阈值,默认为 100px
|
|
43
|
-
* @default 100px
|
|
44
|
-
*/
|
|
45
|
-
scrollThreshold?: string | number;
|
|
46
|
-
/**
|
|
47
|
-
* @description 滚动高度达到此参数值才出现 BackTop
|
|
48
|
-
* @default 200
|
|
49
|
-
*/
|
|
50
|
-
visibilityHeight?: number;
|
|
51
|
-
/**
|
|
52
|
-
* @description 是否显示 BackTop
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
showBackTop?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* @description 列表底部提示
|
|
58
|
-
*/
|
|
59
|
-
endMessage?: React.ReactNode;
|
|
60
|
-
}
|
|
61
|
-
export
|
|
62
|
-
declare const _default: React.MemoExoticComponent<(<T, P>(props: ISLProps<T, P>) => import("react/jsx-runtime").JSX.Element)>;
|
|
63
|
-
export default _default;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
interface ISLProps<T, P> {
|
|
4
|
+
/**
|
|
5
|
+
* @description 容器id
|
|
6
|
+
* @default scrollableDiv
|
|
7
|
+
*/
|
|
8
|
+
containerId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @description 列表项的唯一标识字段
|
|
11
|
+
* @default id
|
|
12
|
+
*/
|
|
13
|
+
itemKey?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description 容器高度(超过此高度将滚动)
|
|
16
|
+
*/
|
|
17
|
+
containerHeight: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* @description 列表请求的初始参数
|
|
20
|
+
*/
|
|
21
|
+
initialParams?: any;
|
|
22
|
+
/**
|
|
23
|
+
* @description 列表请求方法
|
|
24
|
+
* @param params 请求参数
|
|
25
|
+
* @returns Promise<{ data: { total: number; records: any[] } }>
|
|
26
|
+
*/
|
|
27
|
+
loadMore: (params?: T) => Promise<{
|
|
28
|
+
data: {
|
|
29
|
+
total: number;
|
|
30
|
+
records: any[];
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* @description 列表项的渲染方法
|
|
35
|
+
* @param item 列表项数据
|
|
36
|
+
* @returns React.ReactNode
|
|
37
|
+
*/
|
|
38
|
+
renderItem: (item: P, index: number) => React.ReactNode;
|
|
39
|
+
grid?: object;
|
|
40
|
+
className?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @description 滚动阈值,默认为 100px
|
|
43
|
+
* @default 100px
|
|
44
|
+
*/
|
|
45
|
+
scrollThreshold?: string | number;
|
|
46
|
+
/**
|
|
47
|
+
* @description 滚动高度达到此参数值才出现 BackTop
|
|
48
|
+
* @default 200
|
|
49
|
+
*/
|
|
50
|
+
visibilityHeight?: number;
|
|
51
|
+
/**
|
|
52
|
+
* @description 是否显示 BackTop
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
showBackTop?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @description 列表底部提示
|
|
58
|
+
*/
|
|
59
|
+
endMessage?: React.ReactNode;
|
|
60
|
+
}
|
|
61
|
+
export type InfiniteScrollListProps<T, P> = ISLProps<T, P>;
|
|
62
|
+
declare const _default: React.MemoExoticComponent<(<T, P>(props: ISLProps<T, P>) => import("react/jsx-runtime").JSX.Element)>;
|
|
63
|
+
export default _default;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ILabelValueProps } from './interface';
|
|
3
|
-
import './styles/index.less';
|
|
4
|
-
declare function LabelValue({ label, value, emptyValue, className, noWrap, noColon, formatter, style }: ILabelValueProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare namespace LabelValue {
|
|
6
|
-
var defaultProps: {
|
|
7
|
-
className: string;
|
|
8
|
-
label: string;
|
|
9
|
-
value: string;
|
|
10
|
-
emptyValue: string;
|
|
11
|
-
noWrap: boolean;
|
|
12
|
-
noColon: boolean;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
declare const _default: React.MemoExoticComponent<typeof LabelValue>;
|
|
16
|
-
export default _default;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ILabelValueProps } from './interface';
|
|
3
|
+
import './styles/index.less';
|
|
4
|
+
declare function LabelValue({ label, value, emptyValue, className, noWrap, noColon, formatter, style }: ILabelValueProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare namespace LabelValue {
|
|
6
|
+
var defaultProps: {
|
|
7
|
+
className: string;
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
emptyValue: string;
|
|
11
|
+
noWrap: boolean;
|
|
12
|
+
noColon: boolean;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare const _default: React.MemoExoticComponent<typeof LabelValue>;
|
|
16
|
+
export default _default;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ILabelValueProps {
|
|
3
|
-
/**
|
|
4
|
-
* @description 文字标签
|
|
5
|
-
*/
|
|
6
|
-
label: string | React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* @description 文字标签值
|
|
9
|
-
*/
|
|
10
|
-
value?: string | React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* @description 格式化value值
|
|
13
|
-
*/
|
|
14
|
-
formatter?: (_v?: string | React.ReactNode) => string | React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* @description 文字标签值为空时的值
|
|
17
|
-
* @default -
|
|
18
|
-
*/
|
|
19
|
-
emptyValue?: string | React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* @description 类名
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
|
-
/**
|
|
25
|
-
* @description 样式
|
|
26
|
-
*/
|
|
27
|
-
style?: React.CSSProperties;
|
|
28
|
-
/**
|
|
29
|
-
* @description 是否不换行
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
noWrap?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* @description 是否隐藏冒号
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
noColon?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ILabelValueProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 文字标签
|
|
5
|
+
*/
|
|
6
|
+
label: string | React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* @description 文字标签值
|
|
9
|
+
*/
|
|
10
|
+
value?: string | React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* @description 格式化value值
|
|
13
|
+
*/
|
|
14
|
+
formatter?: (_v?: string | React.ReactNode) => string | React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* @description 文字标签值为空时的值
|
|
17
|
+
* @default -
|
|
18
|
+
*/
|
|
19
|
+
emptyValue?: string | React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* @description 类名
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @description 样式
|
|
26
|
+
*/
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
/**
|
|
29
|
+
* @description 是否不换行
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
noWrap?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @description 是否隐藏冒号
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
noColon?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export type LabelValueProps = ILabelValueProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ILoadingInstance, LoadingInstanceProps } from '../interface';
|
|
2
|
-
export declare const useLoading: (initialState?: boolean) => {
|
|
3
|
-
isLoading: boolean;
|
|
4
|
-
openLoading: (params?: LoadingInstanceProps) => ILoadingInstance;
|
|
5
|
-
closeLoading: () => void;
|
|
6
|
-
};
|
|
1
|
+
import type { ILoadingInstance, LoadingInstanceProps } from '../interface';
|
|
2
|
+
export declare const useLoading: (initialState?: boolean) => {
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
openLoading: (params?: LoadingInstanceProps) => ILoadingInstance;
|
|
5
|
+
closeLoading: () => void;
|
|
6
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import Loading from './loading';
|
|
2
|
-
import { LoadingInstanceProps, ILoadingInstance } from './interface';
|
|
3
|
-
import { useLoading } from './hooks/useLoading';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
open(params?: LoadingInstanceProps): ILoadingInstance;
|
|
6
|
-
close(): void;
|
|
7
|
-
getInstance(): ILoadingInstance | null;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export { Loading, useLoading };
|
|
1
|
+
import Loading from './loading';
|
|
2
|
+
import { LoadingInstanceProps, ILoadingInstance } from './interface';
|
|
3
|
+
import { useLoading } from './hooks/useLoading';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
open(params?: LoadingInstanceProps): ILoadingInstance;
|
|
6
|
+
close(): void;
|
|
7
|
+
getInstance(): ILoadingInstance | null;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export { Loading, useLoading };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { SpinProps } from 'antd';
|
|
2
|
-
import { ReactInstance } from 'react';
|
|
3
|
-
export interface LoadingInstanceProps extends Omit<SpinProps, 'delay'> {
|
|
4
|
-
/**
|
|
5
|
-
* @description 加载框容器
|
|
6
|
-
* @default body
|
|
7
|
-
*/
|
|
8
|
-
container?: ReactInstance | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* @description 延迟显示加载框毫秒
|
|
11
|
-
* @default 0
|
|
12
|
-
*/
|
|
13
|
-
delay?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ILoadingInstance {
|
|
16
|
-
destroy: () => void;
|
|
17
|
-
}
|
|
18
|
-
export interface ILoadingProps {
|
|
19
|
-
open: (_params: LoadingInstanceProps) => ILoadingInstance;
|
|
20
|
-
getInstance: () => ILoadingInstance | null;
|
|
21
|
-
close: () => void;
|
|
22
|
-
}
|
|
23
|
-
export
|
|
1
|
+
import { SpinProps } from 'antd';
|
|
2
|
+
import { ReactInstance } from 'react';
|
|
3
|
+
export interface LoadingInstanceProps extends Omit<SpinProps, 'delay'> {
|
|
4
|
+
/**
|
|
5
|
+
* @description 加载框容器
|
|
6
|
+
* @default body
|
|
7
|
+
*/
|
|
8
|
+
container?: ReactInstance | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* @description 延迟显示加载框毫秒
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
delay?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ILoadingInstance {
|
|
16
|
+
destroy: () => void;
|
|
17
|
+
}
|
|
18
|
+
export interface ILoadingProps {
|
|
19
|
+
open: (_params: LoadingInstanceProps) => ILoadingInstance;
|
|
20
|
+
getInstance: () => ILoadingInstance | null;
|
|
21
|
+
close: () => void;
|
|
22
|
+
}
|
|
23
|
+
export type LoadingProps = ILoadingProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ILoadingInstance, LoadingInstanceProps } from './interface';
|
|
2
|
-
import './styles/index.less';
|
|
3
|
-
declare function Loading(props: LoadingInstanceProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace Loading {
|
|
5
|
-
var newInstance: (args?: LoadingInstanceProps | undefined) => ILoadingInstance;
|
|
6
|
-
}
|
|
7
|
-
export default Loading;
|
|
1
|
+
import { ILoadingInstance, LoadingInstanceProps } from './interface';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
declare function Loading(props: LoadingInstanceProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare namespace Loading {
|
|
5
|
+
var newInstance: (args?: LoadingInstanceProps | undefined) => ILoadingInstance;
|
|
6
|
+
}
|
|
7
|
+
export default Loading;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InputItemProps, PasswordItemProps, ButtonItemProps } from '../DForm/DItem/itemType';
|
|
2
|
-
export declare const defaultUsernameItem: InputItemProps;
|
|
3
|
-
export declare const defaultPasswordItem: PasswordItemProps;
|
|
4
|
-
export declare const defaultLoginButtonItem: ButtonItemProps;
|
|
1
|
+
import type { InputItemProps, PasswordItemProps, ButtonItemProps } from '../DForm/DItem/itemType';
|
|
2
|
+
export declare const defaultUsernameItem: InputItemProps;
|
|
3
|
+
export declare const defaultPasswordItem: PasswordItemProps;
|
|
4
|
+
export declare const defaultLoginButtonItem: ButtonItemProps;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FormProps, FormInstance } from 'antd';
|
|
3
|
-
import { type DItemProps } from "
|
|
4
|
-
export interface LoginFormProps extends Omit<FormProps, 'onFinish'> {
|
|
5
|
-
/** 登录表单额外的表单项 */
|
|
6
|
-
extraItems?: DItemProps[];
|
|
7
|
-
/** 点击登录按钮的回调 */
|
|
8
|
-
onFinish?: (values: any) => void | Promise<any>;
|
|
9
|
-
/** 登录按钮文本 */
|
|
10
|
-
loginText?: string;
|
|
11
|
-
/** 是否禁用登录按钮 */
|
|
12
|
-
loginButtonDisabled?: boolean;
|
|
13
|
-
/** 用户名表单项配置 */
|
|
14
|
-
usernameItem?: Partial<DItemProps>;
|
|
15
|
-
/** 密码表单项配置 */
|
|
16
|
-
passwordItem?: Partial<DItemProps>;
|
|
17
|
-
/** 登录按钮表单项配置 */
|
|
18
|
-
loginButtonItem?: Partial<DItemProps>;
|
|
19
|
-
}
|
|
20
|
-
declare const LoginForm: React.ForwardRefExoticComponent<LoginFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
21
|
-
export default LoginForm;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormProps, FormInstance } from 'antd';
|
|
3
|
+
import { type DItemProps } from "..";
|
|
4
|
+
export interface LoginFormProps extends Omit<FormProps, 'onFinish'> {
|
|
5
|
+
/** 登录表单额外的表单项 */
|
|
6
|
+
extraItems?: DItemProps[];
|
|
7
|
+
/** 点击登录按钮的回调 */
|
|
8
|
+
onFinish?: (values: any) => void | Promise<any>;
|
|
9
|
+
/** 登录按钮文本 */
|
|
10
|
+
loginText?: string;
|
|
11
|
+
/** 是否禁用登录按钮 */
|
|
12
|
+
loginButtonDisabled?: boolean;
|
|
13
|
+
/** 用户名表单项配置 */
|
|
14
|
+
usernameItem?: Partial<DItemProps>;
|
|
15
|
+
/** 密码表单项配置 */
|
|
16
|
+
passwordItem?: Partial<DItemProps>;
|
|
17
|
+
/** 登录按钮表单项配置 */
|
|
18
|
+
loginButtonItem?: Partial<DItemProps>;
|
|
19
|
+
}
|
|
20
|
+
declare const LoginForm: React.ForwardRefExoticComponent<LoginFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
21
|
+
export default LoginForm;
|
|
@@ -9,8 +9,8 @@ var _excluded = ["extraItems", "onFinish", "loginText", "loginButtonDisabled", "
|
|
|
9
9
|
import React, { useState, useEffect, forwardRef, useContext, useMemo } from 'react';
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
import { DForm } from "./..";
|
|
12
|
-
import { defaultUsernameItem, defaultPasswordItem, defaultLoginButtonItem } from "./defaultConfig";
|
|
13
12
|
import { ConfigContext } from "../ConfigProvider";
|
|
13
|
+
import { defaultUsernameItem, defaultPasswordItem, defaultLoginButtonItem } from "./defaultConfig";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
var mergeItemProps = function mergeItemProps(defaultItem, item, options) {
|
|
16
16
|
var baseMerged = _objectSpread(_objectSpread({}, defaultItem), item);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DFormProps, DModalProps } from "
|
|
3
|
-
export
|
|
4
|
-
modalProps: DModalProps & {
|
|
5
|
-
width?: number;
|
|
6
|
-
};
|
|
7
|
-
formProps: DFormProps;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: (props: ModalFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default _default;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DFormProps, DModalProps } from "..";
|
|
3
|
+
export type ModalFormProps = {
|
|
4
|
+
modalProps: DModalProps & {
|
|
5
|
+
width?: number;
|
|
6
|
+
};
|
|
7
|
+
formProps: DFormProps;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: (props: ModalFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INoDataProps } from './interface';
|
|
2
|
-
import './styles/index.less';
|
|
3
|
-
declare const NoData: (props: INoDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default NoData;
|
|
1
|
+
import { INoDataProps } from './interface';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
declare const NoData: (props: INoDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default NoData;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export interface INoDataProps {
|
|
2
|
-
/**
|
|
3
|
-
* @description 无数据时的文字描述
|
|
4
|
-
* @default 暂无结果
|
|
5
|
-
*/
|
|
6
|
-
emptyText?: string;
|
|
7
|
-
/**
|
|
8
|
-
* @description 无数据时展示的图片
|
|
9
|
-
* @default 内置的base64图片
|
|
10
|
-
*/
|
|
11
|
-
src?: string;
|
|
12
|
-
}
|
|
13
|
-
export
|
|
1
|
+
export interface INoDataProps {
|
|
2
|
+
/**
|
|
3
|
+
* @description 无数据时的文字描述
|
|
4
|
+
* @default 暂无结果
|
|
5
|
+
*/
|
|
6
|
+
emptyText?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @description 无数据时展示的图片
|
|
9
|
+
* @default 内置的base64图片
|
|
10
|
+
*/
|
|
11
|
+
src?: string;
|
|
12
|
+
}
|
|
13
|
+
export type NoDataProps = INoDataProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { OrgTreeProps } from './interface';
|
|
3
|
-
import './index.less';
|
|
4
|
-
declare const OrgTree: import("react").ForwardRefExoticComponent<OrgTreeProps & import("react").RefAttributes<any>>;
|
|
5
|
-
export default OrgTree;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { OrgTreeProps } from './interface';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const OrgTree: import("react").ForwardRefExoticComponent<OrgTreeProps & import("react").RefAttributes<any>>;
|
|
5
|
+
export default OrgTree;
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface OrgTreeNode {
|
|
3
|
-
/** 节点唯一标识 */
|
|
4
|
-
id: string | number;
|
|
5
|
-
/** 节点显示文本 */
|
|
6
|
-
label: string;
|
|
7
|
-
/** 节点标题 */
|
|
8
|
-
title?: string;
|
|
9
|
-
/** 子节点 */
|
|
10
|
-
children?: OrgTreeNode[];
|
|
11
|
-
/** 节点是否展开 */
|
|
12
|
-
expand?: boolean;
|
|
13
|
-
/** 节点是否可折叠 */
|
|
14
|
-
collapsable?: boolean;
|
|
15
|
-
/** 自定义节点类名 */
|
|
16
|
-
className?: string;
|
|
17
|
-
/** 节点数据 */
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
}
|
|
20
|
-
export interface OrgTreeProps {
|
|
21
|
-
/** 组织树数据 */
|
|
22
|
-
data: OrgTreeNode;
|
|
23
|
-
/** 水平方向布局 */
|
|
24
|
-
horizontal?: boolean;
|
|
25
|
-
/** 是否可折叠 */
|
|
26
|
-
collapsable?: boolean;
|
|
27
|
-
/** 是否展开所有节点 */
|
|
28
|
-
expandAll?: boolean;
|
|
29
|
-
/** 自定义节点渲染 */
|
|
30
|
-
/** 自定义类名 */
|
|
31
|
-
className?: string;
|
|
32
|
-
/** 自定义样式 */
|
|
33
|
-
style?: React.CSSProperties;
|
|
34
|
-
/** 标签宽度 */
|
|
35
|
-
labelWidth?: string | number;
|
|
36
|
-
/** 标签自定义类名 */
|
|
37
|
-
labelClassName?: string;
|
|
38
|
-
onClick?: (event: React.MouseEvent, node: OrgTreeNode) => void;
|
|
39
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface OrgTreeNode {
|
|
3
|
+
/** 节点唯一标识 */
|
|
4
|
+
id: string | number;
|
|
5
|
+
/** 节点显示文本 */
|
|
6
|
+
label: string;
|
|
7
|
+
/** 节点标题 */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** 子节点 */
|
|
10
|
+
children?: OrgTreeNode[];
|
|
11
|
+
/** 节点是否展开 */
|
|
12
|
+
expand?: boolean;
|
|
13
|
+
/** 节点是否可折叠 */
|
|
14
|
+
collapsable?: boolean;
|
|
15
|
+
/** 自定义节点类名 */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** 节点数据 */
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export interface OrgTreeProps {
|
|
21
|
+
/** 组织树数据 */
|
|
22
|
+
data: OrgTreeNode;
|
|
23
|
+
/** 水平方向布局 */
|
|
24
|
+
horizontal?: boolean;
|
|
25
|
+
/** 是否可折叠 */
|
|
26
|
+
collapsable?: boolean;
|
|
27
|
+
/** 是否展开所有节点 */
|
|
28
|
+
expandAll?: boolean;
|
|
29
|
+
/** 自定义节点渲染 */
|
|
30
|
+
/** 自定义类名 */
|
|
31
|
+
className?: string;
|
|
32
|
+
/** 自定义样式 */
|
|
33
|
+
style?: React.CSSProperties;
|
|
34
|
+
/** 标签宽度 */
|
|
35
|
+
labelWidth?: string | number;
|
|
36
|
+
/** 标签自定义类名 */
|
|
37
|
+
labelClassName?: string;
|
|
38
|
+
onClick?: (event: React.MouseEvent, node: OrgTreeNode) => void;
|
|
39
|
+
/** 自定义渲染节点内容 */
|
|
40
|
+
renderContent?: (node: OrgTreeNode) => React.ReactNode;
|
|
41
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ImageProps } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface IPictureCardProps extends Omit<ImageProps, 'src' | 'width' | 'content'> {
|
|
5
|
-
className?: string;
|
|
6
|
-
layout?: 'vertical' | 'horizontal';
|
|
7
|
-
src: ImageProps['src'] | ImageProps['src'][];
|
|
8
|
-
imageWidth?: ImageProps['width'];
|
|
9
|
-
content?: React.ReactNode;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
hoverable?: boolean;
|
|
12
|
-
bordered?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const PictureCard: (props: IPictureCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export
|
|
16
|
-
export default PictureCard;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ImageProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface IPictureCardProps extends Omit<ImageProps, 'src' | 'width' | 'content'> {
|
|
5
|
+
className?: string;
|
|
6
|
+
layout?: 'vertical' | 'horizontal';
|
|
7
|
+
src: ImageProps['src'] | ImageProps['src'][];
|
|
8
|
+
imageWidth?: ImageProps['width'];
|
|
9
|
+
content?: React.ReactNode;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
hoverable?: boolean;
|
|
12
|
+
bordered?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const PictureCard: (props: IPictureCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type PictureCardProps = IPictureCardProps;
|
|
16
|
+
export default PictureCard;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { RCropperActionHandlers } from './interface';
|
|
3
|
-
import type Cropper from 'cropperjs';
|
|
4
|
-
export declare function createCropperHandlers(cropperInstanceRef: React.RefObject<Cropper | null>, imgTransformRef: React.RefObject<number[] | undefined>, props: {
|
|
5
|
-
onCrop?: (base64: string, file?: File) => void;
|
|
6
|
-
onZoom?: (transform: number[] | undefined) => void;
|
|
7
|
-
onRotate?: (transform: number[] | undefined) => void;
|
|
8
|
-
onFlip?: (transform: number[] | undefined) => void;
|
|
9
|
-
onReset?: (transform: number[] | undefined) => void;
|
|
10
|
-
onCancelCrop?: (info: {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
}) => void;
|
|
16
|
-
}): RCropperActionHandlers;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { RCropperActionHandlers } from './interface';
|
|
3
|
+
import type Cropper from 'cropperjs';
|
|
4
|
+
export declare function createCropperHandlers(cropperInstanceRef: React.RefObject<Cropper | null>, imgTransformRef: React.RefObject<number[] | undefined>, props: {
|
|
5
|
+
onCrop?: (base64: string, file?: File) => void;
|
|
6
|
+
onZoom?: (transform: number[] | undefined) => void;
|
|
7
|
+
onRotate?: (transform: number[] | undefined) => void;
|
|
8
|
+
onFlip?: (transform: number[] | undefined) => void;
|
|
9
|
+
onReset?: (transform: number[] | undefined) => void;
|
|
10
|
+
onCancelCrop?: (info: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}) => void;
|
|
16
|
+
}): RCropperActionHandlers;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RCropperProps } from './interface';
|
|
3
|
-
declare const RCropper: React.ForwardRefExoticComponent<RCropperProps & React.RefAttributes<unknown>>;
|
|
4
|
-
export default RCropper;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RCropperProps } from './interface';
|
|
3
|
+
declare const RCropper: React.ForwardRefExoticComponent<RCropperProps & React.RefAttributes<unknown>>;
|
|
4
|
+
export default RCropper;
|