szld-libs 0.2.59 → 0.2.61
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/szld-components.es.js +4855 -4803
- package/dist/szld-components.umd.js +40 -40
- package/es/components/AuthButton/index.d.ts +6 -6
- package/es/components/BackHeader/index.d.ts +25 -25
- package/es/components/Captcha/index.d.ts +8 -8
- package/es/components/CoralButton/index.d.ts +10 -10
- package/es/components/CreateForm/index.d.ts +56 -56
- package/es/components/CustomPagination/index.d.ts +15 -15
- package/es/components/DynamicForm/index.d.ts +102 -102
- package/es/components/DynamicForm/index.js +4 -2
- package/es/components/DynamicForm/myCascader/index.d.ts +16 -16
- package/es/components/DynamicForm/myCheckbox/index.d.ts +18 -18
- package/es/components/DynamicForm/myRadio/index.d.ts +19 -19
- package/es/components/DynamicForm/mySelect/index.d.ts +16 -16
- package/es/components/DynamicForm/myUpload/index.d.ts +16 -16
- package/es/components/DynamicForm/radioCard/index.d.ts +12 -12
- package/es/components/DynamicForm/selectModel/index.d.ts +22 -21
- package/es/components/DynamicForm/selectModel/index.js +47 -9
- package/es/components/DynamicForm/useDynamicForm.d.ts +32 -30
- package/es/components/DynamicForm/useDynamicForm.js +26 -3
- package/es/components/EditTable/index.d.ts +17 -17
- package/es/components/Loading/index.d.ts +4 -4
- package/es/components/LoopSlide/index.css +32 -32
- package/es/components/LoopSlide/index.d.ts +17 -17
- package/es/components/SearchTable/index.d.ts +30 -30
- package/es/components/Upload/index.d.ts +14 -14
- package/es/components/VirtualTable/index.d.ts +3 -3
- package/es/components/WorkFlowNode/index.d.ts +14 -14
- package/es/components/common/403.d.ts +2 -2
- package/es/components/common/404.d.ts +2 -2
- package/es/hooks/useCaptcha.d.ts +11 -11
- package/es/hooks/useChangePwd.d.ts +13 -13
- package/es/hooks/useConfig.d.ts +8 -8
- package/es/hooks/useDetailRender.d.ts +19 -19
- package/es/hooks/useRemember.d.ts +9 -9
- package/es/hooks/useRowSelection.d.ts +20 -20
- package/es/index.d.ts +1 -1
- package/es/main.d.ts +28 -28
- package/es/utils/aes.d.ts +7 -7
- package/es/utils/download.d.ts +9 -9
- package/es/utils/filetype.d.ts +35 -35
- package/es/utils/formRules.d.ts +55 -55
- package/es/utils/hmacSHA512.d.ts +6 -6
- package/es/utils/hmacSM3.d.ts +20 -20
- package/es/utils/image-compression/UPNG.d.ts +142 -142
- package/es/utils/image-compression/image.d.ts +8 -8
- package/es/utils/image-compression/index.d.ts +9 -9
- package/es/utils/index.d.ts +15 -15
- package/es/utils/method.d.ts +48 -48
- package/es/utils/verify-code.d.ts +27 -27
- package/es/vite-env.d.ts +14 -1
- package/lib/components/AuthButton/index.d.ts +6 -6
- package/lib/components/BackHeader/index.d.ts +25 -25
- package/lib/components/Captcha/index.d.ts +8 -8
- package/lib/components/CoralButton/index.d.ts +10 -10
- package/lib/components/CreateForm/index.d.ts +56 -56
- package/lib/components/CustomPagination/index.d.ts +15 -15
- package/lib/components/DynamicForm/index.d.ts +102 -102
- package/lib/components/DynamicForm/index.js +4 -2
- package/lib/components/DynamicForm/myCascader/index.d.ts +16 -16
- package/lib/components/DynamicForm/myCheckbox/index.d.ts +18 -18
- package/lib/components/DynamicForm/myRadio/index.d.ts +19 -19
- package/lib/components/DynamicForm/mySelect/index.d.ts +16 -16
- package/lib/components/DynamicForm/myUpload/index.d.ts +16 -16
- package/lib/components/DynamicForm/radioCard/index.d.ts +12 -12
- package/lib/components/DynamicForm/selectModel/index.d.ts +22 -21
- package/lib/components/DynamicForm/selectModel/index.js +46 -8
- package/lib/components/DynamicForm/useDynamicForm.d.ts +32 -30
- package/lib/components/DynamicForm/useDynamicForm.js +26 -3
- package/lib/components/EditTable/index.d.ts +17 -17
- package/lib/components/Loading/index.d.ts +4 -4
- package/lib/components/LoopSlide/index.css +32 -32
- package/lib/components/LoopSlide/index.d.ts +17 -17
- package/lib/components/SearchTable/index.d.ts +30 -30
- package/lib/components/Upload/index.d.ts +14 -14
- package/lib/components/VirtualTable/index.d.ts +3 -3
- package/lib/components/WorkFlowNode/index.d.ts +14 -14
- package/lib/components/common/403.d.ts +2 -2
- package/lib/components/common/404.d.ts +2 -2
- package/lib/hooks/useCaptcha.d.ts +11 -11
- package/lib/hooks/useChangePwd.d.ts +13 -13
- package/lib/hooks/useConfig.d.ts +8 -8
- package/lib/hooks/useDetailRender.d.ts +19 -19
- package/lib/hooks/useRemember.d.ts +9 -9
- package/lib/hooks/useRowSelection.d.ts +20 -20
- package/lib/index.d.ts +1 -1
- package/lib/main.d.ts +28 -28
- package/lib/utils/aes.d.ts +7 -7
- package/lib/utils/download.d.ts +9 -9
- package/lib/utils/filetype.d.ts +35 -35
- package/lib/utils/formRules.d.ts +55 -55
- package/lib/utils/hmacSHA512.d.ts +6 -6
- package/lib/utils/hmacSM3.d.ts +20 -20
- package/lib/utils/image-compression/UPNG.d.ts +142 -142
- package/lib/utils/image-compression/image.d.ts +8 -8
- package/lib/utils/image-compression/index.d.ts +9 -9
- package/lib/utils/index.d.ts +15 -15
- package/lib/utils/method.d.ts +48 -48
- package/lib/utils/verify-code.d.ts +27 -27
- package/lib/vite-env.d.ts +14 -1
- package/package.json +49 -49
- package/readme.md +25 -25
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const fileToDataURL: (file: Blob | File) => Promise<any>;
|
|
2
|
-
export declare const dataURLToImage: (dataURL: string) => Promise<HTMLImageElement>;
|
|
3
|
-
export declare const canvastoFile: (canvas: HTMLCanvasElement, type: string, quality: number) => Promise<Blob | null>;
|
|
4
|
-
export declare const scaleWidthHeight: (img: HTMLImageElement) => {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const convertQualityToBit: (quality: number) => number;
|
|
1
|
+
export declare const fileToDataURL: (file: Blob | File) => Promise<any>;
|
|
2
|
+
export declare const dataURLToImage: (dataURL: string) => Promise<HTMLImageElement>;
|
|
3
|
+
export declare const canvastoFile: (canvas: HTMLCanvasElement, type: string, quality: number) => Promise<Blob | null>;
|
|
4
|
+
export declare const scaleWidthHeight: (img: HTMLImageElement) => {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const convertQualityToBit: (quality: number) => number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 图片压缩方法
|
|
3
|
-
* @param {Object} file 图片文件
|
|
4
|
-
* @param {Nubmber} quality 压缩质量参数 0-1
|
|
5
|
-
* @param {limit} limit 最小限制大小,小于该值时不进行压缩, MB
|
|
6
|
-
* @returns 压缩后的新图片
|
|
7
|
-
*/
|
|
8
|
-
declare const compressionImage: (file: File, quality?: number, limit?: number) => Promise<File>;
|
|
9
|
-
export default compressionImage;
|
|
1
|
+
/**
|
|
2
|
+
* 图片压缩方法
|
|
3
|
+
* @param {Object} file 图片文件
|
|
4
|
+
* @param {Nubmber} quality 压缩质量参数 0-1
|
|
5
|
+
* @param {limit} limit 最小限制大小,小于该值时不进行压缩, MB
|
|
6
|
+
* @returns 压缩后的新图片
|
|
7
|
+
*/
|
|
8
|
+
declare const compressionImage: (file: File, quality?: number, limit?: number) => Promise<File>;
|
|
9
|
+
export default compressionImage;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export declare const filterObject: (object: any) => any;
|
|
2
|
-
export declare const getBase64: (file: File) => Promise<string>;
|
|
3
|
-
export declare const getFileSuffix: (name: string | undefined) => string | undefined;
|
|
4
|
-
export declare const getFileType: (name: string | undefined) => string | undefined;
|
|
5
|
-
export declare const setLocalStorage: (key: string, value: any) => void;
|
|
6
|
-
export declare const getLocalStorage: (key: string) => any;
|
|
7
|
-
export declare const removeLocalStorage: (key: string) => void;
|
|
8
|
-
export declare const setSessionStorage: (key: string, value: any) => void;
|
|
9
|
-
export declare const getSessionStorage: (key: string) => any;
|
|
10
|
-
export declare const removeSessionStorage: (key: string) => void;
|
|
11
|
-
export declare const arrayDeduplication: (key: string, arr: any[]) => any[];
|
|
12
|
-
export declare const JSONParse: (value: string) => any;
|
|
13
|
-
export declare function uuid(): string;
|
|
14
|
-
export declare const forceReload: () => void;
|
|
15
|
-
export declare const formatResponse: (res: any) => any;
|
|
1
|
+
export declare const filterObject: (object: any) => any;
|
|
2
|
+
export declare const getBase64: (file: File) => Promise<string>;
|
|
3
|
+
export declare const getFileSuffix: (name: string | undefined) => string | undefined;
|
|
4
|
+
export declare const getFileType: (name: string | undefined) => string | undefined;
|
|
5
|
+
export declare const setLocalStorage: (key: string, value: any) => void;
|
|
6
|
+
export declare const getLocalStorage: (key: string) => any;
|
|
7
|
+
export declare const removeLocalStorage: (key: string) => void;
|
|
8
|
+
export declare const setSessionStorage: (key: string, value: any) => void;
|
|
9
|
+
export declare const getSessionStorage: (key: string) => any;
|
|
10
|
+
export declare const removeSessionStorage: (key: string) => void;
|
|
11
|
+
export declare const arrayDeduplication: (key: string, arr: any[]) => any[];
|
|
12
|
+
export declare const JSONParse: (value: string) => any;
|
|
13
|
+
export declare function uuid(): string;
|
|
14
|
+
export declare const forceReload: () => void;
|
|
15
|
+
export declare const formatResponse: (res: any) => any;
|
package/lib/utils/method.d.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
export declare function getJson(jsonStr: string): any;
|
|
2
|
-
export declare function base64ToString(base64Str: string): string;
|
|
3
|
-
export declare function isBase64(str: string): boolean;
|
|
4
|
-
/**
|
|
5
|
-
* 处理表单提交数据,将表单值合并到原始数据attrvalue中
|
|
6
|
-
* @param originalData 原始数据
|
|
7
|
-
* @param allValues 表单提交值
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
export declare const handleSubmitForm: (originalData: any, allValues: any) => {
|
|
11
|
-
updatedData: any;
|
|
12
|
-
uploadedFiles: any[];
|
|
13
|
-
};
|
|
14
|
-
export declare const handleAttrList: (attrList: any[]) => any[];
|
|
15
|
-
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, defaultAttrListInterfaceName, commonRequest, guidParams, pcParam, attrReqKey, attrListExtraParams, }: {
|
|
16
|
-
number: string | number;
|
|
17
|
-
key: string;
|
|
18
|
-
guidInterfaceName: string;
|
|
19
|
-
SelPCParamInterfaceName: string;
|
|
20
|
-
servicerAttrListInterfaceName?: string | undefined;
|
|
21
|
-
accepterAttrListInterfaceName?: string | undefined;
|
|
22
|
-
defaultAttrListInterfaceName?: string | undefined;
|
|
23
|
-
sourceNumber?: string | number | undefined;
|
|
24
|
-
commonRequest: any;
|
|
25
|
-
guidParams?: {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
} | undefined;
|
|
28
|
-
pcParam?: {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
} | undefined;
|
|
31
|
-
attrListExtraParams?: {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
} | undefined;
|
|
34
|
-
attrReqKey?: string | undefined;
|
|
35
|
-
}) => Promise<{
|
|
36
|
-
baseData: any;
|
|
37
|
-
newGUID: string;
|
|
38
|
-
attrListConfigs: any[];
|
|
39
|
-
selPCParam: any;
|
|
40
|
-
}>;
|
|
41
|
-
/**
|
|
42
|
-
* 保存或者删除文件
|
|
43
|
-
* @param params 操作文件接口参数
|
|
44
|
-
* @param data 操作文件接口数据
|
|
45
|
-
* @param commonRequestWidthParams 操作文件接口请求函数
|
|
46
|
-
* @returns
|
|
47
|
-
*/
|
|
48
|
-
export declare const handleOperationFile: (params: any, data: any, commonRequestWidthParams: any) => Promise<any>;
|
|
1
|
+
export declare function getJson(jsonStr: string): any;
|
|
2
|
+
export declare function base64ToString(base64Str: string): string;
|
|
3
|
+
export declare function isBase64(str: string): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* 处理表单提交数据,将表单值合并到原始数据attrvalue中
|
|
6
|
+
* @param originalData 原始数据
|
|
7
|
+
* @param allValues 表单提交值
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleSubmitForm: (originalData: any, allValues: any) => {
|
|
11
|
+
updatedData: any;
|
|
12
|
+
uploadedFiles: any[];
|
|
13
|
+
};
|
|
14
|
+
export declare const handleAttrList: (attrList: any[]) => any[];
|
|
15
|
+
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, defaultAttrListInterfaceName, commonRequest, guidParams, pcParam, attrReqKey, attrListExtraParams, }: {
|
|
16
|
+
number: string | number;
|
|
17
|
+
key: string;
|
|
18
|
+
guidInterfaceName: string;
|
|
19
|
+
SelPCParamInterfaceName: string;
|
|
20
|
+
servicerAttrListInterfaceName?: string | undefined;
|
|
21
|
+
accepterAttrListInterfaceName?: string | undefined;
|
|
22
|
+
defaultAttrListInterfaceName?: string | undefined;
|
|
23
|
+
sourceNumber?: string | number | undefined;
|
|
24
|
+
commonRequest: any;
|
|
25
|
+
guidParams?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
} | undefined;
|
|
28
|
+
pcParam?: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
} | undefined;
|
|
31
|
+
attrListExtraParams?: {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
} | undefined;
|
|
34
|
+
attrReqKey?: string | undefined;
|
|
35
|
+
}) => Promise<{
|
|
36
|
+
baseData: any;
|
|
37
|
+
newGUID: string;
|
|
38
|
+
attrListConfigs: any[];
|
|
39
|
+
selPCParam: any;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* 保存或者删除文件
|
|
43
|
+
* @param params 操作文件接口参数
|
|
44
|
+
* @param data 操作文件接口数据
|
|
45
|
+
* @param commonRequestWidthParams 操作文件接口请求函数
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
export declare const handleOperationFile: (params: any, data: any, commonRequestWidthParams: any) => Promise<any>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
interface optionInter {
|
|
2
|
-
id: string;
|
|
3
|
-
canvasId: string;
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
type: string;
|
|
7
|
-
code: string;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
export declare class getGVerify {
|
|
11
|
-
options: optionInter;
|
|
12
|
-
constructor(options: optionInter);
|
|
13
|
-
GVerify(): void;
|
|
14
|
-
/**初始化方法**/
|
|
15
|
-
_init(): void;
|
|
16
|
-
/**生成验证码**/
|
|
17
|
-
refresh(): void;
|
|
18
|
-
/**验证验证码**/
|
|
19
|
-
validate(code: string): boolean;
|
|
20
|
-
/**生成字母数组**/
|
|
21
|
-
getAllLetter(): string[];
|
|
22
|
-
/**生成一个随机数**/
|
|
23
|
-
randomNum(min: number, max: number): number;
|
|
24
|
-
/**生成一个随机色**/
|
|
25
|
-
randomColor(min: number, max: number): string;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
1
|
+
interface optionInter {
|
|
2
|
+
id: string;
|
|
3
|
+
canvasId: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
type: string;
|
|
7
|
+
code: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export declare class getGVerify {
|
|
11
|
+
options: optionInter;
|
|
12
|
+
constructor(options: optionInter);
|
|
13
|
+
GVerify(): void;
|
|
14
|
+
/**初始化方法**/
|
|
15
|
+
_init(): void;
|
|
16
|
+
/**生成验证码**/
|
|
17
|
+
refresh(): void;
|
|
18
|
+
/**验证验证码**/
|
|
19
|
+
validate(code: string): boolean;
|
|
20
|
+
/**生成字母数组**/
|
|
21
|
+
getAllLetter(): string[];
|
|
22
|
+
/**生成一个随机数**/
|
|
23
|
+
randomNum(min: number, max: number): number;
|
|
24
|
+
/**生成一个随机色**/
|
|
25
|
+
randomColor(min: number, max: number): string;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
package/lib/vite-env.d.ts
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
interface ICustomModal {
|
|
4
|
+
open: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
onOk: () => void;
|
|
9
|
+
confirmLoading?: boolean;
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
maskClosable?: boolean;
|
|
12
|
+
footer?: React.ReactNode;
|
|
13
|
+
modalStyle?: React.CSSProperties;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "szld-libs",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite",
|
|
8
|
-
"clean": "rimraf lib es dist",
|
|
9
|
-
"build": "npm run clean && vite build"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"ahooks": "^3.7.4",
|
|
13
|
-
"antd": "^5.27.4",
|
|
14
|
-
"axios": "^1.13.2",
|
|
15
|
-
"crypto-js": "^4.2.0",
|
|
16
|
-
"dayjs": "^1.11.19",
|
|
17
|
-
"lodash": "^4.17.21",
|
|
18
|
-
"pako": "^2.1.0",
|
|
19
|
-
"react": "^18.2.0",
|
|
20
|
-
"react-dom": "^18.2.0",
|
|
21
|
-
"react-resizable": "^3.0.5",
|
|
22
|
-
"react-router-dom": "^6.6.1",
|
|
23
|
-
"react-window": "^1.8.9",
|
|
24
|
-
"szld-libs": "^0.2.55"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/crypto-js": "^4.2.1",
|
|
28
|
-
"@types/lodash": "^4.14.191",
|
|
29
|
-
"@types/node": "^18.11.15",
|
|
30
|
-
"@types/react": "^18.2.45",
|
|
31
|
-
"@types/react-dom": "^18.2.18",
|
|
32
|
-
"@types/react-resizable": "^3.0.8",
|
|
33
|
-
"@types/react-window": "^1.8.5",
|
|
34
|
-
"@types/sm-crypto": "^0.3.4",
|
|
35
|
-
"@vitejs/plugin-react": "^3.0.0",
|
|
36
|
-
"less": "^4.1.3",
|
|
37
|
-
"rimraf": "^4.1.2",
|
|
38
|
-
"typescript": "^4.9.3",
|
|
39
|
-
"vite": "^4.0.0",
|
|
40
|
-
"vite-plugin-build": "^0.10.0"
|
|
41
|
-
},
|
|
42
|
-
"main": "lib/main.js",
|
|
43
|
-
"module": "es/main.js",
|
|
44
|
-
"files": [
|
|
45
|
-
"lib",
|
|
46
|
-
"es",
|
|
47
|
-
"dist"
|
|
48
|
-
]
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "szld-libs",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.2.61",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"clean": "rimraf lib es dist",
|
|
9
|
+
"build": "npm run clean && vite build"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"ahooks": "^3.7.4",
|
|
13
|
+
"antd": "^5.27.4",
|
|
14
|
+
"axios": "^1.13.2",
|
|
15
|
+
"crypto-js": "^4.2.0",
|
|
16
|
+
"dayjs": "^1.11.19",
|
|
17
|
+
"lodash": "^4.17.21",
|
|
18
|
+
"pako": "^2.1.0",
|
|
19
|
+
"react": "^18.2.0",
|
|
20
|
+
"react-dom": "^18.2.0",
|
|
21
|
+
"react-resizable": "^3.0.5",
|
|
22
|
+
"react-router-dom": "^6.6.1",
|
|
23
|
+
"react-window": "^1.8.9",
|
|
24
|
+
"szld-libs": "^0.2.55"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/crypto-js": "^4.2.1",
|
|
28
|
+
"@types/lodash": "^4.14.191",
|
|
29
|
+
"@types/node": "^18.11.15",
|
|
30
|
+
"@types/react": "^18.2.45",
|
|
31
|
+
"@types/react-dom": "^18.2.18",
|
|
32
|
+
"@types/react-resizable": "^3.0.8",
|
|
33
|
+
"@types/react-window": "^1.8.5",
|
|
34
|
+
"@types/sm-crypto": "^0.3.4",
|
|
35
|
+
"@vitejs/plugin-react": "^3.0.0",
|
|
36
|
+
"less": "^4.1.3",
|
|
37
|
+
"rimraf": "^4.1.2",
|
|
38
|
+
"typescript": "^4.9.3",
|
|
39
|
+
"vite": "^4.0.0",
|
|
40
|
+
"vite-plugin-build": "^0.10.0"
|
|
41
|
+
},
|
|
42
|
+
"main": "lib/main.js",
|
|
43
|
+
"module": "es/main.js",
|
|
44
|
+
"files": [
|
|
45
|
+
"lib",
|
|
46
|
+
"es",
|
|
47
|
+
"dist"
|
|
48
|
+
]
|
|
49
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# 前端组件库-基于 antd 的二次封装
|
|
2
|
-
|
|
3
|
-
## 组件列表
|
|
4
|
-
|
|
5
|
-
### 1. BackHeader - 带返回按钮的页面头
|
|
6
|
-
|
|
7
|
-
### 2. CreateForm - 配置化生成表单
|
|
8
|
-
|
|
9
|
-
该组件通过栅格组件将 Form 表单进行包裹,实现灵活布局。
|
|
10
|
-
|
|
11
|
-
### 3. Echarts
|
|
12
|
-
|
|
13
|
-
### 4. EditTable - 可编辑表格
|
|
14
|
-
|
|
15
|
-
### 5. SearchTable - 带筛选项的表格(筛选项基于 CreateForm)
|
|
16
|
-
|
|
17
|
-
### 6. Upload - 上传
|
|
18
|
-
|
|
19
|
-
### 7. VirtualTable - 虚拟列表
|
|
20
|
-
|
|
21
|
-
### 8. WorkFlowNode - 流程节点
|
|
22
|
-
|
|
23
|
-
### 9. LoopSlide - 无限循环滚动器
|
|
24
|
-
|
|
25
|
-
## utils
|
|
1
|
+
# 前端组件库-基于 antd 的二次封装
|
|
2
|
+
|
|
3
|
+
## 组件列表
|
|
4
|
+
|
|
5
|
+
### 1. BackHeader - 带返回按钮的页面头
|
|
6
|
+
|
|
7
|
+
### 2. CreateForm - 配置化生成表单
|
|
8
|
+
|
|
9
|
+
该组件通过栅格组件将 Form 表单进行包裹,实现灵活布局。
|
|
10
|
+
|
|
11
|
+
### 3. Echarts
|
|
12
|
+
|
|
13
|
+
### 4. EditTable - 可编辑表格
|
|
14
|
+
|
|
15
|
+
### 5. SearchTable - 带筛选项的表格(筛选项基于 CreateForm)
|
|
16
|
+
|
|
17
|
+
### 6. Upload - 上传
|
|
18
|
+
|
|
19
|
+
### 7. VirtualTable - 虚拟列表
|
|
20
|
+
|
|
21
|
+
### 8. WorkFlowNode - 流程节点
|
|
22
|
+
|
|
23
|
+
### 9. LoopSlide - 无限循环滚动器
|
|
24
|
+
|
|
25
|
+
## utils
|