Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0后续计划 #3

Open
jeakey opened this issue Nov 18, 2014 · 2 comments
Open

1.0.0后续计划 #3

jeakey opened this issue Nov 18, 2014 · 2 comments

Comments

@jeakey
Copy link
Member

jeakey commented Nov 18, 2014

2014/11/18

基础组件

为dialog、tips、loading添加动画支持

@jeakey jeakey changed the title 后续计划 1.0.0后续计划 Nov 18, 2014
@fayching
Copy link
Member

searchbar加上交互

@hkz404
Copy link
Contributor

hkz404 commented Jan 4, 2015

具体计划:

Gruntfile.js 改进

  • 特效组件可在 package.json 中自定义依赖

Scroller:

  • 提供 scrollTo、scrollToElement、getComputedPosition、disable、enable、destroy、refresh 方法
  • 支持传入 wrapper、scroller 的宽高(有时候是弹窗中的规则需要滚动,但是默认 display:none,所以获取不到宽高)

slider、tab

  • 自动为当前元素添加 current 类
  • indicator 指示原点自动生成
  • click、tap 事件暴露
  • 类名可自定义
  • 支持同个页面出现多个 scroller/slider/tab
  • 提供 上一页、下一页、跳到某一页、过渡动画定义、过渡时间定义、暂停、播放 方法
  • 回调事件中提供 from、to 等数据
  • 支持循环滑动
  • 针对 slider/tab/scroller 默认开启反方向的原生滚动支持(eventPassthrough)
  • 切换动画过渡时间可自定义(默认 300ms)
  • 初始化后制定某一标签页

bugfix:

  • slider/tab 快速滑动丢失 current 状态
  • slider/tab 的切换时外层高度自适应
  • 解决 tab/slider 嵌套引起的问题(事件冒泡问题)
  • 华为手机中的滚动事件会冒泡,导致网页也在滚动
  • tab 滑动 tabbar 也会引起内容的滚动

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants