fast-vue-multi-pages 1.0.13 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/FastVueMultiTool.d.ts +4 -0
- package/dist/cjs/FastVueMultiTool.js +4 -0
- package/dist/cjs/other/FastVueMultiWatcher.js +4 -1
- package/dist/esm/FastVueMultiTool.d.ts +4 -0
- package/dist/esm/FastVueMultiTool.js +4 -0
- package/dist/esm/other/FastVueMultiWatcher.js +4 -1
- package/package.json +3 -2
@@ -54,7 +54,10 @@ class FastVueMultiWatcher {
|
|
54
54
|
static pushWatcher(eventName, callback) {
|
55
55
|
let lastConfigs = this.getWatcherConfig()[eventName];
|
56
56
|
if (lastConfigs) {
|
57
|
-
lastConfigs.push(
|
57
|
+
lastConfigs.push({
|
58
|
+
timestamp: new Date().getTime(),
|
59
|
+
callback: callback,
|
60
|
+
});
|
58
61
|
}
|
59
62
|
else {
|
60
63
|
this.getWatcherConfig()[eventName] = [{
|
@@ -37,6 +37,10 @@ define(["require", "exports", "tslib", "lodash", "./http/FastVueMultiHttp", "./o
|
|
37
37
|
* Lodash工具类 https://lodash.com/docs/
|
38
38
|
*/
|
39
39
|
FastVueMultiTool.Lodash = lodash_1.default;
|
40
|
+
/**
|
41
|
+
* crypto-js工具类 https://cryptojs.gitbook.io/docs/
|
42
|
+
*/
|
43
|
+
FastVueMultiTool.Crypto = require("crypto-js");
|
40
44
|
/**
|
41
45
|
* 日期类操作
|
42
46
|
*/
|
@@ -58,7 +58,10 @@ define(["require", "exports", "tslib", "lodash", "js-cookie"], function (require
|
|
58
58
|
FastVueMultiWatcher.pushWatcher = function (eventName, callback) {
|
59
59
|
var lastConfigs = this.getWatcherConfig()[eventName];
|
60
60
|
if (lastConfigs) {
|
61
|
-
lastConfigs.push(
|
61
|
+
lastConfigs.push({
|
62
|
+
timestamp: new Date().getTime(),
|
63
|
+
callback: callback,
|
64
|
+
});
|
62
65
|
}
|
63
66
|
else {
|
64
67
|
this.getWatcherConfig()[eventName] = [{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "fast-vue-multi-pages",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.15",
|
4
4
|
"author": "janesen",
|
5
5
|
"description": "快速搭建VUE项目工具类的基本库,主要用于每个功能页面独立生成html",
|
6
6
|
"main": "./dist/cjs/index.js",
|
@@ -32,7 +32,8 @@
|
|
32
32
|
"@types/lodash": "^4.17.6",
|
33
33
|
"copy-to-clipboard": "^3.3.3",
|
34
34
|
"ip": "^2.0.1",
|
35
|
-
"file64": "^1.0.3"
|
35
|
+
"file64": "^1.0.3",
|
36
|
+
"crypto-js": "^4.2.0"
|
36
37
|
},
|
37
38
|
"devDependencies": {
|
38
39
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|