Skip to content

kunfan96/rolldate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rolldate npm npm

此插件为jquery-date的全新版本,主要为了解决旧版参数设计不够合理、滑动效率不高、依赖jquery、没有可选的主题风格等问题,并增加了回调函数,使插件有更大的灵活性。

rolldate的整体设计如下

rolldate

使用方式

es6

import '../node_modules/rolldate/dist/css/rolldate.css'
import {Date as rolldate} from 'rolldate'
new rolldate({
  el:'#date'
})

commonJS

require('../node_modules/rolldate/dist/css/rolldate.css');
var rolldate = require('rolldate');
new rolldate.Date({
  el:'#date'
})

require.js

require(['rolldate'],function(rolldate){
  new rolldate.Date({
    el:'#date'
  })
})

browser

new rolldate.Date({
  el:'#date'
})

演示

rolldate(pc端建议使用浏览器的手机模式打开)

rolldate

About

rolldate 移动端日期选择插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.7%
  • HTML 3.6%
  • CSS 0.7%