@jswork/antd-components 1.0.95 → 1.0.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/antd-components",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.esm.js",
6
6
  "types": "dist/main.d.ts",
package/src/lib/alert.tsx CHANGED
@@ -4,16 +4,16 @@ import { Input, InputProps, Modal } from 'antd';
4
4
 
5
5
  declare global {
6
6
  interface NxStatic {
7
- alert: typeof alert;
8
- confirm: typeof confirm;
9
- prompt: typeof prompt;
7
+ alert: (inMessage: string, inTitle?: String) => any;
8
+ confirm: (inMessage: string, inTitle?: String) => any;
9
+ prompt: (inMessage: string, inOptions?: InputProps) => any;
10
10
  }
11
11
  }
12
12
 
13
13
  export const alert = (inMessage: string, inTitle?: String) => {
14
14
  return Modal.info({
15
15
  title: inTitle || 'Tips',
16
- content: inMessage
16
+ content: inMessage,
17
17
  });
18
18
  };
19
19
 
@@ -23,7 +23,7 @@ export const confirm = (inMessage: string, inTitle?: String) => {
23
23
  title: inTitle || 'Confirm',
24
24
  content: inMessage,
25
25
  onOk: () => resolve(true),
26
- onCancel: () => resolve(false)
26
+ onCancel: () => resolve(false),
27
27
  });
28
28
  });
29
29
  };
@@ -43,7 +43,7 @@ export const prompt = (inMessage: string, inOptions?: InputProps) => {
43
43
  />
44
44
  ),
45
45
  onOk: () => resolve(value),
46
- onCancel: () => resolve(null)
46
+ onCancel: () => resolve(null),
47
47
  });
48
48
  });
49
49
  };