starai-ui 0.1.20 → 0.1.21
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/index.js +9 -4
- package/package.json +6 -12
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
// 导入所有组件
|
|
3
|
-
import starButton from './components/star-button'
|
|
4
|
-
import starInput from './components/star-input'
|
|
3
|
+
import starButton from './components/star-button/star-button.vue'
|
|
4
|
+
import starInput from './components/star-input/star-input.vue'
|
|
5
5
|
|
|
6
6
|
// 组件列表
|
|
7
7
|
const components = [starButton, starInput]
|
|
@@ -29,8 +29,8 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// 导出默认对象
|
|
32
|
-
|
|
33
|
-
version: '0.1.
|
|
32
|
+
const StarUI = {
|
|
33
|
+
version: '0.1.21',
|
|
34
34
|
install,
|
|
35
35
|
// 导出所有组件
|
|
36
36
|
'star-button': starButton, 'star-input': starInput
|
|
@@ -39,3 +39,8 @@ export default {
|
|
|
39
39
|
// 按需导出组件
|
|
40
40
|
export { starButton as 'star-button' }
|
|
41
41
|
export { starInput as 'star-input' }
|
|
42
|
+
|
|
43
|
+
// CommonJS 导出
|
|
44
|
+
export default StarUI
|
|
45
|
+
module.exports = StarUI
|
|
46
|
+
module.exports.default = StarUI
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starai-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "基于Uniapp的Vue2组件库",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
7
7
|
"umd:main": "index.js",
|
|
8
8
|
"files": ["components", "styles", "index.js"],
|
|
9
|
+
"uni-app": {
|
|
10
|
+
"main": "index.js"
|
|
11
|
+
},
|
|
12
|
+
"keywords": ["uniapp", "vue2", "components", "weixin"],
|
|
9
13
|
"scripts": {
|
|
10
14
|
"serve": "npm run dev:h5",
|
|
11
15
|
"build:lib": "node build/build.js",
|
|
@@ -90,13 +94,6 @@
|
|
|
90
94
|
"Android >= 4.4",
|
|
91
95
|
"ios >= 9"
|
|
92
96
|
],
|
|
93
|
-
"keywords": [
|
|
94
|
-
"uniapp",
|
|
95
|
-
"vue2",
|
|
96
|
-
"component",
|
|
97
|
-
"ui",
|
|
98
|
-
"mobile"
|
|
99
|
-
],
|
|
100
97
|
"author": "DengChengBo",
|
|
101
98
|
"license": "MIT",
|
|
102
99
|
"repository": {
|
|
@@ -106,8 +103,5 @@
|
|
|
106
103
|
"bugs": {
|
|
107
104
|
"url": "https://gitee.com/chengboDeng/star-ui-library/issues"
|
|
108
105
|
},
|
|
109
|
-
"homepage": "https://gitee.com/chengboDeng/star-ui-library#readme"
|
|
110
|
-
"uni-app": {
|
|
111
|
-
"scripts": {}
|
|
112
|
-
}
|
|
106
|
+
"homepage": "https://gitee.com/chengboDeng/star-ui-library#readme"
|
|
113
107
|
}
|