Skip to content

a1014893994/laydate-extendBtn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laydate-extendBtn

扩展laydate增加自定义范围选择按钮,替换laydata.js文件,引入css,图片路径自己看着整整吧,自己扩展也行

Quick Start

laydate.render({
        elem: '#id', //指定元素
        theme: 'extbtn',
        type: 'datetime',
        range:true,
        btns: ['clear', 'confirm','now'],
        extrabtns: [
            {id:'threeMonth', text:'近三月'},
            {id:'oneYear', text:'近一年'},
            {id:'threeYear', text:'近三年'},
            {id:'fiveYear', text:'近五年'},
            {id:'tenYear', text:'近十年'}
        ],

    });

#style

About

扩展laydate增加自定义范围选择按钮

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published