From 24f9f0cae6e7cf4a461212d863420bf2d61b5351 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Wed, 9 Dec 2020 00:17:45 +0800 Subject: [PATCH] chore(select): change scroll demo & remove useless code --- .../components/select/enUS/scroll-event.demo.md | 5 ----- .../components/select/zhCN/scroll-event.demo.md | 5 ----- src/select/src/Select.vue | 4 ++-- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/demo/documentation/components/select/enUS/scroll-event.demo.md b/demo/documentation/components/select/enUS/scroll-event.demo.md index 2b4ce86bf..dfa279721 100644 --- a/demo/documentation/components/select/enUS/scroll-event.demo.md +++ b/demo/documentation/components/select/enUS/scroll-event.demo.md @@ -84,8 +84,3 @@ export default { } } ``` -```css -.n-select { - width: 180px; -} -``` \ No newline at end of file diff --git a/demo/documentation/components/select/zhCN/scroll-event.demo.md b/demo/documentation/components/select/zhCN/scroll-event.demo.md index a7e4ad043..b4b56ac6b 100644 --- a/demo/documentation/components/select/zhCN/scroll-event.demo.md +++ b/demo/documentation/components/select/zhCN/scroll-event.demo.md @@ -84,8 +84,3 @@ export default { } } ``` -```css -.n-select { - width: 180px; -} -``` \ No newline at end of file diff --git a/src/select/src/Select.vue b/src/select/src/Select.vue index 1416b3450..f0c39b4d8 100644 --- a/src/select/src/Select.vue +++ b/src/select/src/Select.vue @@ -686,8 +686,8 @@ export default { } }, // scroll events on menu - handleMenuScroll (e, scrollContainer, scrollContent) { - this.doScroll(e, scrollContainer, scrollContent) + handleMenuScroll (e) { + this.doScroll(e) }, // keyboard events handleKeyUpEnter (e) {