@kdcloudjs/kdesign 1.7.18 → 1.7.20
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/CHANGELOG.md +67 -0
- package/dist/kdesign-complete.less +362 -244
- package/dist/kdesign.css +270 -239
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +716 -788
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +6 -6
- package/dist/kdesign.min.js.map +1 -1
- package/es/button/style/token.less +1 -0
- package/es/carousel/style/index.css +4 -0
- package/es/carousel/style/index.less +31 -5
- package/es/cascader/cascader.js +4 -2
- package/es/checkbox/checkbox.js +5 -5
- package/es/checkbox/style/index.css +2 -0
- package/es/checkbox/style/index.less +2 -0
- package/es/checkbox/style/token.less +1 -1
- package/es/city-picker/city-picker.d.ts +3 -23
- package/es/city-picker/city-picker.js +351 -124
- package/es/city-picker/interface.d.ts +57 -0
- package/es/city-picker/interface.js +3 -0
- package/es/city-picker/option.d.ts +4 -0
- package/es/city-picker/option.js +42 -0
- package/es/city-picker/style/index.css +264 -239
- package/es/city-picker/style/index.less +262 -218
- package/es/city-picker/style/mixin.less +26 -3
- package/es/city-picker/style/token.less +42 -14
- package/es/collapse/collapse.d.ts +1 -1
- package/es/config-provider/compDefaultProps.d.ts +13 -0
- package/es/config-provider/compDefaultProps.js +13 -0
- package/es/dropdown/dropdown.d.ts +1 -0
- package/es/dropdown/dropdown.js +7 -2
- package/es/input/style/token.less +2 -8
- package/es/upload/upload.js +87 -63
- package/lib/button/style/token.less +1 -0
- package/lib/carousel/style/index.css +4 -0
- package/lib/carousel/style/index.less +31 -5
- package/lib/cascader/cascader.js +4 -2
- package/lib/checkbox/checkbox.js +4 -4
- package/lib/checkbox/style/index.css +2 -0
- package/lib/checkbox/style/index.less +2 -0
- package/lib/checkbox/style/token.less +1 -1
- package/lib/city-picker/city-picker.d.ts +3 -23
- package/lib/city-picker/city-picker.js +350 -123
- package/lib/city-picker/interface.d.ts +57 -0
- package/lib/city-picker/interface.js +11 -0
- package/lib/city-picker/option.d.ts +4 -0
- package/lib/city-picker/option.js +55 -0
- package/lib/city-picker/style/index.css +264 -239
- package/lib/city-picker/style/index.less +262 -218
- package/lib/city-picker/style/mixin.less +26 -3
- package/lib/city-picker/style/token.less +42 -14
- package/lib/collapse/collapse.d.ts +1 -1
- package/lib/config-provider/compDefaultProps.d.ts +13 -0
- package/lib/config-provider/compDefaultProps.js +13 -0
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.js +7 -2
- package/lib/input/style/token.less +2 -8
- package/lib/upload/upload.js +86 -62
- package/package.json +1 -1
- package/es/city-picker/city-group.d.ts +0 -8
- package/es/city-picker/city-group.js +0 -38
- package/es/city-picker/city-list.d.ts +0 -12
- package/es/city-picker/city-list.js +0 -55
- package/es/city-picker/city-panel-item.d.ts +0 -13
- package/es/city-picker/city-panel-item.js +0 -22
- package/es/city-picker/city-panel.d.ts +0 -17
- package/es/city-picker/city-panel.js +0 -153
- package/es/city-picker/city-search-panel.d.ts +0 -9
- package/es/city-picker/city-search-panel.js +0 -44
- package/es/city-picker/no-data.d.ts +0 -3
- package/es/city-picker/no-data.js +0 -18
- package/es/city-picker/utils/grouping.d.ts +0 -7
- package/es/city-picker/utils/grouping.js +0 -24
- package/lib/city-picker/city-group.d.ts +0 -8
- package/lib/city-picker/city-group.js +0 -51
- package/lib/city-picker/city-list.d.ts +0 -12
- package/lib/city-picker/city-list.js +0 -68
- package/lib/city-picker/city-panel-item.d.ts +0 -13
- package/lib/city-picker/city-panel-item.js +0 -35
- package/lib/city-picker/city-panel.d.ts +0 -17
- package/lib/city-picker/city-panel.js +0 -166
- package/lib/city-picker/city-search-panel.d.ts +0 -9
- package/lib/city-picker/city-search-panel.js +0 -57
- package/lib/city-picker/no-data.d.ts +0 -3
- package/lib/city-picker/no-data.js +0 -31
- package/lib/city-picker/utils/grouping.d.ts +0 -7
- package/lib/city-picker/utils/grouping.js +0 -30
|
@@ -103,7 +103,16 @@
|
|
|
103
103
|
普通组件内部自身层级应设置在0-100间
|
|
104
104
|
*/
|
|
105
105
|
/* ----------- zIndex ——————---- end */
|
|
106
|
-
|
|
106
|
+
/* 多行显示省略号 */
|
|
107
|
+
/* 单行显示省略号 */
|
|
108
|
+
/** 浮层箭头样式 **/
|
|
109
|
+
.kd-city-picker {
|
|
110
|
+
position: relative;
|
|
111
|
+
-webkit-box-sizing: border-box;
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
background-color: transparent;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
vertical-align: middle;
|
|
107
116
|
display: -webkit-box;
|
|
108
117
|
display: -ms-flexbox;
|
|
109
118
|
display: flex;
|
|
@@ -111,204 +120,179 @@
|
|
|
111
120
|
-webkit-box-direction: normal;
|
|
112
121
|
-ms-flex-direction: column;
|
|
113
122
|
flex-direction: column;
|
|
114
|
-
position: relative;
|
|
115
|
-
border-bottom: 1px solid #999;
|
|
116
123
|
}
|
|
117
|
-
.kd-city-picker-
|
|
118
|
-
|
|
119
|
-
display: -webkit-box;
|
|
120
|
-
display: -ms-flexbox;
|
|
121
|
-
display: flex;
|
|
122
|
-
-webkit-box-align: center;
|
|
123
|
-
-ms-flex-align: center;
|
|
124
|
-
align-items: center;
|
|
125
|
-
-webkit-box-pack: justify;
|
|
126
|
-
-ms-flex-pack: justify;
|
|
127
|
-
justify-content: space-between;
|
|
128
|
-
font-size: 14px;
|
|
129
|
-
color: #999999;
|
|
130
|
-
letter-spacing: 0;
|
|
131
|
-
line-height: 21px;
|
|
124
|
+
.kd-city-picker-selector:hover .kd-city-picker-icon-active {
|
|
125
|
+
color: #3761ca;
|
|
132
126
|
}
|
|
133
|
-
.kd-city-picker-
|
|
134
|
-
margin-bottom: 9px;
|
|
135
|
-
font-size: 12px;
|
|
127
|
+
.kd-city-picker-description {
|
|
136
128
|
color: #666666;
|
|
137
|
-
|
|
138
|
-
line-height: 18px;
|
|
129
|
+
font-size: 12px;
|
|
139
130
|
}
|
|
140
|
-
.kd-city-picker-
|
|
141
|
-
|
|
131
|
+
.kd-city-picker-visible .kd-city-picker-icon-active {
|
|
132
|
+
color: #3761ca;
|
|
142
133
|
}
|
|
143
|
-
.kd-city-picker-
|
|
144
|
-
|
|
145
|
-
outline: none;
|
|
146
|
-
-webkit-box-flex: 1;
|
|
147
|
-
-ms-flex-positive: 1;
|
|
148
|
-
flex-grow: 1;
|
|
149
|
-
width: 50%;
|
|
150
|
-
color: #212121;
|
|
134
|
+
.kd-city-picker-visible div.kd-city-picker-show-search .kd-city-picker-selection-item {
|
|
135
|
+
color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
|
|
151
136
|
}
|
|
152
|
-
.kd-city-picker-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
transition: transform 0.2s ease, -webkit-transform 0.2s ease;
|
|
137
|
+
.kd-city-picker-icon-arrow {
|
|
138
|
+
display: -webkit-inline-box;
|
|
139
|
+
display: -ms-inline-flexbox;
|
|
140
|
+
display: inline-flex;
|
|
141
|
+
-webkit-box-align: center;
|
|
142
|
+
-ms-flex-align: center;
|
|
143
|
+
align-items: center;
|
|
144
|
+
vertical-align: middle;
|
|
161
145
|
}
|
|
162
|
-
.kd-city-picker-
|
|
146
|
+
.kd-city-picker-icon-arrow-up {
|
|
163
147
|
-webkit-transform: rotate(180deg);
|
|
164
148
|
transform: rotate(180deg);
|
|
165
|
-
|
|
166
|
-
|
|
149
|
+
-webkit-transition: -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
150
|
+
transition: -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
151
|
+
transition: transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
152
|
+
transition: transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
153
|
+
}
|
|
154
|
+
.kd-city-picker-icon-arrow-down {
|
|
155
|
+
-webkit-transform: rotate(0deg);
|
|
156
|
+
transform: rotate(0deg);
|
|
157
|
+
-webkit-transition: -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
158
|
+
transition: -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
159
|
+
transition: transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
160
|
+
transition: transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
161
|
+
}
|
|
162
|
+
.kd-city-picker-icon-clear {
|
|
167
163
|
opacity: 0;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
z-index: 1;
|
|
165
|
+
position: absolute;
|
|
166
|
+
background: #fff;
|
|
167
|
+
-webkit-transition: opacity 0.15s ease;
|
|
168
|
+
transition: opacity 0.15s ease;
|
|
171
169
|
}
|
|
172
|
-
.kd-city-picker-
|
|
173
|
-
|
|
174
|
-
height: var(--kd-c-city-picker-panel-sizing-height, 373px);
|
|
175
|
-
font-size: var(--kd-c-city-picker-panel-font-size, 12px);
|
|
176
|
-
line-height: 18px;
|
|
177
|
-
letter-spacing: 0;
|
|
170
|
+
.kd-city-picker-icon-clear:hover {
|
|
171
|
+
color: var(--kd-c-city-picker-color-border-hover, var(--kd-g-color-theme, #5582f3));
|
|
178
172
|
}
|
|
179
|
-
.kd-city-picker-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
173
|
+
.kd-city-picker-placeholder {
|
|
174
|
+
position: absolute;
|
|
175
|
+
color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
white-space: nowrap;
|
|
178
|
+
text-overflow: ellipsis;
|
|
179
|
+
right: 24px;
|
|
180
|
+
left: 0;
|
|
187
181
|
}
|
|
188
|
-
.kd-city-picker-
|
|
189
|
-
|
|
190
|
-
cursor: pointer;
|
|
191
|
-
padding: 3px 0;
|
|
182
|
+
.kd-city-picker-borderless {
|
|
183
|
+
border: none;
|
|
192
184
|
}
|
|
193
|
-
.kd-city-picker-
|
|
194
|
-
|
|
195
|
-
z-index: 1;
|
|
185
|
+
.kd-city-picker-underline {
|
|
186
|
+
border-bottom: 1px solid var(--kd-c-city-picker-color-border, var(--kd-g-color-input, #999));
|
|
196
187
|
}
|
|
197
|
-
.kd-city-picker-
|
|
198
|
-
|
|
199
|
-
background: #fff;
|
|
188
|
+
.kd-city-picker-underline:hover:not(.kd-city-picker-disabled) {
|
|
189
|
+
border-bottom: 1px solid var(--kd-c-city-picker-color-border-hover, var(--kd-g-color-theme, #5582f3));
|
|
200
190
|
}
|
|
201
|
-
.kd-city-picker-
|
|
202
|
-
|
|
191
|
+
.kd-city-picker-bordered {
|
|
192
|
+
border: 1px solid var(--kd-c-city-picker-border-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
193
|
+
padding-left: var(--kd-c-city-picker-bordered-spacing-padding-left, 8px) !important;
|
|
194
|
+
border-radius: var(--kd-c-city-picker-bordered-radius-border, 2px);
|
|
203
195
|
}
|
|
204
|
-
.kd-city-picker-
|
|
205
|
-
|
|
206
|
-
content: '';
|
|
207
|
-
top: 0;
|
|
208
|
-
left: 0;
|
|
209
|
-
right: 0;
|
|
210
|
-
bottom: 0;
|
|
211
|
-
z-index: -2;
|
|
212
|
-
background: var(--kd-c-city-picker-color-background, var(--kd-g-color-background-contain, #fafafa));
|
|
213
|
-
border-radius: 2px 4px 0 0;
|
|
214
|
-
-webkit-transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
215
|
-
transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
216
|
-
-webkit-transform-origin: bottom left;
|
|
217
|
-
transform-origin: bottom left;
|
|
218
|
-
-webkit-box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
|
|
219
|
-
box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
|
|
220
|
-
}
|
|
221
|
-
.kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-header-internation {
|
|
222
|
-
width: 108px;
|
|
223
|
-
margin-left: -13px;
|
|
224
|
-
}
|
|
225
|
-
.kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-header-internation::before {
|
|
226
|
-
position: absolute;
|
|
227
|
-
content: '';
|
|
228
|
-
top: 0;
|
|
229
|
-
left: 0;
|
|
230
|
-
right: 0;
|
|
231
|
-
bottom: 0;
|
|
232
|
-
z-index: -2;
|
|
233
|
-
background: var(--kd-c-city-picker-color-background, var(--kd-g-color-background-contain, #fafafa));
|
|
234
|
-
border-radius: 4px 4px 0 0;
|
|
235
|
-
-webkit-transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
236
|
-
transform: scaleY(1.25) perspective(18px) rotateX(10deg);
|
|
237
|
-
-webkit-transform-origin: bottom;
|
|
238
|
-
transform-origin: bottom;
|
|
239
|
-
-webkit-box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
|
|
240
|
-
box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
|
|
241
|
-
}
|
|
242
|
-
.kd-city-picker-panel-item {
|
|
243
|
-
margin: 4px 6px;
|
|
244
|
-
padding: 3px 6px;
|
|
245
|
-
color: #212121;
|
|
246
|
-
width: 72px;
|
|
247
|
-
cursor: pointer;
|
|
196
|
+
.kd-city-picker-bordered:hover:not(.kd-city-picker-disabled) {
|
|
197
|
+
border: 1px solid var(--kd-c-city-picker-color-border-hover, var(--kd-g-color-theme, #5582f3));
|
|
248
198
|
}
|
|
249
|
-
.kd-city-picker-
|
|
250
|
-
|
|
251
|
-
border-radius: 2px;
|
|
199
|
+
.kd-city-picker-bordered .kd-city-picker-suffix {
|
|
200
|
+
padding-right: 8px;
|
|
252
201
|
}
|
|
253
|
-
.kd-city-picker-
|
|
254
|
-
|
|
255
|
-
padding: 0 20px 12px 20px;
|
|
256
|
-
background: #fff;
|
|
257
|
-
-webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
|
|
258
|
-
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
|
|
259
|
-
border-radius: 0 var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px)) var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px)) var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px));
|
|
202
|
+
.kd-city-picker-bordered .kd-city-picker-placeholder {
|
|
203
|
+
padding-left: var(--kd-c-city-picker-bordered-spacing-padding-left, 8px);
|
|
260
204
|
}
|
|
261
|
-
.kd-city-picker-
|
|
205
|
+
.kd-city-picker-wrapper {
|
|
206
|
+
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
207
|
+
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
208
|
+
padding: var(--kd-c-city-picker-wrapper-spacing-padding, 1px 24px 1px 0);
|
|
209
|
+
max-width: 100%;
|
|
210
|
+
color: #212121;
|
|
262
211
|
display: -webkit-box;
|
|
263
212
|
display: -ms-flexbox;
|
|
264
213
|
display: flex;
|
|
214
|
+
-ms-flex-wrap: wrap;
|
|
215
|
+
flex-wrap: wrap;
|
|
265
216
|
-webkit-box-align: center;
|
|
266
217
|
-ms-flex-align: center;
|
|
267
218
|
align-items: center;
|
|
268
|
-
|
|
269
|
-
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
-webkit-box-sizing: border-box;
|
|
221
|
+
box-sizing: border-box;
|
|
222
|
+
overflow-y: auto;
|
|
223
|
+
overflow-x: hidden;
|
|
224
|
+
position: relative;
|
|
270
225
|
}
|
|
271
|
-
.kd-city-picker-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
226
|
+
.kd-city-picker-wrapper:hover .kd-city-picker-icon-clear {
|
|
227
|
+
opacity: 1;
|
|
228
|
+
}
|
|
229
|
+
.kd-city-picker-wrapper .kd-city-picker-icon-clear {
|
|
230
|
+
color: var(--kd-c-city-picker-icon-clear-color-text, #d9d9d9);
|
|
231
|
+
}
|
|
232
|
+
.kd-city-picker-wrapper .kd-city-picker-icon-clear:hover {
|
|
233
|
+
color: var(--kd-c-city-picker-icon-clear-color-text-hover, #999);
|
|
234
|
+
}
|
|
235
|
+
.kd-city-picker-show-search {
|
|
236
|
+
cursor: text;
|
|
237
|
+
}
|
|
238
|
+
.kd-city-picker-dropdown {
|
|
239
|
+
display: block;
|
|
240
|
+
left: 0;
|
|
241
|
+
z-index: var(--kd-c-city-picker-z-index, var(--kd-g-z-index-popper, 1050));
|
|
279
242
|
-webkit-box-sizing: border-box;
|
|
280
243
|
box-sizing: border-box;
|
|
281
|
-
|
|
282
|
-
|
|
244
|
+
margin: 0;
|
|
245
|
+
overflow: auto;
|
|
246
|
+
font-size: var(--kd-c-city-picker-dropdown-font-size, 12px);
|
|
247
|
+
font-variant: initial;
|
|
248
|
+
background-color: var(--kd-c-city-picker-dropdown-color-background, var(--kd-g-color-background, #fff));
|
|
249
|
+
border-radius: var(--kd-c-city-picker-radius-border, var(--kd-g-radius-border, 2px));
|
|
250
|
+
outline: none;
|
|
251
|
+
-webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
252
|
+
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
253
|
+
}
|
|
254
|
+
.kd-city-picker-dropdown .kd-tabs-tab-list {
|
|
255
|
+
width: 100%;
|
|
256
|
+
}
|
|
257
|
+
.kd-city-picker-dropdown .kd-tabs-tab-list > span {
|
|
258
|
+
width: 50%;
|
|
259
|
+
}
|
|
260
|
+
.kd-city-picker-dropdown .kd-tabs-tab-list .kd-tab-pane {
|
|
283
261
|
text-align: center;
|
|
284
262
|
}
|
|
285
|
-
.kd-city-picker-
|
|
286
|
-
|
|
263
|
+
.kd-city-picker-dropdown .kd-tabs-tab-list .kd-tab-pane-type-line {
|
|
264
|
+
padding: 0 12px;
|
|
265
|
+
font-size: 12px;
|
|
287
266
|
}
|
|
288
|
-
.kd-city-picker-
|
|
289
|
-
|
|
290
|
-
border-bottom: 2px solid var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
|
|
267
|
+
.kd-city-picker-dropdown .kd-tabs-noContainer {
|
|
268
|
+
height: unset;
|
|
291
269
|
}
|
|
292
|
-
.kd-city-picker-
|
|
293
|
-
|
|
294
|
-
flex-shrink: 1;
|
|
270
|
+
.kd-city-picker-dropdown .kd-tabs-right-arrows {
|
|
271
|
+
display: none;
|
|
295
272
|
}
|
|
296
|
-
.kd-city-picker-
|
|
273
|
+
.kd-city-picker-dropdown-empty {
|
|
274
|
+
height: 48px;
|
|
297
275
|
display: -webkit-box;
|
|
298
276
|
display: -ms-flexbox;
|
|
299
277
|
display: flex;
|
|
300
|
-
-
|
|
301
|
-
flex-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
278
|
+
-webkit-box-align: center;
|
|
279
|
+
-ms-flex-align: center;
|
|
280
|
+
align-items: center;
|
|
281
|
+
-webkit-box-pack: center;
|
|
282
|
+
-ms-flex-pack: center;
|
|
283
|
+
justify-content: center;
|
|
284
|
+
color: #b2b2b2;
|
|
285
|
+
font-size: 14px;
|
|
305
286
|
}
|
|
306
|
-
.kd-city-picker-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
287
|
+
.kd-city-picker-dropdown-common {
|
|
288
|
+
height: 32px;
|
|
289
|
+
line-height: 32px;
|
|
290
|
+
padding: 0 12px;
|
|
291
|
+
background: #fafafa;
|
|
292
|
+
color: var(--kd-c-city-picker-footer-color-text, var(--kd-g-color-text-primary, #212121));
|
|
310
293
|
}
|
|
311
|
-
.kd-city-picker-
|
|
294
|
+
.kd-city-picker-dropdown-loading {
|
|
295
|
+
height: 48px;
|
|
312
296
|
display: -webkit-box;
|
|
313
297
|
display: -ms-flexbox;
|
|
314
298
|
display: flex;
|
|
@@ -318,111 +302,152 @@
|
|
|
318
302
|
-webkit-box-pack: center;
|
|
319
303
|
-ms-flex-pack: center;
|
|
320
304
|
justify-content: center;
|
|
321
|
-
width: 32px;
|
|
322
|
-
height: 32px;
|
|
323
|
-
color: #999;
|
|
324
|
-
margin-right: 32px;
|
|
325
|
-
-ms-flex-negative: 0;
|
|
326
|
-
flex-shrink: 0;
|
|
327
|
-
-webkit-box-flex: 0;
|
|
328
|
-
-ms-flex-positive: 0;
|
|
329
|
-
flex-grow: 0;
|
|
330
305
|
}
|
|
331
|
-
.kd-city-picker-
|
|
306
|
+
.kd-city-picker-list {
|
|
307
|
+
padding: 8px 0;
|
|
308
|
+
max-height: 320px;
|
|
309
|
+
overflow-y: auto;
|
|
310
|
+
}
|
|
311
|
+
.kd-city-picker-list-item {
|
|
312
|
+
position: relative;
|
|
313
|
+
display: block;
|
|
314
|
+
font-weight: normal;
|
|
315
|
+
font-size: var(--kd-c-city-picker-dropdown-font-size, 12px);
|
|
316
|
+
min-height: var(--kd-c-city-picker-item-sizing-height, 22px);
|
|
317
|
+
padding: 5px 12px;
|
|
318
|
+
color: var(--kd-c-city-picker-footer-color-text, var(--kd-g-color-text-primary, #212121));
|
|
319
|
+
line-height: var(--kd-c-city-picker-dropdown-line-height, 22px);
|
|
332
320
|
display: -webkit-box;
|
|
333
321
|
display: -ms-flexbox;
|
|
334
322
|
display: flex;
|
|
335
|
-
-ms-flex-wrap: wrap;
|
|
336
|
-
flex-wrap: wrap;
|
|
337
|
-
}
|
|
338
|
-
.kd-city-picker-city-table .kd-city-picker-city-table-cell {
|
|
339
|
-
margin: 4px 6px;
|
|
340
|
-
padding: 3px 6px;
|
|
341
|
-
color: var(--kd-c-city-picker-panel-item-color, var(--kd-g-color-text-primary, #212121));
|
|
342
323
|
cursor: pointer;
|
|
343
|
-
|
|
324
|
+
}
|
|
325
|
+
.kd-city-picker-list-item-content {
|
|
344
326
|
overflow: hidden;
|
|
345
327
|
white-space: nowrap;
|
|
346
328
|
text-overflow: ellipsis;
|
|
347
329
|
}
|
|
348
|
-
.kd-city-picker-
|
|
349
|
-
|
|
350
|
-
|
|
330
|
+
.kd-city-picker-list-item-info {
|
|
331
|
+
color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
|
|
332
|
+
white-space: nowrap;
|
|
351
333
|
}
|
|
352
|
-
.kd-city-picker-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
color: #
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
-
|
|
369
|
-
|
|
370
|
-
border-radius: 2px;
|
|
371
|
-
background: #fff;
|
|
334
|
+
.kd-city-picker-list-item:hover {
|
|
335
|
+
background-color: var(--kd-c-city-picker-color-background, #f5f5f5);
|
|
336
|
+
}
|
|
337
|
+
.kd-city-picker-list-item-selected:not(.kd-city-picker-list-item-disabled) {
|
|
338
|
+
background-color: var(--kd-c-city-picker-color-background-selected, #f2f6ff);
|
|
339
|
+
}
|
|
340
|
+
.kd-city-picker-list-item-disabled {
|
|
341
|
+
color: var(--kd-c-city-picker-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
342
|
+
cursor: not-allowed;
|
|
343
|
+
background-color: var(--kd-c-city-picker-item-color-background-disabled, #fff);
|
|
344
|
+
}
|
|
345
|
+
.kd-city-picker-highlight {
|
|
346
|
+
color: #5582f3;
|
|
347
|
+
}
|
|
348
|
+
.kd-city-picker-size-small {
|
|
349
|
+
min-height: var(--kd-c-city-picker-sizing-height-small, 24px);
|
|
350
|
+
max-height: calc(var(--kd-c-city-picker-sizing-height-small, 24px) * 3 - 10px);
|
|
351
|
+
font-size: var(--kd-c-city-picker-font-size-small, 12px);
|
|
372
352
|
}
|
|
373
|
-
.kd-city-picker-
|
|
353
|
+
.kd-city-picker-size-middle {
|
|
354
|
+
min-height: var(--kd-c-city-picker-sizing-height-middle, 30px);
|
|
355
|
+
max-height: calc(var(--kd-c-city-picker-sizing-height-middle, 30px) * 3 - 10px);
|
|
356
|
+
font-size: var(--kd-c-city-picker-font-size-middle, 14px);
|
|
357
|
+
}
|
|
358
|
+
.kd-city-picker-size-large {
|
|
359
|
+
min-height: var(--kd-c-city-picker-sizing-height-large, 36px);
|
|
360
|
+
max-height: calc(var(--kd-c-city-picker-sizing-height-large, 36px) * 3 - 10px);
|
|
361
|
+
font-size: var(--kd-c-city-picker-font-size-large, 16px);
|
|
362
|
+
}
|
|
363
|
+
.kd-city-picker-suffix {
|
|
364
|
+
right: 0;
|
|
365
|
+
position: absolute;
|
|
374
366
|
display: -webkit-box;
|
|
375
367
|
display: -ms-flexbox;
|
|
376
368
|
display: flex;
|
|
377
|
-
-webkit-box-
|
|
378
|
-
-ms-flex
|
|
379
|
-
|
|
369
|
+
-webkit-box-flex: 0;
|
|
370
|
+
-ms-flex: 0;
|
|
371
|
+
flex: 0;
|
|
372
|
+
-ms-flex-wrap: wrap;
|
|
373
|
+
flex-wrap: wrap;
|
|
380
374
|
-webkit-box-align: center;
|
|
381
375
|
-ms-flex-align: center;
|
|
382
376
|
align-items: center;
|
|
383
|
-
|
|
377
|
+
-webkit-box-pack: center;
|
|
378
|
+
-ms-flex-pack: center;
|
|
379
|
+
justify-content: center;
|
|
380
|
+
margin-left: 8px;
|
|
384
381
|
cursor: pointer;
|
|
385
382
|
}
|
|
386
|
-
.kd-city-picker-
|
|
387
|
-
|
|
383
|
+
.kd-city-picker-focused {
|
|
384
|
+
border-color: var(--kd-c-city-picker-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
|
|
388
385
|
}
|
|
389
|
-
.kd-city-picker-
|
|
386
|
+
.kd-city-picker-focused .kd-city-picker-content-item {
|
|
387
|
+
color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
|
|
388
|
+
}
|
|
389
|
+
.kd-city-picker-disabled {
|
|
390
|
+
background-color: var(--kd-c-city-picker-color-background-disabled, #fff);
|
|
391
|
+
color: var(--kd-c-city-picker-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
392
|
+
padding-right: 0;
|
|
393
|
+
border-color: #e5e5e5;
|
|
394
|
+
}
|
|
395
|
+
.kd-city-picker-disabled:hover {
|
|
396
|
+
cursor: not-allowed;
|
|
397
|
+
}
|
|
398
|
+
.kd-city-picker-disabled .kd-city-picker-suffix {
|
|
399
|
+
color: var(--kd-c-city-picker-arrow-icon-color-text-disabled, #b2b2b2);
|
|
400
|
+
}
|
|
401
|
+
.kd-city-picker-disabled.kd-city-picker-bordered {
|
|
402
|
+
padding-right: var(--kd-c-city-picker-bordered-spacing-padding-left, 8px);
|
|
403
|
+
}
|
|
404
|
+
.kd-city-picker-content {
|
|
405
|
+
display: -webkit-box;
|
|
406
|
+
display: -ms-flexbox;
|
|
407
|
+
display: flex;
|
|
408
|
+
width: 100%;
|
|
409
|
+
font-size: 14px;
|
|
410
|
+
}
|
|
411
|
+
.kd-city-picker-content-search {
|
|
412
|
+
-webkit-box-flex: 1;
|
|
413
|
+
-ms-flex: 1;
|
|
414
|
+
flex: 1;
|
|
415
|
+
position: relative;
|
|
416
|
+
}
|
|
417
|
+
.kd-city-picker-content-search-input {
|
|
418
|
+
outline: 0;
|
|
419
|
+
border-radius: 0;
|
|
420
|
+
border: none;
|
|
421
|
+
background: transparent;
|
|
422
|
+
height: 100%;
|
|
423
|
+
width: 100%;
|
|
424
|
+
cursor: pointer;
|
|
425
|
+
}
|
|
426
|
+
.kd-city-picker-content-item {
|
|
427
|
+
display: inline-block;
|
|
428
|
+
position: absolute;
|
|
429
|
+
left: 0;
|
|
430
|
+
right: 0;
|
|
390
431
|
overflow: hidden;
|
|
391
432
|
white-space: nowrap;
|
|
392
433
|
text-overflow: ellipsis;
|
|
393
|
-
-webkit-box-flex: 0;
|
|
394
|
-
-ms-flex-positive: 0;
|
|
395
|
-
flex-grow: 0;
|
|
396
|
-
-ms-flex-negative: 0;
|
|
397
|
-
flex-shrink: 0;
|
|
398
|
-
max-width: 168px;
|
|
399
434
|
}
|
|
400
|
-
.kd-city-picker-
|
|
401
|
-
-webkit-box-flex:
|
|
402
|
-
-ms-flex
|
|
403
|
-
flex
|
|
404
|
-
-
|
|
405
|
-
|
|
406
|
-
max-width: 112px;
|
|
435
|
+
.kd-city-picker-content-info {
|
|
436
|
+
-webkit-box-flex: 1;
|
|
437
|
+
-ms-flex: 1;
|
|
438
|
+
flex: 1;
|
|
439
|
+
text-align: right;
|
|
440
|
+
color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
|
|
407
441
|
overflow: hidden;
|
|
408
442
|
white-space: nowrap;
|
|
409
443
|
text-overflow: ellipsis;
|
|
410
|
-
text-align: right;
|
|
411
|
-
color: #999999;
|
|
412
|
-
}
|
|
413
|
-
.kd-city-picker-search-keyword {
|
|
414
|
-
color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
|
|
415
444
|
}
|
|
416
|
-
.kd-city-picker
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
-webkit-
|
|
423
|
-
|
|
424
|
-
align-items: center;
|
|
425
|
-
-webkit-box-pack: center;
|
|
426
|
-
-ms-flex-pack: center;
|
|
427
|
-
justify-content: center;
|
|
445
|
+
.kd-city-picker.topLeft.hidden,
|
|
446
|
+
.kd-city-picker.bottomLeft.hidden,
|
|
447
|
+
.kd-city-picker.topRight.hidden,
|
|
448
|
+
.kd-city-picker.bottomRight.hidden {
|
|
449
|
+
opacity: 0;
|
|
450
|
+
visibility: hidden;
|
|
451
|
+
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
452
|
+
transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
|
|
428
453
|
}
|