clickgo 3.15.22 → 3.15.23
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/README.md +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/lib/form.js +1 -1
- package/dist/lib/form.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
25
25
|
**index.html**
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.23'}"></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
**index.js**
|
package/dist/clickgo.js
CHANGED
package/dist/clickgo.ts
CHANGED
package/dist/lib/form.js
CHANGED
package/dist/lib/form.ts
CHANGED
|
@@ -2033,16 +2033,16 @@ let notifyBottom: number = -10;
|
|
|
2033
2033
|
let notifyId: number = 0;
|
|
2034
2034
|
/**
|
|
2035
2035
|
* --- 弹出右上角信息框 ---
|
|
2036
|
-
* @param opt timeout 默认 5 秒,最大
|
|
2036
|
+
* @param opt timeout 默认 5 秒,最大 5 分钟
|
|
2037
2037
|
*/
|
|
2038
2038
|
export function notify(opt: types.INotifyOptions): number {
|
|
2039
2039
|
// --- 申请 nid ---
|
|
2040
2040
|
const nid = ++notifyId;
|
|
2041
2041
|
// --- 设置 timeout ---
|
|
2042
|
-
let timeout =
|
|
2042
|
+
let timeout = 5_000;
|
|
2043
2043
|
if (opt.timeout !== undefined) {
|
|
2044
2044
|
if (opt.timeout <= 0 || opt.timeout > 30000) {
|
|
2045
|
-
timeout =
|
|
2045
|
+
timeout = 60_000 * 5;
|
|
2046
2046
|
}
|
|
2047
2047
|
else {
|
|
2048
2048
|
timeout = opt.timeout;
|