Gathering detailed insights and metrics for rmc-date-picker-plus
Gathering detailed insights and metrics for rmc-date-picker-plus
npm install rmc-date-picker-plus
Typescript
Module System
Node Version
NPM Version
70.4
Supply Chain
86.1
Quality
73.2
Maintenance
100
Vulnerability
99.6
License
TypeScript (93.87%)
JavaScript (5.11%)
Less (1.02%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
8,215
Last Day
1
Last Week
7
Last Month
49
Last Year
871
137 Commits
16 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
6.0.18
Package Id
rmc-date-picker-plus@6.0.18
Unpacked Size
68.21 kB
Size
9.95 kB
File Count
52
NPM Version
6.14.11
Node Version
10.23.3
Cumulative downloads
Total Downloads
Last day
-80%
1
Compared to previous day
Last week
-12.5%
7
Compared to previous week
Last month
58.1%
49
Compared to previous month
Last year
1.9%
871
Compared to previous year
支持用sortCols
来调整年月日位置
Support using sortCols
to adjust the position of the year, month, and day
name | description | type | default |
---|---|---|---|
sortCols(web) | 用于调整年月日排列的顺序 Used to adjust the order of the year, month and day | String | { year: 0, month: 1, day: 2} |
className(web) | additional css class of root dom node | String | '' |
prefixCls(web) | prefix class | String | 'rmc-date-picker' |
pickerPrefixCls(web) | picker prefix class | String | 'rmc-picker' |
defaultDate | default selected date. | Date | |
date | The currently selected date. | Date | |
mode | The date picker mode. | String | 'date' enum('date', 'time', 'datetime', 'year', 'month') |
minDate | min date | Date | new Date(2000, 1, 1, 0, 0, 0) |
maxDate | max date | Date | new Date(2030, 1, 1, 23, 59, 59) |
minHour | min Hour [0, 23] | Number | 0 |
maxHour | max Hour [0, 23] | Number | 23 |
minMinute | max Minute [0, 59] | Number | 0 |
maxMinute | max Minute [0, 59] | Number | 59 |
locale | the locale of area | Object | import from 'rmc-date-picker/lib/locale/en_US' |
use12Hours | 12 hours display mode | Boolean | false |
minuteStep | The amount of time, in minutes, between each minute item. | Number | 1 |
onDateChange | Date change handler. | Function(date: Date) | '' |
onValueChange | fire when picker change | (vals: any, index: number) => void | |
formatMonth | Customize display value of months | (month:number, current:Date) => React.Node | |
formatDay | Customize display value of days | (day:number, current:Date) => React.Node |
name | description | type | default |
---|---|---|---|
className(web) | additional css class of modal node | String | '' |
style(web) | additional modal style | object | {} |
popupTransitionName(web) | String | ||
maskTransitionName(web) | String | ||
prefixCls(web) | popup's prefix class | String | 'rmc-picker-popup' |
styles(react-native) | PopupPicker's styles | StyleSheet.create | |
datePicker | DatePicker element | React DatePicker element | |
date | The currently selected date. | Date | |
visible | whether pop picker is visible | Boolean | false |
onChange | exec on ok | Function(date: Date) | |
onVisibleChange | called when pop picker visible change | Function | |
onDismiss | exec on dismiss | function | |
okText | ok button text | string/React.ReactElement | 'Ok' |
dismissText | dismiss button text | string/React.ReactElement | 'Dismiss' |
title | Popup title | string/React.ReactElement | '' |
No vulnerabilities found.
No security vulnerabilities found.