
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
react_date_picker
Advanced tools
📅 React时间选择组件
npm install react_date_picker --save
// ...
// ES6
import React, { Component } from "react";
import ReactDOM from "react-dom";
import ReactDatePicker from "react_date_picker";
class App extends Component {
constructor(props) {
super(props);
}
handleDateChange(date) {
// ...
}
handleClose(date) {
// ...
}
render() {
const config = {
initDate: "2016-09-12",
format: "YYYY-mm-dd",
onClose: this.handleClose.bind(this),
onChange: this.handleDateChange.bind(this)
};
return (<div class="app">
<ReactDatePicker config={config} />
</div>);
}
}
属性名 | 意义 | 类型 | 默认 | 是否必须 |
---|---|---|---|---|
el | 选择器(input框的class/id之类的) | String | N/A | 是 |
trigger | 在什么事件下显示选择器 | Array.<String> | N/A | 是 |
initDate | 默认时间 | Date/String | N/A | 是 |
format | 输出时间的格式 | String | N/A | 是 |
onOpen | 时间选择器刚显示的回调 | Fnnction | N/A | 否 |
onClose | 时间选择器关闭后的回调 | Fnnction | N/A | 否 |
onChange | 选择时间发生变化的回调 | Fnnction | N/A | 否 |
FAQs
📅 React时间选择组件
The npm package react_date_picker receives a total of 0 weekly downloads. As such, react_date_picker popularity was classified as not popular.
We found that react_date_picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.