bkui-vue 2.0.1-beta.40 → 2.0.1-beta.42
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 +63 -63
- package/dist/index.esm.js +16459 -16370
- package/dist/index.umd.js +63 -63
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/index.js +2 -1
- package/lib/index.js +1 -1
- package/lib/scrollbar/{scrollbar.css → css/scrollbar.css} +90 -75
- package/lib/scrollbar/css/scrollbar.less +139 -0
- package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +89 -74
- package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
- package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
- package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
- package/lib/scrollbar/handlers/touch.d.ts +4 -0
- package/lib/scrollbar/helper/class-names.d.ts +21 -0
- package/lib/scrollbar/helper/css.d.ts +3 -0
- package/lib/scrollbar/helper/dom.d.ts +4 -0
- package/lib/scrollbar/helper/event-manager.d.ts +20 -0
- package/lib/scrollbar/helper/util.d.ts +11 -0
- package/lib/scrollbar/index.d.ts +133 -13
- package/lib/scrollbar/index.js +1331 -18489
- package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
- package/lib/scrollbar/update-geometry.d.ts +8 -0
- package/lib/search-select/index.d.ts +12 -6
- package/lib/search-select/index.js +33 -10
- package/lib/search-select/input.d.ts +2 -1
- package/lib/search-select/search-select.d.ts +4 -2
- package/lib/search-select/selected.d.ts +4 -2
- package/lib/styles/index.d.ts +1 -0
- package/lib/table/components/table-cell.d.ts +11 -0
- package/lib/table/hooks/use-columns.d.ts +4 -1
- package/lib/table/hooks/use-layout.d.ts +1 -0
- package/lib/table/hooks/use-settings.d.ts +2 -2
- package/lib/table/index.d.ts +23 -0
- package/lib/table/index.js +233 -77
- package/lib/table/props.d.ts +9 -1
- package/lib/table/table.css +126 -109
- package/lib/table/table.d.ts +11 -0
- package/lib/table/table.less +49 -30
- package/lib/table/table.variable.css +126 -109
- package/lib/table/utils.d.ts +15 -15
- package/lib/table-column/index.js +8 -0
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/tree.css +90 -83
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +90 -83
- package/lib/virtual-render/index.d.ts +0 -23
- package/lib/virtual-render/index.js +54 -106
- package/lib/virtual-render/props.d.ts +0 -6
- package/lib/virtual-render/use-scrollbar.d.ts +3 -17
- package/lib/virtual-render/virtual-render.css +89 -82
- package/lib/virtual-render/virtual-render.d.ts +0 -11
- package/lib/virtual-render/virtual-render.less +2 -11
- package/lib/virtual-render/virtual-render.variable.css +89 -82
- package/package.json +1 -1
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -242
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.less +0 -119
package/lib/checkbox/index.js
CHANGED
@@ -285,7 +285,8 @@ var useCheckbox = function useCheckbox() {
|
|
285
285
|
} else {
|
286
286
|
return Promise.reject();
|
287
287
|
}
|
288
|
-
})["catch"](function () {
|
288
|
+
})["catch"](function (err) {
|
289
|
+
console.error(err);
|
289
290
|
$targetInput.checked = isChecked.value;
|
290
291
|
})["finally"](function () {
|
291
292
|
isPrechecking.value = false;
|
package/lib/index.js
CHANGED
@@ -128,97 +128,112 @@
|
|
128
128
|
--select-active-color: #e1ecff;
|
129
129
|
--select-hover-color: #f5f7fa;
|
130
130
|
}
|
131
|
-
.bk-scrollbar
|
132
|
-
|
133
|
-
overflow:
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
131
|
+
.bk-scrollbar {
|
132
|
+
overflow: hidden !important;
|
133
|
+
overflow-anchor: none;
|
134
|
+
touch-action: auto;
|
135
|
+
/*
|
136
|
+
* Scrollbar rail styles
|
137
|
+
*/
|
138
|
+
/*
|
139
|
+
* Scrollbar thumb styles
|
140
|
+
*/
|
141
|
+
}
|
142
|
+
.bk-scrollbar.bk--active-x > .bk__rail-x,
|
143
|
+
.bk-scrollbar.bk--active-y > .bk__rail-y {
|
144
|
+
display: block;
|
145
|
+
}
|
146
|
+
.bk-scrollbar .bk__rail-x:hover,
|
147
|
+
.bk-scrollbar .bk__rail-y:hover,
|
148
|
+
.bk-scrollbar .bk__rail-x:focus,
|
149
|
+
.bk-scrollbar .bk__rail-y:focus,
|
150
|
+
.bk-scrollbar .bk__rail-x.bk--clicking,
|
151
|
+
.bk-scrollbar .bk__rail-y.bk--clicking {
|
152
|
+
background-color: #f0f1f5;
|
139
153
|
}
|
140
|
-
.bk-scrollbar
|
141
|
-
|
154
|
+
.bk-scrollbar .bk__rail-x {
|
155
|
+
display: none;
|
156
|
+
opacity: 0;
|
157
|
+
transition: background-color 0.2s linear, opacity 0.2s linear;
|
158
|
+
height: 10px;
|
159
|
+
bottom: 0px;
|
142
160
|
position: absolute;
|
143
|
-
right: 0;
|
144
|
-
bottom: 0;
|
145
|
-
pointer-events: none;
|
146
|
-
overflow: hidden;
|
147
161
|
}
|
148
|
-
.bk-scrollbar
|
149
|
-
|
162
|
+
.bk-scrollbar .bk__rail-x.bk-size-small {
|
163
|
+
height: 8px;
|
164
|
+
}
|
165
|
+
.bk-scrollbar .bk__rail-x.bk-size-small .bk__thumb-x {
|
166
|
+
height: 6px;
|
150
167
|
}
|
151
|
-
.bk-scrollbar
|
168
|
+
.bk-scrollbar .bk__rail-y {
|
169
|
+
display: none;
|
170
|
+
opacity: 0;
|
171
|
+
transition: background-color 0.2s linear, opacity 0.2s linear;
|
172
|
+
width: 10px;
|
173
|
+
right: 0px;
|
174
|
+
position: absolute;
|
175
|
+
margin-right: 2px;
|
176
|
+
}
|
177
|
+
.bk-scrollbar .bk__rail-y.bk-size-small {
|
152
178
|
width: 8px;
|
153
179
|
}
|
154
|
-
.bk-scrollbar
|
155
|
-
|
180
|
+
.bk-scrollbar .bk__rail-y.bk-size-small .bk__thumb-y {
|
181
|
+
width: 6px;
|
182
|
+
}
|
183
|
+
.bk-scrollbar:hover > .bk__rail-x,
|
184
|
+
.bk-scrollbar:hover > .bk__rail-y,
|
185
|
+
.bk-scrollbar.bk--focus > .bk__rail-x,
|
186
|
+
.bk-scrollbar.bk--focus > .bk__rail-y,
|
187
|
+
.bk-scrollbar.bk--scrolling-x > .bk__rail-x,
|
188
|
+
.bk-scrollbar.bk--scrolling-y > .bk__rail-y {
|
189
|
+
opacity: 0.9;
|
156
190
|
}
|
157
|
-
.bk-scrollbar
|
191
|
+
.bk-scrollbar .bk__thumb-x {
|
192
|
+
background-color: #dcdee5;
|
193
|
+
border-radius: 8px;
|
194
|
+
transition: background-color 0.2s linear, height 0.2s ease-in-out;
|
158
195
|
height: 8px;
|
196
|
+
bottom: 0px;
|
197
|
+
position: absolute;
|
159
198
|
}
|
160
|
-
.bk-scrollbar
|
161
|
-
background-color: #
|
162
|
-
|
199
|
+
.bk-scrollbar .bk__thumb-y {
|
200
|
+
background-color: #dcdee5;
|
201
|
+
border-radius: 8px;
|
202
|
+
transition: background-color 0.2s linear, width 0.2s ease-in-out;
|
203
|
+
width: 8px;
|
204
|
+
right: 0px;
|
205
|
+
position: absolute;
|
163
206
|
}
|
164
|
-
.bk-scrollbar
|
207
|
+
.bk-scrollbar .bk__rail-x:hover > .bk__thumb-x,
|
208
|
+
.bk-scrollbar .bk__rail-x:focus > .bk__thumb-x,
|
209
|
+
.bk-scrollbar .bk__rail-x.bk--clicking .bk__thumb-x {
|
165
210
|
background-color: #979ba5;
|
211
|
+
height: 10px;
|
166
212
|
}
|
167
|
-
.bk-scrollbar
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
}
|
172
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical.bk-scrollbar-hover {
|
213
|
+
.bk-scrollbar .bk__rail-y:hover > .bk__thumb-y,
|
214
|
+
.bk-scrollbar .bk__rail-y:focus > .bk__thumb-y,
|
215
|
+
.bk-scrollbar .bk__rail-y.bk--clicking .bk__thumb-y {
|
216
|
+
background-color: #979ba5;
|
173
217
|
width: 10px;
|
174
218
|
}
|
175
|
-
.bk-scrollbar
|
176
|
-
|
219
|
+
.bk-scrollbar .bk-size-small > .bk__thumb-x,
|
220
|
+
.bk-scrollbar .bk-size-small > .bk__thumb-x,
|
221
|
+
.bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-x {
|
177
222
|
height: 8px;
|
178
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
179
223
|
}
|
180
|
-
.bk-scrollbar
|
181
|
-
|
224
|
+
.bk-scrollbar .bk-size-small:hover > .bk__thumb-y,
|
225
|
+
.bk-scrollbar .bk-size-small:focus > .bk__thumb-y,
|
226
|
+
.bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-y {
|
227
|
+
width: 8px;
|
182
228
|
}
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
min-height: 0;
|
189
|
-
min-width: 8px;
|
190
|
-
width: auto;
|
191
|
-
}
|
192
|
-
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
193
|
-
pointer-events: none;
|
194
|
-
-webkit-touch-callout: none;
|
195
|
-
-webkit-user-select: none;
|
196
|
-
-khtml-user-select: none;
|
197
|
-
-moz-user-select: none;
|
198
|
-
-ms-user-select: none;
|
199
|
-
user-select: none;
|
200
|
-
}
|
201
|
-
.bk-scrollbar-wrapper .bk-scrollbar {
|
202
|
-
position: absolute;
|
203
|
-
left: 0;
|
204
|
-
right: 0;
|
205
|
-
top: 0;
|
206
|
-
bottom: 0;
|
229
|
+
/* MS supports */
|
230
|
+
@supports (-ms-overflow-style: none) {
|
231
|
+
.bk-scrollbar {
|
232
|
+
overflow: auto !important;
|
233
|
+
}
|
207
234
|
}
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
border-radius: 6px;
|
213
|
-
left: 0;
|
214
|
-
right: 0;
|
215
|
-
top: 0;
|
216
|
-
bottom: 0;
|
217
|
-
opacity: 0;
|
218
|
-
transition: opacity 0.2s 0.9s linear;
|
219
|
-
}
|
220
|
-
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
221
|
-
opacity: 0.9;
|
222
|
-
transition-delay: 0s;
|
223
|
-
transition-duration: 0s;
|
235
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
236
|
+
.bk-scrollbar {
|
237
|
+
overflow: auto !important;
|
238
|
+
}
|
224
239
|
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
@import '../../styles/themes/themes.less';
|
2
|
+
|
3
|
+
.@{bk-prefix}-scrollbar {
|
4
|
+
overflow: hidden !important;
|
5
|
+
overflow-anchor: none;
|
6
|
+
touch-action: auto;
|
7
|
+
|
8
|
+
&.@{bk-prefix}--active-x > .@{bk-prefix}__rail-x,
|
9
|
+
&.@{bk-prefix}--active-y > .@{bk-prefix}__rail-y {
|
10
|
+
display: block;
|
11
|
+
}
|
12
|
+
|
13
|
+
.@{bk-prefix}__rail-x:hover,
|
14
|
+
.@{bk-prefix}__rail-y:hover,
|
15
|
+
.@{bk-prefix}__rail-x:focus,
|
16
|
+
.@{bk-prefix}__rail-y:focus,
|
17
|
+
.@{bk-prefix}__rail-x.@{bk-prefix}--clicking,
|
18
|
+
.@{bk-prefix}__rail-y.@{bk-prefix}--clicking {
|
19
|
+
background-color: #f0f1f5;
|
20
|
+
}
|
21
|
+
|
22
|
+
/*
|
23
|
+
* Scrollbar rail styles
|
24
|
+
*/
|
25
|
+
.@{bk-prefix}__rail-x {
|
26
|
+
display: none;
|
27
|
+
opacity: 0;
|
28
|
+
transition:
|
29
|
+
background-color 0.2s linear,
|
30
|
+
opacity 0.2s linear;
|
31
|
+
height: 10px;
|
32
|
+
bottom: 0px;
|
33
|
+
position: absolute;
|
34
|
+
// margin-bottom: 2px;
|
35
|
+
|
36
|
+
&.@{bk-prefix}-size-small {
|
37
|
+
height: 8px;
|
38
|
+
|
39
|
+
.@{bk-prefix}__thumb-x {
|
40
|
+
height: 6px;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.@{bk-prefix}__rail-y {
|
46
|
+
display: none;
|
47
|
+
opacity: 0;
|
48
|
+
transition:
|
49
|
+
background-color 0.2s linear,
|
50
|
+
opacity 0.2s linear;
|
51
|
+
width: 10px;
|
52
|
+
right: 0px;
|
53
|
+
position: absolute;
|
54
|
+
margin-right: 2px;
|
55
|
+
|
56
|
+
&.@{bk-prefix}-size-small {
|
57
|
+
width: 8px;
|
58
|
+
|
59
|
+
.@{bk-prefix}__thumb-y {
|
60
|
+
width: 6px;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
&:hover > .@{bk-prefix}__rail-x,
|
66
|
+
&:hover > .@{bk-prefix}__rail-y,
|
67
|
+
&.@{bk-prefix}--focus > .@{bk-prefix}__rail-x,
|
68
|
+
&.@{bk-prefix}--focus > .@{bk-prefix}__rail-y,
|
69
|
+
&.@{bk-prefix}--scrolling-x > .@{bk-prefix}__rail-x,
|
70
|
+
&.@{bk-prefix}--scrolling-y > .@{bk-prefix}__rail-y {
|
71
|
+
opacity: 0.9;
|
72
|
+
}
|
73
|
+
|
74
|
+
/*
|
75
|
+
* Scrollbar thumb styles
|
76
|
+
*/
|
77
|
+
.@{bk-prefix}__thumb-x {
|
78
|
+
background-color: #dcdee5;
|
79
|
+
border-radius: 8px;
|
80
|
+
transition:
|
81
|
+
background-color 0.2s linear,
|
82
|
+
height 0.2s ease-in-out;
|
83
|
+
height: 8px;
|
84
|
+
bottom: 0px;
|
85
|
+
position: absolute;
|
86
|
+
}
|
87
|
+
|
88
|
+
.@{bk-prefix}__thumb-y {
|
89
|
+
background-color: #dcdee5;
|
90
|
+
border-radius: 8px;
|
91
|
+
transition:
|
92
|
+
background-color 0.2s linear,
|
93
|
+
width 0.2s ease-in-out;
|
94
|
+
width: 8px;
|
95
|
+
right: 0px;
|
96
|
+
position: absolute;
|
97
|
+
}
|
98
|
+
|
99
|
+
.@{bk-prefix}__rail-x:hover > .@{bk-prefix}__thumb-x,
|
100
|
+
.@{bk-prefix}__rail-x:focus > .@{bk-prefix}__thumb-x,
|
101
|
+
.@{bk-prefix}__rail-x.@{bk-prefix}--clicking .@{bk-prefix}__thumb-x {
|
102
|
+
background-color: #979ba5;
|
103
|
+
height: 10px;
|
104
|
+
}
|
105
|
+
|
106
|
+
.@{bk-prefix}__rail-y:hover > .@{bk-prefix}__thumb-y,
|
107
|
+
.@{bk-prefix}__rail-y:focus > .@{bk-prefix}__thumb-y,
|
108
|
+
.@{bk-prefix}__rail-y.@{bk-prefix}--clicking .@{bk-prefix}__thumb-y {
|
109
|
+
background-color: #979ba5;
|
110
|
+
width: 10px;
|
111
|
+
}
|
112
|
+
|
113
|
+
.@{bk-prefix}-size-small {
|
114
|
+
> .@{bk-prefix}__thumb-x,
|
115
|
+
> .@{bk-prefix}__thumb-x,
|
116
|
+
&.@{bk-prefix}--clicking .@{bk-prefix}__thumb-x {
|
117
|
+
height: 8px;
|
118
|
+
}
|
119
|
+
|
120
|
+
&:hover > .@{bk-prefix}__thumb-y,
|
121
|
+
&:focus > .@{bk-prefix}__thumb-y,
|
122
|
+
&.@{bk-prefix}--clicking .@{bk-prefix}__thumb-y {
|
123
|
+
width: 8px;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
/* MS supports */
|
129
|
+
@supports (-ms-overflow-style: none) {
|
130
|
+
.@{bk-prefix}-scrollbar {
|
131
|
+
overflow: auto !important;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
136
|
+
.@{bk-prefix}-scrollbar {
|
137
|
+
overflow: auto !important;
|
138
|
+
}
|
139
|
+
}
|
@@ -388,97 +388,112 @@
|
|
388
388
|
--select-active-color: #e1ecff;
|
389
389
|
--select-hover-color: #f5f7fa;
|
390
390
|
}
|
391
|
-
.bk-scrollbar
|
392
|
-
|
393
|
-
overflow:
|
391
|
+
.bk-scrollbar {
|
392
|
+
overflow: hidden !important;
|
393
|
+
overflow-anchor: none;
|
394
|
+
touch-action: auto;
|
395
|
+
/*
|
396
|
+
* Scrollbar rail styles
|
397
|
+
*/
|
398
|
+
/*
|
399
|
+
* Scrollbar thumb styles
|
400
|
+
*/
|
394
401
|
}
|
395
|
-
.bk-scrollbar-
|
396
|
-
|
397
|
-
|
398
|
-
width: 100%;
|
402
|
+
.bk-scrollbar.bk--active-x > .bk__rail-x,
|
403
|
+
.bk-scrollbar.bk--active-y > .bk__rail-y {
|
404
|
+
display: block;
|
399
405
|
}
|
400
|
-
.bk-scrollbar
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
}
|
408
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical {
|
409
|
-
width: 6px;
|
410
|
-
}
|
411
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical.bk-scrollbar-hover {
|
412
|
-
width: 8px;
|
406
|
+
.bk-scrollbar .bk__rail-x:hover,
|
407
|
+
.bk-scrollbar .bk__rail-y:hover,
|
408
|
+
.bk-scrollbar .bk__rail-x:focus,
|
409
|
+
.bk-scrollbar .bk__rail-y:focus,
|
410
|
+
.bk-scrollbar .bk__rail-x.bk--clicking,
|
411
|
+
.bk-scrollbar .bk__rail-y.bk--clicking {
|
412
|
+
background-color: #f0f1f5;
|
413
413
|
}
|
414
|
-
.bk-scrollbar
|
415
|
-
|
414
|
+
.bk-scrollbar .bk__rail-x {
|
415
|
+
display: none;
|
416
|
+
opacity: 0;
|
417
|
+
transition: background-color 0.2s linear, opacity 0.2s linear;
|
418
|
+
height: 10px;
|
419
|
+
bottom: 0px;
|
420
|
+
position: absolute;
|
416
421
|
}
|
417
|
-
.bk-scrollbar
|
422
|
+
.bk-scrollbar .bk__rail-x.bk-size-small {
|
418
423
|
height: 8px;
|
419
424
|
}
|
420
|
-
.bk-scrollbar
|
421
|
-
|
422
|
-
cursor: pointer;
|
425
|
+
.bk-scrollbar .bk__rail-x.bk-size-small .bk__thumb-x {
|
426
|
+
height: 6px;
|
423
427
|
}
|
424
|
-
.bk-scrollbar
|
425
|
-
|
428
|
+
.bk-scrollbar .bk__rail-y {
|
429
|
+
display: none;
|
430
|
+
opacity: 0;
|
431
|
+
transition: background-color 0.2s linear, opacity 0.2s linear;
|
432
|
+
width: 10px;
|
433
|
+
right: 0px;
|
434
|
+
position: absolute;
|
435
|
+
margin-right: 2px;
|
426
436
|
}
|
427
|
-
.bk-scrollbar
|
428
|
-
top: 0;
|
437
|
+
.bk-scrollbar .bk__rail-y.bk-size-small {
|
429
438
|
width: 8px;
|
430
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
431
439
|
}
|
432
|
-
.bk-scrollbar
|
433
|
-
width:
|
440
|
+
.bk-scrollbar .bk__rail-y.bk-size-small .bk__thumb-y {
|
441
|
+
width: 6px;
|
442
|
+
}
|
443
|
+
.bk-scrollbar:hover > .bk__rail-x,
|
444
|
+
.bk-scrollbar:hover > .bk__rail-y,
|
445
|
+
.bk-scrollbar.bk--focus > .bk__rail-x,
|
446
|
+
.bk-scrollbar.bk--focus > .bk__rail-y,
|
447
|
+
.bk-scrollbar.bk--scrolling-x > .bk__rail-x,
|
448
|
+
.bk-scrollbar.bk--scrolling-y > .bk__rail-y {
|
449
|
+
opacity: 0.9;
|
434
450
|
}
|
435
|
-
.bk-scrollbar
|
436
|
-
|
451
|
+
.bk-scrollbar .bk__thumb-x {
|
452
|
+
background-color: #dcdee5;
|
453
|
+
border-radius: 8px;
|
454
|
+
transition: background-color 0.2s linear, height 0.2s ease-in-out;
|
437
455
|
height: 8px;
|
438
|
-
|
456
|
+
bottom: 0px;
|
457
|
+
position: absolute;
|
439
458
|
}
|
440
|
-
.bk-scrollbar
|
459
|
+
.bk-scrollbar .bk__thumb-y {
|
460
|
+
background-color: #dcdee5;
|
461
|
+
border-radius: 8px;
|
462
|
+
transition: background-color 0.2s linear, width 0.2s ease-in-out;
|
463
|
+
width: 8px;
|
464
|
+
right: 0px;
|
465
|
+
position: absolute;
|
466
|
+
}
|
467
|
+
.bk-scrollbar .bk__rail-x:hover > .bk__thumb-x,
|
468
|
+
.bk-scrollbar .bk__rail-x:focus > .bk__thumb-x,
|
469
|
+
.bk-scrollbar .bk__rail-x.bk--clicking .bk__thumb-x {
|
470
|
+
background-color: #979ba5;
|
441
471
|
height: 10px;
|
442
472
|
}
|
443
|
-
.bk-scrollbar
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
min-height: 0;
|
449
|
-
min-width: 8px;
|
450
|
-
width: auto;
|
473
|
+
.bk-scrollbar .bk__rail-y:hover > .bk__thumb-y,
|
474
|
+
.bk-scrollbar .bk__rail-y:focus > .bk__thumb-y,
|
475
|
+
.bk-scrollbar .bk__rail-y.bk--clicking .bk__thumb-y {
|
476
|
+
background-color: #979ba5;
|
477
|
+
width: 10px;
|
451
478
|
}
|
452
|
-
.bk-scrollbar
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
-khtml-user-select: none;
|
457
|
-
-moz-user-select: none;
|
458
|
-
-ms-user-select: none;
|
459
|
-
user-select: none;
|
479
|
+
.bk-scrollbar .bk-size-small > .bk__thumb-x,
|
480
|
+
.bk-scrollbar .bk-size-small > .bk__thumb-x,
|
481
|
+
.bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-x {
|
482
|
+
height: 8px;
|
460
483
|
}
|
461
|
-
.bk-scrollbar
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
top: 0;
|
466
|
-
bottom: 0;
|
484
|
+
.bk-scrollbar .bk-size-small:hover > .bk__thumb-y,
|
485
|
+
.bk-scrollbar .bk-size-small:focus > .bk__thumb-y,
|
486
|
+
.bk-scrollbar .bk-size-small.bk--clicking .bk__thumb-y {
|
487
|
+
width: 8px;
|
467
488
|
}
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
left: 0;
|
474
|
-
right: 0;
|
475
|
-
top: 0;
|
476
|
-
bottom: 0;
|
477
|
-
opacity: 0;
|
478
|
-
transition: opacity 0.2s 0.9s linear;
|
489
|
+
/* MS supports */
|
490
|
+
@supports (-ms-overflow-style: none) {
|
491
|
+
.bk-scrollbar {
|
492
|
+
overflow: auto !important;
|
493
|
+
}
|
479
494
|
}
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
495
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
496
|
+
.bk-scrollbar {
|
497
|
+
overflow: auto !important;
|
498
|
+
}
|
484
499
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export default function (i: any): void;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
declare class Cls {
|
2
|
+
main: string;
|
3
|
+
rtl: string;
|
4
|
+
element: {
|
5
|
+
thumb: (x: string) => string;
|
6
|
+
rail: (x: string) => string;
|
7
|
+
size: (size: string) => string;
|
8
|
+
consuming: string;
|
9
|
+
};
|
10
|
+
state: {
|
11
|
+
focus: string;
|
12
|
+
clicking: string;
|
13
|
+
active: (x: string) => string;
|
14
|
+
scrolling: (x: string) => string;
|
15
|
+
};
|
16
|
+
constructor(prefix?: string);
|
17
|
+
}
|
18
|
+
export default Cls;
|
19
|
+
export declare function addScrollingClass(i: any, x: any): void;
|
20
|
+
export declare function removeScrollingClass(i: any, x: any): void;
|
21
|
+
export declare function setScrollingClassInstantly(i: any, x: any): void;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { VirtualElement } from '..';
|
2
|
+
declare class EventElement {
|
3
|
+
element: Element | VirtualElement;
|
4
|
+
handlers: Record<string, ((...args: any[]) => void)[]>;
|
5
|
+
constructor(element: Element & VirtualElement);
|
6
|
+
bind(eventName: any, handler: any): void;
|
7
|
+
unbind(eventName: any, target?: any): void;
|
8
|
+
unbindAll(): void;
|
9
|
+
get isEmpty(): boolean;
|
10
|
+
}
|
11
|
+
export default class EventManager {
|
12
|
+
eventElements: EventElement[];
|
13
|
+
constructor();
|
14
|
+
eventElement(element: any): EventElement;
|
15
|
+
bind(element: any, eventName: any, handler: any): void;
|
16
|
+
unbind(element: any, eventName: any, handler: any): void;
|
17
|
+
unbindAll(): void;
|
18
|
+
once(element: any, eventName: any, handler: any): void;
|
19
|
+
}
|
20
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { VirtualElement } from '..';
|
2
|
+
export declare function toInt(x: any): number;
|
3
|
+
export declare function isEditable(el: any): boolean;
|
4
|
+
export declare function outerWidth(element: any): number;
|
5
|
+
export declare const env: {
|
6
|
+
isWebKit: boolean;
|
7
|
+
supportsTouch: boolean;
|
8
|
+
supportsIePointer: any;
|
9
|
+
isChrome: boolean;
|
10
|
+
};
|
11
|
+
export declare const getElement: (element: Partial<Element> | Partial<VirtualElement>) => Element;
|