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
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const antd = require("antd");
|
|
5
5
|
const react = require("react");
|
|
6
6
|
function SelectModel(props) {
|
|
7
|
-
const { item, disabled, style, commonRequestWidthParams } = props;
|
|
7
|
+
const { item, disabled, style, commonRequestWidthParams, CustomModalComponent } = props;
|
|
8
8
|
const { message } = antd.App.useApp();
|
|
9
9
|
const mode = item.input;
|
|
10
10
|
const [value, setValue] = react.useState(props.value);
|
|
@@ -14,14 +14,17 @@ function SelectModel(props) {
|
|
|
14
14
|
const [loading, setLoading] = react.useState(false);
|
|
15
15
|
const [params, setParams] = react.useState({
|
|
16
16
|
PageNum: 1,
|
|
17
|
-
PageSize:
|
|
17
|
+
PageSize: 6
|
|
18
18
|
});
|
|
19
19
|
const [dataSource, setDataSource] = react.useState([]);
|
|
20
20
|
const [total, setTotal] = react.useState(0);
|
|
21
21
|
const columns = buildColumns();
|
|
22
22
|
react.useEffect(() => {
|
|
23
|
+
if (!modalVisible) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
23
26
|
getData();
|
|
24
|
-
}, [modalVisible]);
|
|
27
|
+
}, [modalVisible, params]);
|
|
25
28
|
const onSelectChange = (keys, selectedRows) => {
|
|
26
29
|
setSelectedRowKeys(keys);
|
|
27
30
|
setSelectedRecords(selectedRows);
|
|
@@ -69,7 +72,7 @@ function SelectModel(props) {
|
|
|
69
72
|
message.error("请配置action-url");
|
|
70
73
|
};
|
|
71
74
|
const openModal = () => {
|
|
72
|
-
var _a, _b
|
|
75
|
+
var _a, _b;
|
|
73
76
|
if (disabled) {
|
|
74
77
|
return;
|
|
75
78
|
}
|
|
@@ -82,15 +85,16 @@ function SelectModel(props) {
|
|
|
82
85
|
}
|
|
83
86
|
switch (mode) {
|
|
84
87
|
case "modal-select":
|
|
85
|
-
const id =
|
|
86
|
-
const index = dataSource == null ? void 0 : dataSource.findIndex((item2) => item2.typeid
|
|
88
|
+
const id = value == null ? void 0 : value.split("-");
|
|
89
|
+
const index = dataSource == null ? void 0 : dataSource.findIndex((item2) => id.includes((item2 == null ? void 0 : item2.typeid) || (item2 == null ? void 0 : item2.instanceid)));
|
|
87
90
|
setSelectedRowKeys([index]);
|
|
91
|
+
break;
|
|
88
92
|
case "modal-mult-select":
|
|
89
93
|
const values = value == null ? void 0 : value.split(",");
|
|
90
94
|
const tempKeys = values == null ? void 0 : values.map((item2) => {
|
|
91
95
|
var _a2;
|
|
92
96
|
const id2 = (_a2 = item2.split(delimiter)) == null ? void 0 : _a2[0];
|
|
93
|
-
return dataSource == null ? void 0 : dataSource.findIndex((item3) => item3.typeid
|
|
97
|
+
return dataSource == null ? void 0 : dataSource.findIndex((item3) => id2.includes((item3 == null ? void 0 : item3.typeid) || (item3 == null ? void 0 : item3.instanceid)));
|
|
94
98
|
});
|
|
95
99
|
setSelectedRowKeys(tempKeys);
|
|
96
100
|
break;
|
|
@@ -109,6 +113,10 @@ function SelectModel(props) {
|
|
|
109
113
|
}
|
|
110
114
|
};
|
|
111
115
|
const handleCancel = () => {
|
|
116
|
+
setParams({
|
|
117
|
+
...params,
|
|
118
|
+
PageNum: 1
|
|
119
|
+
});
|
|
112
120
|
setModalVisible(false);
|
|
113
121
|
};
|
|
114
122
|
function buildColumns() {
|
|
@@ -139,7 +147,37 @@ function SelectModel(props) {
|
|
|
139
147
|
style
|
|
140
148
|
}
|
|
141
149
|
),
|
|
142
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
150
|
+
CustomModalComponent && /* @__PURE__ */ jsxRuntime.jsx(
|
|
151
|
+
CustomModalComponent,
|
|
152
|
+
{
|
|
153
|
+
title: item["modal-caption"] || "",
|
|
154
|
+
open: modalVisible,
|
|
155
|
+
onOk: handleOk,
|
|
156
|
+
onCancel: handleCancel,
|
|
157
|
+
modalStyle: { width: item["modal-width"] ?? 600, minHeight: item["modal-height"] ?? 400 },
|
|
158
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
159
|
+
antd.Table,
|
|
160
|
+
{
|
|
161
|
+
columns,
|
|
162
|
+
loading,
|
|
163
|
+
dataSource,
|
|
164
|
+
rowKey: (record) => record._rowKey,
|
|
165
|
+
scroll: { y: "calc(80vh - 300px)" },
|
|
166
|
+
rowSelection: {
|
|
167
|
+
type: mode === "modal-select" ? "radio" : "checkbox",
|
|
168
|
+
selectedRowKeys,
|
|
169
|
+
onChange: onSelectChange
|
|
170
|
+
},
|
|
171
|
+
pagination: {
|
|
172
|
+
total,
|
|
173
|
+
current: params.PageNum,
|
|
174
|
+
pageSize: params.PageSize,
|
|
175
|
+
onChange: onPageChange
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
) || /* @__PURE__ */ jsxRuntime.jsx(
|
|
143
181
|
antd.Modal,
|
|
144
182
|
{
|
|
145
183
|
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;
|
|
@@ -27,7 +27,8 @@ function useDynamicForm(props) {
|
|
|
27
27
|
interfaceTypeDict,
|
|
28
28
|
relatedidKey,
|
|
29
29
|
actionUrlKey,
|
|
30
|
-
actionUrlExtraParams
|
|
30
|
+
actionUrlExtraParams,
|
|
31
|
+
CustomModalComponent
|
|
31
32
|
} = props;
|
|
32
33
|
const formConfigRef = react.useRef([]);
|
|
33
34
|
const { message } = antd.App.useApp();
|
|
@@ -254,6 +255,27 @@ function useDynamicForm(props) {
|
|
|
254
255
|
}
|
|
255
256
|
if (itemWithJson.attrtype === 0) {
|
|
256
257
|
let initialValue = handleSetFormItemInitialValue(itemWithJson);
|
|
258
|
+
let placeholder = "请输入";
|
|
259
|
+
const { input = "" } = itemWithJson.json || {};
|
|
260
|
+
if ([
|
|
261
|
+
"radio",
|
|
262
|
+
"checkbox",
|
|
263
|
+
"select",
|
|
264
|
+
"mult-select",
|
|
265
|
+
"modal-select",
|
|
266
|
+
"date-picker",
|
|
267
|
+
"time-picker",
|
|
268
|
+
"week-picker",
|
|
269
|
+
"month-picker",
|
|
270
|
+
"quarter-picker",
|
|
271
|
+
"year-picker",
|
|
272
|
+
"second-picker"
|
|
273
|
+
].includes(input)) {
|
|
274
|
+
placeholder = "请选择";
|
|
275
|
+
}
|
|
276
|
+
if (["image", "file", "video", "audio"].includes(input)) {
|
|
277
|
+
placeholder = "请上传";
|
|
278
|
+
}
|
|
257
279
|
return /* @__PURE__ */ jsxRuntime.jsx(antd.Col, { span: 24 / colNum, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
258
280
|
antd.Form.Item,
|
|
259
281
|
{
|
|
@@ -264,7 +286,7 @@ function useDynamicForm(props) {
|
|
|
264
286
|
...((_b = itemWithJson.json) == null ? void 0 : _b.must) ? [
|
|
265
287
|
{
|
|
266
288
|
required: true,
|
|
267
|
-
message:
|
|
289
|
+
message: `${placeholder}${itemWithJson.attrname}`
|
|
268
290
|
}
|
|
269
291
|
] : []
|
|
270
292
|
],
|
|
@@ -404,7 +426,8 @@ function useDynamicForm(props) {
|
|
|
404
426
|
onSure: async (value) => {
|
|
405
427
|
form.setFieldValue(item.attrid, value);
|
|
406
428
|
},
|
|
407
|
-
disabled: readonly
|
|
429
|
+
disabled: readonly,
|
|
430
|
+
CustomModalComponent
|
|
408
431
|
}
|
|
409
432
|
);
|
|
410
433
|
}
|
|
@@ -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;
|
|
@@ -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 {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ModalProps } from "antd";
|
|
2
|
-
interface ChangePwdResolveProps {
|
|
3
|
-
values: any;
|
|
4
|
-
resolve: (value: any) => void;
|
|
5
|
-
reject: (reason?: any) => void;
|
|
6
|
-
}
|
|
7
|
-
interface ChangePwdHookProps {
|
|
8
|
-
modalProps?: ModalProps;
|
|
9
|
-
}
|
|
10
|
-
export default function useChangePwd(props?: ChangePwdHookProps): {
|
|
11
|
-
handleChangePwd: (func: (params: ChangePwdResolveProps) => void, title?: string | undefined) => Promise<void | undefined>;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
1
|
+
import { ModalProps } from "antd";
|
|
2
|
+
interface ChangePwdResolveProps {
|
|
3
|
+
values: any;
|
|
4
|
+
resolve: (value: any) => void;
|
|
5
|
+
reject: (reason?: any) => void;
|
|
6
|
+
}
|
|
7
|
+
interface ChangePwdHookProps {
|
|
8
|
+
modalProps?: ModalProps;
|
|
9
|
+
}
|
|
10
|
+
export default function useChangePwd(props?: ChangePwdHookProps): {
|
|
11
|
+
handleChangePwd: (func: (params: ChangePwdResolveProps) => void, title?: string | undefined) => Promise<void | undefined>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
package/lib/hooks/useConfig.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* 解密前端配置文件信息
|
|
4
|
-
* @export
|
|
5
|
-
* @param {string} value
|
|
6
|
-
* @return {*}
|
|
7
|
-
*/
|
|
8
|
-
export default function useConfig(value: string): any;
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* 解密前端配置文件信息
|
|
4
|
+
* @export
|
|
5
|
+
* @param {string} value
|
|
6
|
+
* @return {*}
|
|
7
|
+
*/
|
|
8
|
+
export default function useConfig(value: string): any;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 宠物详情渲染 Hook
|
|
3
|
-
* @param dogInfo 宠物详情数据
|
|
4
|
-
* @param config 配置信息(用于文件预览地址)
|
|
5
|
-
* @returns 渲染函数
|
|
6
|
-
*/
|
|
7
|
-
interface IDetailRenderProps {
|
|
8
|
-
detailInfo: any;
|
|
9
|
-
mainApplicationDomain: string;
|
|
10
|
-
labelSpan?: number;
|
|
11
|
-
valueSpan?: number;
|
|
12
|
-
imgWidth?: number;
|
|
13
|
-
imgHeight?: number;
|
|
14
|
-
useGrid?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export default function useDetailRenderer({ detailInfo, labelSpan, valueSpan, imgWidth, imgHeight, useGrid, mainApplicationDomain, }: IDetailRenderProps): {
|
|
17
|
-
renderDetail: () => import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* 宠物详情渲染 Hook
|
|
3
|
+
* @param dogInfo 宠物详情数据
|
|
4
|
+
* @param config 配置信息(用于文件预览地址)
|
|
5
|
+
* @returns 渲染函数
|
|
6
|
+
*/
|
|
7
|
+
interface IDetailRenderProps {
|
|
8
|
+
detailInfo: any;
|
|
9
|
+
mainApplicationDomain: string;
|
|
10
|
+
labelSpan?: number;
|
|
11
|
+
valueSpan?: number;
|
|
12
|
+
imgWidth?: number;
|
|
13
|
+
imgHeight?: number;
|
|
14
|
+
useGrid?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export default function useDetailRenderer({ detailInfo, labelSpan, valueSpan, imgWidth, imgHeight, useGrid, mainApplicationDomain, }: IDetailRenderProps): {
|
|
17
|
+
renderDetail: () => import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
interface UseRememberProps {
|
|
2
|
-
secertKey: string;
|
|
3
|
-
storageKey: string;
|
|
4
|
-
}
|
|
5
|
-
export default function useRemember(props: UseRememberProps): {
|
|
6
|
-
onParse: (cb: (value: any) => void) => void;
|
|
7
|
-
onSave: (data: any) => void;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
1
|
+
interface UseRememberProps {
|
|
2
|
+
secertKey: string;
|
|
3
|
+
storageKey: string;
|
|
4
|
+
}
|
|
5
|
+
export default function useRemember(props: UseRememberProps): {
|
|
6
|
+
onParse: (cb: (value: any) => void) => void;
|
|
7
|
+
onSave: (data: any) => void;
|
|
8
|
+
};
|
|
9
|
+
export {};
|