diff --git a/package.json b/package.json index 9588529..2cd8253 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-alipay-dd", - "version": "0.3.0", + "version": "0.4.0", "description": "钉钉小程序平台插件", "author": "drchan", "homepage": "https://github.com/NervJS/taro-plugin-platform-alipay-dd", diff --git a/src/components-react.ts b/src/components-react.ts index 3dbdd1c..8791990 100644 --- a/src/components-react.ts +++ b/src/components-react.ts @@ -1,3 +1,4 @@ // For React.createElement's type export * from '@tarojs/plugin-platform-alipay/dist/components-react' export const OpenAvatar = 'open-avatar' +export const OpenData = 'open-data' diff --git a/src/components.ts b/src/components.ts index 551281b..dd0b3a5 100644 --- a/src/components.ts +++ b/src/components.ts @@ -8,5 +8,12 @@ export const components = { 'nickName': '', 'avatar': '', 'size': singleQuote('normal') + }, + OpenData: { + 'openType': '', + 'openId': '', + 'defaultText': '', + 'onError': '', + 'class': '' } }