6.0.18 • Published 2 years ago

rmc-date-picker-plus v6.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rmc-date-picker-plus


支持用sortCols来调整年月日位置

Support using sortCols to adjust the position of the year, month, and day

install

rmc-date-picker-plus

API

DatePicker props

namedescriptiontypedefault
sortCols(web)用于调整年月日排列的顺序 Used to adjust the order of the year, month and dayString{ year: 0, month: 1, day: 2}
className(web)additional css class of root dom nodeString''
prefixCls(web)prefix classString'rmc-date-picker'
pickerPrefixCls(web)picker prefix classString'rmc-picker'
defaultDatedefault selected date.Date
dateThe currently selected date.Date
modeThe date picker mode.String'date' enum('date', 'time', 'datetime', 'year', 'month')
minDatemin dateDatenew Date(2000, 1, 1, 0, 0, 0)
maxDatemax dateDatenew Date(2030, 1, 1, 23, 59, 59)
minHourmin Hour [0, 23]Number0
maxHourmax Hour [0, 23]Number23
minMinutemax Minute [0, 59]Number0
maxMinutemax Minute [0, 59]Number59
localethe locale of areaObjectimport from 'rmc-date-picker/lib/locale/en_US'
use12Hours12 hours display modeBooleanfalse
minuteStepThe amount of time, in minutes, between each minute item. Number1
onDateChangeDate change handler.Function(date: Date)''
onValueChangefire when picker change(vals: any, index: number) => void
formatMonthCustomize display value of months(month:number, current:Date) => React.Node
formatDayCustomize display value of days(day:number, current:Date) => React.Node

rmc-date-picker/lib/Popup props

namedescriptiontypedefault
className(web)additional css class of modal nodeString''
style(web)additional modal styleobject{}
popupTransitionName(web)String
maskTransitionName(web)String
prefixCls(web)popup's prefix classString'rmc-picker-popup'
styles(react-native)PopupPicker's stylesStyleSheet.create
datePickerDatePicker elementReact DatePicker element
dateThe currently selected date.Date
visiblewhether pop picker is visibleBooleanfalse
onChangeexec on okFunction(date: Date)
onVisibleChangecalled when pop picker visible changeFunction
onDismissexec on dismissfunction
okTextok button textstring/React.ReactElement'Ok'
dismissTextdismiss button textstring/React.ReactElement'Dismiss'
titlePopup titlestring/React.ReactElement''
6.0.18

2 years ago

6.0.17

3 years ago

6.0.16

3 years ago

6.0.15

3 years ago

6.0.14

3 years ago

6.0.13

3 years ago

6.0.12

3 years ago

6.0.11

3 years ago