page's People
page's Issues
setCurrentPage 在 kissy-1.4.x 无法使用
如题。changetTotalPage这个是没问题的,在设置之后重新render一下生效。但setCurrentPage就不生效了。当然也可以用skip来跳,但因为绑定了skip事件,所以还是不方便。
page 的一个大坑,pageNum 本该是 Number 类型
好几个同事都遇到了这个问题,e.pageNum 返回的是一个 String 类型,在 new Page 时将这个参数送入到 current_page ,结果选不中页码。
current_page: Number(e.pageNum)
建议@linwen3 同学将这里修正成 Number。
some bug
1、changetTotalPage 后需要手动 renderPage ;
2、changetTotalPage 和 setCurrentPage 方法 使用不一致,setCurrentPage set的变量估计不对,无效。
3、无销毁事件。
前一页以及相关拼写错误,preview --> previous
preview为预览,组件中涉及到前一页的类名和方法名都错用了该单词,容易造成用户的混淆和使用上的错误,建议修正为 previous
希望 A 链接支持 自定义 href
KISSY MVC 框架里需要用到
herf="#!/page/1"
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.