{"id":49736238,"url":"https://github.com/wungjyan/miniprogram-simple-calendar","last_synced_at":"2026-05-09T08:19:37.917Z","repository":{"id":57298013,"uuid":"196940733","full_name":"wungjyan/miniprogram-simple-calendar","owner":"wungjyan","description":"适用于微信小程序的日历组件","archived":false,"fork":false,"pushed_at":"2020-08-31T01:05:13.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-01T03:20:09.421Z","etag":null,"topics":["calendar-component","miniprogram-component"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wungjyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-15T06:48:23.000Z","updated_at":"2020-08-31T01:05:15.000Z","dependencies_parsed_at":"2022-09-26T16:30:55.706Z","dependency_job_id":null,"html_url":"https://github.com/wungjyan/miniprogram-simple-calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wungjyan/miniprogram-simple-calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wungjyan%2Fminiprogram-simple-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wungjyan%2Fminiprogram-simple-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wungjyan%2Fminiprogram-simple-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wungjyan%2Fminiprogram-simple-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wungjyan","download_url":"https://codeload.github.com/wungjyan/miniprogram-simple-calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wungjyan%2Fminiprogram-simple-calendar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32811804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calendar-component","miniprogram-component"],"created_at":"2026-05-09T08:19:37.149Z","updated_at":"2026-05-09T08:19:37.912Z","avatar_url":"https://github.com/wungjyan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miniprogram-simple-calendar\n\n适用于微信小程序的日历组件\n\n## 更新\n\n0.0.4\n\n- 晕死，0.0.3 的代码未打包就 publish 了，这才是 0.0.3 的代码\n\n0.0.3\n\n- 修复`list`属性，年月日精确标记日期\n\n0.0.2\n\n- 添加 `list` 属性，可标记日期；\n- 添加年月切换时触发 `change` 事件；\n- 添加 `showChangeYear` 属性，开启或关闭年份切换\n\n## 使用\n\n1. 安装 miniprogram-simple-calendar\n\n```\nnpm install --save miniprogram-simple-calendar\n```\n\n2. 在需要使用 calendar 的页面 page.json 中添加 calendar 自定义组件配置\n\n```\n{\n  \"usingComponents\": {\n    \"simple-calendar\": \"miniprogram-simple-calendar\"\n  }\n}\n```\n\n3. 在 wxml 中使用\n\n```\n\u003csimple-calendar bindselect=\"select\" en=\"{{en}}\" show-other=\"{{showOther}}\"\u003e\u003c/simple-calendar\u003e\n```\n\n**miniprogram-simple-calendar 的属性介绍如下：**\n\n| 属性名         | 类型    | 默认值 | 是否必须 | 说明                                                                                                                                                                                                                           |\n| -------------- | ------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| en             | Boolean | false  | 否       | 星期的英文显示                                                                                                                                                                                                                 |\n| show-other     | Boolean | true   | 否       | 是否显示除了本月的日期                                                                                                                                                                                                         |\n| list           | Array   | []     | 否       | `list`属性传入数组，主要用于标记日期（即日期底部圆点标记），数组中的每一项应含有`day`属性，结构如：`[{day:'2019-01-01'},...]`，注意`2019-01-01`和`2019-1-1`或者`2019-1-01`都是标记同一天的，点击日期会返回此日期下的已传入数据 |\n| showChangeYear | Boolean | true   | 否       | 是否允许年份切换，关闭时只保留月份切换                                                                                                                                                                                         |\n\n**事件：**\n\n| 事件名 | 说明             |\n| ------ | ---------------- |\n| select | 选中日期时触发   |\n| change | 切换年或月时触发 |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwungjyan%2Fminiprogram-simple-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwungjyan%2Fminiprogram-simple-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwungjyan%2Fminiprogram-simple-calendar/lists"}