2.0.14 • Published 4 years ago

bee-timepicker v2.0.14

Weekly downloads
129
License
MIT
Repository
github
Last release
4 years ago

bee-timepicker

npm version Build Status Coverage Status devDependency Status NPM downloads Average time to resolve an issue Percentage of issues still open

react bee-timepicker component for tinper-bee

可定制的时间组件

使用

使用单独的timepicker包

组件引入

先进行下载bee-timepicker包

npm install --save bee-timepicker

组件调用

import Timepicker from 'bee-timepicker';
ReactDOM.render(
        <TimePicker></TimePicker>
        , document.getElementById('target'));

样式引入

  • 可以使用link引入build目录下TimePicker.css
<link rel="stylesheet" href="./node_modules/bee-timepicker/build/Timepicker.css">
  • 可以在js中import样式
import "./node_modules/bee-timepicker/src/Timepicker.scss"
//或是
import "./node_modules/bee-timepicker/build/Timepicker.css"

API

参数说明类型默认值
prefixClsprefixCls of this componentString'rc-time-picker'
clearTextclear tooltip of iconString'clear'
disabled禁用时间组件Booleanfalse
allowEmpty允许为空Booleantrue
opencurrent open state of picker. controlled propBooleanfalse
defaultValue默认值momentnull
defaultOpenValue默认打开的值momentmoment()
value当前值momentnull
placeholder输入框的placeholderString''
classNametime picker classNameString''
popupClassName弹出面板的ClassNameString''
showHour显示小时Booleantrue
showMinute显示分钟Booleantrue
showSecond显示秒Booleantrue
format格式化String-
disabledHours禁用的小时Function-
disabledMinutes禁用的分钟Function-
disabledSeconds禁用的秒Function-
use12Hours切换12小时制Booleanfalse
hideDisabledOptions是否隐藏禁用选项Booleanfalse
onChange改变时的回调行数Functionnull
addon从时间选择面板称为渲染一些插件在它的底部,像一个OK按钮。接收板实例作为参数Function-
placementone of 'left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'StringbottomLeft
transitionName-String''
name设置input的name属性String-
onOpen打开时的回调Function({ open })-
onClose关闭时的回调Function({ open })-

开发调试

$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-timepicker
$ cd bee-timepicker
$ npm install
$ npm run dev
2.0.14

4 years ago

2.0.13

4 years ago

2.0.13-alpha.0

4 years ago

2.0.12

4 years ago

2.0.11

4 years ago

2.0.9

4 years ago

2.0.10

4 years ago

2.0.8

4 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.5-alpha.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago