weijhfly / rolldate Goto Github PK
View Code? Open in Web Editor NEW:clock10:rolldate 多格式、功能强大的移动端日期选择插件
:clock10:rolldate 多格式、功能强大的移动端日期选择插件
hh:mm模式下,分钟滚动选择,在小米8(MIUI10.2)下没有就近吸附效果,会产生“骑缝”现象,导致分钟数值无法更新
循环的 每一个元素单独绑定,建议 el 可以指定dom对象或对象组
Since there are no headers for day/month/year, it would be nice to have an option for text month names instead of numbers.
That way the difference between day and month is more clear. It also looks a bit nicer, in my opinion.
如题,貌似没找到可以设置默认日期的选项
最近使用了一下rolldate.js源码,发现一个出现在我项目中的问题,日期遮罩层出现以后,底层页面的鼠标默认滚动和手指滑动没有被禁用,不知道作者有没有遇见过这样的问题,建议能否提供一个借口,可以禁止底层页面的鼠标默认滚动,当日期遮罩层消失的时候,恢复默认滚动效果…
目前它总是在屏幕底部。我希望它位于日期选择输入框的下方。不确定是否可以做到。
在angular.js中用new rolldate.Date(),f12出现这个,时间选择界面出不来。
[Deprecation] 'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead.
stop @ rolldate.js:8
scrollTo @ rolldate.js:8
scrollToElement @ rolldate.js:8
value @ rolldate.js:8
(anonymous) @ rolldate.js:8
n @ ionic.bundle.min.js:22
t @ ionic.bundle.min.js:22
l @ ionic.bundle.min.js:22
请问这个是怎么问题?
项目很不错。star了
请问怎样把分钟按照指定步长显示,比如每隔5分显示,00分 05分 10分...
面对小时的选择,60hour需要一个一个翻,体验不是太好
默认插件跳转至之前的时间ios不支持
Uncaught TypeError: Cannot read property 'innerText' of undefined
可以开放对控件赋值的方法
有调整的参数吗
is there a way to visually loop through the months and the days of month ? For example, the month starting at January and Stopping and December. Would be great when I continue scrolling from December, it starts again with January. Thank you!
有没有回到今天的功能啊
不支持克隆吗
就比如我需要选择两个时间,当我选择一个时间之后,另一个只能选择这个时间之后的时间,此类的方法。。emmm
An rtl
boolean option (default to false) should be managed, so that the header controls buttons (Confirm / Cancel) could be symmetrically reverted if needed.
可以新增最大日期和最小日期参数设置吗
希望可以添加插件启动时 当选择器不为空 默认时间为选择器内时间的 功能 现在每次打开都是默认的当前时间 有点尴尬
将
ontouchstart' in window
替换为
!!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch)
可以开放对控件赋值的方法
页面有多个input,都要一起渲染,第一个生效,后面的不生效!
In my case, I need the following criteria for the date selection.
As per an internet search, I found the following solution which is NOT working for months and days while restricting year correctly
var today = new Date();
var lastWeek = new Date();
lastWeek.setDate(today.getDate() - 7);
new Rolldate({
el: '.calendar-filter',
format: 'YYYY-MM-DD',
lang: {
title: 'Select A Date',
cancel: 'Clear',
confirm: 'Done',
year: '',
month: '',
day: '',
hour: '',
min: '',
sec: ''
},
beginYear: lastWeek.getFullYear(),
beginMonth: lastWeek.getMonth() + 1,
beginDay: lastWeek.getDate(),
endYear: today.getFullYear(),
endMonth: today.getMonth() + 1,
endDay: today.getDate()
});
大佬,Rolldate 3.1.1 版本 发现第一次点击时间不准,例如:默认在9月点击8月后直接跳转到4月份去了
现在已经有了 beginYear ,endYear
month
day
hour
minute
second
其他一切都很完美,求一个可以支持切换为农历时间选择
1,插件启动时默认跳转至之前的日期,但如果之前的日期无效(包含时分或时分秒格式中偶现),插件将报错而无法使用,待修复。
2,插件滑动时,偶发滑动位置不准确,待解决。
3,包含年月日格式的,滑动结束时会重新计算天数,如之前的30天,现在28天,可能会出现28天后面还能滑动的bug。
4,为了使操作更便利,将模仿mobiscroll(日期位置贴近屏幕下方),增加另外一种界面风格。
5,扩展月、日、时分、时分秒这四种格式。
6,在某些低版本的安卓uc浏览器中,插件出现明显错误(重要)。
7, rolldate依赖了iscroll解决滑动问题,但iscroll不够稳定,小概率出现滑动位置不对齐,待解决。
有打算发布到bower吗?
RT,有个小需求需要定制一下,感谢大佬~~~~
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.