iov-design 2.15.56 → 2.15.58

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.
@@ -1,213 +1,252 @@
1
- @import "mixins/mixins";
2
- @import "common/var";
3
- @import "./input";
4
- @import "./popper";
5
- @import "./tag";
6
- @import "./cascader-panel";
7
-
8
- @include b(cascader) {
9
- display: block;
10
- position: relative;
11
- font-size: $--input-font-size;
12
- line-height: $--input-height;
13
-
14
- &:not(.is-disabled):hover {
15
- .el-input__inner {
16
- cursor: pointer;
17
- border-color: $--input-hover-border;
18
- }
19
- }
20
-
21
- .el-input {
22
- cursor: pointer;
23
-
24
- .el-input__suffix {
25
- right: 8px;
26
- }
27
- .el-input__inner {
28
- text-overflow: ellipsis;
29
-
30
- &:focus {
31
- border-color: $--input-focus-border;
32
- }
33
- }
34
-
35
- .iov-icon-arrow-up {
36
- padding-right: 0;
37
- color: $--color-fill-5;
38
- font-size: $--select-icon-size;
39
- transition: transform .3s;
40
- transform: rotateZ(180deg);
41
-
42
- @include when(reverse) {
43
- transform: rotateZ(0deg);
44
- }
45
- }
46
-
47
- .el-icon-circle-close:hover {
48
- color: $--input-clear-hover-color;
49
- }
50
-
51
- @include when(focus) {
52
- .el-input__inner {
53
- border-color: $--input-focus-border;
54
- }
55
- }
56
- }
57
-
58
- .el-tag {
59
- height: $--input-height - 8px;
60
- line-height: $--input-height - 8px;
61
- }
62
-
63
- @include m(medium) {
64
- font-size: $--input-medium-font-size;
65
- line-height: $--input-medium-height;
66
- .el-tag--medium {
67
- height: $--input-medium-height - 8px;
68
- line-height: $--input-medium-height - 8px;
69
- }
70
- }
71
-
72
- @include m(small) {
73
- font-size: $--input-small-font-size;
74
- line-height: $--input-small-height;
75
- .el-tag--small {
76
- height: $--input-small-height - 8px;
77
- line-height: $--input-small-height - 8px;
78
- }
79
- }
80
-
81
- @include m(mini) {
82
- font-size: $--input-mini-font-size;
83
- line-height: $--input-mini-height;
84
- .el-tag--mini {
85
- height: $--input-mini-height - 8px;
86
- line-height: $--input-mini-height - 8px;
87
- }
88
- }
89
-
90
- @include when(disabled) {
91
- .el-cascader__label {
92
- z-index: #{$--index-normal + 1};
93
- color: $--disabled-color-base;
94
- }
95
- }
96
-
97
- @include e(dropdown) {
98
- margin: 4px 0;
99
- font-size: $--cascader-menu-font-size;
100
- background: $--cascader-menu-fill;
101
- border: $--cascader-menu-border;
102
- border-radius: $--cascader-menu-radius;
103
- box-shadow: $--cascader-menu-shadow;
104
- .popper__arrow {
105
- display: none;
106
- }
107
- }
108
-
109
- @include e(tags) {
110
- position: absolute;
111
- left: 0;
112
- right: 30px;
113
- top: 50%;
114
- transform: translateY(-50%);
115
- display: flex;
116
- flex-wrap: wrap;
117
- line-height: normal;
118
- text-align: left;
119
- box-sizing: border-box;
120
- z-index: 3;
121
- align-items: center;
122
- // pointer-events: none;
123
-
124
- .el-tag {
125
- display: inline-flex;
126
- align-items: center;
127
- max-width: 100%;
128
- margin: 2px 6px 2px 0;
129
- text-overflow: ellipsis;
130
- color: $--color-text-6;
131
- pointer-events: auto;
132
-
133
- &.is-disabled {
134
- color: $--color-text-3;
135
- background: $--color-fill-3;
136
- }
137
-
138
- &:not(.is-hit) {
139
- border-color: transparent;
140
- }
141
-
142
- > span {
143
- flex: 1;
144
- overflow: hidden;
145
- text-overflow: ellipsis;
146
- }
147
-
148
- .iov-icon-close {
149
- flex: none;
150
- }
151
- }
152
- }
153
-
154
- @include e(suggestion-panel) {
155
- border-radius: $--cascader-menu-radius;
156
- }
157
-
158
- @include e(suggestion-list) {
159
- max-height: 204px;
160
- margin: 0;
161
- padding: 4px;
162
- font-size: $--font-size-base;
163
- color: $--cascader-menu-font-color;
164
- text-align: center;
165
- }
166
-
167
- @include e(suggestion-item) {
168
- display: flex;
169
- justify-content: space-between;
170
- align-items: center;
171
- height: 32px;
172
- padding: 0 12px;
173
- text-align: left;
174
- outline: none;
175
- cursor: pointer;
176
- border-radius: 2px;
177
-
178
- &:hover, &:focus {
179
- background: $--cascader-node-background-hover;
180
- }
181
-
182
- &.is-checked {
183
- color: $--cascader-menu-selected-font-color;
184
- font-weight: 500;
185
- background: $--color-primary-1;
186
- }
187
-
188
- > span {
189
- margin-right: 10px;
190
- }
191
- }
192
-
193
- @include e(empty-text) {
194
- margin: 8px 0;
195
- color: $--cascader-color-empty;
196
- }
197
-
198
- @include e(search-input) {
199
- flex: 1;
200
- height: 24px;
201
- min-width: 10px;
202
- margin: 2px 0;
203
- padding: 0;
204
- color: $--cascader-menu-font-color;
205
- border: none;
206
- outline: none;
207
- box-sizing: border-box;
208
-
209
- &::placeholder {
210
- color: $--color-text-placeholder;
211
- }
212
- }
213
- }
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+ @import "./input";
4
+ @import "./popper";
5
+ @import "./tag";
6
+ @import "./cascader-panel";
7
+
8
+ @include b(cascader) {
9
+ display: block;
10
+ position: relative;
11
+ font-size: $--input-font-size;
12
+ line-height: $--input-height;
13
+
14
+ &:not(.is-disabled):hover {
15
+ .el-input__inner {
16
+ cursor: pointer;
17
+ border-color: $--input-hover-border;
18
+ }
19
+ }
20
+
21
+ .el-input {
22
+ cursor: pointer;
23
+
24
+ .el-input__suffix {
25
+ right: 8px;
26
+ }
27
+ .el-input__inner {
28
+ text-overflow: ellipsis;
29
+
30
+ &:focus {
31
+ border-color: $--input-focus-border;
32
+ }
33
+ }
34
+
35
+ .iov-icon-arrow-up {
36
+ padding-right: 0;
37
+ color: $--color-fill-5;
38
+ font-size: $--select-icon-size;
39
+ transition: transform .3s;
40
+ transform: rotateZ(180deg);
41
+
42
+ @include when(reverse) {
43
+ transform: rotateZ(0deg);
44
+ }
45
+ }
46
+
47
+ .el-icon-circle-close:hover {
48
+ color: $--input-clear-hover-color;
49
+ }
50
+
51
+ @include when(focus) {
52
+ .el-input__inner {
53
+ border-color: $--input-focus-border;
54
+ }
55
+ }
56
+ }
57
+
58
+ .el-tag {
59
+ height: $--input-height - 8px;
60
+ line-height: $--input-height - 8px;
61
+ }
62
+
63
+ @include m(medium) {
64
+ font-size: $--input-medium-font-size;
65
+ line-height: $--input-medium-height;
66
+ .el-tag--medium {
67
+ height: $--input-medium-height - 8px;
68
+ line-height: $--input-medium-height - 8px;
69
+ &.el-cascader__tags-count-fixed {
70
+ min-width: $--input-medium-height - 8px;
71
+ }
72
+ }
73
+ }
74
+
75
+ @include m(small) {
76
+ font-size: $--input-small-font-size;
77
+ line-height: $--input-small-height;
78
+ .el-tag--small {
79
+ height: $--input-small-height - 8px;
80
+ line-height: $--input-small-height - 8px;
81
+ &.el-cascader__tags-count-fixed {
82
+ min-width: $--input-small-height - 8px;
83
+ }
84
+ }
85
+ }
86
+
87
+ @include m(mini) {
88
+ font-size: $--input-mini-font-size;
89
+ line-height: $--input-mini-height;
90
+ .el-tag--mini {
91
+ height: $--input-mini-height - 8px;
92
+ line-height: $--input-mini-height - 8px;
93
+ &.el-cascader__tags-count-fixed {
94
+ min-width: $--input-mini-height - 8px;
95
+ }
96
+ }
97
+ }
98
+
99
+ @include when(disabled) {
100
+ .el-cascader__label {
101
+ z-index: #{$--index-normal + 1};
102
+ color: $--disabled-color-base;
103
+ }
104
+ }
105
+
106
+ @include e(dropdown) {
107
+ margin: 4px 0;
108
+ font-size: $--cascader-menu-font-size;
109
+ background: $--cascader-menu-fill;
110
+ border: $--cascader-menu-border;
111
+ border-radius: $--cascader-menu-radius;
112
+ box-shadow: $--cascader-menu-shadow;
113
+ .popper__arrow {
114
+ display: none;
115
+ }
116
+ }
117
+
118
+ @include e(tags) {
119
+ position: absolute;
120
+ left: 0;
121
+ right: 30px;
122
+ top: 50%;
123
+ transform: translateY(-50%);
124
+ display: flex;
125
+ flex-wrap: wrap;
126
+ line-height: normal;
127
+ text-align: left;
128
+ box-sizing: border-box;
129
+ z-index: 3;
130
+ align-items: center;
131
+ // pointer-events: none;
132
+
133
+ .el-cascader__tags-count-fixed {
134
+ min-width: $--input-height - 8px;
135
+ border-radius: 50%;
136
+ text-align: center;
137
+ position: absolute;
138
+ right: 0;
139
+ justify-content: center;
140
+ }
141
+ .el-tag {
142
+ box-sizing: border-box;
143
+ border-color: transparent;
144
+ margin: 2px 0 2px 4px;
145
+ padding: 0 6px;
146
+ border-radius: 2px;
147
+ display: flex;
148
+ max-width: 100%;
149
+ align-items: center;
150
+ pointer-events: auto;
151
+ &.el-cascader__tags-count-fixed {
152
+ border-radius: 50%;
153
+ }
154
+ &.el-tag--info {
155
+ background: $--color-fill-2;
156
+ color: $--color-text-6;
157
+ border: 0 none;
158
+ &.is-disabled {
159
+ background: $--color-fill-3;
160
+ }
161
+ }
162
+ // display: inline-flex;
163
+ // align-items: center;
164
+ // max-width: 100%;
165
+ // padding: 0 6px;
166
+ // margin: 2px 4px 2px 0;
167
+ // border-radius: 2px;
168
+ // text-overflow: ellipsis;
169
+ // color: $--color-text-6;
170
+ // pointer-events: auto;
171
+
172
+ // &.is-disabled {
173
+ // color: $--color-text-3;
174
+ // background: $--color-fill-3;
175
+ // }
176
+
177
+ // &:not(.is-hit) {
178
+ // border-color: transparent;
179
+ // }
180
+
181
+ // > span {
182
+ // flex: 1;
183
+ // overflow: hidden;
184
+ // text-overflow: ellipsis;
185
+ // }
186
+
187
+ // .iov-icon-close {
188
+ // flex: none;
189
+ // }
190
+ }
191
+ }
192
+
193
+ @include e(suggestion-panel) {
194
+ border-radius: $--cascader-menu-radius;
195
+ }
196
+
197
+ @include e(suggestion-list) {
198
+ max-height: 204px;
199
+ margin: 0;
200
+ padding: 4px;
201
+ font-size: $--font-size-base;
202
+ color: $--cascader-menu-font-color;
203
+ text-align: center;
204
+ }
205
+
206
+ @include e(suggestion-item) {
207
+ display: flex;
208
+ justify-content: space-between;
209
+ align-items: center;
210
+ height: 32px;
211
+ padding: 0 12px;
212
+ text-align: left;
213
+ outline: none;
214
+ cursor: pointer;
215
+ border-radius: 2px;
216
+
217
+ &:hover, &:focus {
218
+ background: $--cascader-node-background-hover;
219
+ }
220
+
221
+ &.is-checked {
222
+ color: $--cascader-menu-selected-font-color;
223
+ font-weight: 500;
224
+ background: $--color-primary-1;
225
+ }
226
+
227
+ > span {
228
+ margin-right: 10px;
229
+ }
230
+ }
231
+
232
+ @include e(empty-text) {
233
+ margin: 8px 0;
234
+ color: $--cascader-color-empty;
235
+ }
236
+
237
+ @include e(search-input) {
238
+ flex: 1;
239
+ height: 24px;
240
+ min-width: 10px;
241
+ margin: 2px 0;
242
+ padding: 0;
243
+ color: $--cascader-menu-font-color;
244
+ border: none;
245
+ outline: none;
246
+ box-sizing: border-box;
247
+
248
+ &::placeholder {
249
+ color: $--color-text-placeholder;
250
+ }
251
+ }
252
+ }
@@ -94,7 +94,7 @@
94
94
  text-align: center;
95
95
  font-size: $--input-font-size;
96
96
  align-items: center;
97
- color: $--input-font-color;
97
+ color: $--color-fill-5;
98
98
  }
99
99
  }
100
100
 
@@ -23,6 +23,60 @@
23
23
  }
24
24
  }
25
25
 
26
+ &.is-fill {
27
+ background: $--color-fill-1;
28
+ border-radius: 4px;
29
+ .el-input-group--prefix,
30
+ .el-input-group--suffix {
31
+ background: $--color-fill-1;
32
+ border-color: $--color-fill-1;
33
+ &:hover,
34
+ &.is-focus {
35
+ border-color: $--input-focus-border;
36
+ }
37
+ &.is-disabled {
38
+ border-color: $--color-fill-1;
39
+ }
40
+ }
41
+ .el-input__inner {
42
+ background: $--color-fill-1;
43
+ border-color: $--color-fill-1;
44
+ }
45
+ .el-input {
46
+ &.is-focus {
47
+ .el-input__suffix,
48
+ .el-input__inner,
49
+ .el-input-group--prefix,
50
+ .el-input-group--suffix {
51
+ background: #fff;
52
+ border-color: $--input-focus-border;
53
+ }
54
+ .el-input-group--prefix,
55
+ .el-input-group--suffix {
56
+ box-shadow: $--input-box-shadow;
57
+ }
58
+ }
59
+ }
60
+ .el-input__suffix {
61
+ background: $--color-fill-1;
62
+ }
63
+ &:hover {
64
+ .el-input__inner {
65
+ border-color: $--select-border-color-hover;
66
+ }
67
+ }
68
+ .el-select__tags {
69
+ &.is-focus {
70
+ .el-tag.el-tag--info {
71
+ background: $--color-fill-2;
72
+ }
73
+ }
74
+ }
75
+ .el-tag.el-tag--info {
76
+ background: #fff;
77
+ }
78
+ }
79
+
26
80
  .el-input__inner {
27
81
  cursor: pointer;
28
82
  padding-right: 35px;
@@ -168,6 +222,7 @@
168
222
  border-color: transparent;
169
223
  margin: 2px 0 2px 4px;
170
224
  padding: 0 6px;
225
+ border-radius: 2px;
171
226
  display: flex;
172
227
  max-width: 100%;
173
228
  align-items: center;
@@ -176,6 +231,7 @@
176
231
  line-height: $--input-height - 8px;
177
232
  &.el-select__tags-count-fixed {
178
233
  min-width: $--input-height - 8px;
234
+ border-radius: 50%;
179
235
  }
180
236
  &.el-tag--info {
181
237
  background: $--color-fill-2;
@@ -39,6 +39,7 @@
39
39
 
40
40
  // 跨页选择
41
41
  @include e(cross-page-selection) {
42
+ margin-left: 2px;
42
43
  .iov-icon-arrow-down {
43
44
  color: $--color-fill-4;
44
45
  cursor: pointer;
@@ -144,6 +145,14 @@
144
145
  position: relative;
145
146
  text-align: left;
146
147
 
148
+ @include when(top) {
149
+ vertical-align: top;
150
+ }
151
+
152
+ @include when(bottom) {
153
+ vertical-align: bottom;
154
+ }
155
+
147
156
  @include when(center) {
148
157
  text-align: center;
149
158
  }
@@ -306,7 +315,7 @@
306
315
 
307
316
  .has-gutter {
308
317
  .el-table__cell {
309
- border-bottom: 0 none;
318
+ // border-bottom: 0 none;
310
319
  &:nth-last-child(2) {
311
320
  border-right: 0 none;
312
321
  }
package/src/index.js CHANGED
@@ -212,7 +212,7 @@ if (typeof window !== 'undefined' && window.Vue) {
212
212
  }
213
213
 
214
214
  export default {
215
- version: '2.15.56',
215
+ version: '2.15.58',
216
216
  locale: locale.use,
217
217
  i18n: locale.i18n,
218
218
  install,