chore(touch): add isVertical/isHorizontal

This commit is contained in:
chenjiahan
2020-09-14 20:56:28 +08:00
parent 46e158fa01
commit c8d573cbe7
7 changed files with 18 additions and 12 deletions
+4 -4
View File
@@ -5,10 +5,6 @@ import { useLazyRender } from '../composition/use-lazy-render';
const [createComponent, bem] = createNamespace('overlay');
function preventTouchMove(event) {
preventDefault(event, true);
}
export default createComponent({
props: {
show: Boolean,
@@ -25,6 +21,10 @@ export default createComponent({
setup(props, { slots }) {
const lazyRender = useLazyRender(() => props.show);
const preventTouchMove = (event) => {
preventDefault(event, true);
};
const renderOverlay = lazyRender(() => {
const style = {
zIndex: props.zIndex,