Socket
Socket
Sign inDemoInstall

timer-dialog

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-dialog

<!-- # react-component-zw 中位科技基于react的ui组件库,其中包括: * 日历联动组件(double-date-picker) * 时分秒时间选择器(timer-dialog) -->


Version published
Maintainers
1
Created
Source

timer-dialog

基于react的时分秒时间选择器

npm安装

npm install timer-dialog

组件调用

import TimerDialog from "timer-dialog";

<TimerDialog
    title="时间选择器"
    selectTime={value}
    onChange={this.getDate}
    isShow={isShow}
    onClose={this.showTimer}
/>

组件配置props

名称类型必填默认值含义
selectTimestring(hh:mm:ss)当前时间默认选中项
titlestring选择时间整个时间选择器的标题
isShowboolfalse时间选择器的显示与隐藏
onChangefunc时间改变后的回调,回调参数(time)
onClosefunc取消按钮的回调函数,可用来关闭隐藏该组件
classNamestring设置组件样式

Keywords

FAQs

Package last updated on 26 Apr 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc