fast-vue-multi-pages 1.1.1 → 1.1.3
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/http/FastVueMultiHttp.js +3 -0
- package/dist/cjs/native/FastVueNative.d.ts +1 -1
- package/dist/cjs/other/FastVueMultiDate.js +2 -1
- package/dist/esm/http/FastVueMultiHttp.js +3 -0
- package/dist/esm/native/FastVueNative.d.ts +1 -1
- package/dist/esm/other/FastVueMultiDate.js +2 -1
- package/package.json +6 -15
@@ -129,6 +129,9 @@ var FastVueMultiHttp;
|
|
129
129
|
for (let paramKey in param) {
|
130
130
|
if (param.hasOwnProperty(paramKey)) {
|
131
131
|
let value = param[paramKey];
|
132
|
+
if (value === null || value === undefined) {
|
133
|
+
continue;
|
134
|
+
}
|
132
135
|
if (lodash_1.default.isArray(value)) {
|
133
136
|
for (let valueElement of value) {
|
134
137
|
newParams.append(paramKey, valueElement);
|
@@ -122,7 +122,8 @@ class FastVueMultiDate {
|
|
122
122
|
return descriptions.join("");
|
123
123
|
}
|
124
124
|
else if (timestamp < minuteUnit) {
|
125
|
-
|
125
|
+
let second = parseInt((timestamp / seconds).toString());
|
126
|
+
descriptions.push(lodash_1.default.padStart(second.toString(), 2, "0") + (chinese ? '秒' : ''));
|
126
127
|
return descriptions.join("");
|
127
128
|
}
|
128
129
|
if (timestamp < hourUnit) {
|
@@ -131,6 +131,9 @@ define(["require", "exports", "tslib", "axios", "lodash", "../vue/FastVueMultiCo
|
|
131
131
|
for (var paramKey in param) {
|
132
132
|
if (param.hasOwnProperty(paramKey)) {
|
133
133
|
var value = param[paramKey];
|
134
|
+
if (value === null || value === undefined) {
|
135
|
+
continue;
|
136
|
+
}
|
134
137
|
if (lodash_1.default.isArray(value)) {
|
135
138
|
for (var _i = 0, value_1 = value; _i < value_1.length; _i++) {
|
136
139
|
var valueElement = value_1[_i];
|
@@ -123,7 +123,8 @@ define(["require", "exports", "tslib", "moment", "lodash", "./FastVueMultiObject
|
|
123
123
|
return descriptions.join("");
|
124
124
|
}
|
125
125
|
else if (timestamp < minuteUnit) {
|
126
|
-
|
126
|
+
var second = parseInt((timestamp / seconds).toString());
|
127
|
+
descriptions.push(lodash_1.default.padStart(second.toString(), 2, "0") + (chinese ? '秒' : ''));
|
127
128
|
return descriptions.join("");
|
128
129
|
}
|
129
130
|
if (timestamp < hourUnit) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "fast-vue-multi-pages",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.3",
|
4
4
|
"author": "janesen",
|
5
5
|
"description": "快速搭建VUE项目工具类的基本库,主要用于每个功能页面独立生成html",
|
6
6
|
"main": "./dist/cjs/index.js",
|
@@ -29,32 +29,23 @@
|
|
29
29
|
"uuid": "^10.0.0",
|
30
30
|
"store2": "^2.14.3",
|
31
31
|
"moment": "^2.30.1",
|
32
|
+
"moment-duration-format": "^2.3.2",
|
32
33
|
"@types/js-cookie": "^3.0.6",
|
33
34
|
"@types/lodash": "^4.17.6",
|
34
35
|
"copy-to-clipboard": "^3.3.3",
|
35
36
|
"ip": "^2.0.1",
|
36
37
|
"file64": "^1.0.3",
|
37
38
|
"crypto-js": "^4.2.0",
|
38
|
-
"vue": "^3.
|
39
|
+
"vue": "^3.5.13",
|
39
40
|
"js-cookie": "^3.0.5",
|
40
41
|
"animejs": "^3.2.2",
|
41
42
|
"wavesurfer.js": "^7.9.4"
|
42
43
|
},
|
43
44
|
"devDependencies": {
|
44
|
-
"@typescript-eslint/eslint-plugin": "^
|
45
|
-
"@typescript-eslint/parser": "^
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
46
|
+
"@typescript-eslint/parser": "^8.32.0",
|
46
47
|
"ts-loader": "^9.5.1",
|
47
|
-
"typescript": "^5.5.3"
|
48
|
-
"webpack": "^5.92.1",
|
49
|
-
"webpack-cli": "^5.1.4",
|
50
|
-
"@babel/core": "^7.12.16",
|
51
|
-
"@babel/eslint-parser": "^7.12.16",
|
52
|
-
"@vue/cli-plugin-babel": "~5.0.0",
|
53
|
-
"@vue/cli-plugin-eslint": "~5.0.0",
|
54
|
-
"@vue/cli-service": "~5.0.0",
|
55
|
-
"eslint": "^7.32.0",
|
56
|
-
"eslint-plugin-vue": "^8.0.3",
|
57
|
-
"fast-vue-multi-pages": "^1.0.17"
|
48
|
+
"typescript": "^5.5.3"
|
58
49
|
},
|
59
50
|
"files": [
|
60
51
|
"dist/cjs",
|