{"id":28447696,"url":"https://github.com/nervjs/taro-plugin-platform-alipay-dd","last_synced_at":"2025-06-30T13:32:20.169Z","repository":{"id":57164580,"uuid":"302845067","full_name":"NervJS/taro-plugin-platform-alipay-dd","owner":"NervJS","description":"钉钉小程序平台插件","archived":false,"fork":false,"pushed_at":"2023-09-26T02:45:23.000Z","size":119,"stargazers_count":17,"open_issues_count":5,"forks_count":9,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-06-04T12:49:07.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NervJS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-10-10T07:42:51.000Z","updated_at":"2024-07-04T04:16:54.000Z","dependencies_parsed_at":"2023-09-26T08:49:23.139Z","dependency_job_id":null,"html_url":"https://github.com/NervJS/taro-plugin-platform-alipay-dd","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/NervJS/taro-plugin-platform-alipay-dd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-dd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-dd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-dd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-dd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NervJS","download_url":"https://codeload.github.com/NervJS/taro-plugin-platform-alipay-dd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-alipay-dd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262783299,"owners_count":23363510,"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":"2025-06-06T12:06:28.450Z","updated_at":"2025-06-30T13:32:20.121Z","avatar_url":"https://github.com/NervJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@tarojs/plugin-platform-alipay-dd`\n\nTaro 插件。用于支持编译为钉钉小程序。\n\n## 版本要求\n\n### Taro 3.5+\n\n请使用本插件的 `~0.2.0` 版本\n\n### Taro 3.3.8+\n\n请使用本插件的 `~0.1.0` 版本\n\n### Taro 3.1 \u0026 3.2\n\n请使用本插件的 `~0.0.5` 版本\n\n## 使用\n\n#### 1. 配置插件\n\n```js\n// Taro 项目配置\nmodule.exports = {\n  // ...\n  plugins: [\n    '@tarojs/plugin-platform-alipay-dd'\n  ]\n}\n```\n\n#### 2. 编译为钉钉小程序\n\n```shell\ntaro build --type dd\ntaro build --type dd --watch\n```\n\n#### 其它\n\n##### 平台判断\n\n```js\nif (process.TARO_ENV === 'dd') {\n  // ...\n}\n```\n\n##### API\n\n钉钉小程序拓展了一些独有 API，可以通过 `Taro.xxx` 来调用，例：\n\n```js\nTaro.showCallMenu()\n```\n\n##### 组件\n\n钉钉小程序拓展了一些独有组件，可像普通 Taro 内置组件一样使用，例：\n\n```js\nimport { OpenAvatar } from '@tarojs/components'\n\nfunction Index () {\n  return (\n    \u003c\u003e\n      \u003cOpenAvatar /\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n#### Typings\n\n开发者在 `global.d.ts` 中加入 `/// \u003creference types=\"@tarojs/plugin-platform-alipay-dd/types/shims-dd.d.ts\" /\u003e` 即可获得类型提示。\n\n例如：\n\n```typescript\n/// \u003creference types=\"@tarojs/plugin-platform-alipay-dd/types/shims-dd.d.ts\" /\u003e\n/// \u003creference types=\"@tarojs/taro\" /\u003e\n\ndeclare module \"*.png\";\ndeclare module \"*.gif\";\ndeclare module \"*.jpg\";\ndeclare module \"*.jpeg\";\ndeclare module \"*.svg\";\ndeclare module \"*.css\";\ndeclare module \"*.less\";\ndeclare module \"*.scss\";\ndeclare module \"*.sass\";\ndeclare module \"*.styl\";\n````\n\n## License\n\nMIT License\n\nCopyright (c) O2Team\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-alipay-dd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-alipay-dd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-alipay-dd/lists"}