@kizmann/nano-ui 0.9.0 → 0.9.2

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.
@@ -78,12 +78,16 @@ export default {
78
78
 
79
79
  mounted()
80
80
  {
81
- this.NSelect.addOption(this);
81
+ if ( ! this.NSelect.lazy ) {
82
+ this.NSelect.addOption(this);
83
+ }
82
84
  },
83
85
 
84
86
  beforeUnmount()
85
87
  {
86
- this.NSelect.removeOption(this);
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;