- 版本:1.3
slide's Introduction
slide's People
Forkers
jayli weison gaozhan basilwang nicoley77 pheart jiangzhonghui feskong ghyghoo8 sxyengene fugm lanxyou meiyouqing xiaxiazhu atgwwx goshit honny123 token69 johnnyfly shmnhdouble2013 sssensi dw250100785 benayoun jebastinj xiaoxh666 chanhpm sdh2621slide's Issues
基于kissy1.3.0的slide1.2
弱弱的提个建议,文档上说明下,基于kissy1.3.0的slide1.2需要手动加载sizzle模块:)
当CSS3实现滚动动画时,transition的属性默认是all,消失时会延迟
把slide放在一个dialog中时,关闭dialog后,slide会因为有transition的存在(比如transition:0.5s)而延迟0.5s消失。是不是可以指定详细的transition属性(transition: transform .5s)解决这个问题?
2.0.3版本,按照文档开发,模块都加载不了,发布前都不测一下吗?
2.0.2,2.0.0 都能用
文档单词拼写错误
文档如下代码处:
初始化
new Slide('#J_tab',{
eventype:'click',//tab上的触发事件
eventype 应该为 eventType
1.3版mobile上手动切换slide后自动播放失效
1.3版mobile上手动切换slide(上一张或下一张)后自动播放失效,换成1.2版本的没问题
为什么插件不支持class 选择器?
我的需求是这样的,我的页面里有多个简单的tab 我用的是相同的class 作为选择器
c = new Slide '.slide-style',
eventType:'mouseenter'
这样的话,我只是渲染了第一个 tab 其他的都没渲染,不知道是bug 还是我的使用出了错误?
在搜狗和360的IE核下竟然跑不起来,难是直接不支持IE。
slide组件1.1版本 trigger bug
Demo: http://mobile.kissyui.com/mobile/slide/1.1/demo/d3.html?spm=0.0.0.0.Y1SQpR&ks-debug
不经意间发现slide组件1.1版本的trigger貌似是无效的,而在1.0版本中是可以使用的,但是线上的业务代码已经从1.0更新到1.1了...请速修复。
依赖sizzle,kissy1.4无法使用
RT.... switchable不推荐使用,slide确不兼容1.4, 想升级真不容易
不支持响应式布局
无论KISSY自带的Switchable,还是gallery/slide,都不支持实例化轮播对象以后动态地改变步长(这样做是支持响应式布局),目前的做法是销毁轮播对象后再实例化一次,这样做很费事,是否考虑支持一下这个功能?
是个不错的库
可惜demo好多都是坏的。
D4 Layerslide 当处于某一帧时,点击该帧的nav,则Layerslide层消失不再出现
例如插件处于第一帧,再去点击第一帧的nav,浮动在该帧上的图片文字会以动画效果离开,但是永远不会在出现,我感觉是不是应该做个判断,不应该做任何操作才对
1.3版本defaultTab失效
1.3版本defaultTab属性失效,始终定位到第一帧
Slide组件bug——使用fade显示效果时,若快速划过trigger,会导致之后显示有误
类似上面这种幻灯片效果,使用effect
设置为fade
,eventType为mouseenter
或者mousehover
,当从当前蓝trigger
圆点开始快速划到第一个圆点后,会出现奇怪的展示状况(上面是1.0,1.1中貌似加了延迟,划过去不会对所有碰到的点都做切换,但是手动频繁切换圆点还是可以触发该bug):
每个trigger激活时,先显示正确的图片,然后马上换成了最后一张图片。
inRegion方法判断高度的bug
if(point[0] >= offset.left && point[0] <= offset.left + layout.width){
if(point[1] >= offset.top && point[1] <= offset.top + layout.height){
return true;
}
}
如果轮播组件在第二屏出现的话,第二个if是返回false的,因为point[1]一定是小于offset.top值的,所以这里应该还要减去scrollTop的值
上下滚动的Demo哪里可以找到
你们好,上下滚动的Demo哪里可以找到?
1.3版本,自动播放有bug
正常情况:页面初始化,silde自动播放,然后鼠标移上,自动播放停止,鼠标移开,自动播放继续。
错误情况:页面初始化时,鼠标就已经在slide上了,这时候自动播放不会触发,即使鼠标移开,自动播放依旧不会触发。在1.2上无此问题。
slide 图片 延迟加载
这个slide组件可不可以有参数设置延迟加载呢?
可以支持手风琴的效果
原来swtichable的插件手风琴效果怎么实现?
IE78下,tab-nav切换无效
http://mobile.kissyui.com/mobile/slide/1.1/demo/d3.html?spm=0.0.0.0.63GK2G&ks-debug
IE78下,tab-nav切换无效。还是说,这个组件只用在mobile上?
colspan 的问题
貌似有个bug 以里面的demo5为例 呼出firebug或者改变浏览器尺寸 会导致内容切换. 最重要的是如果点击过下一页再改变浏览器尺寸内容区块就不见了 测试了一下应该是colspan 的问题
Enable Sourcegraph
I want to use Sourcegraph for slide code search, browsing, and usage examples. Can an admin enable Sourcegraph for this repository? Just go to https://sourcegraph.com/github.com/kissygalleryteam/slide. (It should only take 30 seconds.)
Thank you!
更友好的错误提示
比如当 tab-pannel 误写错了,会提示null 没有 get属性之类的,是否可以在组件初始化的时候,就检查一下,一些必须的 dom、className 等是否存在,如果不存在直接提示还缺少什么,这样就免去了一些调试的工作。
1.3版+kissy mini+IE10有问题
老是有错误,改不完了
- .size() 没有,改成.length
- t_con不能set
- self.animcon.empty() 不能appendChild
...
chrome是好的
slide不在可视区域时停止滑动
从无线性能考虑,当slide不在可视区域时,可增加一个选项控制停止滚动。移动上的浏览器都支持 pagevisibility API(http://caniuse.com/pagevisibility)。如果要兼容低版本PC浏览器,可以考虑用switchable的方式自己计算。
移动端下 上下滑动也会触发 左右滑动才该有的 切换tab事件
使用版本1.1 在移动端下 打开 touchmove。 使用的是effect:'hSlide',水平切换。
结果发现 上下滑动时 也会触发 切换。
跟踪了下源码发现在 https://github.com/kissygalleryteam/slide/blob/master/1.1/build/index.js#L1028
是有判断 上下滑动的 重置的 但是被注释掉了。把注释打开 就没问题了。这个是不小心弄错了?
eventType设置成mouseenter,没办法在nav的mouseenter事件上stop自动轮播的slide
一个自动轮播的slide,eventType是mouseenter,hoverStop是true。这个时候是只有hover到pannel和content才会停止自动轮播,nav是不会的。然后我就只能自己给nav绑定mouseenter事件让slide stop,但是发现因为触发的事件就是mouseenter,所有每次先执行我这边绑定的mouseenter事件stop掉,再执行slide的switchTo,然后switchTo里会paly,导致我设置的stop不生效。不知道组件当时设计的停止自动轮播的节点那里为什么不把nav也带上。
Cannot read property 'height' of undefined
使用2.0.2版本的slide.go方法时,总是报
Cannot read property 'height' of undefined 的错误
1.1 和 1.2 的Demo放到IIS后,运行每个页面都报slide/1.1/index.js?t=1385349742536 404错误
GET http://localhost/slide/1.1/index.js?t=1385349742536 404 (Not Found)
当改变浏览器窗口大小时会错位
当改变浏览器窗口大小时会错位,或者直接就不见了。发现translate3d 计算值有问题,可能是因为colspan的问题,希望排查下原因,谢谢。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.