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.
@@ -44,6 +44,10 @@ export declare class FastVueMultiTool {
44
44
  * Lodash工具类 https://lodash.com/docs/
45
45
  */
46
46
  static Lodash: _.LoDashStatic;
47
+ /**
48
+ * crypto-js工具类 https://cryptojs.gitbook.io/docs/
49
+ */
50
+ static Crypto: any;
47
51
  /**
48
52
  * 日期类操作
49
53
  */
@@ -48,6 +48,10 @@ class FastVueMultiTool {
48
48
  * Lodash工具类 https://lodash.com/docs/
49
49
  */
50
50
  static Lodash = lodash_1.default;
51
+ /**
52
+ * crypto-js工具类 https://cryptojs.gitbook.io/docs/
53
+ */
54
+ static Crypto = require("crypto-js");
51
55
  /**
52
56
  * 日期类操作
53
57
  */
@@ -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(callback);
57
+ lastConfigs.push({
58
+ timestamp: new Date().getTime(),
59
+ callback: callback,
60
+ });
58
61
  }
59
62
  else {
60
63
  this.getWatcherConfig()[eventName] = [{
@@ -44,6 +44,10 @@ export declare class FastVueMultiTool {
44
44
  * Lodash工具类 https://lodash.com/docs/
45
45
  */
46
46
  static Lodash: _.LoDashStatic;
47
+ /**
48
+ * crypto-js工具类 https://cryptojs.gitbook.io/docs/
49
+ */
50
+ static Crypto: any;
47
51
  /**
48
52
  * 日期类操作
49
53
  */
@@ -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(callback);
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.13",
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",