byt-ui 0.0.10 → 0.0.11
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/lib/byt-ui.common.js +10 -11
- package/lib/byt-ui.umd.js +10 -11
- package/lib/byt-ui.umd.min.js +1 -1
- package/package.json +3 -1
- package/packages/common/index.js +6 -3
- package/packages/index.js +2 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "byt-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "byt组件库",
|
|
6
6
|
"author": {
|
|
@@ -27,10 +27,12 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.12.16",
|
|
29
29
|
"@babel/eslint-parser": "^7.12.16",
|
|
30
|
+
"@babel/preset-env": "^7.19.4",
|
|
30
31
|
"@vue/cli-plugin-babel": "~5.0.0",
|
|
31
32
|
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
32
33
|
"@vue/cli-service": "~5.0.0",
|
|
33
34
|
"babel-plugin-component": "^1.1.1",
|
|
35
|
+
"babel-preset-env": "^1.7.0",
|
|
34
36
|
"eslint": "^7.32.0",
|
|
35
37
|
"eslint-plugin-vue": "^8.0.3",
|
|
36
38
|
"node-sass": "4.14.1",
|
package/packages/common/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-09-19 10:17:14
|
|
5
|
-
* @LastEditTime: 2022-10-
|
|
5
|
+
* @LastEditTime: 2022-10-25 09:48:55
|
|
6
6
|
* @LastEditors: 王国火
|
|
7
7
|
*/
|
|
8
8
|
// 动态引入
|
|
@@ -11,7 +11,10 @@ const requireContext = require.context('./modules', true, /.*\.js/)
|
|
|
11
11
|
requireContext.keys().map(key => {
|
|
12
12
|
const reg=/\w+/
|
|
13
13
|
const k=key.match(reg)[0]
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
if(requireContext(key).default){
|
|
15
|
+
conmmon[k]=requireContext(key).default
|
|
16
|
+
}else{
|
|
17
|
+
conmmon=Object.assign(conmmon,requireContext(key))
|
|
18
|
+
}
|
|
16
19
|
})
|
|
17
20
|
export default conmmon
|
package/packages/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Description:
|
|
3
3
|
* @Author: 王国火
|
|
4
4
|
* @Date: 2022-09-15 17:02:55
|
|
5
|
-
* @LastEditTime: 2022-10-
|
|
5
|
+
* @LastEditTime: 2022-10-25 09:47:57
|
|
6
6
|
* @LastEditors: 王国火
|
|
7
7
|
*/
|
|
8
8
|
import Vue from 'vue'
|
|
@@ -44,8 +44,4 @@ export default{
|
|
|
44
44
|
...Common
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export const
|
|
48
|
-
export const store=Common.store
|
|
49
|
-
export const validate=Common.validate
|
|
50
|
-
export const website=Common.website
|
|
51
|
-
|
|
47
|
+
export const utils=Common
|