scoutyin / ly-tab Goto Github PK
View Code? Open in Web Editor NEW🎉 A mobile touch-swappable tabs component for Vue.js 2.x
License: MIT License
🎉 A mobile touch-swappable tabs component for Vue.js 2.x
License: MIT License
看样子是UglifyJs压缩插件在遇到es6语法时出错了,如何解决呢
是因为用v-show提前加载了,但是没有调用导致失效的嘛?
对于
options: {
activeColor: '#1d98bd'
// 可在这里指定labelKey为你数据里文字对应的字段名
},
中的注释那段话有点不太懂,labelkey是指什么,怎么使用呢?
在页面刚刚执行的时候,动态给赋值没有效果
mounted: function () {
this.selectedId = 2;
}
移动端使用时,在特定的情形中,click会触发touch,touchEnd事件,此时timeStamp = this.endMoveTime - this.startMoveTime
的值为0,在this.speed = (this.lastX - this.startX) / timeStamp
会生成NAN,最后影响到translateX为NAN,导致页面无法滑动
请在安装ly-tab时选择至少大于V1.0.3的版本
建议在 mounted 时,调用 checkPosition 方法。
作者你好,关于这个插件,他的销毁阶段是否是不可以调用到 this.$refs里面的属性了已经,是否应该在beforedestory里面进行完成移除事件的操作呢,根据您的源码我编写了一个竖版的分类导航发现的这个问题
求解
当数据是动态的,比如我点击某个按钮,数据增加,问题是数据确实加入进去了,但没有重新计算listWidth的宽度,导致最后拉不到底,比如之前10个数据,宽度是1000,可以拉到最右侧,变成15条数据后,宽度应该是1500才能拉到最右侧,但宽度没有重新计算还是1000没变,所以最后的几条拉不出来看不到了,不知道我描述明白没,有点啰嗦,呵呵,我现在是加了个v-if后, watch监听数据变化后,改变v-if的值,销毁再创建,这样是可以解决问题,但挺麻烦的
只有一个标签,如何点击子集呢?
选中项的下划线宽度固定可以吗?当想项的线条现在可以变颜色,然后可以改变宽度吗?求改可配置
tab点击router 切换,ly-tab-active-bar 会从 0开始滑到指定位置
显示效果:
初始化在tab2,点击tab5,bar会从2-5,如有切换完成,再从0-5
望能加一个参数表示prevbarindex
很多时候,导航列表会比较长,能否添加这样的效果,点击编辑的一个导航项,自动将此项滚动到导航列表的中间位置,这样有更好的体验
option中添加lineWidth配置,tab下面横条的高度没有变化
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.