@pointcloud/pcloud-components 0.1.32 → 0.1.34
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 +39 -31
- 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/CRUD/config.d.ts +2 -0
- package/dist/esm/CRUD/config.js +21 -0
- package/dist/esm/CRUD/index.d.ts +98 -0
- package/dist/esm/CRUD/index.js +669 -0
- package/dist/esm/CRUD/index.less +140 -0
- package/dist/esm/CRUD/toolbar.d.ts +16 -0
- package/dist/esm/CRUD/toolbar.js +249 -0
- package/dist/esm/ColorPicker/index.d.ts +17 -18
- 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 +19 -18
- package/dist/esm/DModal/index.js +11 -9
- package/dist/esm/DModal/interface.d.ts +8 -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 +62 -46
- package/dist/esm/DTable/index.js +43 -13
- 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 -6
- 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 +9 -8
- package/dist/esm/Loading/loading.js +48 -23
- package/dist/esm/Loading/styles/index.less +37 -25
- package/dist/esm/LoginForm/defaultConfig.d.ts +4 -4
- package/dist/esm/LoginForm/index.d.ts +21 -21
- package/dist/esm/ModalForm/index.d.ts +13 -11
- package/dist/esm/ModalForm/index.js +76 -7
- package/dist/esm/NoData/index.d.ts +4 -5
- 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 -41
- 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 -6
- package/dist/esm/ScrollNumber/index.d.ts +7 -8
- package/dist/esm/SignaturePad/index.d.ts +32 -32
- package/dist/esm/TypewriterText/index.d.ts +5 -5
- package/dist/esm/TypewriterText/interface.d.ts +42 -42
- package/dist/esm/WordCloud/index.d.ts +10 -11
- package/dist/esm/index.d.ts +66 -62
- 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 +15 -5
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { UploadProps } from 'antd';
|
|
3
|
-
import { UploadChangeParam } from 'antd/lib/upload';
|
|
4
|
-
import helper, { DUploadFile, ThumbOptionProps } from './helper';
|
|
5
|
-
import './index.less';
|
|
6
|
-
|
|
7
|
-
/** 初始文件列表(相当于defaultFileList,但优先级高于defaultFileList) */
|
|
8
|
-
value?: DUploadFile | DUploadFile[];
|
|
9
|
-
/** 文件列表(在Form组件中表现为受控列表,在一般情况下相当于初始文件列表,其优先级高于value属性) */
|
|
10
|
-
fileList?: DUploadFile | DUploadFile[];
|
|
11
|
-
/** 文件列表变化时的回调函数 */
|
|
12
|
-
onChange?: (list: DUploadFile[], info: UploadChangeParam<DUploadFile>) => void;
|
|
13
|
-
/** 文件上传时的回调函数,支持Promise */
|
|
14
|
-
customRequest?: (file: DUploadFile, list: DUploadFile[], requestOption: any) => DUploadFile[] | Promise<DUploadFile[] | void> | void;
|
|
15
|
-
/** 点击删除按钮时的回调,支持Promise */
|
|
16
|
-
onRemove?: (file: DUploadFile, list: DUploadFile[]) => DUploadFile[] | Promise<DUploadFile[] | void> | void;
|
|
17
|
-
/** 点击下载按钮时的回调,支持Promise */
|
|
18
|
-
onDownload?: (file: DUploadFile) => DUploadFile | Blob | Promise<DUploadFile | Blob> | void;
|
|
19
|
-
/** 点击预览按钮时的回调,支持Promise */
|
|
20
|
-
onPreview?: (file: DUploadFile) => DUploadFile | Blob | Promise<DUploadFile | Blob> | void;
|
|
21
|
-
/** 上传按钮,等同于children但优先于children */
|
|
22
|
-
uploadButton?: ReactNode;
|
|
23
|
-
/** 上传文件时的缩略图选项,null表示不生成缩略图 */
|
|
24
|
-
thumbOption?: ThumbOptionProps | null;
|
|
25
|
-
/** 列表项样式类名 */
|
|
26
|
-
itemClassName?: string;
|
|
27
|
-
enablePreview?: boolean | ((file: DUploadFile) => boolean);
|
|
28
|
-
};
|
|
29
|
-
declare const DUpload: React.ForwardRefExoticComponent<Omit<UploadProps<any>, "onChange" | "fileList" | "customRequest" | "onRemove" | "onDownload" | "onPreview"> & {
|
|
30
|
-
/** 初始文件列表(相当于defaultFileList,但优先级高于defaultFileList) */
|
|
31
|
-
value?: DUploadFile | DUploadFile[] | undefined;
|
|
32
|
-
/** 文件列表(在Form组件中表现为受控列表,在一般情况下相当于初始文件列表,其优先级高于value属性) */
|
|
33
|
-
fileList?: DUploadFile | DUploadFile[] | undefined;
|
|
34
|
-
/** 文件列表变化时的回调函数 */
|
|
35
|
-
onChange?: ((list: DUploadFile[], info: UploadChangeParam<DUploadFile>) => void) | undefined;
|
|
36
|
-
/** 文件上传时的回调函数,支持Promise */
|
|
37
|
-
customRequest?: ((file: DUploadFile, list: DUploadFile[], requestOption: any) => DUploadFile[] | Promise<DUploadFile[] | void> | void) | undefined;
|
|
38
|
-
/** 点击删除按钮时的回调,支持Promise */
|
|
39
|
-
onRemove?: ((file: DUploadFile, list: DUploadFile[]) => DUploadFile[] | Promise<DUploadFile[] | void> | void) | undefined;
|
|
40
|
-
/** 点击下载按钮时的回调,支持Promise */
|
|
41
|
-
onDownload?: ((file: DUploadFile) => DUploadFile | Blob | Promise<DUploadFile | Blob> | void) | undefined;
|
|
42
|
-
/** 点击预览按钮时的回调,支持Promise */
|
|
43
|
-
onPreview?: ((file: DUploadFile) => DUploadFile | Blob | Promise<DUploadFile | Blob> | void) | undefined;
|
|
44
|
-
/** 上传按钮,等同于children但优先于children */
|
|
45
|
-
uploadButton?:
|
|
46
|
-
/** 上传文件时的缩略图选项,null表示不生成缩略图 */
|
|
47
|
-
thumbOption?: ThumbOptionProps | null | undefined;
|
|
48
|
-
/** 列表项样式类名 */
|
|
49
|
-
itemClassName?: string | undefined;
|
|
50
|
-
enablePreview?: boolean | ((file: DUploadFile) => boolean) | undefined;
|
|
51
|
-
} & React.RefAttributes<unknown>> & {
|
|
52
|
-
imageToBase64: typeof helper.imageToBase64;
|
|
53
|
-
};
|
|
54
|
-
export type { DUploadProps, DUploadFile };
|
|
55
|
-
export default DUpload;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { UploadProps } from 'antd';
|
|
3
|
+
import { UploadChangeParam } from 'antd/lib/upload';
|
|
4
|
+
import helper, { DUploadFile, ThumbOptionProps } from './helper';
|
|
5
|
+
import './index.less';
|
|
6
|
+
type DUploadProps = Omit<UploadProps, 'fileList' | 'onChange' | 'customRequest' | 'onRemove' | 'onDownload' | 'onPreview'> & {
|
|
7
|
+
/** 初始文件列表(相当于defaultFileList,但优先级高于defaultFileList) */
|
|
8
|
+
value?: DUploadFile | DUploadFile[];
|
|
9
|
+
/** 文件列表(在Form组件中表现为受控列表,在一般情况下相当于初始文件列表,其优先级高于value属性) */
|
|
10
|
+
fileList?: DUploadFile | DUploadFile[];
|
|
11
|
+
/** 文件列表变化时的回调函数 */
|
|
12
|
+
onChange?: (list: DUploadFile[], info: UploadChangeParam<DUploadFile>) => void;
|
|
13
|
+
/** 文件上传时的回调函数,支持Promise */
|
|
14
|
+
customRequest?: (file: DUploadFile, list: DUploadFile[], requestOption: any) => DUploadFile[] | Promise<DUploadFile[] | void> | void;
|
|
15
|
+
/** 点击删除按钮时的回调,支持Promise */
|
|
16
|
+
onRemove?: (file: DUploadFile, list: DUploadFile[]) => DUploadFile[] | Promise<DUploadFile[] | void> | void;
|
|
17
|
+
/** 点击下载按钮时的回调,支持Promise */
|
|
18
|
+
onDownload?: (file: DUploadFile) => DUploadFile | Blob | Promise<DUploadFile | Blob> | void;
|
|
19
|
+
/** 点击预览按钮时的回调,支持Promise */
|
|
20
|
+
onPreview?: (file: DUploadFile) => DUploadFile | Blob | Promise<DUploadFile | Blob> | void;
|
|
21
|
+
/** 上传按钮,等同于children但优先于children */
|
|
22
|
+
uploadButton?: ReactNode;
|
|
23
|
+
/** 上传文件时的缩略图选项,null表示不生成缩略图 */
|
|
24
|
+
thumbOption?: ThumbOptionProps | null;
|
|
25
|
+
/** 列表项样式类名 */
|
|
26
|
+
itemClassName?: string;
|
|
27
|
+
enablePreview?: boolean | ((file: DUploadFile) => boolean);
|
|
28
|
+
};
|
|
29
|
+
declare const DUpload: React.ForwardRefExoticComponent<Omit<UploadProps<any>, "onChange" | "fileList" | "customRequest" | "onRemove" | "onDownload" | "onPreview"> & {
|
|
30
|
+
/** 初始文件列表(相当于defaultFileList,但优先级高于defaultFileList) */
|
|
31
|
+
value?: DUploadFile | DUploadFile[] | undefined;
|
|
32
|
+
/** 文件列表(在Form组件中表现为受控列表,在一般情况下相当于初始文件列表,其优先级高于value属性) */
|
|
33
|
+
fileList?: DUploadFile | DUploadFile[] | undefined;
|
|
34
|
+
/** 文件列表变化时的回调函数 */
|
|
35
|
+
onChange?: ((list: DUploadFile[], info: UploadChangeParam<DUploadFile>) => void) | undefined;
|
|
36
|
+
/** 文件上传时的回调函数,支持Promise */
|
|
37
|
+
customRequest?: ((file: DUploadFile, list: DUploadFile[], requestOption: any) => DUploadFile[] | Promise<DUploadFile[] | void> | void) | undefined;
|
|
38
|
+
/** 点击删除按钮时的回调,支持Promise */
|
|
39
|
+
onRemove?: ((file: DUploadFile, list: DUploadFile[]) => DUploadFile[] | Promise<DUploadFile[] | void> | void) | undefined;
|
|
40
|
+
/** 点击下载按钮时的回调,支持Promise */
|
|
41
|
+
onDownload?: ((file: DUploadFile) => DUploadFile | Blob | Promise<DUploadFile | Blob> | void) | undefined;
|
|
42
|
+
/** 点击预览按钮时的回调,支持Promise */
|
|
43
|
+
onPreview?: ((file: DUploadFile) => DUploadFile | Blob | Promise<DUploadFile | Blob> | void) | undefined;
|
|
44
|
+
/** 上传按钮,等同于children但优先于children */
|
|
45
|
+
uploadButton?: ReactNode;
|
|
46
|
+
/** 上传文件时的缩略图选项,null表示不生成缩略图 */
|
|
47
|
+
thumbOption?: ThumbOptionProps | null | undefined;
|
|
48
|
+
/** 列表项样式类名 */
|
|
49
|
+
itemClassName?: string | undefined;
|
|
50
|
+
enablePreview?: boolean | ((file: DUploadFile) => boolean) | undefined;
|
|
51
|
+
} & React.RefAttributes<unknown>> & {
|
|
52
|
+
imageToBase64: typeof helper.imageToBase64;
|
|
53
|
+
};
|
|
54
|
+
export type { DUploadProps, DUploadFile };
|
|
55
|
+
export default DUpload;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default ErrorBoundary;
|
|
1
|
+
import './index.less';
|
|
2
|
+
declare function ErrorBoundary({ err }: {
|
|
3
|
+
err?: any;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default ErrorBoundary;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface IPAddressProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
onChange?: (_value: string) => void;
|
|
7
|
-
onFocus?: (_value: string, _index: number) => void;
|
|
8
|
-
onBlur?: (_value: string, _index: number) => void;
|
|
9
|
-
type?: 'IPv4' | 'IPv6';
|
|
10
|
-
delimiter?: React.ReactNode;
|
|
11
|
-
readOnly?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
size?: 'small' | 'middle' | 'large';
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
16
|
-
autoComplete?: boolean;
|
|
17
|
-
normalize?: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const IPAddress: React.FC<IPAddressProps>;
|
|
20
|
-
export default IPAddress;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface IPAddressProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (_value: string) => void;
|
|
7
|
+
onFocus?: (_value: string, _index: number) => void;
|
|
8
|
+
onBlur?: (_value: string, _index: number) => void;
|
|
9
|
+
type?: 'IPv4' | 'IPv6';
|
|
10
|
+
delimiter?: React.ReactNode;
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
size?: 'small' | 'middle' | 'large';
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
16
|
+
autoComplete?: boolean;
|
|
17
|
+
normalize?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const IPAddress: React.FC<IPAddressProps>;
|
|
20
|
+
export default IPAddress;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { getTwoToneColor, setTwoToneColor } from '@ant-design/icons';
|
|
3
|
-
declare const setIconfontScriptUrl: (urls: string | string[]) => void;
|
|
4
|
-
export interface IconFontProps {
|
|
5
|
-
type: string;
|
|
6
|
-
scriptUrl?: string | string[];
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
10
|
-
}
|
|
11
|
-
interface IconFontType extends React.FC<IconFontProps> {
|
|
12
|
-
setIconfontScriptUrl: typeof setIconfontScriptUrl;
|
|
13
|
-
getTWoToneColor: typeof getTwoToneColor;
|
|
14
|
-
setTwoToneColor: typeof setTwoToneColor;
|
|
15
|
-
}
|
|
16
|
-
declare const IconFont: IconFontType;
|
|
17
|
-
export default IconFont;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getTwoToneColor, setTwoToneColor } from '@ant-design/icons';
|
|
3
|
+
declare const setIconfontScriptUrl: (urls: string | string[]) => void;
|
|
4
|
+
export interface IconFontProps {
|
|
5
|
+
type: string;
|
|
6
|
+
scriptUrl?: string | string[];
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
interface IconFontType extends React.FC<IconFontProps> {
|
|
12
|
+
setIconfontScriptUrl: typeof setIconfontScriptUrl;
|
|
13
|
+
getTWoToneColor: typeof getTwoToneColor;
|
|
14
|
+
setTwoToneColor: typeof setTwoToneColor;
|
|
15
|
+
}
|
|
16
|
+
declare const IconFont: IconFontType;
|
|
17
|
+
export default IconFont;
|
|
@@ -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>) => 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): 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,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { ILoadingInstance, LoadingInstanceProps } from './interface';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
declare function Loading(props: LoadingInstanceProps & {
|
|
4
|
+
isBodyContainer?: boolean;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
declare namespace Loading {
|
|
7
|
+
var newInstance: (args?: LoadingInstanceProps | undefined) => ILoadingInstance;
|
|
8
|
+
}
|
|
9
|
+
export default Loading;
|