n20-common-lib 1.2.0 → 1.2.1

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/README.md CHANGED
@@ -1,20 +1,27 @@
1
+ # vue-demo
1
2
 
3
+ ## Project setup
4
+ ```
5
+ npm install
6
+ ```
2
7
 
3
- ## 下载
8
+ ### Compiles and hot-reloads for development
4
9
  ```
5
- npm install n20-common-lib element-ui
10
+ npm run serve
6
11
  ```
7
12
 
8
- ## 使用
13
+ ### Compiles and minifies for production
14
+ ```
15
+ npm run build
9
16
  ```
10
- import 'n20-common-lib/style/index.css'
11
17
 
12
- import ElementUI from 'element-ui'
18
+ ### Lints and
13
19
 
14
- import n20 from 'n20-common-lib'
20
+ ### Customize configuration
21
+ See [Configuration Reference](https://cli.vuejs.org/config/).
15
22
 
16
- Vue.use(ElementUI, { size: 'small' })
23
+ [element-ui](/node_modules/element-ui/src)
17
24
 
18
- Vue.use(n20, { prefix: 'N20' })
25
+ [element-ui/packages](/node_modules/element-ui/packages)
19
26
 
20
- ```
27
+ [element-ui/lib](/node_modules/element-ui/lib)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -20,8 +20,8 @@
20
20
 
21
21
  .el-tooltip,
22
22
  .el-submenu__title {
23
- padding-left: 10px !important;
24
- padding-right: 10px !important;
23
+ padding-left: 16px !important;
24
+ padding-right: 16px !important;
25
25
  }
26
26
 
27
27
  .open-collapsed-btn {
@@ -38,6 +38,14 @@
38
38
  padding-left: 16px !important;
39
39
  }
40
40
 
41
+ /* 处理默认宽度24px导致的二级图标不居中问题 */
42
+ .el-menu--collapse > .el-menu-item [class^="el-icon-"], .el-menu--collapse > .el-submenu > .el-submenu__title [class^="el-icon-"] {
43
+ margin: 0;
44
+ vertical-align: middle;
45
+ width: 18px;
46
+ text-align: center;
47
+ }
48
+
41
49
  .open-collapsed-btn {
42
50
  box-sizing: border-box;
43
51
  position: sticky;