szld-libs 0.2.11 → 0.2.13
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.
|
@@ -5,10 +5,9 @@ interface ChangePwdResolveProps {
|
|
|
5
5
|
reject: (reason?: any) => void;
|
|
6
6
|
}
|
|
7
7
|
interface ChangePwdHookProps {
|
|
8
|
-
title?: string;
|
|
9
8
|
modalProps?: ModalProps;
|
|
10
9
|
}
|
|
11
10
|
export default function useChangePwd(props?: ChangePwdHookProps): {
|
|
12
|
-
handleChangePwd: (func: (params: ChangePwdResolveProps) => void) => Promise<void | undefined>;
|
|
11
|
+
handleChangePwd: (func: (params: ChangePwdResolveProps) => void, title?: string | undefined) => Promise<void | undefined>;
|
|
13
12
|
};
|
|
14
13
|
export {};
|
package/es/hooks/useChangePwd.js
CHANGED
|
@@ -37,9 +37,9 @@ function useChangePwd(props) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
];
|
|
40
|
-
const handleChangePwd = useLockFn(async (func) => {
|
|
40
|
+
const handleChangePwd = useLockFn(async (func, title) => {
|
|
41
41
|
await modal.confirm({
|
|
42
|
-
title:
|
|
42
|
+
title: title || "修改密码",
|
|
43
43
|
icon: null,
|
|
44
44
|
wrapClassName: "confirmWrapper",
|
|
45
45
|
content: /* @__PURE__ */ jsx(CreateForm, { items, formProps: { form, preserve: false, layout: "vertical", labelCol: { span: 24 }, wrapperCol: { span: 24 } } }),
|
|
@@ -5,10 +5,9 @@ interface ChangePwdResolveProps {
|
|
|
5
5
|
reject: (reason?: any) => void;
|
|
6
6
|
}
|
|
7
7
|
interface ChangePwdHookProps {
|
|
8
|
-
title?: string;
|
|
9
8
|
modalProps?: ModalProps;
|
|
10
9
|
}
|
|
11
10
|
export default function useChangePwd(props?: ChangePwdHookProps): {
|
|
12
|
-
handleChangePwd: (func: (params: ChangePwdResolveProps) => void) => Promise<void | undefined>;
|
|
11
|
+
handleChangePwd: (func: (params: ChangePwdResolveProps) => void, title?: string | undefined) => Promise<void | undefined>;
|
|
13
12
|
};
|
|
14
13
|
export {};
|
|
@@ -38,9 +38,9 @@ function useChangePwd(props) {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
];
|
|
41
|
-
const handleChangePwd = ahooks.useLockFn(async (func) => {
|
|
41
|
+
const handleChangePwd = ahooks.useLockFn(async (func, title) => {
|
|
42
42
|
await modal.confirm({
|
|
43
|
-
title:
|
|
43
|
+
title: title || "修改密码",
|
|
44
44
|
icon: null,
|
|
45
45
|
wrapClassName: "confirmWrapper",
|
|
46
46
|
content: /* @__PURE__ */ jsxRuntime.jsx(CreateForm, { items, formProps: { form, preserve: false, layout: "vertical", labelCol: { span: 24 }, wrapperCol: { span: 24 } } }),
|