Skip to content
bulma datetime
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist 调整config 的模块 Nov 4, 2018
example 调整webpack配置 Oct 4, 2018
src
.postcssrc.js 配置文件提交 Oct 9, 2018
LICENSE Initial commit Sep 10, 2018
README.md
index.html 调整webpack配置 Oct 4, 2018
package-lock.json
package.json
webpack.config.js

README.md

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

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

You can’t perform that action at this time.