iov-design 2.15.56 → 2.15.57

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,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
- }
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
+ }
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
+ }
@@ -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;
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.57',
216
216
  locale: locale.use,
217
217
  i18n: locale.i18n,
218
218
  install,