n20-common-lib 1.1.98 → 1.2.0

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 +9 -16
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,27 +1,20 @@
1
- # vue-demo
2
1
 
3
- ## Project setup
4
- ```
5
- npm install
6
- ```
7
2
 
8
- ### Compiles and hot-reloads for development
3
+ ## 下载
9
4
  ```
10
- npm run serve
5
+ npm install n20-common-lib element-ui
11
6
  ```
12
7
 
13
- ### Compiles and minifies for production
14
- ```
15
- npm run build
8
+ ## 使用
16
9
  ```
10
+ import 'n20-common-lib/style/index.css'
17
11
 
18
- ### Lints and
12
+ import ElementUI from 'element-ui'
19
13
 
20
- ### Customize configuration
21
- See [Configuration Reference](https://cli.vuejs.org/config/).
14
+ import n20 from 'n20-common-lib'
22
15
 
23
- [element-ui](/node_modules/element-ui/src)
16
+ Vue.use(ElementUI, { size: 'small' })
24
17
 
25
- [element-ui/packages](/node_modules/element-ui/packages)
18
+ Vue.use(n20, { prefix: 'N20' })
26
19
 
27
- [element-ui/lib](/node_modules/element-ui/lib)
20
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "1.1.98",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {