2
0
mirror of https://github.com/tusen-ai/naive-ui.git synced 2024-12-09 04:31:35 +08:00

perf(select-menu, table): remove useless scroll handler

This commit is contained in:
07akioni 2021-05-17 19:47:22 +08:00
parent bcd6b047bb
commit bf497fb797
2 changed files with 2 additions and 2 deletions
src
_internal/select-menu/src
data-table/src/TableParts

View File

@ -396,7 +396,7 @@ export default defineComponent({
scrollable={this.scrollable}
container={virtualScroll ? this.virtualListContainer : undefined}
content={virtualScroll ? this.virtualListContent : undefined}
onScroll={this.doScroll}
onScroll={virtualScroll ? undefined : this.doScroll}
>
{{
default: () => {

View File

@ -206,7 +206,7 @@ export default defineComponent({
horizontalRailStyle={{ zIndex: 3 }}
verticalRailStyle={{ zIndex: 3 }}
xScrollable
onScroll={handleScroll}
onScroll={virtualScroll ? undefined : handleScroll}
>
{{
default: () => {