zane-data-time-calendar
Time calendar plug-in
Explain:
1.The plug-in does not depend on any third party plug-in. So you can use it anywhere. 2.Plugins are not compatible with a low version of the IE browser. So please use your IE browser carefully.
images
Document :http://www.seosiwei.com/zjkf/166.html
http://www.seosiwei.com/zaneDate/index.html
Demo address :How to use
Browser usage
<link href="./dist/zane-calendar.min.css"><
script src="./dist/zane-calendar.min.js"></script> <!-- Input boxes for plug-ins requiring extra time --><input type="" name="" id="zane-calendar"> Initialization
Webpack usage
const zaneDate = or <!-- Input boxes for plug-ins requiring extra time --><input type="" name="" id="zane-calendar"> Initialization
How do I run the project?
git clone https://github.com/wangweianger/zane-data-time-calendar.gitnpm installnpm run devnpm run build
Parameter description.
elem:'#zane-calendar' 控件的dom原生 注意:仅限制于id选择器 type:'day' 可选类型 day year month time doubleday doubleyear doublemonth doubletime lang:'cn' 可选择语言类型 cn en width:280 插件宽度配置 250 <= X <= 500 height:300 插件高度配置 250 <= X <= 350 behindTop:10 插件于输入框的高度 format:'yyyy-MM-dd HH:mm:ss' 时间格式化 begintime:'' 开始时间 (但选择器默认选择此项) endtime:'' 结束时间 (double选择器需要) min:'' 可选取时间最小范围 1900-10-01 max: '' 可选取时间最大范围 2099-12-31 position:'fixed' 定位方式 暂时只支持 fixed event:'click' 事件方式 暂时只支持 click zindex:100 z-index值 showtime:true
是否显示选择时间 showclean:true 是否显示清除按钮 shownow:true 是否显示当前按钮 showsubmit:true 是否显示提交按钮 haveBotBtns:true 是否有底部按钮列表 showsecond:true type='time|doubletime'时是否支持选择秒单位 calendarName:'' 此参数勿动 表示当前时间插件实例化对象 {} 插件加载完成之后调用 {} 时间变更之后调用 {} 选择完成之后调用
Examples
默认完整选项 只选择年月日 使用英文 只选择年 只选择月 只选择时间 格式化方式 限定能选择的最小最大区间 回调 回调 ...... 具体的请查看demo
1.1.0 版本新增 double选择器
configtype 新增double类型 可选类型如下:day year month time doubleday doubleyear doublemonth doubletime 双日期范围选择 双年范围选择 双月范围选择 双时间选择
1.2.0 版本
1.doubleday类型新增选择时间,支持时分秒选择
2.double类型检测距离右边window边线的距离,若不足,自动排列为上下两个日期
configtype doubleday支持选择时间范围 双日期范围选择
1.2.1 版本 新增z-index 参数