n20-common-lib 2.6.0 → 2.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -116,4 +116,4 @@
116
116
  "last 2 versions",
117
117
  "not dead"
118
118
  ]
119
- }
119
+ }
@@ -1,28 +1,34 @@
1
1
  $--hover-bg-color: #303d59;
2
2
 
3
3
  .layout-aside {
4
+
4
5
  .el-menu-item,
5
6
  .el-submenu__title {
6
7
  height: $--aside-height;
7
8
  line-height: $--aside-height;
8
9
  padding-right: 16px;
10
+
9
11
  i {
10
12
  color: inherit;
11
13
  }
14
+
12
15
  &:hover,
13
16
  &:focus {
14
17
  background: var(--an-hoverBackgroundColor, $--hover-bg-color) !important;
15
18
  }
16
19
  }
20
+
17
21
  .el-submenu__icon-arrow {
18
22
  right: 16px;
19
23
  }
24
+
20
25
  .el-menu-item.is-active {
21
26
  background: var(--an-activeBackgroundColor, $--color-primary) !important;
22
27
  }
23
28
 
24
29
  &.el-menu--collapse {
25
30
  width: $--aside-collapse-width;
31
+
26
32
  .el-tooltip,
27
33
  .el-submenu__title {
28
34
  padding-left: 16px !important;
@@ -32,6 +38,7 @@ $--hover-bg-color: #303d59;
32
38
  .open-collapsed-btn {
33
39
  padding-left: 10px;
34
40
  padding-right: 10px;
41
+
35
42
  .rotate-icon {
36
43
  transform: rotate(180deg);
37
44
  }
@@ -83,29 +90,36 @@ $--hover-bg-color: #303d59;
83
90
  line-height: $--aside-height;
84
91
  padding-left: 10px !important;
85
92
  padding-right: 10px !important;
93
+
86
94
  &:hover,
87
95
  &:focus {
88
96
  background: var(--an-hoverBackgroundColor, $--hover-bg-color) !important;
89
97
  }
90
98
  }
99
+
91
100
  .el-submenu__title {
92
101
  height: $--aside-height;
93
102
  padding-left: 10px !important;
94
103
  padding-right: 16px !important;
104
+
95
105
  i {
96
106
  color: inherit;
97
107
  }
108
+
98
109
  &:hover,
99
110
  &:focus {
100
111
  background: var(--an-hoverBackgroundColor, $--hover-bg-color) !important;
101
112
  }
102
113
  }
114
+
103
115
  .el-submenu__icon-arrow {
104
116
  right: 16px;
105
117
  }
118
+
106
119
  .el-menu-item.is-active {
107
120
  background: var(--an-activeBackgroundColor, $--color-primary) !important;
108
121
  }
122
+
109
123
  .el-menu--vertical {
110
124
  margin-top: -6px;
111
125
  }
@@ -124,7 +138,7 @@ $--hover-bg-color: #303d59;
124
138
  border-top-right-radius: 4px;
125
139
  }
126
140
 
127
- .el-menu--collapse > .el-menu-item [class^='el-icon-'],
128
- .el-menu--collapse > .el-submenu > .el-submenu__title [class^='el-icon-'] {
141
+ .el-menu--collapse>.el-menu-item [class^='el-icon-'],
142
+ .el-menu--collapse>.el-submenu>.el-submenu__title [class^='el-icon-'] {
129
143
  width: 18px;
130
- }
144
+ }
@@ -96,11 +96,20 @@
96
96
  }
97
97
 
98
98
  .n20-num-w {
99
+ padding-left: 5px;
99
100
 
100
101
  .el-input,
101
102
  .el-input__inner {
102
103
  padding-left: 0;
103
104
  }
105
+
106
+ .el-input--suffix .el-input__inner {
107
+ padding-right: 20px;
108
+ }
109
+ }
110
+
111
+ .n20-numberRange {
112
+ padding-right: 8px;
104
113
  }
105
114
 
106
115
  &-close {
@@ -118,7 +118,7 @@ export default {
118
118
  let W = null
119
119
  if (!value) {
120
120
  if (type) {
121
- return w + 100 + 'px'
121
+ return w + 110 + 'px'
122
122
  }
123
123
  return w + 'px'
124
124
  }
@@ -266,7 +266,18 @@ export default {
266
266
  .then(({ data }) => {
267
267
  let _data = JSON.parse(data)
268
268
  if (_data && _data.length > 0) {
269
- this.GroupData = _data
269
+ this.GroupData = _data.map((item) => {
270
+ for (let i = 0; i < this.filterList.length; i++) {
271
+ const originItem = this.filterList[i]
272
+ if (originItem.id === item.id) {
273
+ item.label = originItem.label
274
+ if (item.options && originItem.options) {
275
+ item.options = originItem.options
276
+ }
277
+ }
278
+ }
279
+ return item
280
+ })
270
281
  } else {
271
282
  this.GroupData = this.filterList.filter((item) => {
272
283
  if (item.isDefault) {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="n20-num-w">
2
+ <div class="n20-num-w n20-numberRange">
3
3
  <inputNumber
4
4
  v-bind="$attrs"
5
5
  :value="startValue"
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <el-menu-item :index="item.uuid" @click="$emit('click', item)">
2
+ <el-menu-item
3
+ v-title="`${item.title}`"
4
+ :show-overflow-tooltip="true"
5
+ :index="item.uuid"
6
+ @click="$emit('click', item)"
7
+ >
3
8
  <i v-if="item.iconUrl" class="el-icon- icon-url" :style="{ backgroundImage: `url(${item.iconUrl})` }"></i>
4
9
  <i v-else :class="item.iconClass"></i>
5
10
  <span v-if="!item.href" slot="title">{{ item | titleF }}</span>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <component :is="'slot'">
2
+ <component v-title="`${item.title}`" class="truncate" :show-overflow-tooltip="true" :is="'div'">
3
3
  <i v-if="item.iconUrl" class="el-icon- icon-url" :style="{ backgroundImage: `url(${item.iconUrl})` }"></i>
4
4
  <i v-else :class="item.iconClass"></i>
5
5
  <span>{{ item | titleF }}</span>