{"id":20698794,"url":"https://github.com/rwson/reactdatepicker","last_synced_at":"2026-04-19T18:31:28.279Z","repository":{"id":57348011,"uuid":"68114815","full_name":"rwson/ReactDatePicker","owner":"rwson","description":"📅ReactDatePicker  Component build with React","archived":false,"fork":false,"pushed_at":"2016-09-13T14:35:25.000Z","size":548,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T16:23:14.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rwson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-13T14:13:31.000Z","updated_at":"2018-12-02T10:42:02.000Z","dependencies_parsed_at":"2022-08-28T01:40:32.383Z","dependency_job_id":null,"html_url":"https://github.com/rwson/ReactDatePicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FReactDatePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FReactDatePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FReactDatePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FReactDatePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwson","download_url":"https://codeload.github.com/rwson/ReactDatePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242967687,"owners_count":20214280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T00:26:55.848Z","updated_at":"2026-04-19T18:31:28.246Z","avatar_url":"https://github.com/rwson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### ReactDatePicker\n\n📅\nReact时间选择组件\n\n#### ScreenShoot\n\n\n\n#### Usage\n\n    npm install ReactDatePicker --save\n    \n    //  ...\n    \n    //  ES6\n    \n    import React, { Component } from \"react\";\n    import ReactDOM from \"react-dom\";\n    \n    import ReactDatePicker from \"ReactDatePicker\";\n    \n    class App extends Component {\n    \n        constructor(props) {\n            super(props);\n        }\n        \n        handleDateChange(date) {\n            //  ...\n        }\n        \n        handleClose(date) {\n            //  ...\n        }\n        \n        render() {\n        \n            const config = {\n                initDate: \"2016-09-12\",\n                format: \"YYYY-mm-dd\",\n                onClose: this.handleClose.bind(this),\n                onChange: this.handleDateChange.bind(this)\n            };\n        \n            return (\u003cdiv class=\"app\"\u003e\n                \u003cReactDatePicker config={config} /\u003e\n            \u003c/div\u003e);\n        }\n        \n    }\n    \n\n#### API\n\n\n属性名 | 意义 | 类型 | 默认 | 是否必须\n---|---|---|---|---\nel | 选择器(input框的class/id之类的) | String | N/A | 是\ntrigger | 在什么事件下显示选择器 | Array.\u0026lt;String\u0026gt; | N/A | 是\ninitDate | 默认时间 | Date/String | N/A | 是\nformat | 输出时间的格式 | String | N/A | 是\nonOpen | 时间选择器刚显示的回调 | Fnnction | N/A | 否\nonClose | 时间选择器关闭后的回调 | Fnnction | N/A | 否\nonChange | 选择时间发生变化的回调 | Fnnction | N/A | 否","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwson%2Freactdatepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwson%2Freactdatepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwson%2Freactdatepicker/lists"}