直接附上代码:vue用法@touchmove.prevent(阻止默认事件)
<div @touchmove.prevent>
<mt-datetime-picker
v-model="pickerValue"
type="date"
ref="picker"
:startDate="startDate"
:endDate="endDate"
@confirm="handleConfirm"
>
</mt-datetime-picker>
</div>
切记加在父盒子上,简单粗暴搞定
直接附上代码:vue用法@touchmove.prevent(阻止默认事件)
<div @touchmove.prevent>
<mt-datetime-picker
v-model="pickerValue"
type="date"
ref="picker"
:startDate="startDate"
:endDate="endDate"
@confirm="handleConfirm"
>
</mt-datetime-picker>
</div>
切记加在父盒子上,简单粗暴搞定