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 {};
@@ -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: (props == null ? void 0 : props.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: (props == null ? void 0 : props.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 } } }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.2.11",
4
+ "version": "0.2.13",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",