@94ai/nf-virtual-select 3.2.77 → 3.2.79
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.
|
@@ -369,26 +369,22 @@ const _sfc_main = {
|
|
|
369
369
|
},
|
|
370
370
|
methods: {
|
|
371
371
|
reset() {
|
|
372
|
-
var _a;
|
|
373
|
-
(
|
|
372
|
+
var _a, _b, _c, _d, _e;
|
|
373
|
+
if (this.isVirtualSelect) {
|
|
374
|
+
(_a = this.$refs.virtualSelectList) == null ? void 0 : _a.reset();
|
|
375
|
+
} else {
|
|
376
|
+
const container = (_e = (_d = (_c = (_b = this.$refs.nfVirtualSelect) == null ? void 0 : _b.$refs) == null ? void 0 : _c.popper) == null ? void 0 : _d.$el) == null ? void 0 : _e.querySelector(".el-select-dropdown__wrap");
|
|
377
|
+
if (container) {
|
|
378
|
+
container.scrollTop = 0;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
374
381
|
},
|
|
375
382
|
scrollToBottom() {
|
|
376
383
|
this.$refs.virtualSelectList.scrollToBottom();
|
|
377
384
|
},
|
|
378
385
|
scrollToIndex(index) {
|
|
379
|
-
var _a
|
|
380
|
-
|
|
381
|
-
if (this.isVirtualSelect) {
|
|
382
|
-
(_a = this.$refs.virtualSelectList) == null ? void 0 : _a.scrollToIndex(index);
|
|
383
|
-
} else {
|
|
384
|
-
const container = (_e = (_d = (_c = (_b = this.$refs.nfVirtualSelect) == null ? void 0 : _b.$refs) == null ? void 0 : _c.popper) == null ? void 0 : _d.$el) == null ? void 0 : _e.querySelector(".el-select-dropdown__wrap");
|
|
385
|
-
if (container) {
|
|
386
|
-
container.scrollTop = 0;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
} catch (e) {
|
|
390
|
-
console.log(e);
|
|
391
|
-
}
|
|
386
|
+
var _a;
|
|
387
|
+
(_a = this.$refs.virtualSelectList) == null ? void 0 : _a.scrollToIndex(index);
|
|
392
388
|
},
|
|
393
389
|
scrollToOffset(offset) {
|
|
394
390
|
this.$refs.virtualSelectList.scrollToOffset(offset);
|
|
@@ -367,26 +367,22 @@ const _sfc_main = {
|
|
|
367
367
|
},
|
|
368
368
|
methods: {
|
|
369
369
|
reset() {
|
|
370
|
-
var _a;
|
|
371
|
-
(
|
|
370
|
+
var _a, _b, _c, _d, _e;
|
|
371
|
+
if (this.isVirtualSelect) {
|
|
372
|
+
(_a = this.$refs.virtualSelectList) == null ? void 0 : _a.reset();
|
|
373
|
+
} else {
|
|
374
|
+
const container = (_e = (_d = (_c = (_b = this.$refs.nfVirtualSelect) == null ? void 0 : _b.$refs) == null ? void 0 : _c.popper) == null ? void 0 : _d.$el) == null ? void 0 : _e.querySelector(".el-select-dropdown__wrap");
|
|
375
|
+
if (container) {
|
|
376
|
+
container.scrollTop = 0;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
372
379
|
},
|
|
373
380
|
scrollToBottom() {
|
|
374
381
|
this.$refs.virtualSelectList.scrollToBottom();
|
|
375
382
|
},
|
|
376
383
|
scrollToIndex(index) {
|
|
377
|
-
var _a
|
|
378
|
-
|
|
379
|
-
if (this.isVirtualSelect) {
|
|
380
|
-
(_a = this.$refs.virtualSelectList) == null ? void 0 : _a.scrollToIndex(index);
|
|
381
|
-
} else {
|
|
382
|
-
const container = (_e = (_d = (_c = (_b = this.$refs.nfVirtualSelect) == null ? void 0 : _b.$refs) == null ? void 0 : _c.popper) == null ? void 0 : _d.$el) == null ? void 0 : _e.querySelector(".el-select-dropdown__wrap");
|
|
383
|
-
if (container) {
|
|
384
|
-
container.scrollTop = 0;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
} catch (e) {
|
|
388
|
-
console.log(e);
|
|
389
|
-
}
|
|
384
|
+
var _a;
|
|
385
|
+
(_a = this.$refs.virtualSelectList) == null ? void 0 : _a.scrollToIndex(index);
|
|
390
386
|
},
|
|
391
387
|
scrollToOffset(offset) {
|
|
392
388
|
this.$refs.virtualSelectList.scrollToOffset(offset);
|
|
@@ -399,24 +399,20 @@ export default {
|
|
|
399
399
|
},
|
|
400
400
|
methods: {
|
|
401
401
|
reset() {
|
|
402
|
-
this
|
|
402
|
+
if (this.isVirtualSelect) {
|
|
403
|
+
this.$refs.virtualSelectList?.reset()
|
|
404
|
+
} else {
|
|
405
|
+
const container = this.$refs.nfVirtualSelect?.$refs?.popper?.$el?.querySelector('.el-select-dropdown__wrap')
|
|
406
|
+
if (container) {
|
|
407
|
+
container.scrollTop = 0
|
|
408
|
+
}
|
|
409
|
+
}
|
|
403
410
|
},
|
|
404
411
|
scrollToBottom() {
|
|
405
412
|
this.$refs.virtualSelectList.scrollToBottom()
|
|
406
413
|
},
|
|
407
414
|
scrollToIndex(index) {
|
|
408
|
-
|
|
409
|
-
if (this.isVirtualSelect) {
|
|
410
|
-
this.$refs.virtualSelectList?.scrollToIndex(index)
|
|
411
|
-
} else {
|
|
412
|
-
const container = this.$refs.nfVirtualSelect?.$refs?.popper?.$el?.querySelector('.el-select-dropdown__wrap')
|
|
413
|
-
if (container) {
|
|
414
|
-
container.scrollTop = 0
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
} catch (e) {
|
|
418
|
-
console.log(e)
|
|
419
|
-
}
|
|
415
|
+
this.$refs.virtualSelectList?.scrollToIndex(index)
|
|
420
416
|
},
|
|
421
417
|
scrollToOffset(offset) {
|
|
422
418
|
this.$refs.virtualSelectList.scrollToOffset(offset)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-virtual-select",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.79",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "DESKTOP-1EDDQ79\\dev026 <liuxiangxiang@94ai.com>",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^3.2.
|
|
18
|
-
"@94ai/nf-theme-chalk": "^3.2.
|
|
17
|
+
"@94ai/common-utils": "^3.2.79",
|
|
18
|
+
"@94ai/nf-theme-chalk": "^3.2.79",
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"vue-demi": "^0.14.5",
|
|
21
21
|
"vue-virtual-scroll-list": "^2.3.5"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"types": "lib/index.d.ts",
|
|
34
34
|
"main": "lib/nf-virtual-select.cjs.js",
|
|
35
35
|
"module": "lib/nf-virtual-select.esm-bundler.js",
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "9278b240de46890072d7b7177b5438990e31e09b"
|
|
37
37
|
}
|