@tencentcloud/sdk-mcp 1.3.9 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/resource/doc/{tuicallkit/android/faq.md → callkit/faq/android-faq.md} +75 -308
- package/resource/doc/{tuicallkit/faq/common/error_code.md → callkit/faq/common/error-code.md} +2 -2
- package/resource/doc/{tuicallkit/flutter/faq.md → callkit/faq/flutter-faq.md} +83 -315
- package/resource/doc/{tuicallkit/iOS/faq.md → callkit/faq/ios-faq.md} +76 -313
- package/resource/doc/{tuicallkit/vue/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/{tuicallkit → callkit/preset}/android/integration.md +63 -420
- package/resource/doc/callkit/preset/flutter/api.md +401 -0
- package/resource/doc/{tuicallkit → callkit/preset}/flutter/integration.md +53 -273
- package/resource/doc/callkit/preset/ios/api.md +282 -0
- package/resource/doc/{tuicallkit/iOS → callkit/preset/ios}/integration.md +39 -120
- package/resource/doc/callkit/preset/react/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/react/integration.md +6 -6
- package/resource/doc/callkit/preset/vue/api.md +600 -0
- package/resource/doc/{tuicallkit → callkit/preset}/vue/integration.md +5 -5
- package/resource/doc/{chatuikit → chatkit}/android/faq.md +29 -37
- package/resource/doc/{chatuikit → chatkit}/android/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/android/integration.md +30 -126
- package/resource/doc/chatkit/faq/android_sdk/client-api.md +280 -0
- package/resource/doc/{chatuikit → chatkit}/faq/common/product.md +4 -17
- package/resource/doc/{chatuikit → chatkit}/faq/common/server.md +1 -2
- package/resource/doc/chatkit/faq/flutter_sdk/client-api.md +183 -0
- package/resource/doc/{chatuikit → chatkit}/faq/flutter_sdk/faq.md +3 -3
- package/resource/doc/chatkit/faq/ios_sdk/client-api.md +279 -0
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/error_code.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/faq/web_sdk/faq.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/flutter/features/theme.md +22 -166
- package/resource/doc/{chatuikit → chatkit}/flutter/integration.md +20 -95
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/faq.md +29 -37
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/features/theme.md +27 -176
- package/resource/doc/{chatuikit/iOS → chatkit/ios}/integration.md +78 -280
- package/resource/doc/{chatuikit/vue → chatkit/react}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-header.md +7 -12
- package/resource/doc/{chatuikit → chatkit}/react/components/chat-setting.md +10 -17
- package/resource/doc/{chatuikit → chatkit}/react/components/chat.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/component-list.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/react/components/contact-list.md +122 -703
- package/resource/doc/chatkit/react/components/conversation-actions.md +174 -0
- package/resource/doc/chatkit/react/components/conversation-list.md +333 -0
- package/resource/doc/chatkit/react/components/conversation-preview.md +116 -0
- package/resource/doc/chatkit/react/components/conversation-search.md +57 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/message-input.md +36 -186
- package/resource/doc/{chatuikit → chatkit}/react/components/message-list.md +21 -113
- package/resource/doc/chatkit/react/components/search.md +282 -0
- package/resource/doc/{chatuikit → chatkit}/react/components/tuikit.md +5 -26
- package/resource/doc/{chatuikit → chatkit}/react/integration.md +37 -104
- package/resource/doc/{chatuikit/react → chatkit/vue}/components/avatar.md +0 -1
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-header.md +7 -13
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat-setting.md +13 -18
- package/resource/doc/{chatuikit → chatkit}/vue/components/chat.md +1 -2
- package/resource/doc/{chatuikit → chatkit}/vue/components/component-list.md +0 -1
- package/resource/doc/chatkit/vue/components/contact-list.md +271 -0
- package/resource/doc/chatkit/vue/components/conversation-actions.md +228 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/conversation-list.md +42 -316
- package/resource/doc/chatkit/vue/components/conversation-preview.md +213 -0
- package/resource/doc/chatkit/vue/components/conversation-search.md +50 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-input.md +1 -23
- package/resource/doc/{chatuikit → chatkit}/vue/components/message-list.md +23 -134
- package/resource/doc/{chatuikit → chatkit}/vue/components/search.md +73 -640
- package/resource/doc/chatkit/vue/components/tuikit.md +45 -0
- package/resource/doc/{chatuikit → chatkit}/vue/components/userpicker.md +4 -4
- package/resource/doc/{chatuikit → chatkit}/vue/faq.md +1 -1
- package/resource/doc/{chatuikit → chatkit}/vue/integration.md +53 -121
- package/resource/doc/livekit/core-sdk/live/android/api-reference/AudioEffectStore.md +283 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BarrageStore.md +148 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/BattleStore.md +316 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CameraView.md +57 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoGuestStore.md +419 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/CoHostStore.md +325 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/DeviceStore.md +436 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/GiftStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveAudienceStore.md +239 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LiveSeatStore.md +417 -0
- package/resource/doc/livekit/core-sdk/live/android/api-reference/LoginStore.md +207 -0
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audience-list.md +17 -88
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-audio-effect.md +34 -192
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-barrage.md +26 -139
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-base-beauty.md +16 -99
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-co-guest-interaction.md +54 -161
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-gift.md +75 -455
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-host-interaction.md +91 -338
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-integration.md +108 -492
- package/resource/doc/livekit/{live → core-sdk/live}/android/live-live-list.md +27 -165
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/AudioEffectStore.md +279 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BarrageStore.md +158 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BaseBeautyStore.md +155 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/BattleStore.md +304 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoGuestStore.md +394 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/CoHostStore.md +303 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/DeviceStore.md +410 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/GiftStore.md +160 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LikeStore.md +51 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveAudienceStore.md +231 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveCoreView.md +143 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LiveSeatStore.md +375 -0
- package/resource/doc/livekit/core-sdk/live/flutter/api-reference/LoginStore.md +170 -0
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audience-list.md +13 -91
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-audio-effect.md +34 -177
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-barrage.md +18 -102
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-base-beauty.md +24 -164
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-co-guest-interaction.md +56 -161
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-gift.md +66 -460
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-host-interaction.md +117 -364
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-integration.md +160 -543
- package/resource/doc/livekit/{live → core-sdk/live}/flutter/live-live-list.md +22 -161
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/AudioEffectStore.md +287 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BarrageStore.md +165 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BaseBeautyStore.md +143 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/BattleStore.md +298 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoGuestStore.md +349 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/CoHostStore.md +297 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/DeviceStore.md +471 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/GiftStore.md +179 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LikeStore.md +49 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveAudienceStore.md +238 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveCoreView.md +74 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LiveSeatStore.md +412 -0
- package/resource/doc/livekit/core-sdk/live/ios/api-reference/LoginStore.md +173 -0
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audience-list.md +23 -96
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-audio-effect.md +33 -195
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-barrage.md +35 -150
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-base-beauty.md +20 -105
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-co-guest-interaction.md +35 -140
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-gift.md +77 -457
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-host-interaction.md +70 -317
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-integration.md +90 -473
- package/resource/doc/livekit/{live → core-sdk/live}/ios/live-live-list.md +28 -163
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audience-list.md +17 -88
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-audio-effect.md +34 -192
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-barrage.md +26 -139
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-co-guest-interaction.md +53 -262
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-gift.md +75 -455
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-host-interaction.md +60 -272
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-integration.md +63 -440
- package/resource/doc/livekit/{voice → core-sdk/voice}/android/voice-room-list.md +23 -151
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audience-list.md +13 -91
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-audio-effect.md +34 -177
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-barrage.md +18 -102
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-co-guest-interaction.md +44 -201
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-gift.md +66 -460
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-integration.md +57 -419
- package/resource/doc/livekit/{voice → core-sdk/voice}/flutter/voice-room-list.md +24 -157
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audience-list.md +23 -96
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-audio-effect.md +33 -195
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-barrage.md +35 -150
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-co-guest-interaction.md +45 -254
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-gift.md +77 -457
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-host-interaction.md +52 -261
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/ios/voice-room-list.md +36 -167
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audience-list.md +15 -45
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-audio-effect.md +23 -137
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-barrage.md +25 -131
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-co-guest-interaction.md +70 -366
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-gift.md +70 -424
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/{voice → core-sdk/voice}/uni-app/voice-room-list.md +24 -116
- package/resource/doc/livekit/faq/common/{error_code.md → error-code.md} +2 -3
- package/resource/doc/livekit/preset/live/vue/api-reference/index.md +780 -0
- package/resource/doc/livekit/preset/live/vue/components/barrage.md +291 -0
- package/resource/doc/livekit/{live → preset/live}/vue/components/co-guest-panel.md +9 -48
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-audience-list.md +27 -145
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-scene-panel.md +13 -76
- package/resource/doc/livekit/{live → preset/live}/vue/components/live-view.md +33 -224
- package/resource/doc/livekit/preset/live/vue/components/stream-mixer.md +211 -0
- package/resource/doc/livekit/preset/live/vue/faq.md +1 -0
- package/resource/doc/livekit/preset/live/vue/live-list-integration.md +244 -0
- package/resource/doc/livekit/preset/live/vue/live-player-desk-integration.md +301 -0
- package/resource/doc/livekit/preset/live/vue/live-player-h5-integration.md +307 -0
- package/resource/doc/livekit/preset/live/vue/live-pusher-integration.md +754 -0
- package/resource/doc/roomkit/android/features/call-user-to-room.md +234 -0
- package/resource/doc/roomkit/android/features/room-participant-state.md +850 -0
- package/resource/doc/roomkit/android/features/room-state.md +358 -0
- package/resource/doc/roomkit/android/features/schedule-room.md +336 -0
- package/resource/doc/roomkit/android/integration.md +433 -0
- package/resource/doc/roomkit/{common/error_code.md → faq/common/error-code.md} +1 -1
- package/resource/doc/roomkit/flutter/features/call-user-to-room.md +228 -0
- package/resource/doc/roomkit/flutter/features/room-participant-state.md +796 -0
- package/resource/doc/roomkit/flutter/features/room-state.md +324 -0
- package/resource/doc/roomkit/flutter/features/schedule-room.md +324 -0
- package/resource/doc/roomkit/flutter/integration.md +405 -0
- package/resource/doc/roomkit/ios/features/call-user-to-room.md +226 -0
- package/resource/doc/roomkit/ios/features/room-participant-state.md +821 -0
- package/resource/doc/roomkit/ios/features/room-state.md +320 -0
- package/resource/doc/roomkit/ios/features/schedule-room.md +318 -0
- package/resource/doc/roomkit/ios/integration.md +384 -0
- package/resource/doc/roomkit/vue/faq.md +1 -0
- package/resource/doc/roomkit/vue/features/call-user-to-room.md +17 -53
- package/resource/doc/roomkit/vue/features/device-detection.md +30 -48
- package/resource/doc/roomkit/vue/features/device-state.md +24 -44
- package/resource/doc/roomkit/vue/features/free-beauty-panel.md +13 -36
- package/resource/doc/roomkit/vue/features/room-chat.md +31 -89
- package/resource/doc/roomkit/vue/features/room-participant-state.md +28 -50
- package/resource/doc/roomkit/vue/features/room-state.md +25 -36
- package/resource/doc/roomkit/vue/features/room-view.md +30 -127
- package/resource/doc/roomkit/vue/features/schedule-room.md +9 -40
- package/resource/doc/roomkit/vue/features/screen-share.md +22 -90
- package/resource/doc/roomkit/vue/features/virtual-background.md +13 -34
- package/resource/doc/roomkit/vue/integration.md +21 -80
- package/resource/doc/rtcengine/faq/common/userSig.md +17 -141
- package/resource/doc/rtcengine/faq/web/web.md +15 -22
- package/resource/doc/rtcengine/web/api.md +17 -21
- package/resource/doc/rtcengine/web/how_to_integrated_web_sdk.md +4 -10
- package/resource/doc/rtcengine/web/how_to_run_web_sdk_demo.md +4 -8
- package/resource/doc/rtcengine/web/plugin/20-advanced-customized-capture-rendering.md +3 -3
- package/resource/doc/rtcengine/web/plugin/21-advanced-auto-play-policy.md +2 -3
- package/resource/doc/rtcengine/web/plugin/22-advanced-audio-mixer.md +6 -6
- package/resource/doc/rtcengine/web/plugin/23-advanced-support-detection.md +2 -2
- package/resource/doc/rtcengine/web/plugin/24-advanced-network-quality.md +2 -4
- package/resource/doc/rtcengine/web/plugin/25-advanced-device-change.md +1 -2
- package/resource/doc/rtcengine/web/plugin/26-advanced-publish-cdn-stream.md +2 -6
- package/resource/doc/rtcengine/web/plugin/27-advanced-small-stream.md +13 -14
- package/resource/doc/rtcengine/web/plugin/28-advanced-beauty.md +10 -90
- package/resource/doc/rtcengine/web/plugin/31-advanced-plugins-overview.md +5 -8
- package/resource/doc/rtcengine/web/plugin/34-advanced-proxy.md +31 -35
- package/resource/doc/rtcengine/web/plugin/35-advanced-ai-denoiser.md +0 -2
- package/resource/doc/rtcengine/web/plugin/36-advanced-virtual-background.md +7 -49
- package/resource/doc/rtcengine/web/plugin/37-advanced-voice-changer.md +1 -1
- package/resource/doc/rtcengine/web/plugin/39-advanced-video-decoder.md +0 -3
- package/resource/doc/rtcengine/web/plugin/40-advanced-video-mixer.md +20 -20
- package/resource/doc/rtcengine/web/plugin/41-advanced-small-stream-auto-switcher.md +1 -1
- package/resource/doc/rtcengine/web/plugin/42-advanced-realtime-transcriber.md +4 -4
- package/resource/doc/rtcengine/web/plugin/43-advanced-face-detection.md +3 -3
- package/resource/doc/trtc/C++/ITRTCCloud.md +718 -2847
- package/resource/doc/trtc/C++/ITRTCStatistics.md +53 -308
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +207 -1041
- package/resource/doc/trtc/C++/ITXDeviceManager.md +127 -768
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +634 -2259
- package/resource/doc/trtc/C++/TRTCTypeDef.md +726 -3465
- package/resource/doc/trtc/C++/TXLiteAVCode.md +117 -916
- package/resource/doc/trtc/android/TRTCCloud.md +638 -2612
- package/resource/doc/trtc/android/TRTCCloudDef.md +769 -3697
- package/resource/doc/trtc/android/TRTCCloudListener.md +609 -2070
- package/resource/doc/trtc/android/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/android/TXAudioEffectManager.md +207 -1049
- package/resource/doc/trtc/android/TXBeautyManager.md +127 -704
- package/resource/doc/trtc/android/TXDeviceManager.md +51 -318
- package/resource/doc/trtc/android/TXLiteAVCode.md +115 -900
- package/resource/doc/trtc/iOS/TRTCCloud.md +726 -2930
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +580 -2099
- package/resource/doc/trtc/iOS/TRTCStatistics.md +48 -278
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +179 -896
- package/resource/doc/trtc/iOS/TXBeautyManager.md +128 -710
- package/resource/doc/trtc/iOS/TXDeviceManager.md +129 -772
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +117 -915
- package/resource/doc/trtc/iOS/TXLiveSDKTypeDef.md +747 -3559
- package/server.js +1 -5
- package/server.js.map +1 -1
- package/tools/call/get_callkit_api.js +32 -0
- package/tools/call/get_callkit_api.js.map +1 -0
- package/tools/call/get_native_call_uikit_integration.js +34 -0
- package/tools/call/get_native_call_uikit_integration.js.map +1 -0
- package/tools/call/{get-web-call-integration.js → get_web_call_uikit_integration.js} +13 -8
- package/tools/call/get_web_call_uikit_integration.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js +34 -0
- package/tools/chat/get_native_chat_uikit_feature_detail.js.map +1 -0
- package/tools/chat/get_native_chat_uikit_integration.js +45 -0
- package/tools/chat/get_native_chat_uikit_integration.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js +34 -0
- package/tools/chat/get_web_chat_uikit_component_detail.js.map +1 -0
- package/tools/chat/get_web_chat_uikit_integration.js +45 -0
- package/tools/chat/get_web_chat_uikit_integration.js.map +1 -0
- package/tools/common/get_faq.js +265 -0
- package/tools/common/get_faq.js.map +1 -0
- package/tools/common/{get-usersig.js → get_usersig.js} +6 -3
- package/tools/common/get_usersig.js.map +1 -0
- package/tools/common/present_framework_choice.js +63 -0
- package/tools/common/present_framework_choice.js.map +1 -0
- package/tools/definitions/get_callkit_api_def.js +28 -0
- package/tools/definitions/get_callkit_api_def.js.map +1 -0
- package/tools/definitions/get_faq_def.js +18 -19
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_call_uikit_integration_def.js +15 -34
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js +31 -0
- package/tools/definitions/get_native_chat_uikit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +16 -41
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_native_livekit_core_features_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_features_def.js.map +1 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js +33 -0
- package/tools/definitions/get_native_livekit_core_integration_def.js.map +1 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js +32 -0
- package/tools/definitions/get_native_trtc_sdk_docs_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +17 -24
- package/tools/definitions/get_usersig_def.js.map +1 -1
- package/tools/definitions/get_web_call_uikit_integration_def.js +15 -7
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +17 -49
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_chat_uikit_integration_def.js +16 -19
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +13 -18
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_livekit_api_def.js +27 -0
- package/tools/definitions/get_web_livekit_api_def.js.map +1 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js +29 -0
- package/tools/definitions/get_web_livekit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_uikit_integration_def.js +13 -46
- package/tools/definitions/get_web_room_uikit_integration_def.js.map +1 -1
- package/tools/definitions/get_web_roomkit_feature_detail_def.js +30 -0
- package/tools/definitions/get_web_roomkit_feature_detail_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_api_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_integration_def.js.map +1 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js +25 -0
- package/tools/definitions/get_web_trtc_sdk_plugin_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +23 -12
- package/tools/definitions/present_framework_choice_def.js.map +1 -1
- package/tools/index.js +47 -61
- package/tools/index.js.map +1 -1
- package/tools/live/get_native_livekit_core_features.js +65 -0
- package/tools/live/get_native_livekit_core_features.js.map +1 -0
- package/tools/live/get_native_livekit_core_integration.js +59 -0
- package/tools/live/get_native_livekit_core_integration.js.map +1 -0
- package/tools/live/get_web_live_uikit_integration.js +48 -0
- package/tools/live/get_web_live_uikit_integration.js.map +1 -0
- package/tools/live/get_web_livekit_api.js +32 -0
- package/tools/live/get_web_livekit_api.js.map +1 -0
- package/tools/live/get_web_livekit_component_detail.js +34 -0
- package/tools/live/get_web_livekit_component_detail.js.map +1 -0
- package/tools/room/{get-web-room-integration.js → get_web_room_uikit_integration.js} +13 -14
- package/tools/room/get_web_room_uikit_integration.js.map +1 -0
- package/tools/room/{get-web-room-feature-detail.js → get_web_roomkit_feature_detail.js} +30 -31
- package/tools/room/get_web_roomkit_feature_detail.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_api.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_integration.js.map +1 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js +31 -0
- package/tools/rtcengine/get_web_trtc_sdk_plugin.js.map +1 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js +73 -0
- package/tools/trtc/get_native_trtc_sdk_docs.js.map +1 -0
- package/utils/generate-structured-result.js +61 -17
- package/utils/generate-structured-result.js.map +1 -1
- package/utils/report-cls-client.js +12 -1
- package/utils/report-cls-client.js.map +1 -1
- package/utils/report-es-client.js +1 -1
- package/resource/doc/chatuikit/android/workflow.md +0 -713
- package/resource/doc/chatuikit/faq/android_sdk/client-api.md +0 -1376
- package/resource/doc/chatuikit/faq/flutter_sdk/client-api.md +0 -860
- package/resource/doc/chatuikit/faq/ios_sdk/client-api.md +0 -1371
- package/resource/doc/chatuikit/flutter/workflow.md +0 -816
- package/resource/doc/chatuikit/iOS/workflow.md +0 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +0 -765
- package/resource/doc/chatuikit/react/components/search.md +0 -885
- package/resource/doc/chatuikit/react/create-group.md +0 -22
- package/resource/doc/chatuikit/react/init.md +0 -25
- package/resource/doc/chatuikit/react/workflow.md +0 -254
- package/resource/doc/chatuikit/uniapp-app/faq.md +0 -0
- package/resource/doc/chatuikit/uniapp-app/integration.md +0 -619
- package/resource/doc/chatuikit/uniapp-app/workflow.md +0 -576
- package/resource/doc/chatuikit/vue/components/contact-list.md +0 -679
- package/resource/doc/chatuikit/vue/components/tuikit.md +0 -110
- package/resource/doc/chatuikit/vue/create-group.md +0 -26
- package/resource/doc/chatuikit/vue/init.md +0 -35
- package/resource/doc/chatuikit/vue/workflow.md +0 -395
- package/resource/doc/livekit/live/android/workflow.md +0 -322
- package/resource/doc/livekit/live/flutter/workflow.md +0 -353
- package/resource/doc/livekit/live/ios/workflow.md +0 -352
- package/resource/doc/livekit/live/vue/components/barrage.md +0 -615
- package/resource/doc/livekit/live/vue/components/stream-mixer.md +0 -442
- package/resource/doc/livekit/live/vue/faq.md +0 -0
- package/resource/doc/livekit/live/vue/live-list-integration.md +0 -195
- package/resource/doc/livekit/live/vue/live-player-desk-integration.md +0 -293
- package/resource/doc/livekit/live/vue/live-player-h5-integration.md +0 -381
- package/resource/doc/livekit/live/vue/live-pusher-integration.md +0 -598
- package/resource/doc/livekit/live/vue/states/live-state.md +0 -2656
- package/resource/doc/livekit/live/vue/workflow.md +0 -219
- package/resource/doc/livekit/voice/android/workflow.md +0 -333
- package/resource/doc/livekit/voice/flutter/workflow.md +0 -359
- package/resource/doc/livekit/voice/ios/voice-integration.md +0 -853
- package/resource/doc/livekit/voice/ios/workflow.md +0 -358
- package/resource/doc/livekit/voice/uni-app/voice-integration.md +0 -613
- package/resource/doc/livekit/voice/uni-app/workflow.md +0 -369
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +0 -334
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +0 -434
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +0 -685
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +0 -712
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +0 -284
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +0 -849
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +0 -1046
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +0 -460
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +0 -558
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +0 -879
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +0 -668
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +0 -456
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +0 -332
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +0 -748
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +0 -328
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +0 -505
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +0 -507
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +0 -676
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +0 -284
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +0 -820
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +0 -1065
- package/resource/doc/roomkit/vue/features/workflow.md +0 -553
- package/resource/doc/roomkit/vue/workflow.md +0 -733
- package/resource/doc/tuicallkit/android/workflow.md +0 -432
- package/resource/doc/tuicallkit/faq/android_sdk/call-observer-api.md +0 -786
- package/resource/doc/tuicallkit/faq/android_sdk/callkit-api.md +0 -663
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-define-api.md +0 -932
- package/resource/doc/tuicallkit/faq/flutter_sdk/call-observer-api.md +0 -926
- package/resource/doc/tuicallkit/faq/flutter_sdk/callkit-api.md +0 -452
- package/resource/doc/tuicallkit/faq/ios_sdk/call-observer-api.md +0 -779
- package/resource/doc/tuicallkit/faq/ios_sdk/callkit-api.md +0 -635
- package/resource/doc/tuicallkit/flutter/workflow.md +0 -331
- package/resource/doc/tuicallkit/react/api.md +0 -1512
- package/resource/doc/tuicallkit/react/faq.md +0 -986
- package/resource/doc/tuicallkit/vue/api.md +0 -1512
- package/tools/call/get-native-call-integration.js +0 -43
- package/tools/call/get-native-call-integration.js.map +0 -1
- package/tools/call/get-web-call-api.js +0 -27
- package/tools/call/get-web-call-api.js.map +0 -1
- package/tools/call/get-web-call-integration.js.map +0 -1
- package/tools/chat/get-native-chat-feature-detail.js +0 -30
- package/tools/chat/get-native-chat-feature-detail.js.map +0 -1
- package/tools/chat/get-native-chat-integration.js +0 -45
- package/tools/chat/get-native-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-component-detail.js +0 -31
- package/tools/chat/get-web-chat-component-detail.js.map +0 -1
- package/tools/chat/get-web-chat-integration.js +0 -45
- package/tools/chat/get-web-chat-integration.js.map +0 -1
- package/tools/chat/get-web-chat-uikit-init.js +0 -28
- package/tools/chat/get-web-chat-uikit-init.js.map +0 -1
- package/tools/chat/get-web-create-group-doc.js +0 -28
- package/tools/chat/get-web-create-group-doc.js.map +0 -1
- package/tools/common/get-faq.js +0 -91
- package/tools/common/get-faq.js.map +0 -1
- package/tools/common/get-usersig.js.map +0 -1
- package/tools/common/present-framework-choice.js +0 -16
- package/tools/common/present-framework-choice.js.map +0 -1
- package/tools/common/present-scenario-choice.js +0 -16
- package/tools/common/present-scenario-choice.js.map +0 -1
- package/tools/common/record-prompt.js +0 -55
- package/tools/common/record-prompt.js.map +0 -1
- package/tools/common/record-result.js +0 -60
- package/tools/common/record-result.js.map +0 -1
- package/tools/definitions/get_native_chat_feature_detail_def.js +0 -32
- package/tools/definitions/get_native_chat_feature_detail_def.js.map +0 -1
- package/tools/definitions/get_native_live_api_def.js +0 -22
- package/tools/definitions/get_native_live_api_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_extra_features_def.js +0 -109
- package/tools/definitions/get_native_live_uikit_extra_features_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_integration_def.js +0 -75
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -63
- package/tools/definitions/get_native_live_uikit_interaction_def.js.map +0 -1
- package/tools/definitions/get_trtc_native_api_def.js +0 -17
- package/tools/definitions/get_trtc_native_api_def.js.map +0 -1
- package/tools/definitions/get_web_call_uikit_api_def.js +0 -23
- package/tools/definitions/get_web_call_uikit_api_def.js.map +0 -1
- package/tools/definitions/get_web_chat_uikit_init_def.js +0 -23
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +0 -1
- package/tools/definitions/get_web_create_group_doc_def.js +0 -18
- package/tools/definitions/get_web_create_group_doc_def.js.map +0 -1
- package/tools/definitions/get_web_live_state_detail_def.js +0 -19
- package/tools/definitions/get_web_live_state_detail_def.js.map +0 -1
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +0 -27
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +0 -1
- package/tools/definitions/get_web_room_feature_detail_def.js +0 -92
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/present_scenario_choice_def.js +0 -53
- package/tools/definitions/present_scenario_choice_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -58
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -46
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -177
- package/tools/live/get-native-live-uikit-integration.js.map +0 -1
- package/tools/live/get-web-live-component-detail.js +0 -31
- package/tools/live/get-web-live-component-detail.js.map +0 -1
- package/tools/live/get-web-live-state-detail.js +0 -31
- package/tools/live/get-web-live-state-detail.js.map +0 -1
- package/tools/live/get-web-live-uikit-integration.js +0 -52
- package/tools/live/get-web-live-uikit-integration.js.map +0 -1
- package/tools/live/get_native_live_uikit_extra_features.js +0 -105
- package/tools/live/get_native_live_uikit_extra_features.js.map +0 -1
- package/tools/live/get_native_live_uikit_interaction.js +0 -194
- package/tools/live/get_native_live_uikit_interaction.js.map +0 -1
- package/tools/native_live/get-native-live-api.js +0 -31
- package/tools/native_live/get-native-live-api.js.map +0 -1
- package/tools/room/get-web-room-feature-detail.js.map +0 -1
- package/tools/room/get-web-room-integration.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +0 -28
- package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-sdk-faq.js +0 -32
- package/tools/rtcengine/get-trtc-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-api.js +0 -28
- package/tools/rtcengine/get-trtc-web-sdk-api.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-faq.js +0 -30
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-integration.js +0 -29
- package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +0 -1
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js +0 -45
- package/tools/rtcengine/get-trtc-web-sdk-plugin.js.map +0 -1
- package/tools/trtc/get-trtc-native-api.js +0 -31
- package/tools/trtc/get-trtc-native-api.js.map +0 -1
- package/utils/handle-component-name.js +0 -33
- package/utils/handle-component-name.js.map +0 -1
- /package/resource/doc/{rtcengine/web → callkit/core-sdk}/.gitkeep +0 -0
- /package/resource/doc/{chatuikit → chatkit}/faq/common/server_error_code.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/flutter/faq.md +0 -0
- /package/resource/doc/{chatuikit → chatkit}/react/faq.md +0 -0
|
@@ -7,23 +7,20 @@ AI 模型必须遵守以下**硬性限制**。
|
|
|
7
7
|
|
|
8
8
|
ChatHeader 聊天头部组件是聊天界面的顶部导航组件,用于显示当前会话的基本信息。能够展示会话标题、头像、在线状态、输入状态提示等信息。组件采用容器组件模式,提供了灵活的插槽机制用于自定义左右两侧的操作区域。
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
## Props 速查表
|
|
12
11
|
|
|
13
12
|
| 字段 | 类型 | 默认值 | 描述 |
|
|
14
13
|
|------|------|--------|------|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
14
|
+
| title | string | undefined | 自定义标题,未提供时使用会话信息。 |
|
|
15
|
+
| avatarUrl | string | undefined | 自定义头像图片 URL。 |
|
|
16
|
+
| enableUserStatus | boolean | false | 是否显示用户状态。 |
|
|
19
17
|
|
|
20
18
|
## Slot 速查表
|
|
21
19
|
|
|
22
20
|
| 名称 | 描述 |
|
|
23
21
|
|------|------|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
22
|
+
| ChatHeaderLeft | 头部左侧自定义内容区域。 |
|
|
23
|
+
| ChatHeaderRight | 头部右侧自定义内容区域。 |
|
|
27
24
|
|
|
28
25
|
## Props 详细介绍
|
|
29
26
|
|
|
@@ -32,19 +29,16 @@ ChatHeader 聊天头部组件是聊天界面的顶部导航组件,用于显示
|
|
|
32
29
|
|
|
33
30
|
- **描述**:自定义会话标题,当不提供此属性时,组件会自动根据会话类型显示相应的标题(单聊显示用户昵称或备注,群聊显示群名称),默认值为 `undefined`。
|
|
34
31
|
|
|
35
|
-
|
|
36
32
|
### avatarUrl
|
|
37
33
|
- **类型**:string
|
|
38
34
|
|
|
39
35
|
- **描述**:自定义头像图片的 URL 地址,当不提供此属性时,组件会自动根据会话类型显示相应的头像(单聊显示用户头像,群聊显示群头像),默认值为 `undefined`。
|
|
40
36
|
|
|
41
|
-
|
|
42
37
|
### enableUserStatus
|
|
43
38
|
- **类型**:boolean
|
|
44
39
|
|
|
45
40
|
- **描述**:是否启用并显示用户在线状态功能,仅在单聊模式下生效,开启后会显示用户的在线/离线状态,默认值为 `false`。
|
|
46
41
|
|
|
47
|
-
|
|
48
42
|
## Slots 详细介绍
|
|
49
43
|
|
|
50
44
|
### ChatHeaderLeft
|
|
@@ -57,7 +51,7 @@ ChatHeader 聊天头部组件是聊天界面的顶部导航组件,用于显示
|
|
|
57
51
|
<ChatHeader>
|
|
58
52
|
<template #ChatHeaderLeft>
|
|
59
53
|
<!-- 返回按钮, 清除激活的会话 -->
|
|
60
|
-
<button
|
|
54
|
+
<button
|
|
61
55
|
class="nav-button"
|
|
62
56
|
@click="handleBack"
|
|
63
57
|
>
|
|
@@ -133,7 +127,7 @@ const handleBack = () => {
|
|
|
133
127
|
|
|
134
128
|
<script setup lang="ts">
|
|
135
129
|
import {
|
|
136
|
-
ChatHeader,
|
|
130
|
+
ChatHeader,
|
|
137
131
|
ChatSetting
|
|
138
132
|
} from '@tencentcloud/chat-uikit-vue3';
|
|
139
133
|
import { TUIDrawer, IconHorizontalMore2 } from '@tencentcloud/uikit-base-component-vue3';
|
|
@@ -6,14 +6,12 @@ ChatSetting 是一个智能的聊天设置组件,它能够根据当前激活
|
|
|
6
6
|
- **自动适配**:根据会话类型(分为单聊和群聊)自动切换设置界面。
|
|
7
7
|
|
|
8
8
|
- **状态驱动**:基于当前激活会话状态自动更新内容。
|
|
9
|
-
|
|
10
9
|
|
|
11
10
|
> **注意:**
|
|
12
|
-
>
|
|
11
|
+
>
|
|
13
12
|
|
|
14
13
|
> 如果当前没有激活的会话则不会显示。
|
|
15
|
-
>
|
|
16
|
-
|
|
14
|
+
>
|
|
17
15
|
|
|
18
16
|
## 快速使用
|
|
19
17
|
|
|
@@ -34,7 +32,7 @@ ChatSetting 是一个可自由使用的独立组件,为了组件使用的灵
|
|
|
34
32
|
<MessageList />
|
|
35
33
|
<MessageInput />
|
|
36
34
|
</Chat>
|
|
37
|
-
<Drawer
|
|
35
|
+
<Drawer
|
|
38
36
|
:open="isSettingVisible"
|
|
39
37
|
title="聊天设置"
|
|
40
38
|
>
|
|
@@ -58,31 +56,28 @@ const toggleChatSetting = () => {
|
|
|
58
56
|
```
|
|
59
57
|
|
|
60
58
|
## 相关文档
|
|
61
|
-
-
|
|
59
|
+
- 自定义组件 - UIKitProvider
|
|
62
60
|
|
|
63
|
-
-
|
|
61
|
+
- 自定义组件 - ConversationList
|
|
64
62
|
|
|
65
|
-
-
|
|
63
|
+
- 自定义组件 - Chat
|
|
66
64
|
|
|
67
|
-
-
|
|
65
|
+
- 自定义组件 - MessageInput
|
|
68
66
|
|
|
69
|
-
-
|
|
67
|
+
- 自定义组件 - MessageList
|
|
70
68
|
|
|
71
|
-
-
|
|
69
|
+
- 自定义组件 - ChatSetting
|
|
72
70
|
|
|
73
|
-
-
|
|
71
|
+
- 自定义组件 - C2CSetting State
|
|
74
72
|
|
|
75
|
-
-
|
|
73
|
+
- 自定义组件 - GroupSetting State
|
|
76
74
|
|
|
77
|
-
-
|
|
75
|
+
- 自定义组件 - ContactList
|
|
78
76
|
|
|
79
|
-
-
|
|
77
|
+
- 自定义组件 - Search
|
|
80
78
|
|
|
81
79
|
- [chat-uikit-vue3 npm](https://www.npmjs.com/package/@tencentcloud/chat-uikit-vue3)
|
|
82
80
|
|
|
83
81
|
- [GitHub Demo](https://github.com/Tencent-RTC/TUIKit_Vue3/tree/main/demos/rtcube-vite-vue3)
|
|
84
82
|
|
|
85
|
-
|
|
86
83
|
## 交流与反馈
|
|
87
|
-
|
|
88
|
-
如遇任何问题,可联系 [官网售后](https://cloud.tencent.com/act/event/connect-service#/) 反馈,享有专业工程师的支持,解决您的难题。
|
|
@@ -8,7 +8,6 @@ AI 模型必须遵守以下**硬性限制**。
|
|
|
8
8
|
|
|
9
9
|
Chat 组件负责渲染聊天界面,包含聊天窗口头部组件 ChatHeader 、消息列表组件 MessageList、 消息输入组件 MessageInput。
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
## 组件构成
|
|
13
12
|
|
|
14
13
|
Chat 组件包含以下内容:
|
|
@@ -40,4 +39,4 @@ import {
|
|
|
40
39
|
MessageInput,
|
|
41
40
|
} from '@tencentcloud/chat-uikit-vue3';
|
|
42
41
|
</script>
|
|
43
|
-
```
|
|
42
|
+
```
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
## 概述
|
|
2
|
+
|
|
3
|
+
ContactList 是一个高度可配置的联系人列表组件。该组件支持好友列表、群组列表、黑名单和申请管理,提供分组折叠、搜索过滤、自定义渲染等核心功能,适用于即时通讯、社交应用等场景的联系人管理界面。
|
|
4
|
+
|
|
5
|
+
## ContactList Props
|
|
6
|
+
| 字段 | 类型 | 默认值 | 描述 |
|
|
7
|
+
| --- | --- | --- | --- |
|
|
8
|
+
| activeContactItem | ContactGroupItem \\| undefined | undefined | 当前激活的联系人项 |
|
|
9
|
+
| enableSearch | boolean | true | 是否启用搜索功能 |
|
|
10
|
+
| groupConfig | Partial<Record<ContactItemType, CustomGroupConfig>> | {} | 自定义分组配置 |
|
|
11
|
+
| searchPlaceholder | string | 'Search contacts' | 搜索框占位符文本 |
|
|
12
|
+
| emptyText | string | 'No contacts' | 空状态提示文本 |
|
|
13
|
+
| ContactItem | Component \\| undefined | ContactListItem | 自定义联系人项组件 |
|
|
14
|
+
| ContactSearchComponent | Component \\| undefined | ContactSearch | 自定义搜索组件 |
|
|
15
|
+
| GroupHeader | Component \\| undefined | 默认分组头 | 自定义分组头部组件 |
|
|
16
|
+
| PlaceholderEmptyList | Component \\| undefined | 默认空状态 | 自定义空状态组件 |
|
|
17
|
+
| onContactItemClick | (item: ContactGroupItem) => void | undefined | 联系人项点击事件 |
|
|
18
|
+
| onFriendApplicationAction | (action: 'accept' \\| 'refuse', application: FriendApplication) => void | undefined | 好友申请操作事件 |
|
|
19
|
+
| onGroupApplicationAction | (action: 'accept' \\| 'refuse', application: GroupApplication) => void | undefined | 群组申请操作事件 |
|
|
20
|
+
|
|
21
|
+
## ContactList Events
|
|
22
|
+
| 事件名 | 参数 | 描述 |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| contact-item-click | (item: ContactGroupItem) | 联系人项点击事件 |
|
|
25
|
+
| friend-application-action | (action: 'accept' \\| 'refuse', application: FriendApplication) | 好友申请操作事件 |
|
|
26
|
+
| group-application-action | (action: 'accept' \\| 'refuse', application: GroupApplication) | 群组申请操作事件 |
|
|
27
|
+
|
|
28
|
+
## ContactInfo Props
|
|
29
|
+
| 字段 | 类型 | 默认值 | 描述 |
|
|
30
|
+
| --- | --- | --- | --- |
|
|
31
|
+
| contactItem | ContactGroupItem \\| undefined | undefined | 当前显示的联系人项 |
|
|
32
|
+
| showActions | boolean | true | 是否显示操作按钮 |
|
|
33
|
+
| PlaceholderEmpty | Component \\| undefined | undefined | 空状态占位组件 |
|
|
34
|
+
| FriendInfoComponent | Component | FriendInfo | 好友信息组件 |
|
|
35
|
+
| GroupInfoComponent | Component | GroupInfo | 群组信息组件 |
|
|
36
|
+
| BlacklistInfoComponent | Component | BlacklistInfo | 黑名单信息组件 |
|
|
37
|
+
| FriendApplicationInfoComponent | Component | FriendApplicationInfo | 好友申请信息组件 |
|
|
38
|
+
| GroupApplicationInfoComponent | Component | GroupApplicationInfo | 群组申请信息组件 |
|
|
39
|
+
| SearchGroupInfoComponent | Component | SearchGroupInfo | 搜索群组信息组件 |
|
|
40
|
+
| SearchUserInfoComponent | Component | SearchUserInfo | 搜索用户信息组件 |
|
|
41
|
+
|
|
42
|
+
## ContactInfo Events
|
|
43
|
+
| 事件名 | 参数 | 描述 |
|
|
44
|
+
| --- | --- | --- |
|
|
45
|
+
| close | - | 关闭信息面板事件 |
|
|
46
|
+
| sendMessage | (friend: Friend) | 发送消息事件 |
|
|
47
|
+
| deleteFriend | (friend: Friend) | 删除好友事件 |
|
|
48
|
+
| addToBlacklist | (friend: Friend) | 添加到黑名单事件 |
|
|
49
|
+
| removeFromBlacklist | (profile: UserProfile) | 从黑名单移除事件 |
|
|
50
|
+
| updateFriendRemark | (friend: Friend) | 更新好友备注事件 |
|
|
51
|
+
| enterGroup | (group: GroupModel) | 进入群组事件 |
|
|
52
|
+
| leaveGroup | (group: GroupModel) | 退出群组事件 |
|
|
53
|
+
| dismissGroup | (group: GroupModel) | 解散群组事件 |
|
|
54
|
+
| friendApplicationAction | (action: 'accept' \\| 'refuse', application: FriendApplication) | 好友申请操作事件 |
|
|
55
|
+
| groupApplicationAction | (action: 'accept' \\| 'refuse', application: GroupApplication) | 群组申请操作事件 |
|
|
56
|
+
| addFriend | (user: UserProfile, wording: string) | 添加好友事件 |
|
|
57
|
+
| joinGroup | (group: GroupModel, note: string) | 加入群组事件 |
|
|
58
|
+
|
|
59
|
+
## 基础用法
|
|
60
|
+
``` typescript
|
|
61
|
+
<template>
|
|
62
|
+
<div class="contact-container">
|
|
63
|
+
<ContactList />
|
|
64
|
+
<ContactInfo />
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<script setup lang="ts">
|
|
69
|
+
import { ContactList, ContactInfo } from '@tencentcloud/chat-uikit-vue3';
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<style scoped>
|
|
73
|
+
.contact-container {
|
|
74
|
+
display: flex;
|
|
75
|
+
height: 100vh;
|
|
76
|
+
}
|
|
77
|
+
</style>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## 自定义
|
|
81
|
+
|
|
82
|
+
### 自定义联系列表搜索功能开关
|
|
83
|
+
|
|
84
|
+
通过设置 `enableSearch` 参数,您可以灵活地控制 ContactList 中的搜索好友群组功能的显示。
|
|
85
|
+
``` typescript
|
|
86
|
+
<template>
|
|
87
|
+
<ContactList :enableSearch="false" />
|
|
88
|
+
</template>
|
|
89
|
+
```
|
|
90
|
+
| enableSearch="true" | enableSearch="false" |
|
|
91
|
+
| --- | --- |
|
|
92
|
+
| | |
|
|
93
|
+
|
|
94
|
+
### 自定义联系列表联系人分组配置
|
|
95
|
+
|
|
96
|
+
`groupConfig` 用于自定义分组配置,包括标题、显示顺序、隐藏分组等。
|
|
97
|
+
``` typescript
|
|
98
|
+
<template>
|
|
99
|
+
<ContactList :groupConfig="customGroupConfig" />
|
|
100
|
+
</template>
|
|
101
|
+
|
|
102
|
+
<script setup lang="ts">
|
|
103
|
+
import { ContactList } from '@tencentcloud/chat-uikit-vue3';
|
|
104
|
+
import { ContactItemType } from '@tencentcloud/chat-uikit-vue3';
|
|
105
|
+
|
|
106
|
+
const customGroupConfig = {
|
|
107
|
+
[ContactItemType.FRIEND]: {
|
|
108
|
+
title: '我的朋友们',
|
|
109
|
+
order: 1,
|
|
110
|
+
},
|
|
111
|
+
[ContactItemType.GROUP]: {
|
|
112
|
+
title: '群聊列表',
|
|
113
|
+
order: 2,
|
|
114
|
+
},
|
|
115
|
+
[ContactItemType.BLACK]: {
|
|
116
|
+
hidden: true,
|
|
117
|
+
},
|
|
118
|
+
[ContactItemType.FRIEND_REQUEST]: {
|
|
119
|
+
title: '好友请求',
|
|
120
|
+
order: 0,
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
</script>
|
|
124
|
+
```
|
|
125
|
+
| 修改前 | 修改后 |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| | |
|
|
128
|
+
|
|
129
|
+
### 自定义联系列表子项
|
|
130
|
+
|
|
131
|
+
您可以通过传入自定义的 `ContactItem` 组件来完全控制联系人列表项的渲染。
|
|
132
|
+
``` typescript
|
|
133
|
+
<template>
|
|
134
|
+
<div class="custom-contact-item" @click="handleClick">
|
|
135
|
+
<label>自定义联系人</label>
|
|
136
|
+
<span v-if="props.contactItem.type === ContactItemType.FRIEND">{{ props.contactItem.data.nick }}</span>
|
|
137
|
+
<span v-if="props.contactItem.type === ContactItemType.GROUP">{{ props.contactItem.data.name }}</span>
|
|
138
|
+
</div>
|
|
139
|
+
</template>
|
|
140
|
+
<script setup lang="ts">
|
|
141
|
+
import { ContactItemType } from '@tencentcloud/chat-uikit-vue3';
|
|
142
|
+
|
|
143
|
+
const props = defineProps<{
|
|
144
|
+
contactItem: any;
|
|
145
|
+
}>();
|
|
146
|
+
const emit = defineEmits<{
|
|
147
|
+
click: [type: ContactItemType, item: any];
|
|
148
|
+
}>();
|
|
149
|
+
const handleClick = () => {
|
|
150
|
+
emit('click', props.contactItem.type, props.contactItem.data);
|
|
151
|
+
};
|
|
152
|
+
</script>
|
|
153
|
+
<style scoped>
|
|
154
|
+
.custom-contact-item {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: 10px;
|
|
158
|
+
padding: 10px 20px;
|
|
159
|
+
border-bottom: 1px solid #eee;
|
|
160
|
+
}
|
|
161
|
+
</style>
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
``` typescript
|
|
165
|
+
<template>
|
|
166
|
+
<ContactList :ContactItem="CustomContactItem" />
|
|
167
|
+
</template>
|
|
168
|
+
|
|
169
|
+
<script setup lang="ts">
|
|
170
|
+
import { ContactList } from '@tencentcloud/chat-uikit-vue3';
|
|
171
|
+
import CustomContactItem from './CustomContactItem.vue';
|
|
172
|
+
</script>
|
|
173
|
+
```
|
|
174
|
+
| 修改前 | 修改后 |
|
|
175
|
+
| --- | --- |
|
|
176
|
+
| | |
|
|
177
|
+
|
|
178
|
+
### 自定义联系人详情操作按钮开关
|
|
179
|
+
|
|
180
|
+
通过设置 `showActions` 参数,您可以控制联系人详情页面中操作按钮的显示。
|
|
181
|
+
``` typescript
|
|
182
|
+
<template>
|
|
183
|
+
<ContactInfo
|
|
184
|
+
:showActions="false"
|
|
185
|
+
/>
|
|
186
|
+
</template>
|
|
187
|
+
```
|
|
188
|
+
| 修改前 | 修改后 |
|
|
189
|
+
| --- | --- |
|
|
190
|
+
| | |
|
|
191
|
+
|
|
192
|
+
### 自定义联系人详情空状态
|
|
193
|
+
|
|
194
|
+
当没有选中任何联系人时,您可以自定义显示的空状态组件。
|
|
195
|
+
``` typescript
|
|
196
|
+
<template>
|
|
197
|
+
<div>
|
|
198
|
+
自定义空状态
|
|
199
|
+
</div>
|
|
200
|
+
</template>
|
|
201
|
+
```
|
|
202
|
+
``` typescript
|
|
203
|
+
<template>
|
|
204
|
+
<ContactInfo
|
|
205
|
+
:PlaceholderEmpty="CustomEmpty"
|
|
206
|
+
/>
|
|
207
|
+
</template>
|
|
208
|
+
|
|
209
|
+
<script setup lang="ts">
|
|
210
|
+
import { ContactList } from '@tencentcloud/chat-uikit-vue3';
|
|
211
|
+
import CustomEmpty from './CustomEmpty.vue';
|
|
212
|
+
</script>
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### 自定义好友详情组件
|
|
216
|
+
|
|
217
|
+
您可以为不同类型的联系人自定义详情显示组件。
|
|
218
|
+
``` typescript
|
|
219
|
+
<template>
|
|
220
|
+
<div class="custom-contact-info">
|
|
221
|
+
<label>自定义好友详情</label>
|
|
222
|
+
<div class="friend-info">
|
|
223
|
+
|
|
224
|
+
<span>{{ friend.nick }}</span>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</template>
|
|
228
|
+
<script setup lang="ts">
|
|
229
|
+
import type { Friend } from '@tencentcloud/chat-uikit-vue3';
|
|
230
|
+
|
|
231
|
+
defineProps<{
|
|
232
|
+
friend: Friend;
|
|
233
|
+
}>();
|
|
234
|
+
</script>
|
|
235
|
+
<style scoped>
|
|
236
|
+
.custom-contact-info {
|
|
237
|
+
display: flex;
|
|
238
|
+
flex-direction: column;
|
|
239
|
+
gap: 10px;
|
|
240
|
+
padding: 20px;
|
|
241
|
+
}
|
|
242
|
+
.friend-info {
|
|
243
|
+
display: flex;
|
|
244
|
+
justify-content: space-between;
|
|
245
|
+
align-items: center;
|
|
246
|
+
gap: 10px;
|
|
247
|
+
}
|
|
248
|
+
.avatar {
|
|
249
|
+
width: 60px;
|
|
250
|
+
height: 60px;
|
|
251
|
+
border-radius: 50%
|
|
252
|
+
}
|
|
253
|
+
</style>
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
``` typescript
|
|
257
|
+
<template>
|
|
258
|
+
<ContactInfo
|
|
259
|
+
:FriendInfoComponent="CustomFriendInfo"
|
|
260
|
+
/>
|
|
261
|
+
</template>
|
|
262
|
+
|
|
263
|
+
<script setup lang="ts">
|
|
264
|
+
import { defineComponent, h } from 'vue';
|
|
265
|
+
import type { FriendInfoProps, GroupInfoProps } from '@tencentcloud/chat-uikit-vue3';
|
|
266
|
+
import CustomFriendInfo from './CustomFriendInfo.vue';
|
|
267
|
+
</script>
|
|
268
|
+
```
|
|
269
|
+
| 修改前 | 修改后 |
|
|
270
|
+
| --- | --- |
|
|
271
|
+
| | |
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
## 概述
|
|
2
|
+
|
|
3
|
+
ConversationActions 组件负责单条会话的操作,默认支持删除、置顶、免打扰和标记未读/已读。
|
|
4
|
+
|
|
5
|
+
## 基础用法
|
|
6
|
+
|
|
7
|
+
在 `ConversationList` 中,可以通过 `actionsConfig` 属性快速自定义会话操作。
|
|
8
|
+
``` typescript
|
|
9
|
+
<template>
|
|
10
|
+
<UIKitProvider>
|
|
11
|
+
<ConversationList :actions-config="actionsConfig" />
|
|
12
|
+
</UIKitProvider>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import { UIKitProvider, ConversationList } from '@tencentcloud/chat-uikit-vue3';
|
|
17
|
+
import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
18
|
+
|
|
19
|
+
const actionsConfig = {
|
|
20
|
+
enablePin: false,
|
|
21
|
+
onConversationDelete: (conversation: ConversationModel) => {
|
|
22
|
+
console.log('Delete conversation success');
|
|
23
|
+
},
|
|
24
|
+
customConversationActions: {
|
|
25
|
+
'custom-actions-1': {
|
|
26
|
+
label: 'custom-actions',
|
|
27
|
+
onClick: (conversation: ConversationModel) => {
|
|
28
|
+
console.log(conversation);
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
</script>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 高阶用法
|
|
37
|
+
|
|
38
|
+
如果需要更深度的定制,可以直接替换 `ConversationList` 的 `ConversationActions` 属性。
|
|
39
|
+
``` typescript
|
|
40
|
+
<template>
|
|
41
|
+
<UIKitProvider>
|
|
42
|
+
<ConversationList
|
|
43
|
+
:ConversationActions="CustomConversationActions"
|
|
44
|
+
/>
|
|
45
|
+
</UIKitProvider>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<script setup lang="ts">
|
|
49
|
+
import { defineComponent } from 'vue';
|
|
50
|
+
import { UIKitProvider, ConversationList, ConversationActions } from '@tencentcloud/chat-uikit-vue3';
|
|
51
|
+
import type { ConversationActionsProps } from '@tencentcloud/chat-uikit-vue3';
|
|
52
|
+
|
|
53
|
+
const CustomConversationActions = defineComponent({
|
|
54
|
+
name: 'CustomConversationActions',
|
|
55
|
+
setup(props: ConversationActionsProps) {
|
|
56
|
+
return () => h(ConversationActions, {
|
|
57
|
+
...props,
|
|
58
|
+
enableDelete: false
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
</script>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Props
|
|
66
|
+
|
|
67
|
+
ConversationActions 组件的接口类型 `ConversationActionsProps` 基于 `ConversationActionsConfig` 接口进行扩展。
|
|
68
|
+
|
|
69
|
+
### ConversationActionsProps
|
|
70
|
+
| 参数名 | 类型 | 默认值 | 说明 |
|
|
71
|
+
| --- | --- | --- | --- |
|
|
72
|
+
| conversation(Required) | ConversationModel | - | 必选参数,表示当前渲染会话操作对应的会话 |
|
|
73
|
+
| className | string | - | 自定义根元素的类名 |
|
|
74
|
+
| style | CSSProperties | - | 自定义根元素的样式 |
|
|
75
|
+
|
|
76
|
+
### ConversationActionsConfig
|
|
77
|
+
| 参数名 | 类型 | 默认值 | 说明 |
|
|
78
|
+
| --- | --- | --- | --- |
|
|
79
|
+
| enablePin | boolean | true | 是否显示置顶功能按钮 |
|
|
80
|
+
| enableMute | boolean | true | 是否显示免打扰功能按钮 |
|
|
81
|
+
| enableDelete | boolean | true | 是否显示删除功能按钮 |
|
|
82
|
+
| enableMarkUnread | boolean | true | 是否显示标记未读功能按钮 |
|
|
83
|
+
| onMarkConversationUnread | (conversation: ConversationModel, e?: Event) => void | - | 自定义标记未读/已读会话的行为 |
|
|
84
|
+
| onConversationPin | (conversation: ConversationModel, e?: Event) => void | - | 自定义置顶/取消置顶会话的行为 |
|
|
85
|
+
| onConversationMute | (conversation: ConversationModel, e?: Event) => void | - | 自定义免打扰/取消免打扰会话的行为 |
|
|
86
|
+
| onConversationDelete | (conversation: ConversationModel, e?: Event) => void | - | 自定义删除会话的行为 |
|
|
87
|
+
| customConversationActions | Record<string, ConversationActionItem> | - | 自定义会话操作项 |
|
|
88
|
+
| PopupIcon | any | - | 自定义动作弹窗的图标 |
|
|
89
|
+
| PopupElements | any[] | - | 自定义动作弹窗的内容 |
|
|
90
|
+
| onClick | (e: Event, key?: string, conversation?: ConversationModel) => void | - | 点击动作项时的回调函数 |
|
|
91
|
+
| onClose | () => void | - | 关闭动作弹窗时的回调函数(H5 专用) |
|
|
92
|
+
|
|
93
|
+
### ConversationActionItem
|
|
94
|
+
| 参数名 | 类型 | 默认值 | 说明 |
|
|
95
|
+
| --- | --- | --- | --- |
|
|
96
|
+
| enable | boolean | true | 是否启用自定义操作项 |
|
|
97
|
+
| label | string | - | 自定义操作项的展示内容 |
|
|
98
|
+
| onClick | (conversation: ConversationModel, e?: Event) => void | - | 点击自定义操作项时的回调函数 |
|
|
99
|
+
|
|
100
|
+
## Events
|
|
101
|
+
| 事件名 | 参数 | 说明 |
|
|
102
|
+
| --- | --- | --- |
|
|
103
|
+
| click | (e: Event, key?: string, conversation?: ConversationModel) | 点击操作项时触发 |
|
|
104
|
+
| close | () | 关闭操作弹窗时触发 |
|
|
105
|
+
| markConversationUnread | (conversation: ConversationModel, e?: Event) | 标记会话未读/已读时触发 |
|
|
106
|
+
| conversationPin | (conversation: ConversationModel, e?: Event) | 置顶/取消置顶会话时触发 |
|
|
107
|
+
| conversationMute | (conversation: ConversationModel, e?: Event) | 免打扰/取消免打扰会话时触发 |
|
|
108
|
+
| conversationDelete | (conversation: ConversationModel, e?: Event) | 删除会话时触发 |
|
|
109
|
+
|
|
110
|
+
## 自定义组件
|
|
111
|
+
|
|
112
|
+
### 基础功能开关
|
|
113
|
+
|
|
114
|
+
通过设置 `enablePin`、`enableDelete`、`enableMute` 和 `enableMarkUnread` 参数,您可以灵活地控制 `ConversationActions` 中的会话置顶、会话免打扰、会话删除和标记未读的显示。
|
|
115
|
+
``` typescript
|
|
116
|
+
<template>
|
|
117
|
+
<!-- 禁用置顶功能 -->
|
|
118
|
+
<ConversationActions :enablePin="false" :conversation="conversation" />
|
|
119
|
+
|
|
120
|
+
<!-- 禁用删除功能 -->
|
|
121
|
+
<ConversationActions :enableDelete="false" :conversation="conversation" />
|
|
122
|
+
|
|
123
|
+
<!-- 禁用免打扰功能 -->
|
|
124
|
+
<ConversationActions :enableMute="false" :conversation="conversation" />
|
|
125
|
+
|
|
126
|
+
<!-- 禁用标记未读功能 -->
|
|
127
|
+
<ConversationActions :enableMarkUnread="false" :conversation="conversation" />
|
|
128
|
+
</template>
|
|
129
|
+
```
|
|
130
|
+
| `enablePin: false` | `enableDelete: false` | `enableMute: false` | enableMarkUnread="false" |
|
|
131
|
+
| --- | --- | --- | --- |
|
|
132
|
+
| | | | |
|
|
133
|
+
|
|
134
|
+
### 事件响应
|
|
135
|
+
|
|
136
|
+
ConversationActions 组件默认支持会话删除、会话置顶/取消置顶、会话免打扰/取消免打扰、标记未读/已读功能,如已有功能的事件响应不符合您的需求,您可以自定义事件响应处理函数并进行覆盖;除了支持对于功能事件响应的自定义外,您还可以通过 `@click` 获取基础点击事件响应。
|
|
137
|
+
``` typescript
|
|
138
|
+
<template>
|
|
139
|
+
<ConversationList :conversation-actions="CustomConversationActions" />
|
|
140
|
+
</template>
|
|
141
|
+
|
|
142
|
+
<script setup lang="ts">
|
|
143
|
+
import { defineComponent, h } from 'vue';
|
|
144
|
+
import { ConversationActions, Toast } from '@tencentcloud/chat-uikit-vue3';
|
|
145
|
+
import type { ConversationActionsProps, ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
146
|
+
|
|
147
|
+
const CustomConversationActions = defineComponent({
|
|
148
|
+
name: 'CustomConversationActions',
|
|
149
|
+
setup(props: ConversationActionsProps) {
|
|
150
|
+
const handleConversationDelete = (conversation: ConversationModel) => {
|
|
151
|
+
conversation.deleteConversation().then(() => {
|
|
152
|
+
console.log('delete conversation successfully!');
|
|
153
|
+
}).catch(() => {
|
|
154
|
+
console.log('delete conversation failed!');
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
return () => h(ConversationActions, {
|
|
159
|
+
...props,
|
|
160
|
+
onConversationDelete: handleConversationDelete
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
</script>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### 自定义操作
|
|
168
|
+
|
|
169
|
+
customConversationActions 用于在 ConversationActions 上新增自定义操作项列表。
|
|
170
|
+
|
|
171
|
+
**示例:新增自定义操作项**
|
|
172
|
+
``` typescript
|
|
173
|
+
<template>
|
|
174
|
+
<ConversationList :ConversationActions="CustomConversationActions" />
|
|
175
|
+
</template>
|
|
176
|
+
|
|
177
|
+
<script setup lang="ts">
|
|
178
|
+
import { defineComponent, h } from 'vue';
|
|
179
|
+
import { ConversationActions } from '@tencentcloud/chat-uikit-vue3';
|
|
180
|
+
import type { ConversationActionsProps, ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
181
|
+
|
|
182
|
+
const CustomConversationActions = defineComponent({
|
|
183
|
+
name: 'CustomConversationActions',
|
|
184
|
+
setup(props: ConversationActionsProps) {
|
|
185
|
+
return () => h(ConversationActions, {
|
|
186
|
+
...props,
|
|
187
|
+
customConversationActions: {
|
|
188
|
+
'custom-actions-1': {
|
|
189
|
+
label: 'custom-actions',
|
|
190
|
+
onClick: (conversation: ConversationModel) => {
|
|
191
|
+
console.log(conversation);
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
</script>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### UI 界面定制
|
|
202
|
+
|
|
203
|
+
您可以通过 `PopupIcon` 参数定制唤醒弹出按钮样式,通过 `PopupElements` 定制弹出内容。
|
|
204
|
+
|
|
205
|
+
**示例:自定义唤起按钮**
|
|
206
|
+
``` typescript
|
|
207
|
+
<template>
|
|
208
|
+
<ConversationList :ConversationActions="CustomConversationActions" />
|
|
209
|
+
</template>
|
|
210
|
+
|
|
211
|
+
<script setup lang="ts">
|
|
212
|
+
import { defineComponent, h } from 'vue';
|
|
213
|
+
import { ConversationActions } from '@tencentcloud/chat-uikit-vue3';
|
|
214
|
+
import type { ConversationActionsProps } from '@tencentcloud/chat-uikit-vue3';
|
|
215
|
+
|
|
216
|
+
const CustomConversationActions = defineComponent({
|
|
217
|
+
name: 'CustomConversationActions',
|
|
218
|
+
setup(props: ConversationActionsProps) {
|
|
219
|
+
const customIcon = h('div', '自定义 Icon');
|
|
220
|
+
|
|
221
|
+
return () => h(ConversationActions, {
|
|
222
|
+
...props,
|
|
223
|
+
PopupIcon: customIcon
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
</script>
|
|
228
|
+
```
|