docs: ✏️ 补充 Button 组件的 getRealtimePhoneNumber 仅支持微信小程序

This commit is contained in:
不如摸鱼去 2025-09-14 22:45:24 +08:00
parent ed412b6726
commit 7466c91c1a
2 changed files with 4 additions and 2 deletions

View File

@ -155,7 +155,7 @@
| getUserInfo | 获取用户信息,可以从@getuserinfo 回调中获取到用户信息 | | getUserInfo | 获取用户信息,可以从@getuserinfo 回调中获取到用户信息 |
| contact | 打开客服会话,如果用户在会话中点击消息卡片后返回应用,可以从 @contact 回调中获得具体信息 | | contact | 打开客服会话,如果用户在会话中点击消息卡片后返回应用,可以从 @contact 回调中获得具体信息 |
| getPhoneNumber | 获取用户手机号,可以从@getphonenumber 回调中获取到用户信息 | | getPhoneNumber | 获取用户手机号,可以从@getphonenumber 回调中获取到用户信息 |
| getRealtimePhoneNumber | 获取用户手机号,可以从@getrealtimephonenumber 回调中获取到用户信息 | | getRealtimePhoneNumber | 实时获取用户手机号,可以从@getrealtimephonenumber 回调中获取到用户信息,仅微信小程序 |
| launchApp | 小程序中打开 APP可以通过 app-parameter 属性设定向 APP 传的参数 | | launchApp | 小程序中打开 APP可以通过 app-parameter 属性设定向 APP 传的参数 |
| openSetting | 打开授权设置页 | | openSetting | 打开授权设置页 |
| chooseAvatar | 获取用户头像,可以从@chooseavatar 回调中获取到头像信息 | | chooseAvatar | 获取用户头像,可以从@chooseavatar 回调中获取到头像信息 |
@ -172,7 +172,7 @@
| getuserinfo | 获取用户信息 | `detail` | - | | getuserinfo | 获取用户信息 | `detail` | - |
| contact | 客服消息回调open-type="contact"时有效 | `detail` | - | | contact | 客服消息回调open-type="contact"时有效 | `detail` | - |
| getphonenumber | 获取用户手机号回调open-type=getPhoneNumber 时有效 | `detail` | - | | getphonenumber | 获取用户手机号回调open-type=getPhoneNumber 时有效 | `detail` | - |
| getrealtimephonenumber | 实时获取用户手机号回调open-type=getRealtimePhoneNumber 时有效 | `detail` | - | | getrealtimephonenumber | 实时获取用户手机号回调open-type=getRealtimePhoneNumber 时有效 | `detail` | $LOWEST_VERSION$ |
| error | 当使用开放能力时发生错误的回调open-type=launchApp 时有效 | `detail` | - | | error | 当使用开放能力时发生错误的回调open-type=launchApp 时有效 | `detail` | - |
| launchapp | 打开 APP 成功的回调open-type=launchApp 时有效 | `detail` | - | | launchapp | 打开 APP 成功的回调open-type=launchApp 时有效 | `detail` | - |
| opensetting | 在打开授权设置页后回调open-type=openSetting 时有效 | `detail` | - | | opensetting | 在打开授权设置页后回调open-type=openSetting 时有效 | `detail` | - |

View File

@ -157,6 +157,7 @@ WeChat Mini Program open capabilities, see [WeChat Mini Program Button](https://
| getUserInfo | Get user information, which can be obtained from the @getuserinfo callback | | getUserInfo | Get user information, which can be obtained from the @getuserinfo callback |
| contact | Open customer service session, if the user returns to the application after clicking the message card in the session, specific information can be obtained from the @contact callback | | contact | Open customer service session, if the user returns to the application after clicking the message card in the session, specific information can be obtained from the @contact callback |
| getPhoneNumber | Get the user's phone number, which can be obtained from the @getphonenumber callback | | getPhoneNumber | Get the user's phone number, which can be obtained from the @getphonenumber callback |
| getRealtimePhoneNumber | Get user phone number in real time, user information can be obtained from @getrealtimephonenumber callback, WeChat Mini Program only |
| launchApp | Open APP in Mini Program, parameters can be passed to the APP through the app-parameter attribute | | launchApp | Open APP in Mini Program, parameters can be passed to the APP through the app-parameter attribute |
| openSetting | Open authorization settings page | | openSetting | Open authorization settings page |
| chooseAvatar | Get user avatar, avatar information can be obtained from the @chooseavatar callback | | chooseAvatar | Get user avatar, avatar information can be obtained from the @chooseavatar callback |
@ -173,6 +174,7 @@ WeChat Mini Program open capabilities, see [WeChat Mini Program Button](https://
| getuserinfo | Get user information | `detail` | - | | getuserinfo | Get user information | `detail` | - |
| contact | Customer service message callback, valid when open-type="contact" | `detail` | - | | contact | Customer service message callback, valid when open-type="contact" | `detail` | - |
| getphonenumber | Get user phone number callback, valid when open-type=getPhoneNumber | `detail` | - | | getphonenumber | Get user phone number callback, valid when open-type=getPhoneNumber | `detail` | - |
| getrealtimephonenumber | Get user phone number in real time callback, valid when open-type=getRealtimePhoneNumber | `detail` | - |
| error | Error callback when using open capabilities, valid when open-type=launchApp | `detail` | - | | error | Error callback when using open capabilities, valid when open-type=launchApp | `detail` | - |
| launchapp | Callback for successfully opening APP, valid when open-type=launchApp | `detail` | - | | launchapp | Callback for successfully opening APP, valid when open-type=launchApp | `detail` | - |
| opensetting | Callback after opening authorization settings page, valid when open-type=openSetting | `detail` | - | | opensetting | Callback after opening authorization settings page, valid when open-type=openSetting | `detail` | - |