feat: add use-lock-scroll hook

This commit is contained in:
陈嘉涵
2020-01-13 16:37:27 +08:00
parent 0dfce17f6c
commit d9d63959f5
8 changed files with 68 additions and 13 deletions

View File

@@ -2,7 +2,7 @@ import { createNamespace } from '../utils';
import { BORDER_TOP_BOTTOM } from '../utils/constant';
import { ParentMixin } from '../mixins/relation';
import { ClickOutsideMixin } from '../mixins/click-outside';
import { getScrollEventTarget } from '../utils/dom/scroll';
import { getScroller } from '../utils/dom/scroll';
const [createComponent, bem] = createNamespace('dropdown-menu');
@@ -47,7 +47,7 @@ export default createComponent({
computed: {
scroller() {
return getScrollEventTarget(this.$el);
return getScroller(this.$el);
}
},