Giter VIP home page Giter VIP logo

Comments (6)

chouchouji avatar chouchouji commented on August 23, 2024

是说滚动包装那个地方,其实包装tab那里没有效果,滚动的是月计划周计划那个tab嘛?

from varlet.

haoziqaq avatar haoziqaq commented on August 23, 2024

可以尝试在内层 tabs 加入 .stop 阻止 touch 事件冒泡。

from varlet.

logoho avatar logoho commented on August 23, 2024

是说滚动包装那个地方,其实包装tab那里没有效果,滚动的是月计划周计划那个tab嘛?

一个页面用了两个tabs选项卡,一个是(父组件)月计划周计划,一个是(子组件)包装N组。子组件的包装N组的tab数量超出可以横向滚动选择,但是横向滑动只能滑动父组件的左右切换月计划周计划的内容页

from varlet.

logoho avatar logoho commented on August 23, 2024

.stop

请问是可以在标签内加么?

from varlet.

logoho avatar logoho commented on August 23, 2024

目前只能 在(父组件)月计划周计划的TabsItems Props里面设置can-swipe | 是否允许滑动切换 为false

from varlet.

haoziqaq avatar haoziqaq commented on August 23, 2024
<var-tabs @touchmove.stop v-model:active="category">
  <var-tab :name="i.id" v-for="i in categories?.data ?? []" :key="i.id">{{ i.name }}</var-tab>
</var-tabs>

from varlet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.