Taro 插件。用于支持编译为钉钉小程序。
// Taro 项目配置
module.exports = {
// ...
plugins: [
'@tarojs/plugin-platform-alipay-dd'
]
}taro build --type dd
taro build --type dd --watchif (process.TARO_ENV === 'dd') {
// ...
}钉钉小程序拓展了一些独有 API,可以通过 Taro.xxx 来调用,例:
Taro.showCallMenu()钉钉小程序拓展了一些独有组件,可像普通 Taro 内置组件一样使用,例:
import { OpenAvatar } from '@tarojs/components'
function Index () {
return (
<>
<OpenAvatar />
</>
)
}