@focus-teach/ui 1.1.2 → 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/api/index.js +42 -1
- package/lib/ui.common.js +72239 -50946
- package/lib/ui.css +1 -1
- package/lib/ui.umd.js +72239 -50946
- package/lib/ui.umd.min.js +33 -8
- package/package.json +9 -6
- package/utils/common.js +8 -7
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@focus-teach/ui",
|
|
3
3
|
"packageName": "ui",
|
|
4
4
|
"publishName": "@focus-teach/ui",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.3",
|
|
6
6
|
"private": false,
|
|
7
7
|
"main": "lib/ui.umd.min.js",
|
|
8
8
|
"scripts": {
|
|
@@ -11,22 +11,25 @@
|
|
|
11
11
|
"test:unit": "vue-cli-service test:unit",
|
|
12
12
|
"predeploy": "npm run build",
|
|
13
13
|
"deploy": "gh-pages -d dist",
|
|
14
|
-
"lib": "vue-cli-service build --target lib packages/index.js"
|
|
14
|
+
"lib": "vue-cli-service build --target lib packages/index.js",
|
|
15
|
+
"build:prod": "cross-env NODE_OPTIONS=--max-old-space-size=10240 vue-cli-service build --target lib packages/index.js"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"@babel/core": "^7.0.0",
|
|
18
19
|
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
|
|
19
20
|
"@babel/preset-env": "^7.0.0",
|
|
20
|
-
"@focus-teach/ui-component": "^1.0.
|
|
21
|
+
"@focus-teach/ui-component": "^1.0.2",
|
|
21
22
|
"axios": "^0.21.1",
|
|
22
23
|
"babel-loader": "^8.0.0",
|
|
23
24
|
"core-js": "^3.6.5",
|
|
25
|
+
"cross-env": "^7.0.3",
|
|
26
|
+
"crypto-js": "^4.2.0",
|
|
24
27
|
"element-ui": "^2.15.1",
|
|
25
28
|
"html2canvas": "^1.4.1",
|
|
26
29
|
"lodash": "^4.17.21",
|
|
27
30
|
"md5": "^2.3.0",
|
|
28
31
|
"qs": "^6.10.1",
|
|
29
|
-
"sass": "1.26.5",
|
|
32
|
+
"sass": "^1.26.5",
|
|
30
33
|
"sass-loader": "^10.1.1",
|
|
31
34
|
"terser-webpack-plugin": "^3.0.3",
|
|
32
35
|
"underscore": "^1.13.1",
|
|
@@ -37,9 +40,9 @@
|
|
|
37
40
|
"vuex": "^3.0.1"
|
|
38
41
|
},
|
|
39
42
|
"devDependencies": {
|
|
40
|
-
"@vue/cli-plugin-babel": "
|
|
41
|
-
"@vue/cli-service": "~4.5.0",
|
|
43
|
+
"@vue/cli-plugin-babel": "^4.5.19",
|
|
42
44
|
"@vue/cli-plugin-unit-mocha": "^3.10.0",
|
|
45
|
+
"@vue/cli-service": "^4.5.0",
|
|
43
46
|
"@vue/test-utils": "1.0.0-beta.29",
|
|
44
47
|
"babel-plugin-component": "^1.1.1",
|
|
45
48
|
"chai": "^4.1.2",
|
package/utils/common.js
CHANGED
|
@@ -655,10 +655,11 @@ export function getBase64Size(base64String,unit = 'MB') {
|
|
|
655
655
|
|
|
656
656
|
return formatSize(fileSize);
|
|
657
657
|
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
658
|
+
//等待延迟
|
|
659
|
+
export function sleep(time = 0){
|
|
660
|
+
return new Promise(resolve => {
|
|
661
|
+
setTimeout(() => {
|
|
662
|
+
resolve()
|
|
663
|
+
},time);
|
|
664
|
+
})
|
|
665
|
+
}
|