@kizmann/nano-ui 0.9.0 → 0.9.2
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 +200 -79
- package/src/select/src/select/select.scss +8 -0
- package/src/select/src/select-option/select-option.js +6 -2
- package/src/virtualscroller/src/virtualscroller/virtualscroller.beta.js +12 -2
@@ -78,12 +78,16 @@ export default {
|
|
78
78
|
|
79
79
|
mounted()
|
80
80
|
{
|
81
|
-
this.NSelect.
|
81
|
+
if ( ! this.NSelect.lazy ) {
|
82
|
+
this.NSelect.addOption(this);
|
83
|
+
}
|
82
84
|
},
|
83
85
|
|
84
86
|
beforeUnmount()
|
85
87
|
{
|
86
|
-
this.NSelect.
|
88
|
+
if ( ! this.NSelect.lazy ) {
|
89
|
+
this.NSelect.removeOption(this);
|
90
|
+
}
|
87
91
|
},
|
88
92
|
|
89
93
|
methods: {
|
@@ -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;
|