[improvement] adjust utils

This commit is contained in:
陈嘉涵
2019-06-06 11:49:39 +08:00
parent f5059ea6ba
commit d7a5be67fe
37 changed files with 96 additions and 82 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { on, off } from '../utils/event';
import { on, off } from '../utils/dom/event';
export function BindEventMixin(handler) {
function bind() {
+1 -1
View File
@@ -1,4 +1,4 @@
import { on, off } from '../utils/event';
import { on, off } from '../utils/dom/event';
export const ClickOutsideMixin = config => ({
mounted() {
+2 -2
View File
@@ -1,8 +1,8 @@
import { context } from './context';
import { TouchMixin } from '../touch';
import { on, off, preventDefault } from '../../utils/event';
import { on, off, preventDefault } from '../../utils/dom/event';
import { openOverlay, closeOverlay, updateOverlay } from './overlay';
import { getScrollEventTarget } from '../../utils/scroll';
import { getScrollEventTarget } from '../../utils/dom/scroll';
export const PopupMixin = {
mixins: [TouchMixin],