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:
parent
bcd6b047bb
commit
bf497fb797
src
@ -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: () => {
|
||||
|
@ -206,7 +206,7 @@ export default defineComponent({
|
||||
horizontalRailStyle={{ zIndex: 3 }}
|
||||
verticalRailStyle={{ zIndex: 3 }}
|
||||
xScrollable
|
||||
onScroll={handleScroll}
|
||||
onScroll={virtualScroll ? undefined : handleScroll}
|
||||
>
|
||||
{{
|
||||
default: () => {
|
||||
|
Loading…
Reference in New Issue
Block a user