ElemeFE / mint-ui

Mobile UI elements for Vue.js
http://mint-ui.github.io/#!/en
MIT License
16.55k stars 3.55k forks source link

picker 滑动导致顶层滑动问题处理,已解决 #1545

Closed kiteliu closed 5 years ago

kiteliu commented 5 years ago

个人代码: 重点代码部分:@touchmove.prevent 解决了顶层跟着滑动问题

<section class="areaGrade" @touchmove.prevent>
    <mt-popup :closeOnClickModal="true" v-model="areaflag" position="bottom">
      <div class="choose">
        <span class="chooseBtn" @click="closePopup(0)">取消</span>
        <span class="chooseBtn" @click="sureChoose(0)">确定</span>
      </div>
      <mt-picker :slots="addressSlots" @change="onAddressChange"></mt-picker>
    </mt-popup>
    <mt-popup :closeOnClickModal="true" v-model="gradeflag" position="bottom">
      <div class="choose">
        <span class="chooseBtn" @click="closePopup(1)">取消</span>
        <span class="chooseBtn" @click="sureChoose(1)">确定</span>
      </div>
      <mt-picker :slots="xSlots" @change="onXChange"></mt-picker>
    </mt-popup>
  </section>
element-bot commented 5 years ago

你好,因为本 issue 不符合我们的规范,所以被关闭了。请使用 issue-generator 提交 issue。相关信息:#758。