nv-basic-bw 1.0.5 → 1.0.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ui.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nv-basic-bw",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/ui.js CHANGED
@@ -24,7 +24,7 @@ const crest_simple_alert_css = (type) => `
24
24
  display: flex;
25
25
  align-items: center;
26
26
  justify-content: center;
27
- font-size: r0px; /* 字体变大 */
27
+ font-size: 16px; /* 字体变大 */
28
28
  `;
29
29
 
30
30
  const creat_simple_alert_ele = (type, message) => {
@@ -62,8 +62,8 @@ class SimpleAlert {
62
62
  }, init_delay);
63
63
  }
64
64
  }
65
- const create_simple_alert = () => new SimpleAlert();
66
- const simple_alert_g = create_simple_alert();
65
+ const creat_simple_alert = () => new SimpleAlert();
66
+ const simple_alert_g = creat_simple_alert();
67
67
  const simple_alert = (src,message, type = 'error', duration = 1000,init_delay=100) => {
68
68
  simple_alert_g.add(src,message, type, duration,init_delay);
69
69
  }
@@ -73,7 +73,7 @@ const cancel_simple_alert = (src) =>{
73
73
 
74
74
  module.exports = {
75
75
  SimpleAlert,
76
- create_simple_alert,
76
+ creat_simple_alert,
77
77
  simple_alert,
78
78
  cancel_simple_alert
79
79
  };