@kizmann/nano-ui 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- package/demos/overview.html +4 -1
- package/demos/select.html +164 -0
- package/dist/nano-ui.css +1 -1
- package/dist/nano-ui.js +2 -2
- package/dist/nano-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/popover/src/popover/popover.scss +4 -0
- package/src/scrollbar/src/scrollbar/scrollbar.next.js +21 -1
- package/src/select/src/select/select.js +191 -78
- package/src/select/src/select/select.scss +4 -0
- package/src/select/src/select-option/select-option.js +6 -2
- package/src/virtualscroller/src/virtualscroller/virtualscroller.beta.js +12 -2
@@ -192,7 +192,12 @@ export default {
|
|
192
192
|
this.$refs.scrollbar.scrollIntoView(selector);
|
193
193
|
},
|
194
194
|
|
195
|
-
scrollToIndex(index)
|
195
|
+
scrollToIndex(index, delay = 0)
|
196
|
+
{
|
197
|
+
Any.delay(() => this.onScrollToIndex(index), delay);
|
198
|
+
},
|
199
|
+
|
200
|
+
onScrollToIndex(index)
|
196
201
|
{
|
197
202
|
if ( ! this.$refs.scrollbar ) {
|
198
203
|
return;
|
@@ -219,7 +224,12 @@ export default {
|
|
219
224
|
this.scrollTo(0, targetTop);
|
220
225
|
},
|
221
226
|
|
222
|
-
scrollTo(x = 0, y = 0)
|
227
|
+
scrollTo(x = 0, y = 0, delay = 0)
|
228
|
+
{
|
229
|
+
Any.delay(() => this.onScrollTo(x, y), delay);
|
230
|
+
},
|
231
|
+
|
232
|
+
onScrollTo(x = 0, y = 0)
|
223
233
|
{
|
224
234
|
if ( ! this.$refs.scrollbar ) {
|
225
235
|
return;
|