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,16 +1,16 @@
|
|
|
1
|
-
import { UploadFile } from 'antd/es/upload/interface';
|
|
2
|
-
import { Ijson } from '../index.d';
|
|
3
|
-
interface IMYUpload {
|
|
4
|
-
action?: string;
|
|
5
|
-
onChange?: (checkedValue: any[]) => void;
|
|
6
|
-
onRemove?: (file: UploadFile) => void;
|
|
7
|
-
item: Ijson;
|
|
8
|
-
relatedid?: string;
|
|
9
|
-
readonly?: boolean;
|
|
10
|
-
list?: UploadFile[];
|
|
11
|
-
uploadText?: string;
|
|
12
|
-
uploadType?: string;
|
|
13
|
-
relatedidKey: string;
|
|
14
|
-
}
|
|
15
|
-
declare const MyUpload: (props: IMYUpload) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default MyUpload;
|
|
1
|
+
import { UploadFile } from 'antd/es/upload/interface';
|
|
2
|
+
import { Ijson } from '../index.d';
|
|
3
|
+
interface IMYUpload {
|
|
4
|
+
action?: string;
|
|
5
|
+
onChange?: (checkedValue: any[]) => void;
|
|
6
|
+
onRemove?: (file: UploadFile) => void;
|
|
7
|
+
item: Ijson;
|
|
8
|
+
relatedid?: string;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
list?: UploadFile[];
|
|
11
|
+
uploadText?: string;
|
|
12
|
+
uploadType?: string;
|
|
13
|
+
relatedidKey: string;
|
|
14
|
+
}
|
|
15
|
+
declare const MyUpload: (props: IMYUpload) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default MyUpload;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AxiosResponse } from 'axios';
|
|
3
|
-
interface RadioCardProps {
|
|
4
|
-
item: any;
|
|
5
|
-
readonly?: boolean;
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange?: (value: any) => void;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
10
|
-
}
|
|
11
|
-
declare const RadioCard: ({ item, readonly, value, onChange, style, commonRequestWidthParams }: RadioCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default RadioCard;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
interface RadioCardProps {
|
|
4
|
+
item: any;
|
|
5
|
+
readonly?: boolean;
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value: any) => void;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
10
|
+
}
|
|
11
|
+
declare const RadioCard: ({ item, readonly, value, onChange, style, commonRequestWidthParams }: RadioCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default RadioCard;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AxiosResponse } from 'axios';
|
|
3
|
-
import { Ijson } from '../index.d';
|
|
4
|
-
interface SelectModelProps {
|
|
5
|
-
item: Ijson;
|
|
6
|
-
onSure: (value: string) => void;
|
|
7
|
-
value: string;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
11
|
-
commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*
|
|
17
|
-
* @param
|
|
18
|
-
* @
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
import { Ijson } from '../index.d';
|
|
4
|
+
interface SelectModelProps {
|
|
5
|
+
item: Ijson;
|
|
6
|
+
onSure: (value: string) => void;
|
|
7
|
+
value: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
11
|
+
commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
12
|
+
CustomModalComponent?: React.FC<ICustomModal>;
|
|
13
|
+
}
|
|
14
|
+
declare function SelectModel(props: SelectModelProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param selectedRows 选中的行数据
|
|
18
|
+
* @param attributeEnrollFormat 配置信息
|
|
19
|
+
* @returns 构建后的字符串
|
|
20
|
+
*/
|
|
21
|
+
export declare function buildValueFromSelectedRows(selectedRows: any[], attributeEnrollFormat: Ijson): Promise<string>;
|
|
22
|
+
export default SelectModel;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { App, Select,
|
|
2
|
+
import { App, Select, Table, Modal } from "antd";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
function SelectModel(props) {
|
|
5
|
-
const { item, disabled, style, commonRequestWidthParams } = props;
|
|
5
|
+
const { item, disabled, style, commonRequestWidthParams, CustomModalComponent } = props;
|
|
6
6
|
const { message } = App.useApp();
|
|
7
7
|
const mode = item.input;
|
|
8
8
|
const [value, setValue] = useState(props.value);
|
|
@@ -12,14 +12,17 @@ function SelectModel(props) {
|
|
|
12
12
|
const [loading, setLoading] = useState(false);
|
|
13
13
|
const [params, setParams] = useState({
|
|
14
14
|
PageNum: 1,
|
|
15
|
-
PageSize:
|
|
15
|
+
PageSize: 6
|
|
16
16
|
});
|
|
17
17
|
const [dataSource, setDataSource] = useState([]);
|
|
18
18
|
const [total, setTotal] = useState(0);
|
|
19
19
|
const columns = buildColumns();
|
|
20
20
|
useEffect(() => {
|
|
21
|
+
if (!modalVisible) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
21
24
|
getData();
|
|
22
|
-
}, [modalVisible]);
|
|
25
|
+
}, [modalVisible, params]);
|
|
23
26
|
const onSelectChange = (keys, selectedRows) => {
|
|
24
27
|
setSelectedRowKeys(keys);
|
|
25
28
|
setSelectedRecords(selectedRows);
|
|
@@ -67,7 +70,7 @@ function SelectModel(props) {
|
|
|
67
70
|
message.error("请配置action-url");
|
|
68
71
|
};
|
|
69
72
|
const openModal = () => {
|
|
70
|
-
var _a, _b
|
|
73
|
+
var _a, _b;
|
|
71
74
|
if (disabled) {
|
|
72
75
|
return;
|
|
73
76
|
}
|
|
@@ -80,15 +83,16 @@ function SelectModel(props) {
|
|
|
80
83
|
}
|
|
81
84
|
switch (mode) {
|
|
82
85
|
case "modal-select":
|
|
83
|
-
const id =
|
|
84
|
-
const index = dataSource == null ? void 0 : dataSource.findIndex((item2) => item2.typeid
|
|
86
|
+
const id = value == null ? void 0 : value.split("-");
|
|
87
|
+
const index = dataSource == null ? void 0 : dataSource.findIndex((item2) => id.includes((item2 == null ? void 0 : item2.typeid) || (item2 == null ? void 0 : item2.instanceid)));
|
|
85
88
|
setSelectedRowKeys([index]);
|
|
89
|
+
break;
|
|
86
90
|
case "modal-mult-select":
|
|
87
91
|
const values = value == null ? void 0 : value.split(",");
|
|
88
92
|
const tempKeys = values == null ? void 0 : values.map((item2) => {
|
|
89
93
|
var _a2;
|
|
90
94
|
const id2 = (_a2 = item2.split(delimiter)) == null ? void 0 : _a2[0];
|
|
91
|
-
return dataSource == null ? void 0 : dataSource.findIndex((item3) => item3.typeid
|
|
95
|
+
return dataSource == null ? void 0 : dataSource.findIndex((item3) => id2.includes((item3 == null ? void 0 : item3.typeid) || (item3 == null ? void 0 : item3.instanceid)));
|
|
92
96
|
});
|
|
93
97
|
setSelectedRowKeys(tempKeys);
|
|
94
98
|
break;
|
|
@@ -107,6 +111,10 @@ function SelectModel(props) {
|
|
|
107
111
|
}
|
|
108
112
|
};
|
|
109
113
|
const handleCancel = () => {
|
|
114
|
+
setParams({
|
|
115
|
+
...params,
|
|
116
|
+
PageNum: 1
|
|
117
|
+
});
|
|
110
118
|
setModalVisible(false);
|
|
111
119
|
};
|
|
112
120
|
function buildColumns() {
|
|
@@ -137,7 +145,37 @@ function SelectModel(props) {
|
|
|
137
145
|
style
|
|
138
146
|
}
|
|
139
147
|
),
|
|
140
|
-
/* @__PURE__ */ jsx(
|
|
148
|
+
CustomModalComponent && /* @__PURE__ */ jsx(
|
|
149
|
+
CustomModalComponent,
|
|
150
|
+
{
|
|
151
|
+
title: item["modal-caption"] || "",
|
|
152
|
+
open: modalVisible,
|
|
153
|
+
onOk: handleOk,
|
|
154
|
+
onCancel: handleCancel,
|
|
155
|
+
modalStyle: { width: item["modal-width"] ?? 600, minHeight: item["modal-height"] ?? 400 },
|
|
156
|
+
children: /* @__PURE__ */ jsx(
|
|
157
|
+
Table,
|
|
158
|
+
{
|
|
159
|
+
columns,
|
|
160
|
+
loading,
|
|
161
|
+
dataSource,
|
|
162
|
+
rowKey: (record) => record._rowKey,
|
|
163
|
+
scroll: { y: "calc(80vh - 300px)" },
|
|
164
|
+
rowSelection: {
|
|
165
|
+
type: mode === "modal-select" ? "radio" : "checkbox",
|
|
166
|
+
selectedRowKeys,
|
|
167
|
+
onChange: onSelectChange
|
|
168
|
+
},
|
|
169
|
+
pagination: {
|
|
170
|
+
total,
|
|
171
|
+
current: params.PageNum,
|
|
172
|
+
pageSize: params.PageSize,
|
|
173
|
+
onChange: onPageChange
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
}
|
|
178
|
+
) || /* @__PURE__ */ jsx(
|
|
141
179
|
Modal,
|
|
142
180
|
{
|
|
143
181
|
title: item["modal-caption"],
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IformConfigItem, IformItemStyle } from './index.d';
|
|
3
|
+
import { AxiosResponse } from 'axios';
|
|
4
|
+
import { FormInstance, UploadFile } from 'antd';
|
|
5
|
+
interface IDynamicFormProps {
|
|
6
|
+
commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
7
|
+
commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
8
|
+
uploadAction: (PageName?: string | undefined) => string;
|
|
9
|
+
formConfig?: IformConfigItem[];
|
|
10
|
+
setFormConfig?: (config: IformConfigItem[]) => void;
|
|
11
|
+
updateDelFileList: (file: UploadFile) => void;
|
|
12
|
+
interfaceTypeChildren?: string;
|
|
13
|
+
interfaceTypeDict: string;
|
|
14
|
+
relatedidKey: string;
|
|
15
|
+
actionUrlKey: string;
|
|
16
|
+
actionUrlExtraParams: object;
|
|
17
|
+
CustomModalComponent?: React.FC<ICustomModal>;
|
|
18
|
+
}
|
|
19
|
+
declare function useDynamicForm(props: IDynamicFormProps): {
|
|
20
|
+
handleRenderItem: ({ item, readonly, colNum, instructionShowMode, relatedid, form, defaultWidth, formItemStyle, radioAlign, }: {
|
|
21
|
+
item: IformConfigItem;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
colNum: number;
|
|
24
|
+
instructionShowMode?: "flex" | "icon" | undefined;
|
|
25
|
+
relatedid?: string | undefined;
|
|
26
|
+
form: FormInstance;
|
|
27
|
+
defaultWidth?: number | undefined;
|
|
28
|
+
formItemStyle: IformItemStyle[] | undefined;
|
|
29
|
+
radioAlign?: "horizontal" | "vertical" | undefined;
|
|
30
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
31
|
+
};
|
|
32
|
+
export default useDynamicForm;
|
|
@@ -26,7 +26,8 @@ function useDynamicForm(props) {
|
|
|
26
26
|
interfaceTypeDict,
|
|
27
27
|
relatedidKey,
|
|
28
28
|
actionUrlKey,
|
|
29
|
-
actionUrlExtraParams
|
|
29
|
+
actionUrlExtraParams,
|
|
30
|
+
CustomModalComponent
|
|
30
31
|
} = props;
|
|
31
32
|
const formConfigRef = useRef([]);
|
|
32
33
|
const { message } = App.useApp();
|
|
@@ -253,6 +254,27 @@ function useDynamicForm(props) {
|
|
|
253
254
|
}
|
|
254
255
|
if (itemWithJson.attrtype === 0) {
|
|
255
256
|
let initialValue = handleSetFormItemInitialValue(itemWithJson);
|
|
257
|
+
let placeholder = "请输入";
|
|
258
|
+
const { input = "" } = itemWithJson.json || {};
|
|
259
|
+
if ([
|
|
260
|
+
"radio",
|
|
261
|
+
"checkbox",
|
|
262
|
+
"select",
|
|
263
|
+
"mult-select",
|
|
264
|
+
"modal-select",
|
|
265
|
+
"date-picker",
|
|
266
|
+
"time-picker",
|
|
267
|
+
"week-picker",
|
|
268
|
+
"month-picker",
|
|
269
|
+
"quarter-picker",
|
|
270
|
+
"year-picker",
|
|
271
|
+
"second-picker"
|
|
272
|
+
].includes(input)) {
|
|
273
|
+
placeholder = "请选择";
|
|
274
|
+
}
|
|
275
|
+
if (["image", "file", "video", "audio"].includes(input)) {
|
|
276
|
+
placeholder = "请上传";
|
|
277
|
+
}
|
|
256
278
|
return /* @__PURE__ */ jsx(Col, { span: 24 / colNum, children: /* @__PURE__ */ jsx(
|
|
257
279
|
Form.Item,
|
|
258
280
|
{
|
|
@@ -263,7 +285,7 @@ function useDynamicForm(props) {
|
|
|
263
285
|
...((_b = itemWithJson.json) == null ? void 0 : _b.must) ? [
|
|
264
286
|
{
|
|
265
287
|
required: true,
|
|
266
|
-
message:
|
|
288
|
+
message: `${placeholder}${itemWithJson.attrname}`
|
|
267
289
|
}
|
|
268
290
|
] : []
|
|
269
291
|
],
|
|
@@ -403,7 +425,8 @@ function useDynamicForm(props) {
|
|
|
403
425
|
onSure: async (value) => {
|
|
404
426
|
form.setFieldValue(item.attrid, value);
|
|
405
427
|
},
|
|
406
|
-
disabled: readonly
|
|
428
|
+
disabled: readonly,
|
|
429
|
+
CustomModalComponent
|
|
407
430
|
}
|
|
408
431
|
);
|
|
409
432
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { TableProps } from "antd";
|
|
2
|
-
import { Rule } from "antd/es/form";
|
|
3
|
-
import { ColumnType } from "antd/es/table";
|
|
4
|
-
import { ValueProps, ValueType } from "../CreateForm";
|
|
5
|
-
export type ColumnsType<RecordType> = ColumnType<RecordType> & {
|
|
6
|
-
editable?: boolean;
|
|
7
|
-
rules?: Rule[];
|
|
8
|
-
initialValue?: any;
|
|
9
|
-
type?: ValueType;
|
|
10
|
-
valueProps?: ValueProps<RecordType>;
|
|
11
|
-
};
|
|
12
|
-
export interface EditTableProps<RecordType> extends Omit<TableProps<RecordType>, "columns" | "onChange"> {
|
|
13
|
-
columns: ColumnsType<RecordType>[];
|
|
14
|
-
onChange?: (row: RecordType) => void;
|
|
15
|
-
}
|
|
16
|
-
declare function EditTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export default EditTable;
|
|
1
|
+
import { TableProps } from "antd";
|
|
2
|
+
import { Rule } from "antd/es/form";
|
|
3
|
+
import { ColumnType } from "antd/es/table";
|
|
4
|
+
import { ValueProps, ValueType } from "../CreateForm";
|
|
5
|
+
export type ColumnsType<RecordType> = ColumnType<RecordType> & {
|
|
6
|
+
editable?: boolean;
|
|
7
|
+
rules?: Rule[];
|
|
8
|
+
initialValue?: any;
|
|
9
|
+
type?: ValueType;
|
|
10
|
+
valueProps?: ValueProps<RecordType>;
|
|
11
|
+
};
|
|
12
|
+
export interface EditTableProps<RecordType> extends Omit<TableProps<RecordType>, "columns" | "onChange"> {
|
|
13
|
+
columns: ColumnsType<RecordType>[];
|
|
14
|
+
onChange?: (row: RecordType) => void;
|
|
15
|
+
}
|
|
16
|
+
declare function EditTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default EditTable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Loading: () => {
|
|
2
|
-
close: () => void;
|
|
3
|
-
};
|
|
4
|
-
export default Loading;
|
|
1
|
+
declare const Loading: () => {
|
|
2
|
+
close: () => void;
|
|
3
|
+
};
|
|
4
|
+
export default Loading;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
.LoopSlide-module_wrapper_dde90 {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.LoopSlide-module_container_be123 {
|
|
8
|
-
position: relative;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 100%;
|
|
11
|
-
--content-height: 0px;
|
|
12
|
-
animation: LoopSlide-module_scrollContent_36ed7 linear infinite;
|
|
13
|
-
backface-visibility: hidden;
|
|
14
|
-
-webkit-font-smoothing: antialiased;
|
|
15
|
-
image-rendering: -webkit-optimize-contrast;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.LoopSlide-module_content_f392a {
|
|
19
|
-
position: relative;
|
|
20
|
-
width: 100%;
|
|
21
|
-
padding: 1px 0;
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@keyframes LoopSlide-module_scrollContent_36ed7 {
|
|
26
|
-
0% {
|
|
27
|
-
transform: translateY(0);
|
|
28
|
-
}
|
|
29
|
-
100% {
|
|
30
|
-
transform: translateY(calc(-1 * var(--content-height)));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
.LoopSlide-module_wrapper_dde90 {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.LoopSlide-module_container_be123 {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
--content-height: 0px;
|
|
12
|
+
animation: LoopSlide-module_scrollContent_36ed7 linear infinite;
|
|
13
|
+
backface-visibility: hidden;
|
|
14
|
+
-webkit-font-smoothing: antialiased;
|
|
15
|
+
image-rendering: -webkit-optimize-contrast;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.LoopSlide-module_content_f392a {
|
|
19
|
+
position: relative;
|
|
20
|
+
width: 100%;
|
|
21
|
+
padding: 1px 0;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@keyframes LoopSlide-module_scrollContent_36ed7 {
|
|
26
|
+
0% {
|
|
27
|
+
transform: translateY(0);
|
|
28
|
+
}
|
|
29
|
+
100% {
|
|
30
|
+
transform: translateY(calc(-1 * var(--content-height)));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
interface LoopSlideProps {
|
|
3
|
-
speed?: number;
|
|
4
|
-
delay?: number;
|
|
5
|
-
timingFunction?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
height?: string;
|
|
10
|
-
mouseControl?: boolean;
|
|
11
|
-
classes?: {
|
|
12
|
-
container?: string;
|
|
13
|
-
content?: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
declare const LoopSlide: React.FC<LoopSlideProps>;
|
|
17
|
-
export default LoopSlide;
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
interface LoopSlideProps {
|
|
3
|
+
speed?: number;
|
|
4
|
+
delay?: number;
|
|
5
|
+
timingFunction?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
height?: string;
|
|
10
|
+
mouseControl?: boolean;
|
|
11
|
+
classes?: {
|
|
12
|
+
container?: string;
|
|
13
|
+
content?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const LoopSlide: React.FC<LoopSlideProps>;
|
|
17
|
+
export default LoopSlide;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { TableProps } from 'antd';
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { CreateFormProps } from '../CreateForm';
|
|
4
|
-
export interface TableColumnProps<T> extends ColumnType<T> {
|
|
5
|
-
/** 是否隐藏 */
|
|
6
|
-
hidden?: boolean;
|
|
7
|
-
/** 宽度 */
|
|
8
|
-
width?: number | string;
|
|
9
|
-
/** 最小宽度 */
|
|
10
|
-
minWidth?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface MTableProps<T> extends Omit<TableProps<T>, 'columns'> {
|
|
13
|
-
columns?: TableColumnProps<T>[];
|
|
14
|
-
/** 单元格最小width,默认200 */
|
|
15
|
-
minColumnWidth?: number;
|
|
16
|
-
/** 是否可调整列宽度 */
|
|
17
|
-
resizeable?: boolean;
|
|
18
|
-
/** 表格id,用于调整列宽时存储 */
|
|
19
|
-
tableId?: string;
|
|
20
|
-
/** 存储key,默认szld_table_cell_width */
|
|
21
|
-
storageKey?: string;
|
|
22
|
-
/** 表格无数据文案 */
|
|
23
|
-
emptyText?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface SearchTableProps<RecordType> {
|
|
26
|
-
searchProps?: CreateFormProps;
|
|
27
|
-
tableProps?: MTableProps<RecordType>;
|
|
28
|
-
}
|
|
29
|
-
declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export default SearchTable;
|
|
1
|
+
import { TableProps } from 'antd';
|
|
2
|
+
import { ColumnType } from 'antd/es/table';
|
|
3
|
+
import { CreateFormProps } from '../CreateForm';
|
|
4
|
+
export interface TableColumnProps<T> extends ColumnType<T> {
|
|
5
|
+
/** 是否隐藏 */
|
|
6
|
+
hidden?: boolean;
|
|
7
|
+
/** 宽度 */
|
|
8
|
+
width?: number | string;
|
|
9
|
+
/** 最小宽度 */
|
|
10
|
+
minWidth?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface MTableProps<T> extends Omit<TableProps<T>, 'columns'> {
|
|
13
|
+
columns?: TableColumnProps<T>[];
|
|
14
|
+
/** 单元格最小width,默认200 */
|
|
15
|
+
minColumnWidth?: number;
|
|
16
|
+
/** 是否可调整列宽度 */
|
|
17
|
+
resizeable?: boolean;
|
|
18
|
+
/** 表格id,用于调整列宽时存储 */
|
|
19
|
+
tableId?: string;
|
|
20
|
+
/** 存储key,默认szld_table_cell_width */
|
|
21
|
+
storageKey?: string;
|
|
22
|
+
/** 表格无数据文案 */
|
|
23
|
+
emptyText?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface SearchTableProps<RecordType> {
|
|
26
|
+
searchProps?: CreateFormProps;
|
|
27
|
+
tableProps?: MTableProps<RecordType>;
|
|
28
|
+
}
|
|
29
|
+
declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default SearchTable;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { UploadProps } from "antd";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
export interface UploadFileProps extends UploadProps {
|
|
4
|
-
maxSize?: number;
|
|
5
|
-
uploadBtnName?: string | ReactNode;
|
|
6
|
-
uploadHint?: any;
|
|
7
|
-
compression?: {
|
|
8
|
-
type?: string;
|
|
9
|
-
quality?: number;
|
|
10
|
-
limit?: number;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
declare const UploadFile: (props: UploadFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default UploadFile;
|
|
1
|
+
import { UploadProps } from "antd";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export interface UploadFileProps extends UploadProps {
|
|
4
|
+
maxSize?: number;
|
|
5
|
+
uploadBtnName?: string | ReactNode;
|
|
6
|
+
uploadHint?: any;
|
|
7
|
+
compression?: {
|
|
8
|
+
type?: string;
|
|
9
|
+
quality?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare const UploadFile: (props: UploadFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default UploadFile;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EditTableProps } from "../EditTable";
|
|
2
|
-
declare function VirtualTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default VirtualTable;
|
|
1
|
+
import { EditTableProps } from "../EditTable";
|
|
2
|
+
declare function VirtualTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default VirtualTable;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ModalFuncProps } from "antd";
|
|
2
|
-
import { Key, ReactNode } from "react";
|
|
3
|
-
interface WorkFlowNodeProps {
|
|
4
|
-
data: any[];
|
|
5
|
-
current?: string;
|
|
6
|
-
currentIndex?: number;
|
|
7
|
-
rowKey: string | ((record: any) => Key);
|
|
8
|
-
renderContent?: (record: any, index: number, currentIndex: number) => ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare const WorkFlowNode: (props: WorkFlowNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
interface showWorkFlow extends WorkFlowNodeProps, ModalFuncProps {
|
|
12
|
-
}
|
|
13
|
-
declare const showWorkFlow: (props: showWorkFlow) => null;
|
|
14
|
-
export default showWorkFlow;
|
|
1
|
+
import { ModalFuncProps } from "antd";
|
|
2
|
+
import { Key, ReactNode } from "react";
|
|
3
|
+
interface WorkFlowNodeProps {
|
|
4
|
+
data: any[];
|
|
5
|
+
current?: string;
|
|
6
|
+
currentIndex?: number;
|
|
7
|
+
rowKey: string | ((record: any) => Key);
|
|
8
|
+
renderContent?: (record: any, index: number, currentIndex: number) => ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const WorkFlowNode: (props: WorkFlowNodeProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
interface showWorkFlow extends WorkFlowNodeProps, ModalFuncProps {
|
|
12
|
+
}
|
|
13
|
+
declare const showWorkFlow: (props: showWorkFlow) => null;
|
|
14
|
+
export default showWorkFlow;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const NoPermissions: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export default NoPermissions;
|
|
1
|
+
declare const NoPermissions: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default NoPermissions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const NotFound: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export default NotFound;
|
|
1
|
+
declare const NotFound: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default NotFound;
|
package/es/hooks/useCaptcha.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface useCaptchaProps {
|
|
2
|
-
request: () => Promise<any>;
|
|
3
|
-
imgKey?: string;
|
|
4
|
-
}
|
|
5
|
-
export default function useCaptcha(props: useCaptchaProps): {
|
|
6
|
-
data: any;
|
|
7
|
-
renderCaptcha: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
loading: any;
|
|
9
|
-
refresh: any;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
1
|
+
interface useCaptchaProps {
|
|
2
|
+
request: () => Promise<any>;
|
|
3
|
+
imgKey?: string;
|
|
4
|
+
}
|
|
5
|
+
export default function useCaptcha(props: useCaptchaProps): {
|
|
6
|
+
data: any;
|
|
7
|
+
renderCaptcha: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
loading: any;
|
|
9
|
+
refresh: any;
|
|
10
|
+
};
|
|
11
|
+
export {};
|