{"id":16439932,"url":"https://github.com/meckodo/wechat-colorpicker","last_synced_at":"2025-10-27T03:31:03.703Z","repository":{"id":127703830,"uuid":"105874249","full_name":"MeCKodo/wechat-colorpicker","owner":"MeCKodo","description":"colorpicker with weui","archived":false,"fork":false,"pushed_at":"2017-12-14T14:43:55.000Z","size":293,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T06:48:31.545Z","etag":null,"topics":["color-picker","jest","typescript"],"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/MeCKodo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-05T09:56:58.000Z","updated_at":"2018-11-05T03:23:27.000Z","dependencies_parsed_at":"2023-04-04T18:01:40.105Z","dependency_job_id":null,"html_url":"https://github.com/MeCKodo/wechat-colorpicker","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":"0.019607843137254943","last_synced_commit":"dee923374a43f13a1a1b0645afb9c64e2f571fe2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeCKodo%2Fwechat-colorpicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeCKodo%2Fwechat-colorpicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeCKodo%2Fwechat-colorpicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeCKodo%2Fwechat-colorpicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeCKodo","download_url":"https://codeload.github.com/MeCKodo/wechat-colorpicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238431543,"owners_count":19471408,"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":["color-picker","jest","typescript"],"created_at":"2024-10-11T09:10:45.042Z","updated_at":"2025-10-27T03:31:03.333Z","avatar_url":"https://github.com/MeCKodo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## wechat-colorpicker\n\n[![CircleCI](https://img.shields.io/circleci/project/github/MeCKodo/wechat-colorpicker.svg)](https://circleci.com/gh/MeCKodo/wechat-colorpicker) [![npm](https://img.shields.io/npm/dt/wechat-colorpicker.svg)](https://www.npmjs.com/package/wechat-colorpicker) [![npm](https://img.shields.io/npm/v/wechat-colorpicker.svg)](https://www.npmjs.com/package/wechat-colorpicker) \n\u003e 颜色选择器（UI取自微信公众号后台编辑器）\n\n[demo](https://meckodo.github.io/wechat-colorpicker/)\n\n## 安装\n\n```bash\nnpm i wechat-colorpicker -S\n```\n\n## 栗子\n\n```javascript\nimport WeChatColorPicker from 'wechat-colorpicker';\n\nconst example = new WeChatColorPicker({\n  el: '#container', // selector  底层采用了querySelector\n  click(color) {\n    console.log(`获得的基础颜色是${color}`);\n  },\n  clear() {\n    console.log('清除');\n  },\n});\n\nexample.destroy(); // 销毁实例\n\n```\n\n## MIT\n\nMIT LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeckodo%2Fwechat-colorpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeckodo%2Fwechat-colorpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeckodo%2Fwechat-colorpicker/lists"}