wiser-components 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +12 -0
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -8,14 +8,23 @@
8
8
  npm install wiser-components
9
9
  ```
10
10
 
11
+ **注意**:本组件库依赖于 Element-UI,使用前请确保已安装:
12
+
13
+ ```bash
14
+ npm install element-ui
15
+ ```
16
+
11
17
  ## 使用
12
18
 
13
19
  ### 完整引入
14
20
 
15
21
  ```javascript
16
22
  import Vue from 'vue'
23
+ import ElementUI from 'element-ui'
24
+ import 'element-ui/lib/theme-chalk/index.css'
17
25
  import WiserComponents from 'wiser-components'
18
26
 
27
+ Vue.use(ElementUI)
19
28
  Vue.use(WiserComponents)
20
29
  ```
21
30
 
@@ -23,8 +32,11 @@ Vue.use(WiserComponents)
23
32
 
24
33
  ```javascript
25
34
  import Vue from 'vue'
35
+ import ElementUI from 'element-ui'
36
+ import 'element-ui/lib/theme-chalk/index.css'
26
37
  import { CheckBox } from 'wiser-components'
27
38
 
39
+ Vue.use(ElementUI)
28
40
  Vue.component(CheckBox.name, CheckBox)
29
41
  ```
30
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wiser-components",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A Vue2 component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -36,7 +36,8 @@
36
36
  },
37
37
  "homepage": "",
38
38
  "peerDependencies": {
39
- "vue": "^2.6.0"
39
+ "vue": "^2.6.0",
40
+ "element-ui": "^2.15.0"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@babel/core": "^7.23.0",