diff --git a/README.md b/README.md index b2bc04a..83e9d09 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ +##Fixed Issues(By Jinlong) +已修复问题 + +After touchend event, resuming Swipe's auto slide. +touchend 触发以后,恢复 Swipe 组件的自动轮播。 + +1. Compatible with api.setRefreshHeaderInfo (APICloud's method),兼容 APICloud 的 api.setRefreshHeaderInfo(下拉刷新组件),处理 JS 交互事件与 Native 事件的冲突 +2. Compatible with api.openSlidLayout (APICloud's method),兼容 APICloud 的 api.openSlidLayout(侧滑布局模块),处理 JS 交互事件与 Native 事件的冲突 +3. Compatible with api.openFrameGroup (APICloud's method),兼容 APICloud 的 api.openFrameGroup(子窗口组模块),处理 JS 交互事件与 Native 事件的冲突 + + ## Usage Swipe only needs to follow a simple pattern. Here is an example: @@ -58,6 +69,16 @@ Swipe can take an optional second parameter– an object of key/value settings: - **transitionEnd** Function - runs at the end slide transition. +- **compatWithPullToRefresh** 布尔型 - 是否兼容 APICloud 的 api.setRefreshHeaderInfo,默认为 false + +- **frameName** 字符串 - 带有下拉刷新组件的 frame 的名字,当 compatWithPullToRefresh 为 true 时,需要传此参数 + +- **compatWithSlidLayout** 布尔型 - 是否兼容 APICloud 的 api.openSlidLayout,默认为 false + +- **compatWithFrameGroup** 布尔型 - 是否兼容 APICloud 的 api.openFrameGroup,默认为 false + +- **frameGroupName** 字符串 - frameGroup 组件的名字,当 compatWithFrameGroup 为 true 时,需要传此参数 + ### Example ``` js @@ -70,7 +91,12 @@ window.mySwipe = new Swipe(document.getElementById('slider'), { disableScroll: false, stopPropagation: false, callback: function(index, elem) {}, - transitionEnd: function(index, elem) {} + transitionEnd: function(index, elem) {}, + compatWithPullToRefresh: true, + frameName: 'frameName', + compatWithSlidLayout: true, + compatWithFrameGroup: true, + frameGroupName: 'frameGroupName' }); ``` @@ -92,15 +118,5 @@ Swipe exposes a few functions that can be useful for script control of your slid ## Browser Support Swipe is now compatible with all browsers, including IE7+. Swipe works best on devices that support CSS transforms and touch, but can be used without these as well. A few helper methods determine touch and CSS transition support and choose the proper animation methods accordingly. -## Who's using Swipe - - - - - - - -Shoot me a [note](mailto:brad@birdsall.co) if you want your logo here - ## License Copyright (c) 2013 Brad Birdsall Licensed under the [The MIT License (MIT)](http://opensource.org/licenses/MIT). diff --git a/index.html b/index.html index 196a580..01f494c 100644 --- a/index.html +++ b/index.html @@ -73,7 +73,7 @@

Swipe 2

- +