[improvement] Swipe: jsx (#2626)

This commit is contained in:
neverland
2019-01-26 09:43:46 +08:00
committed by GitHub
parent 4e6d0b9c79
commit fab090bef9
6 changed files with 56 additions and 50 deletions

View File

@@ -1,4 +1,5 @@
import { use } from '../utils';
import { prevent } from '../utils/event';
import Loading from '../loading';
import PickerColumn from './PickerColumn';
import deepClone from '../utils/deep-clone';
@@ -171,9 +172,7 @@ export default sfc({
<div
class={bem('columns')}
style={columnsStyle}
onTouchmove={event => {
event.preventDefault();
}}
onTouchmove={prevent}
>
{columns.map((item, index) => (
<PickerColumn