bkui-vue 0.0.1-beta.165 → 0.0.1-beta.168
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/dist/index.cjs.js +29 -29
- package/dist/index.esm.js +203 -119
- package/dist/index.umd.js +30 -30
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader-panel.d.ts +16 -0
- package/lib/cascader/cascader.css +3 -0
- package/lib/cascader/cascader.d.ts +14 -0
- package/lib/cascader/cascader.less +3 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/cascader/index.d.ts +47 -1
- package/lib/cascader/index.js +1 -1
- package/lib/checkbox/checkbox.css +5 -0
- package/lib/checkbox/checkbox.less +4 -0
- package/lib/checkbox/checkbox.variable.css +5 -0
- package/lib/pagination/index.d.ts +16 -1
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +10 -0
- package/lib/pagination/pagination.less +58 -31
- package/lib/pagination/pagination.variable.css +54 -28
- package/lib/select/index.d.ts +67 -10
- package/lib/select/index.js +1 -1
- package/lib/select/select.css +69 -54
- package/lib/select/select.d.ts +22 -3
- package/lib/select/select.less +44 -29
- package/lib/select/select.variable.css +69 -54
- package/lib/select/selectTagInput.d.ts +12 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -0
- package/lib/styles/reset.variable.css +36 -0
- package/lib/table/table.css +59 -28
- package/lib/table/table.variable.css +59 -28
- package/lib/tree/tree.css +5 -0
- package/lib/tree/tree.variable.css +5 -0
- package/package.json +1 -1
package/lib/select/select.less
CHANGED
@@ -91,13 +91,13 @@
|
|
91
91
|
}
|
92
92
|
|
93
93
|
&.large {
|
94
|
-
.bk-select-content {
|
94
|
+
.bk-select-content-wrapper {
|
95
95
|
font-size: 14px;
|
96
96
|
}
|
97
97
|
}
|
98
98
|
|
99
99
|
&.is-focus.normal {
|
100
|
-
.bk-select-trigger .bk-select-tag {
|
100
|
+
.bk-select-trigger .bk-select-tag.bk-select-tag--default {
|
101
101
|
border-color: @primary-color;
|
102
102
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
103
103
|
}
|
@@ -125,45 +125,61 @@
|
|
125
125
|
}
|
126
126
|
|
127
127
|
&.is-disabled {
|
128
|
-
.bk-
|
128
|
+
.bk-input--text {
|
129
129
|
cursor: not-allowed;
|
130
130
|
background-color: #fafbfd;
|
131
131
|
}
|
132
132
|
}
|
133
133
|
|
134
|
-
.bk-
|
135
|
-
|
134
|
+
.bk-input {
|
135
|
+
&.is-focused {
|
136
|
+
.active();
|
136
137
|
|
137
|
-
|
138
|
-
|
138
|
+
&.is-simplicity {
|
139
|
+
border-color: transparent;
|
140
|
+
border-bottom-color: @primary-color;
|
141
|
+
box-shadow: none;
|
142
|
+
}
|
139
143
|
}
|
144
|
+
}
|
140
145
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
146
|
+
.bk-input--text {
|
147
|
+
.ellipsis();
|
148
|
+
padding-right: 24px;
|
149
|
+
cursor: pointer;
|
150
|
+
background-color: @white-color;
|
151
|
+
}
|
147
152
|
|
148
|
-
|
149
|
-
|
153
|
+
.bk-select-trigger {
|
154
|
+
position: relative;
|
150
155
|
|
151
|
-
|
152
|
-
|
153
|
-
border-bottom-color: @primary-color;
|
154
|
-
box-shadow: none;
|
155
|
-
}
|
156
|
-
}
|
156
|
+
.bk-tag-input .bk-tag-input-trigger .clear-icon {
|
157
|
+
margin-right: 0;
|
157
158
|
}
|
158
159
|
|
159
160
|
.bk-select-tag {
|
160
161
|
.input();
|
161
162
|
display: flex;
|
162
163
|
width: auto;
|
163
|
-
height: auto;
|
164
|
-
min-height: 32px;
|
165
164
|
align-items: center;
|
166
|
-
|
165
|
+
|
166
|
+
&.collapse-tag .bk-select-tag-wrapper {
|
167
|
+
height: 30px;
|
168
|
+
}
|
169
|
+
|
170
|
+
&:not(.collapse-tag) {
|
171
|
+
height: auto;
|
172
|
+
min-height: 32px;
|
173
|
+
flex-wrap: wrap;
|
174
|
+
}
|
175
|
+
|
176
|
+
&-wrapper {
|
177
|
+
display: flex;
|
178
|
+
align-items: center;
|
179
|
+
flex-wrap: wrap;
|
180
|
+
padding: 2px 0;
|
181
|
+
overflow: hidden;
|
182
|
+
}
|
167
183
|
|
168
184
|
&:not(.is-disabled):hover {
|
169
185
|
border-color: #979ba5;
|
@@ -172,6 +188,7 @@
|
|
172
188
|
&.is-disabled {
|
173
189
|
cursor: not-allowed;
|
174
190
|
background-color: #fafbfd;
|
191
|
+
border-color: #dcdee5;
|
175
192
|
|
176
193
|
input {
|
177
194
|
cursor: not-allowed;
|
@@ -192,15 +209,13 @@
|
|
192
209
|
|
193
210
|
&-input {
|
194
211
|
.input();
|
212
|
+
.ellipsis();
|
195
213
|
width: 1%;
|
196
214
|
height: 22px;
|
197
|
-
max-width: 190px;
|
198
215
|
padding: 0;
|
199
|
-
margin:
|
200
|
-
overflow: hidden;
|
216
|
+
margin: 2px 5px 4px 0;
|
201
217
|
background-color: transparent;
|
202
218
|
border: none;
|
203
|
-
outline: none;
|
204
219
|
flex-grow: 1;
|
205
220
|
}
|
206
221
|
|
@@ -245,7 +260,7 @@
|
|
245
260
|
border-radius: 2px;
|
246
261
|
box-shadow: 0 2px 6px 0 rgba(0,0,0,.10);
|
247
262
|
|
248
|
-
.bk-select-content {
|
263
|
+
.bk-select-content-wrapper {
|
249
264
|
.bk-select-empty {
|
250
265
|
.flex-center();
|
251
266
|
height: 56px;
|
@@ -144,10 +144,10 @@
|
|
144
144
|
font-weight: normal;
|
145
145
|
list-style: none;
|
146
146
|
}
|
147
|
-
.bk-select.large .bk-select-content {
|
147
|
+
.bk-select.large .bk-select-content-wrapper {
|
148
148
|
font-size: 14px;
|
149
149
|
}
|
150
|
-
.bk-select.is-focus.normal .bk-select-trigger .bk-select-tag {
|
150
|
+
.bk-select.is-focus.normal .bk-select-trigger .bk-select-tag.bk-select-tag--default {
|
151
151
|
border-color: var(--primary-color);
|
152
152
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
153
153
|
}
|
@@ -167,31 +167,34 @@
|
|
167
167
|
.bk-select.popover-show .bk-select-trigger .angle-up {
|
168
168
|
transform: rotate(0);
|
169
169
|
}
|
170
|
-
.bk-select.is-disabled .bk-
|
170
|
+
.bk-select.is-disabled .bk-input--text {
|
171
171
|
cursor: not-allowed;
|
172
172
|
background-color: #fafbfd;
|
173
173
|
}
|
174
|
-
.bk-select .bk-
|
175
|
-
position: relative;
|
176
|
-
}
|
177
|
-
.bk-select .bk-select-trigger .bk-tag-input .bk-tag-input-trigger .clear-icon {
|
178
|
-
margin-right: 0;
|
179
|
-
}
|
180
|
-
.bk-select .bk-select-trigger .bk-input input {
|
181
|
-
padding-right: 24px;
|
182
|
-
cursor: pointer;
|
183
|
-
background-color: var(--white-color);
|
184
|
-
}
|
185
|
-
.bk-select .bk-select-trigger .bk-input.is-focused {
|
174
|
+
.bk-select .bk-input.is-focused {
|
186
175
|
border-color: var(--primary-color);
|
187
176
|
outline: 0;
|
188
177
|
box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
|
189
178
|
}
|
190
|
-
.bk-select .bk-
|
179
|
+
.bk-select .bk-input.is-focused.is-simplicity {
|
191
180
|
border-color: transparent;
|
192
181
|
border-bottom-color: var(--primary-color);
|
193
182
|
box-shadow: none;
|
194
183
|
}
|
184
|
+
.bk-select .bk-input--text {
|
185
|
+
overflow: hidden;
|
186
|
+
text-overflow: ellipsis;
|
187
|
+
white-space: nowrap;
|
188
|
+
padding-right: 24px;
|
189
|
+
cursor: pointer;
|
190
|
+
background-color: var(--white-color);
|
191
|
+
}
|
192
|
+
.bk-select .bk-select-trigger {
|
193
|
+
position: relative;
|
194
|
+
}
|
195
|
+
.bk-select .bk-select-trigger .bk-tag-input .bk-tag-input-trigger .clear-icon {
|
196
|
+
margin-right: 0;
|
197
|
+
}
|
195
198
|
.bk-select .bk-select-trigger .bk-select-tag {
|
196
199
|
width: 100%;
|
197
200
|
height: 32px;
|
@@ -213,20 +216,33 @@
|
|
213
216
|
white-space: nowrap;
|
214
217
|
display: flex;
|
215
218
|
width: auto;
|
216
|
-
height: auto;
|
217
|
-
min-height: 32px;
|
218
219
|
align-items: center;
|
219
|
-
flex-wrap: wrap;
|
220
220
|
}
|
221
221
|
.bk-select .bk-select-trigger .bk-select-tag::placeholder {
|
222
222
|
color: var(--light-gray);
|
223
223
|
}
|
224
|
+
.bk-select .bk-select-trigger .bk-select-tag.collapse-tag .bk-select-tag-wrapper {
|
225
|
+
height: 30px;
|
226
|
+
}
|
227
|
+
.bk-select .bk-select-trigger .bk-select-tag:not(.collapse-tag) {
|
228
|
+
height: auto;
|
229
|
+
min-height: 32px;
|
230
|
+
flex-wrap: wrap;
|
231
|
+
}
|
232
|
+
.bk-select .bk-select-trigger .bk-select-tag-wrapper {
|
233
|
+
display: flex;
|
234
|
+
align-items: center;
|
235
|
+
flex-wrap: wrap;
|
236
|
+
padding: 2px 0;
|
237
|
+
overflow: hidden;
|
238
|
+
}
|
224
239
|
.bk-select .bk-select-trigger .bk-select-tag:not(.is-disabled):hover {
|
225
240
|
border-color: #979ba5;
|
226
241
|
}
|
227
242
|
.bk-select .bk-select-trigger .bk-select-tag.is-disabled {
|
228
243
|
cursor: not-allowed;
|
229
244
|
background-color: #fafbfd;
|
245
|
+
border-color: #dcdee5;
|
230
246
|
}
|
231
247
|
.bk-select .bk-select-trigger .bk-select-tag.is-disabled input {
|
232
248
|
cursor: not-allowed;
|
@@ -252,20 +268,19 @@
|
|
252
268
|
background-color: var(--white-color);
|
253
269
|
border: 1px solid var(--light-gray);
|
254
270
|
border-radius: 2px;
|
271
|
+
outline: none;
|
255
272
|
box-sizing: border-box;
|
256
273
|
transition: all 0.1s;
|
257
274
|
resize: none;
|
275
|
+
overflow: hidden;
|
258
276
|
text-overflow: ellipsis;
|
259
277
|
white-space: nowrap;
|
260
278
|
width: 1%;
|
261
279
|
height: 22px;
|
262
|
-
max-width: 190px;
|
263
280
|
padding: 0;
|
264
|
-
margin:
|
265
|
-
overflow: hidden;
|
281
|
+
margin: 2px 5px 4px 0;
|
266
282
|
background-color: transparent;
|
267
283
|
border: none;
|
268
|
-
outline: none;
|
269
284
|
flex-grow: 1;
|
270
285
|
}
|
271
286
|
.bk-select .bk-select-trigger .bk-select-tag-input::placeholder {
|
@@ -325,14 +340,14 @@
|
|
325
340
|
border-radius: 2px;
|
326
341
|
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
|
327
342
|
}
|
328
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-empty {
|
343
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-empty {
|
329
344
|
display: flex;
|
330
345
|
align-items: center;
|
331
346
|
justify-content: center;
|
332
347
|
height: 56px;
|
333
348
|
color: #63656e;
|
334
349
|
}
|
335
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-empty .spinner {
|
350
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-empty .spinner {
|
336
351
|
display: flex;
|
337
352
|
width: 14px;
|
338
353
|
height: 14px;
|
@@ -342,14 +357,14 @@
|
|
342
357
|
align-items: center;
|
343
358
|
justify-content: center;
|
344
359
|
}
|
345
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-empty span {
|
360
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-empty span {
|
346
361
|
margin-left: 4px;
|
347
362
|
line-height: 18px;
|
348
363
|
}
|
349
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-dropdown {
|
364
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-dropdown {
|
350
365
|
overflow: auto;
|
351
366
|
}
|
352
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-extension {
|
367
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-extension {
|
353
368
|
display: flex;
|
354
369
|
height: 40px;
|
355
370
|
background-color: #fafbfd;
|
@@ -357,10 +372,10 @@
|
|
357
372
|
border-top: 1px solid #dcdee5;
|
358
373
|
border-radius: 0 0 2px 2px;
|
359
374
|
}
|
360
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-options {
|
375
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-options {
|
361
376
|
padding: 4px 0;
|
362
377
|
}
|
363
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option {
|
378
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option {
|
364
379
|
position: relative;
|
365
380
|
height: 32px;
|
366
381
|
padding: 0 12px;
|
@@ -373,76 +388,76 @@
|
|
373
388
|
text-overflow: ellipsis;
|
374
389
|
white-space: nowrap;
|
375
390
|
}
|
376
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option .bk-select-selected-icon {
|
391
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option .bk-select-selected-icon {
|
377
392
|
position: absolute;
|
378
393
|
right: 10px;
|
379
394
|
}
|
380
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option-item {
|
395
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option-item {
|
381
396
|
overflow: hidden;
|
382
397
|
text-overflow: ellipsis;
|
383
398
|
white-space: nowrap;
|
384
399
|
}
|
385
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-hover {
|
400
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-hover {
|
386
401
|
color: #3a84ff;
|
387
402
|
background-color: #f5f7fa;
|
388
403
|
}
|
389
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option:hover {
|
404
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option:hover {
|
390
405
|
color: #63656e;
|
391
406
|
background-color: #f5f7fa;
|
392
407
|
}
|
393
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-selected {
|
408
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-selected {
|
394
409
|
color: #3a84ff;
|
395
410
|
background-color: #e1ecff;
|
396
411
|
}
|
397
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-disabled {
|
412
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-disabled {
|
398
413
|
color: #c4c6cc;
|
399
414
|
cursor: not-allowed;
|
400
415
|
background-color: transparent;
|
401
416
|
}
|
402
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-multiple {
|
417
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-multiple {
|
403
418
|
padding-right: 32px;
|
404
419
|
}
|
405
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-multiple.is-selected {
|
420
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-multiple.is-selected {
|
406
421
|
background-color: #fff;
|
407
422
|
}
|
408
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-multiple.is-hover {
|
423
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-multiple.is-hover {
|
409
424
|
background-color: #f5f7fa;
|
410
425
|
}
|
411
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-option.is-multiple:hover {
|
426
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option.is-multiple:hover {
|
412
427
|
background-color: #f5f7fa;
|
413
428
|
}
|
414
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-options-loading {
|
429
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-options-loading {
|
415
430
|
display: flex;
|
416
431
|
align-items: center;
|
417
432
|
justify-content: center;
|
418
433
|
}
|
419
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-options-loading span {
|
434
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-options-loading span {
|
420
435
|
margin-left: 4px;
|
421
436
|
line-height: 18px;
|
422
437
|
}
|
423
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group-label {
|
438
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-option-group-label {
|
424
439
|
height: 32px;
|
425
440
|
padding: 0 8px;
|
426
441
|
line-height: 32px;
|
427
442
|
color: #979ba5;
|
428
443
|
text-align: left;
|
429
444
|
}
|
430
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group-label.collapsible {
|
445
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-option-group-label.collapsible {
|
431
446
|
cursor: pointer;
|
432
447
|
}
|
433
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group.collapsible .bk-select-option {
|
448
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-option-group.collapsible .bk-select-option {
|
434
449
|
padding-left: 40px;
|
435
450
|
}
|
436
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group.disabled .default-group-label {
|
451
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-option-group.disabled .default-group-label {
|
437
452
|
color: #c4c6cc;
|
438
453
|
cursor: not-allowed;
|
439
454
|
}
|
440
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .default-group-label {
|
455
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-option-group .default-group-label {
|
441
456
|
display: flex;
|
442
457
|
user-select: none;
|
443
458
|
align-items: center;
|
444
459
|
}
|
445
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .default-group-label-icon {
|
460
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-option-group .default-group-label-icon {
|
446
461
|
display: flex;
|
447
462
|
width: 12px;
|
448
463
|
height: 12px;
|
@@ -451,24 +466,24 @@
|
|
451
466
|
align-items: center;
|
452
467
|
justify-content: center;
|
453
468
|
}
|
454
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .default-group-label-icon.collapse {
|
469
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-option-group .default-group-label-icon.collapse {
|
455
470
|
transform: rotate(-90deg);
|
456
471
|
}
|
457
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-option-group .bk-select-option {
|
472
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-option-group .bk-select-option {
|
458
473
|
padding-left: 24px;
|
459
474
|
}
|
460
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-search-wrapper {
|
475
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper {
|
461
476
|
display: flex;
|
462
477
|
margin: 4px 8px 0 8px;
|
463
478
|
margin-top: 4px;
|
464
479
|
border-bottom: 1px solid var(--input-block-hover-color);
|
465
480
|
align-items: center;
|
466
481
|
}
|
467
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-search-wrapper .icon-search {
|
482
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .icon-search {
|
468
483
|
margin-left: 2px;
|
469
484
|
color: var(--gray-color);
|
470
485
|
}
|
471
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-search-wrapper .bk-select-search-input {
|
486
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .bk-select-search-input {
|
472
487
|
width: 100%;
|
473
488
|
height: 32px;
|
474
489
|
padding: 0 28px 0 10px;
|
@@ -491,6 +506,6 @@
|
|
491
506
|
cursor: text;
|
492
507
|
border: none;
|
493
508
|
}
|
494
|
-
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content .bk-select-search-wrapper .bk-select-search-input::placeholder {
|
509
|
+
.bk-popover2.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-search-wrapper .bk-select-search-input::placeholder {
|
495
510
|
color: var(--light-gray);
|
496
511
|
}
|
@@ -29,7 +29,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
default: boolean;
|
30
30
|
};
|
31
31
|
modelValue: import("vue-types/dist/types").VueTypeValidableDef<any>;
|
32
|
+
collapseTags: import("vue-types/dist/types").VueTypeValidableDef<boolean> & {
|
33
|
+
default: boolean;
|
34
|
+
} & {
|
35
|
+
default: boolean;
|
36
|
+
};
|
32
37
|
}, {
|
38
|
+
overflowTagIndex: import("vue").Ref<number>;
|
33
39
|
value: any;
|
34
40
|
inputRef: import("vue").Ref<HTMLElement>;
|
35
41
|
handleRemoveTag: (val: string) => void;
|
@@ -65,6 +71,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
65
71
|
default: boolean;
|
66
72
|
};
|
67
73
|
modelValue: import("vue-types/dist/types").VueTypeValidableDef<any>;
|
74
|
+
collapseTags: import("vue-types/dist/types").VueTypeValidableDef<boolean> & {
|
75
|
+
default: boolean;
|
76
|
+
} & {
|
77
|
+
default: boolean;
|
78
|
+
};
|
68
79
|
}>> & {
|
69
80
|
onEnter?: (...args: any[]) => any;
|
70
81
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -76,5 +87,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
87
|
tagTheme: string;
|
77
88
|
filterable: boolean;
|
78
89
|
allowCreate: boolean;
|
90
|
+
collapseTags: boolean;
|
79
91
|
}>;
|
80
92
|
export default _default;
|
package/lib/sideslider/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../button"),require("../modal")):e(t["../shared"],t.vue,t["../button"],t["../modal"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r,n)=>(()=>{var o={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?p:h,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=m.prototype=y.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},4976:t=>{"use strict";t.exports=r},8014:t=>{"use strict";t.exports=n},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return o[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{"use strict";a.r(c),a.d(c,{default:()=>d});var t=a(4212),e=a(748),r=a(7162),n=a.n(r);Object.create,Object.create;var o=a(4976),i=a.n(o),u=a(8014),s=a.n(u),l=s().propsMixin,f=Object.assign({},l);f.width.default="400",f.height.default="100%";const h=(0,e.defineComponent)({name:"Sideslider",components:{BkModal:s(),BkButton:i()},props:Object.assign(Object.assign({},f),{direction:{type:String,default:"right",validator:function(t){var e=["left","right"];return!(e.indexOf(t)<0&&(console.error("direction property is not valid: '".concat(t,"',【").concat(e.join(" | "),"】")),1))}}}),emits:["closed","update:isShow","shown","hidden","animation-end"],setup:function(t,r){var o=this,i=r.slots,a=r.emit,c=function(){return e=o,r=void 0,i=void 0,c=n().mark((function e(){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!0,"function"!=typeof t.beforeClose){e.next=5;break}return e.next=4,t.beforeClose();case 4:r=e.sent;case 5:r&&(a("update:isShow",!1),a("closed"),setTimeout((function(){a("animation-end")}),250));case 6:case"end":return e.stop()}}),e)})),new(i||(i=Promise))((function(t,n){function o(t){try{u(c.next(t))}catch(t){n(t)}}function a(t){try{u(c.throw(t))}catch(t){n(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,a)}u((c=c.apply(e,r||[])).next())}));var e,r,i,c},u=function(){setTimeout((function(){a("shown")}),200)},l=function(){setTimeout((function(){a("hidden")}),200)};return function(){var r,n={header:function(){var r,n;return(0,e.createVNode)(e.Fragment,null,[(0,e.createVNode)("div",{class:"bk-sideslider-header"},[(0,e.createVNode)("div",{class:"bk-sideslider-close ".concat(t.direction),onClick:function(){c()}},null),(0,e.createVNode)("div",{class:"bk-sideslider-title ".concat(t.direction)},[null!==(n=null===(r=i.header)||void 0===r?void 0:r.call(i))&&void 0!==n?n:t.title])])])},default:function(){var t,e;return null!==(e=null===(t=i.default)||void 0===t?void 0:t.call(i))&&void 0!==e?e:"Content"},footer:function(){var t,r;return(0,e.createVNode)("div",{class:"bk-sideslider-footer"},[null!==(r=null===(t=i.footer)||void 0===t?void 0:t.call(i))&&void 0!==r?r:""])}},o="bk-sideslider-wrapper ".concat(t.scrollable?"scroll-able":""," ").concat(t.extCls),a=i.footer?"calc(100vh - 106px)":"calc(100vh - 52px)";return(0,e.createVNode)(s(),(0,e.mergeProps)(t,{maxHeight:a,class:o,style:"".concat(t.direction,": 0;"),onHidden:l,onShown:u,onClose:c}),"function"==typeof(r=n)||"[object Object]"===Object.prototype.toString.call(r)&&!(0,e.isVNode)(r)?n:{default:function(){return[n]}})}}}),d=(0,t.withInstall)(h)})(),c})()));
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../button"),require("../modal")):e(t["../shared"],t.vue,t["../button"],t["../modal"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r,n)=>(()=>{var o={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?p:h,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=m.prototype=y.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},4976:t=>{"use strict";t.exports=r},8014:t=>{"use strict";t.exports=n},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return o[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{"use strict";a.r(c),a.d(c,{default:()=>d});var t=a(4212),e=a(748),r=a(7162),n=a.n(r);Object.create,Object.create;var o=a(4976),i=a.n(o),u=a(8014),s=a.n(u),l=s().propsMixin,f=Object.assign({},l);f.width.default="400",f.height.default="100%";const h=(0,e.defineComponent)({name:"Sideslider",components:{BkModal:s(),BkButton:i()},props:Object.assign(Object.assign({},f),{direction:{type:String,default:"right",validator:function(t){var e=["left","right"];return!(e.indexOf(t)<0&&(console.error("direction property is not valid: '".concat(t,"',【").concat(e.join(" | "),"】")),1))}}}),emits:["closed","update:isShow","shown","hidden","animation-end"],setup:function(t,r){var o=this,i=r.slots,a=r.emit,c=function(){return e=o,r=void 0,i=void 0,c=n().mark((function e(){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!0,"function"!=typeof t.beforeClose){e.next=5;break}return e.next=4,t.beforeClose();case 4:r=e.sent;case 5:r&&(a("update:isShow",!1),a("closed"),setTimeout((function(){a("animation-end")}),250));case 6:case"end":return e.stop()}}),e)})),new(i||(i=Promise))((function(t,n){function o(t){try{u(c.next(t))}catch(t){n(t)}}function a(t){try{u(c.throw(t))}catch(t){n(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,a)}u((c=c.apply(e,r||[])).next())}));var e,r,i,c},u=function(){setTimeout((function(){a("shown")}),200)},l=function(){setTimeout((function(){a("hidden")}),200)};return function(){var r,n={header:function(){var r,n;return(0,e.createVNode)(e.Fragment,null,[(0,e.createVNode)("div",{class:"bk-sideslider-header"},[(0,e.createVNode)("div",{class:"bk-sideslider-close ".concat(t.direction),onClick:function(){c()}},null),(0,e.createVNode)("div",{class:"bk-sideslider-title ".concat(t.direction)},[null!==(n=null===(r=i.header)||void 0===r?void 0:r.call(i))&&void 0!==n?n:t.title])])])},default:function(){var t,e;return null!==(e=null===(t=i.default)||void 0===t?void 0:t.call(i))&&void 0!==e?e:"Content"},footer:function(){return i.footer?(0,e.createVNode)("div",{class:"bk-sideslider-footer"},[i.footer()]):null}},o="bk-sideslider-wrapper ".concat(t.scrollable?"scroll-able":""," ").concat(t.extCls),a=i.footer?"calc(100vh - 106px)":"calc(100vh - 52px)";return(0,e.createVNode)(s(),(0,e.mergeProps)(t,{maxHeight:a,class:o,style:"".concat(t.direction,": 0;"),onHidden:l,onShown:u,onClose:c}),"function"==typeof(r=n)||"[object Object]"===Object.prototype.toString.call(r)&&!(0,e.isVNode)(r)?n:{default:function(){return[n]}})}}}),d=(0,t.withInstall)(h)})(),c})()));
|
package/lib/styles/reset.css
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
.scroll-bar-style::-webkit-scrollbar {
|
2
|
+
width: 4px;
|
3
|
+
height: 4px;
|
4
|
+
}
|
5
|
+
.scroll-bar-style::-webkit-scrollbar-thumb {
|
6
|
+
background: #ddd;
|
7
|
+
border-radius: 20px;
|
8
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
9
|
+
}
|
1
10
|
html,
|
2
11
|
body {
|
3
12
|
padding: 0;
|
@@ -271,3 +280,30 @@ textarea {
|
|
271
280
|
optgroup {
|
272
281
|
font-weight: bold;
|
273
282
|
}
|
283
|
+
/**
|
284
|
+
* BK-Scroll-Style
|
285
|
+
*/
|
286
|
+
.bk-scroll-y {
|
287
|
+
overflow-y: auto;
|
288
|
+
}
|
289
|
+
.bk-scroll-y::-webkit-scrollbar {
|
290
|
+
width: 4px;
|
291
|
+
height: 4px;
|
292
|
+
}
|
293
|
+
.bk-scroll-y::-webkit-scrollbar-thumb {
|
294
|
+
background: #ddd;
|
295
|
+
border-radius: 20px;
|
296
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
297
|
+
}
|
298
|
+
.bk-scroll-x {
|
299
|
+
overflow-x: auto;
|
300
|
+
}
|
301
|
+
.bk-scroll-x::-webkit-scrollbar {
|
302
|
+
width: 4px;
|
303
|
+
height: 4px;
|
304
|
+
}
|
305
|
+
.bk-scroll-x::-webkit-scrollbar-thumb {
|
306
|
+
background: #ddd;
|
307
|
+
border-radius: 20px;
|
308
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
309
|
+
}
|
package/lib/styles/reset.less
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
.scroll-bar-style {
|
2
|
+
&::-webkit-scrollbar {
|
3
|
+
width: 4px;
|
4
|
+
height: 4px;
|
5
|
+
}
|
6
|
+
|
7
|
+
&::-webkit-scrollbar-thumb {
|
8
|
+
background: #ddd;
|
9
|
+
border-radius: 20px;
|
10
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
1
14
|
html,
|
2
15
|
body {
|
3
16
|
padding: 0;
|
@@ -311,3 +324,16 @@ textarea {
|
|
311
324
|
optgroup {
|
312
325
|
font-weight: bold;
|
313
326
|
}
|
327
|
+
|
328
|
+
/**
|
329
|
+
* BK-Scroll-Style
|
330
|
+
*/
|
331
|
+
.bk-scroll-y {
|
332
|
+
overflow-y: auto;
|
333
|
+
.scroll-bar-style();
|
334
|
+
}
|
335
|
+
|
336
|
+
.bk-scroll-x {
|
337
|
+
overflow-x: auto;
|
338
|
+
.scroll-bar-style();
|
339
|
+
}
|
@@ -1,3 +1,12 @@
|
|
1
|
+
.scroll-bar-style::-webkit-scrollbar {
|
2
|
+
width: 4px;
|
3
|
+
height: 4px;
|
4
|
+
}
|
5
|
+
.scroll-bar-style::-webkit-scrollbar-thumb {
|
6
|
+
background: #ddd;
|
7
|
+
border-radius: 20px;
|
8
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
9
|
+
}
|
1
10
|
html,
|
2
11
|
body {
|
3
12
|
padding: 0;
|
@@ -271,3 +280,30 @@ textarea {
|
|
271
280
|
optgroup {
|
272
281
|
font-weight: bold;
|
273
282
|
}
|
283
|
+
/**
|
284
|
+
* BK-Scroll-Style
|
285
|
+
*/
|
286
|
+
.bk-scroll-y {
|
287
|
+
overflow-y: auto;
|
288
|
+
}
|
289
|
+
.bk-scroll-y::-webkit-scrollbar {
|
290
|
+
width: 4px;
|
291
|
+
height: 4px;
|
292
|
+
}
|
293
|
+
.bk-scroll-y::-webkit-scrollbar-thumb {
|
294
|
+
background: #ddd;
|
295
|
+
border-radius: 20px;
|
296
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
297
|
+
}
|
298
|
+
.bk-scroll-x {
|
299
|
+
overflow-x: auto;
|
300
|
+
}
|
301
|
+
.bk-scroll-x::-webkit-scrollbar {
|
302
|
+
width: 4px;
|
303
|
+
height: 4px;
|
304
|
+
}
|
305
|
+
.bk-scroll-x::-webkit-scrollbar-thumb {
|
306
|
+
background: #ddd;
|
307
|
+
border-radius: 20px;
|
308
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
309
|
+
}
|