laydate icon indicating copy to clipboard operation
laydate copied to clipboard

一款被广泛使用的高级 Web 日历组件,完全开源无偿且颜值与功能兼备,足以应对日期相关的各种业务场景

Results 19 laydate issues
Sort by recently updated
recently updated
newest added

能不能支持设置只有小时和分钟呀?不要显示秒。 目前看了文档只支持year、month、date、time、datetime,我要的是年月日时分~~

range时,弹出面板支持选中结束日期

由于场景需要进行年月选择,但发现当设置type: 'month'时,选择月份后日期选择器并未自动关闭。 触发条件: 1. 非范围选择 2. 年月选择器 3. 点击了月列表中的月份 修复步骤: 1. 进行日期校验 2. 触发done回调函数 3. 设置年月并移除控件 实现效果: ![apr-18-2018 14-57-07](https://user-images.githubusercontent.com/7589350/38916180-fee78062-4318-11e8-9cde-d84c3d28410b.gif)

添加了YearChang 和monthChang 用于控制切换年份和月份时,是否触发change事件

trigger: 'click' //呼出控件的事件:原默认为focus,2019年3月起 Google Chrome 版本 73.0.3683.86(正式版本) (64 位)下会频繁出现鼠标点击input内,时间选择器显示并很快消失的情况,由于一般开发者不会手动去config trigger,故改为默认click

var startDate = laydate.render({ elem: '#startDate', //指定元素 #startDate是一个input type: 'date', format: 'yyyy年MM月dd日', isInitValue: true, //是否允许填充初始值,默认为 true done: function(value, date, endDate) { /*回调里修改了type 和format 发现type的修改生效了,但是formar的修改没有生效,看源码发现是没有更新this.format、that.EXP_IF和that.EXP_SPLIT。(PS:这里只是举例,实际项目中是通过别的按钮触发改变type和format 事件的。) */ startDate .config.type = 'month';...

1. 点击确定按钮才触发`confirm`回调,不影响原来`done`回调 ```javascript laydate.render({ elem: '#test1', confirm: function(value, start, end){ console.log(value, start, end) } }); ```