fast-vue-multi-pages 1.0.22 → 1.0.24
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/dist/cjs/FastVueMultiTool.d.ts +10 -0
- package/dist/cjs/FastVueMultiTool.js +10 -0
- package/dist/cjs/other/FastVueMultiAnimate.d.ts +29 -0
- package/dist/cjs/other/FastVueMultiAnimate.js +79 -0
- package/dist/cjs/other/FastVueMultiUUID.d.ts +29 -0
- package/dist/cjs/other/FastVueMultiUUID.js +49 -0
- package/dist/esm/FastVueMultiTool.d.ts +10 -0
- package/dist/esm/FastVueMultiTool.js +9 -1
- package/dist/esm/other/FastVueMultiAnimate.d.ts +29 -0
- package/dist/esm/other/FastVueMultiAnimate.js +87 -0
- package/dist/esm/other/FastVueMultiUUID.d.ts +29 -0
- package/dist/esm/other/FastVueMultiUUID.js +54 -0
- package/package.json +3 -2
@@ -13,6 +13,8 @@ import { FastVueMultiFile } from "./other/FastVueMultiFile";
|
|
13
13
|
import { FastVueMultiBase64 } from "./other/FastVueMultiBase64";
|
14
14
|
import { FastVueMultiEventBus } from "./other/FastVueMultiEventBus";
|
15
15
|
import { FastVueMultiObject } from "./other/FastVueMultiObject";
|
16
|
+
import { FastVueMultiUUID } from "./other/FastVueMultiUUID";
|
17
|
+
import { FastVueMultiAnimate } from "./other/FastVueMultiAnimate";
|
16
18
|
/**
|
17
19
|
* FastVueMultiTool 工具类
|
18
20
|
*/
|
@@ -89,4 +91,12 @@ export declare class FastVueMultiTool {
|
|
89
91
|
* 对象相关操作
|
90
92
|
*/
|
91
93
|
static Object: typeof FastVueMultiObject;
|
94
|
+
/**
|
95
|
+
* UUID操作
|
96
|
+
*/
|
97
|
+
static UUID: typeof FastVueMultiUUID;
|
98
|
+
/**
|
99
|
+
* 数值动画类
|
100
|
+
*/
|
101
|
+
static Animate: typeof FastVueMultiAnimate;
|
92
102
|
}
|
@@ -17,6 +17,8 @@ const FastVueMultiFile_1 = require("./other/FastVueMultiFile");
|
|
17
17
|
const FastVueMultiBase64_1 = require("./other/FastVueMultiBase64");
|
18
18
|
const FastVueMultiEventBus_1 = require("./other/FastVueMultiEventBus");
|
19
19
|
const FastVueMultiObject_1 = require("./other/FastVueMultiObject");
|
20
|
+
const FastVueMultiUUID_1 = require("./other/FastVueMultiUUID");
|
21
|
+
const FastVueMultiAnimate_1 = require("./other/FastVueMultiAnimate");
|
20
22
|
/**
|
21
23
|
* FastVueMultiTool 工具类
|
22
24
|
*/
|
@@ -93,5 +95,13 @@ class FastVueMultiTool {
|
|
93
95
|
* 对象相关操作
|
94
96
|
*/
|
95
97
|
static Object = FastVueMultiObject_1.FastVueMultiObject;
|
98
|
+
/**
|
99
|
+
* UUID操作
|
100
|
+
*/
|
101
|
+
static UUID = FastVueMultiUUID_1.FastVueMultiUUID;
|
102
|
+
/**
|
103
|
+
* 数值动画类
|
104
|
+
*/
|
105
|
+
static Animate = FastVueMultiAnimate_1.FastVueMultiAnimate;
|
96
106
|
}
|
97
107
|
exports.FastVueMultiTool = FastVueMultiTool;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare class FastVueMultiAnimate {
|
2
|
+
static animateMap: any;
|
3
|
+
/**
|
4
|
+
* 开启数值动画
|
5
|
+
* @param animateCode 动画唯一标识
|
6
|
+
* @param animateConfig 动画配置{@link ValueAnimateConfig}
|
7
|
+
*/
|
8
|
+
static startValueAnimate(animateCode: string, animateConfig: ValueAnimateConfig): void;
|
9
|
+
/**
|
10
|
+
* 清除动画
|
11
|
+
* @param animateCode
|
12
|
+
*/
|
13
|
+
static clearAnimate(animateCode: string): void;
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* 动画配置,参考文档:https://animejs.com/documentation
|
17
|
+
*/
|
18
|
+
export declare class ValueAnimateConfig {
|
19
|
+
static newParam(param: any): ValueAnimateConfig;
|
20
|
+
from: number;
|
21
|
+
to: number;
|
22
|
+
duration: number;
|
23
|
+
easing: string;
|
24
|
+
delay: number;
|
25
|
+
update: (value: number) => void;
|
26
|
+
begin: (anim: any) => void;
|
27
|
+
complete: (anim: any) => void;
|
28
|
+
changeBegin: (anim: any) => void;
|
29
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ValueAnimateConfig = exports.FastVueMultiAnimate = void 0;
|
4
|
+
class FastVueMultiAnimate {
|
5
|
+
static animateMap = {};
|
6
|
+
/**
|
7
|
+
* 开启数值动画
|
8
|
+
* @param animateCode 动画唯一标识
|
9
|
+
* @param animateConfig 动画配置{@link ValueAnimateConfig}
|
10
|
+
*/
|
11
|
+
static startValueAnimate(animateCode, animateConfig) {
|
12
|
+
this.clearAnimate(animateCode);
|
13
|
+
let params = ValueAnimateConfig.newParam(animateConfig);
|
14
|
+
const anime = require('animejs');
|
15
|
+
this.animateMap[animateCode] = anime({
|
16
|
+
targets: {
|
17
|
+
value: params.from,
|
18
|
+
},
|
19
|
+
value: params.to,
|
20
|
+
easing: params.easing,
|
21
|
+
duration: params.duration,
|
22
|
+
delay: params.delay,
|
23
|
+
_params: params,
|
24
|
+
update: function () {
|
25
|
+
this._params.update(this.targets.value);
|
26
|
+
},
|
27
|
+
changeBegin: function (anim) {
|
28
|
+
this._params.changeBegin(anim);
|
29
|
+
},
|
30
|
+
begin: function (anim) {
|
31
|
+
this._params.begin(anim);
|
32
|
+
},
|
33
|
+
complete: function (anim) {
|
34
|
+
this._params.complete(anim);
|
35
|
+
}
|
36
|
+
});
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* 清除动画
|
40
|
+
* @param animateCode
|
41
|
+
*/
|
42
|
+
static clearAnimate(animateCode) {
|
43
|
+
let animObj = FastVueMultiAnimate.animateMap[animateCode];
|
44
|
+
if (animObj) {
|
45
|
+
animObj.pause();
|
46
|
+
delete FastVueMultiAnimate.animateMap[animateCode];
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
exports.FastVueMultiAnimate = FastVueMultiAnimate;
|
51
|
+
/**
|
52
|
+
* 动画配置,参考文档:https://animejs.com/documentation
|
53
|
+
*/
|
54
|
+
class ValueAnimateConfig {
|
55
|
+
static newParam(param) {
|
56
|
+
let newParam = new ValueAnimateConfig();
|
57
|
+
if (param) {
|
58
|
+
for (let paramKey in param) {
|
59
|
+
newParam[paramKey] = param[paramKey];
|
60
|
+
}
|
61
|
+
}
|
62
|
+
return newParam;
|
63
|
+
}
|
64
|
+
from = 0;
|
65
|
+
to = 1;
|
66
|
+
duration = 500;
|
67
|
+
easing = "linear";
|
68
|
+
delay = 0;
|
69
|
+
//更新时的函数
|
70
|
+
update = function (value) {
|
71
|
+
};
|
72
|
+
begin = function (anim) {
|
73
|
+
};
|
74
|
+
complete = function (anim) {
|
75
|
+
};
|
76
|
+
changeBegin = function (anim) {
|
77
|
+
};
|
78
|
+
}
|
79
|
+
exports.ValueAnimateConfig = ValueAnimateConfig;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare class FastVueMultiUUID {
|
2
|
+
static onlyIterator: number;
|
3
|
+
/**
|
4
|
+
* 构建唯一标识符号
|
5
|
+
* @param prefix 唯一标识的前缀
|
6
|
+
*/
|
7
|
+
static buildOnlyCode(prefix: string): string;
|
8
|
+
/**
|
9
|
+
* 构建唯一标识符号
|
10
|
+
* @param prefix 唯一标识的前缀
|
11
|
+
*/
|
12
|
+
static buildOnlyNumber(prefix: string): string;
|
13
|
+
/**
|
14
|
+
* 构建uuid4的唯一编号
|
15
|
+
*/
|
16
|
+
static buildUUID4(): string;
|
17
|
+
/**
|
18
|
+
* 构建uuid8的唯一编号
|
19
|
+
*/
|
20
|
+
static buildUUID8(): string;
|
21
|
+
/**
|
22
|
+
* 构建uuid12的唯一编号
|
23
|
+
*/
|
24
|
+
static buildUUID12(): string;
|
25
|
+
/**
|
26
|
+
* 构建uuid16的唯一编号
|
27
|
+
*/
|
28
|
+
static buildUUID16(): string;
|
29
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FastVueMultiUUID = void 0;
|
4
|
+
class FastVueMultiUUID {
|
5
|
+
static onlyIterator = 1;
|
6
|
+
/**
|
7
|
+
* 构建唯一标识符号
|
8
|
+
* @param prefix 唯一标识的前缀
|
9
|
+
*/
|
10
|
+
static buildOnlyCode(prefix) {
|
11
|
+
let crypto = require("crypto-js");
|
12
|
+
return prefix + crypto.MD5(this.buildUUID8()).toString();
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* 构建唯一标识符号
|
16
|
+
* @param prefix 唯一标识的前缀
|
17
|
+
*/
|
18
|
+
static buildOnlyNumber(prefix) {
|
19
|
+
if (FastVueMultiUUID.onlyIterator > 99) {
|
20
|
+
FastVueMultiUUID.onlyIterator = 1;
|
21
|
+
}
|
22
|
+
return prefix + new Date().getTime() + (FastVueMultiUUID.onlyIterator++);
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* 构建uuid4的唯一编号
|
26
|
+
*/
|
27
|
+
static buildUUID4() {
|
28
|
+
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* 构建uuid8的唯一编号
|
32
|
+
*/
|
33
|
+
static buildUUID8() {
|
34
|
+
return (((1 + Math.random()) * 0x100000000) | 0).toString(16).substring(1);
|
35
|
+
}
|
36
|
+
/**
|
37
|
+
* 构建uuid12的唯一编号
|
38
|
+
*/
|
39
|
+
static buildUUID12() {
|
40
|
+
return FastVueMultiUUID.buildUUID4() + FastVueMultiUUID.buildUUID8();
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* 构建uuid16的唯一编号
|
44
|
+
*/
|
45
|
+
static buildUUID16() {
|
46
|
+
return FastVueMultiUUID.buildUUID8() + FastVueMultiUUID.buildUUID8();
|
47
|
+
}
|
48
|
+
}
|
49
|
+
exports.FastVueMultiUUID = FastVueMultiUUID;
|
@@ -13,6 +13,8 @@ import { FastVueMultiFile } from "./other/FastVueMultiFile";
|
|
13
13
|
import { FastVueMultiBase64 } from "./other/FastVueMultiBase64";
|
14
14
|
import { FastVueMultiEventBus } from "./other/FastVueMultiEventBus";
|
15
15
|
import { FastVueMultiObject } from "./other/FastVueMultiObject";
|
16
|
+
import { FastVueMultiUUID } from "./other/FastVueMultiUUID";
|
17
|
+
import { FastVueMultiAnimate } from "./other/FastVueMultiAnimate";
|
16
18
|
/**
|
17
19
|
* FastVueMultiTool 工具类
|
18
20
|
*/
|
@@ -89,4 +91,12 @@ export declare class FastVueMultiTool {
|
|
89
91
|
* 对象相关操作
|
90
92
|
*/
|
91
93
|
static Object: typeof FastVueMultiObject;
|
94
|
+
/**
|
95
|
+
* UUID操作
|
96
|
+
*/
|
97
|
+
static UUID: typeof FastVueMultiUUID;
|
98
|
+
/**
|
99
|
+
* 数值动画类
|
100
|
+
*/
|
101
|
+
static Animate: typeof FastVueMultiAnimate;
|
92
102
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
define(["require", "exports", "tslib", "lodash", "./http/FastVueMultiHttp", "./other/FastVueMultiStore", "./vue/FastVueMultiConfig", "./http/FastVueMultiCookie", "./other/FastVueMultiClipboard", "./other/FastVueMultiDate", "./other/FastVueMultiBoolean", "./other/FastVueMultiFunction", "./other/FastVueMultiElement", "./other/FastVueMultiWindow", "./other/FastVueMultiFile", "./other/FastVueMultiBase64", "./other/FastVueMultiEventBus", "./other/FastVueMultiObject"], function (require, exports, tslib_1, lodash_1, FastVueMultiHttp_1, FastVueMultiStore_1, FastVueMultiConfig_1, FastVueMultiCookie_1, FastVueMultiClipboard_1, FastVueMultiDate_1, FastVueMultiBoolean_1, FastVueMultiFunction_1, FastVueMultiElement_1, FastVueMultiWindow_1, FastVueMultiFile_1, FastVueMultiBase64_1, FastVueMultiEventBus_1, FastVueMultiObject_1) {
|
1
|
+
define(["require", "exports", "tslib", "lodash", "./http/FastVueMultiHttp", "./other/FastVueMultiStore", "./vue/FastVueMultiConfig", "./http/FastVueMultiCookie", "./other/FastVueMultiClipboard", "./other/FastVueMultiDate", "./other/FastVueMultiBoolean", "./other/FastVueMultiFunction", "./other/FastVueMultiElement", "./other/FastVueMultiWindow", "./other/FastVueMultiFile", "./other/FastVueMultiBase64", "./other/FastVueMultiEventBus", "./other/FastVueMultiObject", "./other/FastVueMultiUUID", "./other/FastVueMultiAnimate"], function (require, exports, tslib_1, lodash_1, FastVueMultiHttp_1, FastVueMultiStore_1, FastVueMultiConfig_1, FastVueMultiCookie_1, FastVueMultiClipboard_1, FastVueMultiDate_1, FastVueMultiBoolean_1, FastVueMultiFunction_1, FastVueMultiElement_1, FastVueMultiWindow_1, FastVueMultiFile_1, FastVueMultiBase64_1, FastVueMultiEventBus_1, FastVueMultiObject_1, FastVueMultiUUID_1, FastVueMultiAnimate_1) {
|
2
2
|
"use strict";
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.FastVueMultiTool = void 0;
|
@@ -81,6 +81,14 @@ define(["require", "exports", "tslib", "lodash", "./http/FastVueMultiHttp", "./o
|
|
81
81
|
* 对象相关操作
|
82
82
|
*/
|
83
83
|
FastVueMultiTool.Object = FastVueMultiObject_1.FastVueMultiObject;
|
84
|
+
/**
|
85
|
+
* UUID操作
|
86
|
+
*/
|
87
|
+
FastVueMultiTool.UUID = FastVueMultiUUID_1.FastVueMultiUUID;
|
88
|
+
/**
|
89
|
+
* 数值动画类
|
90
|
+
*/
|
91
|
+
FastVueMultiTool.Animate = FastVueMultiAnimate_1.FastVueMultiAnimate;
|
84
92
|
return FastVueMultiTool;
|
85
93
|
}());
|
86
94
|
exports.FastVueMultiTool = FastVueMultiTool;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare class FastVueMultiAnimate {
|
2
|
+
static animateMap: any;
|
3
|
+
/**
|
4
|
+
* 开启数值动画
|
5
|
+
* @param animateCode 动画唯一标识
|
6
|
+
* @param animateConfig 动画配置{@link ValueAnimateConfig}
|
7
|
+
*/
|
8
|
+
static startValueAnimate(animateCode: string, animateConfig: ValueAnimateConfig): void;
|
9
|
+
/**
|
10
|
+
* 清除动画
|
11
|
+
* @param animateCode
|
12
|
+
*/
|
13
|
+
static clearAnimate(animateCode: string): void;
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* 动画配置,参考文档:https://animejs.com/documentation
|
17
|
+
*/
|
18
|
+
export declare class ValueAnimateConfig {
|
19
|
+
static newParam(param: any): ValueAnimateConfig;
|
20
|
+
from: number;
|
21
|
+
to: number;
|
22
|
+
duration: number;
|
23
|
+
easing: string;
|
24
|
+
delay: number;
|
25
|
+
update: (value: number) => void;
|
26
|
+
begin: (anim: any) => void;
|
27
|
+
complete: (anim: any) => void;
|
28
|
+
changeBegin: (anim: any) => void;
|
29
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
define(["require", "exports"], function (require, exports) {
|
2
|
+
"use strict";
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.ValueAnimateConfig = exports.FastVueMultiAnimate = void 0;
|
5
|
+
var FastVueMultiAnimate = /** @class */ (function () {
|
6
|
+
function FastVueMultiAnimate() {
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* 开启数值动画
|
10
|
+
* @param animateCode 动画唯一标识
|
11
|
+
* @param animateConfig 动画配置{@link ValueAnimateConfig}
|
12
|
+
*/
|
13
|
+
FastVueMultiAnimate.startValueAnimate = function (animateCode, animateConfig) {
|
14
|
+
this.clearAnimate(animateCode);
|
15
|
+
var params = ValueAnimateConfig.newParam(animateConfig);
|
16
|
+
var anime = require('animejs');
|
17
|
+
this.animateMap[animateCode] = anime({
|
18
|
+
targets: {
|
19
|
+
value: params.from,
|
20
|
+
},
|
21
|
+
value: params.to,
|
22
|
+
easing: params.easing,
|
23
|
+
duration: params.duration,
|
24
|
+
delay: params.delay,
|
25
|
+
_params: params,
|
26
|
+
update: function () {
|
27
|
+
this._params.update(this.targets.value);
|
28
|
+
},
|
29
|
+
changeBegin: function (anim) {
|
30
|
+
this._params.changeBegin(anim);
|
31
|
+
},
|
32
|
+
begin: function (anim) {
|
33
|
+
this._params.begin(anim);
|
34
|
+
},
|
35
|
+
complete: function (anim) {
|
36
|
+
this._params.complete(anim);
|
37
|
+
}
|
38
|
+
});
|
39
|
+
};
|
40
|
+
/**
|
41
|
+
* 清除动画
|
42
|
+
* @param animateCode
|
43
|
+
*/
|
44
|
+
FastVueMultiAnimate.clearAnimate = function (animateCode) {
|
45
|
+
var animObj = FastVueMultiAnimate.animateMap[animateCode];
|
46
|
+
if (animObj) {
|
47
|
+
animObj.pause();
|
48
|
+
delete FastVueMultiAnimate.animateMap[animateCode];
|
49
|
+
}
|
50
|
+
};
|
51
|
+
FastVueMultiAnimate.animateMap = {};
|
52
|
+
return FastVueMultiAnimate;
|
53
|
+
}());
|
54
|
+
exports.FastVueMultiAnimate = FastVueMultiAnimate;
|
55
|
+
/**
|
56
|
+
* 动画配置,参考文档:https://animejs.com/documentation
|
57
|
+
*/
|
58
|
+
var ValueAnimateConfig = /** @class */ (function () {
|
59
|
+
function ValueAnimateConfig() {
|
60
|
+
this.from = 0;
|
61
|
+
this.to = 1;
|
62
|
+
this.duration = 500;
|
63
|
+
this.easing = "linear";
|
64
|
+
this.delay = 0;
|
65
|
+
//更新时的函数
|
66
|
+
this.update = function (value) {
|
67
|
+
};
|
68
|
+
this.begin = function (anim) {
|
69
|
+
};
|
70
|
+
this.complete = function (anim) {
|
71
|
+
};
|
72
|
+
this.changeBegin = function (anim) {
|
73
|
+
};
|
74
|
+
}
|
75
|
+
ValueAnimateConfig.newParam = function (param) {
|
76
|
+
var newParam = new ValueAnimateConfig();
|
77
|
+
if (param) {
|
78
|
+
for (var paramKey in param) {
|
79
|
+
newParam[paramKey] = param[paramKey];
|
80
|
+
}
|
81
|
+
}
|
82
|
+
return newParam;
|
83
|
+
};
|
84
|
+
return ValueAnimateConfig;
|
85
|
+
}());
|
86
|
+
exports.ValueAnimateConfig = ValueAnimateConfig;
|
87
|
+
});
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare class FastVueMultiUUID {
|
2
|
+
static onlyIterator: number;
|
3
|
+
/**
|
4
|
+
* 构建唯一标识符号
|
5
|
+
* @param prefix 唯一标识的前缀
|
6
|
+
*/
|
7
|
+
static buildOnlyCode(prefix: string): string;
|
8
|
+
/**
|
9
|
+
* 构建唯一标识符号
|
10
|
+
* @param prefix 唯一标识的前缀
|
11
|
+
*/
|
12
|
+
static buildOnlyNumber(prefix: string): string;
|
13
|
+
/**
|
14
|
+
* 构建uuid4的唯一编号
|
15
|
+
*/
|
16
|
+
static buildUUID4(): string;
|
17
|
+
/**
|
18
|
+
* 构建uuid8的唯一编号
|
19
|
+
*/
|
20
|
+
static buildUUID8(): string;
|
21
|
+
/**
|
22
|
+
* 构建uuid12的唯一编号
|
23
|
+
*/
|
24
|
+
static buildUUID12(): string;
|
25
|
+
/**
|
26
|
+
* 构建uuid16的唯一编号
|
27
|
+
*/
|
28
|
+
static buildUUID16(): string;
|
29
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
define(["require", "exports"], function (require, exports) {
|
2
|
+
"use strict";
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.FastVueMultiUUID = void 0;
|
5
|
+
var FastVueMultiUUID = /** @class */ (function () {
|
6
|
+
function FastVueMultiUUID() {
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* 构建唯一标识符号
|
10
|
+
* @param prefix 唯一标识的前缀
|
11
|
+
*/
|
12
|
+
FastVueMultiUUID.buildOnlyCode = function (prefix) {
|
13
|
+
var crypto = require("crypto-js");
|
14
|
+
return prefix + crypto.MD5(this.buildUUID8()).toString();
|
15
|
+
};
|
16
|
+
/**
|
17
|
+
* 构建唯一标识符号
|
18
|
+
* @param prefix 唯一标识的前缀
|
19
|
+
*/
|
20
|
+
FastVueMultiUUID.buildOnlyNumber = function (prefix) {
|
21
|
+
if (FastVueMultiUUID.onlyIterator > 99) {
|
22
|
+
FastVueMultiUUID.onlyIterator = 1;
|
23
|
+
}
|
24
|
+
return prefix + new Date().getTime() + (FastVueMultiUUID.onlyIterator++);
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* 构建uuid4的唯一编号
|
28
|
+
*/
|
29
|
+
FastVueMultiUUID.buildUUID4 = function () {
|
30
|
+
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* 构建uuid8的唯一编号
|
34
|
+
*/
|
35
|
+
FastVueMultiUUID.buildUUID8 = function () {
|
36
|
+
return (((1 + Math.random()) * 0x100000000) | 0).toString(16).substring(1);
|
37
|
+
};
|
38
|
+
/**
|
39
|
+
* 构建uuid12的唯一编号
|
40
|
+
*/
|
41
|
+
FastVueMultiUUID.buildUUID12 = function () {
|
42
|
+
return FastVueMultiUUID.buildUUID4() + FastVueMultiUUID.buildUUID8();
|
43
|
+
};
|
44
|
+
/**
|
45
|
+
* 构建uuid16的唯一编号
|
46
|
+
*/
|
47
|
+
FastVueMultiUUID.buildUUID16 = function () {
|
48
|
+
return FastVueMultiUUID.buildUUID8() + FastVueMultiUUID.buildUUID8();
|
49
|
+
};
|
50
|
+
FastVueMultiUUID.onlyIterator = 1;
|
51
|
+
return FastVueMultiUUID;
|
52
|
+
}());
|
53
|
+
exports.FastVueMultiUUID = FastVueMultiUUID;
|
54
|
+
});
|
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.24",
|
4
4
|
"author": "janesen",
|
5
5
|
"description": "快速搭建VUE项目工具类的基本库,主要用于每个功能页面独立生成html",
|
6
6
|
"main": "./dist/cjs/index.js",
|
@@ -36,7 +36,8 @@
|
|
36
36
|
"file64": "^1.0.3",
|
37
37
|
"crypto-js": "^4.2.0",
|
38
38
|
"vue": "^3.2.13",
|
39
|
-
"js-cookie": "^3.0.5"
|
39
|
+
"js-cookie": "^3.0.5",
|
40
|
+
"animejs": "^3.2.2"
|
40
41
|
},
|
41
42
|
"devDependencies": {
|
42
43
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|