1.2.2 • Published 6 years ago

bulma-datetime v1.2.2

Weekly downloads
20
License
ISC
Repository
-
Last release
6 years ago

bulma-datetime

npm npm Build Status

日期类型

日期类型

时间类型

install

npm i bulma-datetime
npm i moment

use

import Picker from 'bulma-datetime'

const el = document.querySelector("#input");
const a = new Picker(el,{
     type:"date",
     format:"YYYY-MM-DD",
     maxDate:"2022-01-01",
     minDate:"2018-01-01",
     change:function(val){
         console.log("change");
     }
 })
console.log(a.year,a.month,a.date);

配置

type

字符串类型 1. date 2. datetime

format

字符串类型

  1. YYYY-MM-DD HH:mm:ss
  2. YYYY-MM-DD

具体查阅moment文档

maxDate/minDate

可以选择的最大(小)时间

change

当用户修改选择日期/时间点击确定后触发的事件

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.3-beta.4

6 years ago

1.1.3-beta.3

6 years ago

1.1.3-beta.2

6 years ago

1.1.3-beta.1

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago