New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-mobile-timepicker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-mobile-timepicker

A componet named datepicker for React

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

react-mobile-timepicker

移动端react的选择时间组件.

version 1.0.0

Used

npm install react-mobile-timepicker
import 'react-mobile-timepicker/assets/index.css';
import DateView from 'react-mobile-timepicker';

DateView Properties

props

NameTypeDefaultDescription
[title]string选择日期标题
[format]string格式,YYYY:年,MM:月,会自动补齐,9会输出09,后面同理,DD:日,hh:时,mm:分,ss:秒
[options]objectiscroll的配置项
[minuteStep]number1分钟的间隔
[yearRange]number10年份前后的延伸
[show]booleanfalse是否初始化显示选择控件
[value]number,array,number选中的值
[currentTime]number,stringDate.now()当前时间
[minDate]number,string最小时间
[maxDate]number,string最大时间
[onDone]function选择时间后的调用,传入当前用户选择的时间,若返回false则会阻止选择器界面隐藏

预览

点击查看demo

License

Copyright (c) 2017 Cao Ren under the MIT License.

Keywords

react

FAQs

Package last updated on 05 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts