@tencentcloud/sdk-mcp 1.3.8 → 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/react/faq.md → callkit/faq/web-faq.md} +78 -311
- package/resource/doc/callkit/preset/android/api.md +330 -0
- package/resource/doc/callkit/preset/android/integration.md +530 -0
- 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/chatkit/android/integration.md +498 -0
- 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/core-sdk/live/flutter/live-integration.md +687 -0
- 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/core-sdk/voice/android/voice-audience-list.md +264 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-audio-effect.md +226 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-barrage.md +456 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-co-guest-interaction.md +539 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-gift.md +453 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-host-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-integration.md +509 -0
- package/resource/doc/livekit/core-sdk/voice/android/voice-room-list.md +365 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-audience-list.md +259 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-audio-effect.md +596 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-barrage.md +494 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-co-guest-interaction.md +516 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-gift.md +418 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-integration.md +563 -0
- package/resource/doc/livekit/core-sdk/voice/flutter/voice-room-list.md +709 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audience-list.md +262 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-audio-effect.md +211 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-barrage.md +414 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-co-guest-interaction.md +492 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-gift.md +405 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-host-interaction.md +611 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-integration.md +478 -0
- package/resource/doc/livekit/core-sdk/voice/ios/voice-room-list.md +336 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-audience-list.md +234 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-audio-effect.md +218 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-barrage.md +376 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-co-guest-interaction.md +648 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-gift.md +362 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-integration.md +323 -0
- package/resource/doc/livekit/core-sdk/voice/uni-app/voice-room-list.md +470 -0
- 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 +118 -282
- 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 -18
- 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 -19
- 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 -30
- 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 -59
- 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/integration.md +0 -612
- package/resource/doc/chatuikit/android/workflow.md +0 -0
- 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/live-integration.md +0 -1029
- 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/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 -487
- package/resource/doc/tuicallkit/android/integration.md +0 -302
- package/resource/doc/tuicallkit/android/workflow.md +0 -0
- 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/vue/api.md +0 -1512
- package/resource/doc/tuicallkit/vue/faq.md +0 -986
- 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/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 -50
- package/tools/definitions/get_native_live_uikit_integration_def.js.map +0 -1
- package/tools/definitions/get_native_live_uikit_interaction_def.js +0 -115
- 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 -95
- package/tools/definitions/get_web_room_feature_detail_def.js.map +0 -1
- package/tools/definitions/record_prompt_def.js +0 -53
- package/tools/definitions/record_prompt_def.js.map +0 -1
- package/tools/definitions/record_result_def.js +0 -30
- package/tools/definitions/record_result_def.js.map +0 -1
- package/tools/live/get-native-live-uikit-integration.js +0 -101
- 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 -101
- 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
|
@@ -5,7 +5,6 @@ AI 模型必须遵守以下**硬性限制**。
|
|
|
5
5
|
|
|
6
6
|
ConversationList 组件负责渲染会话列表,包含搜索、创建、置顶和删除等功能。
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
## 组件构成
|
|
10
9
|
|
|
11
10
|
ConversationList 组件包含以下内容:
|
|
@@ -17,7 +16,6 @@ ConversationList 组件包含以下内容:
|
|
|
17
16
|
|
|
18
17
|
- **ConversationActions**:单条会话操作
|
|
19
18
|
|
|
20
|
-
|
|
21
19
|
## 基础用法
|
|
22
20
|
|
|
23
21
|
ConversationList 组件无需任何必需属性即可使用。
|
|
@@ -50,24 +48,9 @@ ConversationList 组件提供了多个可替换的子组件,允许用户自定
|
|
|
50
48
|
``` typescript
|
|
51
49
|
<ConversationList :enableActions="false" />
|
|
52
50
|
```
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<td rowspan="1" colSpan="1" >`enableCreate="false"`</td>
|
|
58
|
-
|
|
59
|
-
<td rowspan="1" colSpan="1" >`enableActions="false"`</td>
|
|
60
|
-
</tr>
|
|
61
|
-
|
|
62
|
-
<tr>
|
|
63
|
-
<td rowspan="1" colSpan="1" ><br><img src="https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027116646/a6c293a7824a11f0ac3c525400e889b2.png" alt="描述" width="50%" style="display: block; margin: 0 auto;"></td>
|
|
64
|
-
|
|
65
|
-
<td rowspan="1" colSpan="1" ><br><img src="https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027116646/1794aa15824b11f0ac3c525400e889b2.png" alt="描述" width="50%" style="display: block; margin: 0 auto;"></td>
|
|
66
|
-
|
|
67
|
-
<td rowspan="1" colSpan="1" ><br><img src="https://write-document-release-1258344699.cos.ap-guangzhou.tencentcos.cn/100027116646/41d87b22824b11f0b3fe525400bf7822.png" alt="描述" width="50%" style="display: block; margin: 0 auto;"></td>
|
|
68
|
-
</tr>
|
|
69
|
-
</table>
|
|
70
|
-
|
|
51
|
+
| `enableSearch="false"` | `enableCreate="false"` | `enableActions="false"` |
|
|
52
|
+
| --- | --- | --- |
|
|
53
|
+
| | | |
|
|
71
54
|
|
|
72
55
|
### 数据筛选与排序
|
|
73
56
|
|
|
@@ -81,8 +64,8 @@ ConversationList 组件提供了 `filter` 和 `sort` 属性,用于对会话列
|
|
|
81
64
|
``` typescript
|
|
82
65
|
<template>
|
|
83
66
|
<UIKitProvider>
|
|
84
|
-
<ConversationList
|
|
85
|
-
:filter="(conversationList: ConversationModel[]) =>
|
|
67
|
+
<ConversationList
|
|
68
|
+
:filter="(conversationList: ConversationModel[]) =>
|
|
86
69
|
conversationList.filter(conversation => conversation.unreadCount > 0)" />
|
|
87
70
|
</UIKitProvider>
|
|
88
71
|
</template>
|
|
@@ -100,8 +83,8 @@ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
|
100
83
|
``` typescript
|
|
101
84
|
<template>
|
|
102
85
|
<UIKitProvider>
|
|
103
|
-
<ConversationList
|
|
104
|
-
:sort="(conversationList: ConversationModel[]) =>
|
|
86
|
+
<ConversationList
|
|
87
|
+
:sort="(conversationList: ConversationModel[]) =>
|
|
105
88
|
conversationList.sort(
|
|
106
89
|
(a, b) => (+(b?.lastMessage?.lastTime || 0)) - (+(a?.lastMessage?.lastTime || 0)),
|
|
107
90
|
)" />
|
|
@@ -115,14 +98,14 @@ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
|
115
98
|
|
|
116
99
|
### 自定义 actionsConfig
|
|
117
100
|
|
|
118
|
-
通过
|
|
101
|
+
通过 actionsConfig 可以自定义会话操作菜单。
|
|
119
102
|
``` typescript
|
|
120
103
|
<template>
|
|
121
104
|
<UIKitProvider>
|
|
122
|
-
<ConversationList
|
|
105
|
+
<ConversationList
|
|
123
106
|
:actionsConfig="{
|
|
124
107
|
enablePin: false,
|
|
125
|
-
onConversationDelete: (conversation: ConversationModel) =>
|
|
108
|
+
onConversationDelete: (conversation: ConversationModel) =>
|
|
126
109
|
{ console.log('Delete conversation success'); },
|
|
127
110
|
customConversationActions: {
|
|
128
111
|
'custom-actions-1': {
|
|
@@ -139,7 +122,6 @@ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
|
139
122
|
</script>
|
|
140
123
|
```
|
|
141
124
|
|
|
142
|
-
|
|
143
125
|
### 自定义 Placeholder
|
|
144
126
|
|
|
145
127
|
`ConversationList` 支持在不同状态下显示自定义占位符,包括列表为空、加载中和加载失败。
|
|
@@ -149,7 +131,6 @@ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
|
149
131
|
|
|
150
132
|
- `PlaceholderError`:加载失败时显示。
|
|
151
133
|
|
|
152
|
-
|
|
153
134
|
**示例:自定义空列表占位符**
|
|
154
135
|
|
|
155
136
|
1. **创建自定义组件 **`MyEmptyPlaceholder.vue`
|
|
@@ -166,7 +147,7 @@ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
|
166
147
|
``` typescript
|
|
167
148
|
<template>
|
|
168
149
|
<UIKitProvider>
|
|
169
|
-
<ConversationList
|
|
150
|
+
<ConversationList
|
|
170
151
|
:PlaceholderEmptyList="MyEmptyPlaceholder" />
|
|
171
152
|
</UIKitProvider>
|
|
172
153
|
</template>
|
|
@@ -181,80 +162,23 @@ import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
|
181
162
|
**ConversationListHeader** 负责 ConversationList Header 部分的渲染工作,作为包裹层渲染默认 `Search` 与 `ConversationCreate` 。您可以通过传入 `left`、`right` 等属性进行自定义,同时,您也可以自定义整个组件。
|
|
182
163
|
|
|
183
164
|
#### Props
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
<td rowspan="1" colSpan="1" >**说明**</td>
|
|
193
|
-
</tr>
|
|
194
|
-
|
|
195
|
-
<tr>
|
|
196
|
-
<td rowspan="1" colSpan="1" >children</td>
|
|
197
|
-
|
|
198
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
199
|
-
|
|
200
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
201
|
-
|
|
202
|
-
<td rowspan="1" colSpan="1" >自定义会话列表头部中心组件。<br>默认传入 `<Search>` 和 `<ConversationCreate>`。</td>
|
|
203
|
-
</tr>
|
|
204
|
-
|
|
205
|
-
<tr>
|
|
206
|
-
<td rowspan="1" colSpan="1" >left</td>
|
|
207
|
-
|
|
208
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
209
|
-
|
|
210
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
211
|
-
|
|
212
|
-
<td rowspan="1" colSpan="1" >自定义会话列表头部左侧组件。</td>
|
|
213
|
-
</tr>
|
|
214
|
-
|
|
215
|
-
<tr>
|
|
216
|
-
<td rowspan="1" colSpan="1" >right</td>
|
|
217
|
-
|
|
218
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
219
|
-
|
|
220
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
221
|
-
|
|
222
|
-
<td rowspan="1" colSpan="1" >自定义会话列表头部右侧组件。</td>
|
|
223
|
-
</tr>
|
|
224
|
-
|
|
225
|
-
<tr>
|
|
226
|
-
<td rowspan="1" colSpan="1" >className</td>
|
|
227
|
-
|
|
228
|
-
<td rowspan="1" colSpan="1" >String</td>
|
|
229
|
-
|
|
230
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
231
|
-
|
|
232
|
-
<td rowspan="1" colSpan="1" >指定根元素类的 CSS 自定义名称。</td>
|
|
233
|
-
</tr>
|
|
234
|
-
|
|
235
|
-
<tr>
|
|
236
|
-
<td rowspan="1" colSpan="1" >style</td>
|
|
237
|
-
|
|
238
|
-
<td rowspan="1" colSpan="1" >CSSProperties</td>
|
|
239
|
-
|
|
240
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
241
|
-
|
|
242
|
-
<td rowspan="1" colSpan="1" >指定根元素样式的自定义样式。</td>
|
|
243
|
-
</tr>
|
|
244
|
-
</table>
|
|
245
|
-
|
|
165
|
+
| **参数名** | **类型** | **默认值** | **说明** |
|
|
166
|
+
| --- | --- | --- | --- |
|
|
167
|
+
| children | Component | - | 自定义会话列表头部中心组件。<br>默认传入 `<Search>` 和 `<ConversationCreate>`。 |
|
|
168
|
+
| left | Component | - | 自定义会话列表头部左侧组件。 |
|
|
169
|
+
| right | Component | - | 自定义会话列表头部右侧组件。 |
|
|
170
|
+
| className | String | - | 指定根元素类的 CSS 自定义名称。 |
|
|
171
|
+
| style | CSSProperties | - | 指定根元素样式的自定义样式。 |
|
|
246
172
|
|
|
247
173
|
##### 示例:实现一个简易的会话分组功能
|
|
248
174
|
|
|
249
175
|
按照全部会话、未读会话、单聊会话、群会话四个维度进行区分,通过点击不同分组按钮执行不同的筛选规则。
|
|
250
176
|
|
|
251
|
-
|
|
252
|
-
|
|
253
177
|
【App.vue】
|
|
254
178
|
``` typescript
|
|
255
179
|
<template>
|
|
256
180
|
<UIKitProvider>
|
|
257
|
-
<ConversationList
|
|
181
|
+
<ConversationList
|
|
258
182
|
:Header="CustomConversationListHeader"
|
|
259
183
|
:filter="conversationFilter"
|
|
260
184
|
</UIKitProvider>
|
|
@@ -370,224 +294,26 @@ const handleFilterClick = (filterType: FilterType) => {
|
|
|
370
294
|
```
|
|
371
295
|
|
|
372
296
|
## Props
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
<td rowspan="1" colSpan="1" >Boolean</td>
|
|
398
|
-
|
|
399
|
-
<td rowspan="1" colSpan="1" >true</td>
|
|
400
|
-
|
|
401
|
-
<td rowspan="1" colSpan="1" >控制创建会话功能是否显示。</td>
|
|
402
|
-
</tr>
|
|
403
|
-
|
|
404
|
-
<tr>
|
|
405
|
-
<td rowspan="1" colSpan="1" >enableActions</td>
|
|
406
|
-
|
|
407
|
-
<td rowspan="1" colSpan="1" >Boolean</td>
|
|
408
|
-
|
|
409
|
-
<td rowspan="1" colSpan="1" >true</td>
|
|
410
|
-
|
|
411
|
-
<td rowspan="1" colSpan="1" >控制会话操作功能是否显示。</td>
|
|
412
|
-
</tr>
|
|
413
|
-
|
|
414
|
-
<tr>
|
|
415
|
-
<td rowspan="1" colSpan="1" >actionsConfig</td>
|
|
416
|
-
|
|
417
|
-
<td rowspan="1" colSpan="1" >ConversationActionsConfig</td>
|
|
418
|
-
|
|
419
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
420
|
-
|
|
421
|
-
<td rowspan="1" colSpan="1" >用于自定义会话操作配置。</td>
|
|
422
|
-
</tr>
|
|
423
|
-
|
|
424
|
-
<tr>
|
|
425
|
-
<td rowspan="1" colSpan="1" >Header</td>
|
|
426
|
-
|
|
427
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
428
|
-
|
|
429
|
-
<td rowspan="1" colSpan="1" >Header</td>
|
|
430
|
-
|
|
431
|
-
<td rowspan="1" colSpan="1" >自定义 Header 组件。</td>
|
|
432
|
-
</tr>
|
|
433
|
-
|
|
434
|
-
<tr>
|
|
435
|
-
<td rowspan="1" colSpan="1" >List</td>
|
|
436
|
-
|
|
437
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
438
|
-
|
|
439
|
-
<td rowspan="1" colSpan="1" >List</td>
|
|
440
|
-
|
|
441
|
-
<td rowspan="1" colSpan="1" >自定义会话列表组件。</td>
|
|
442
|
-
</tr>
|
|
443
|
-
|
|
444
|
-
<tr>
|
|
445
|
-
<td rowspan="1" colSpan="1" >Preview</td>
|
|
446
|
-
|
|
447
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
448
|
-
|
|
449
|
-
<td rowspan="1" colSpan="1" >[ConversationPreview](https://write.woa.com/document/186960335138078720)</td>
|
|
450
|
-
|
|
451
|
-
<td rowspan="1" colSpan="1" >自定义会话预览组件。</td>
|
|
452
|
-
</tr>
|
|
453
|
-
|
|
454
|
-
<tr>
|
|
455
|
-
<td rowspan="1" colSpan="1" >ConversationCreate</td>
|
|
456
|
-
|
|
457
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
458
|
-
|
|
459
|
-
<td rowspan="1" colSpan="1" >ConversationCreate</td>
|
|
460
|
-
|
|
461
|
-
<td rowspan="1" colSpan="1" >自定义创建会话组件。</td>
|
|
462
|
-
</tr>
|
|
463
|
-
|
|
464
|
-
<tr>
|
|
465
|
-
<td rowspan="1" colSpan="1" >ConversationSearch</td>
|
|
466
|
-
|
|
467
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
468
|
-
|
|
469
|
-
<td rowspan="1" colSpan="1" >[Search](https://write.woa.com/document/186960410207154176)</td>
|
|
470
|
-
|
|
471
|
-
<td rowspan="1" colSpan="1" >自定义会话搜索组件。</td>
|
|
472
|
-
</tr>
|
|
473
|
-
|
|
474
|
-
<tr>
|
|
475
|
-
<td rowspan="1" colSpan="1" >ConversationActions</td>
|
|
476
|
-
|
|
477
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
478
|
-
|
|
479
|
-
<td rowspan="1" colSpan="1" >[ConversationActions](https://write.woa.com/document/186960379083898880)</td>
|
|
480
|
-
|
|
481
|
-
<td rowspan="1" colSpan="1" >自定义会话操作组件。</td>
|
|
482
|
-
</tr>
|
|
483
|
-
|
|
484
|
-
<tr>
|
|
485
|
-
<td rowspan="1" colSpan="1" >Avatar</td>
|
|
486
|
-
|
|
487
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
488
|
-
|
|
489
|
-
<td rowspan="1" colSpan="1" >Avatar</td>
|
|
490
|
-
|
|
491
|
-
<td rowspan="1" colSpan="1" >自定义头像组件。</td>
|
|
492
|
-
</tr>
|
|
493
|
-
|
|
494
|
-
<tr>
|
|
495
|
-
<td rowspan="1" colSpan="1" >PlaceholderEmptyList</td>
|
|
496
|
-
|
|
497
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
498
|
-
|
|
499
|
-
<td rowspan="1" colSpan="1" ><PlaceHolder type={PlaceHolderTypes.NO_CONVERSATIONS} /></td>
|
|
500
|
-
|
|
501
|
-
<td rowspan="1" colSpan="1" >自定义会话列表为空时的占位元素。</td>
|
|
502
|
-
</tr>
|
|
503
|
-
|
|
504
|
-
<tr>
|
|
505
|
-
<td rowspan="1" colSpan="1" >PlaceholderLoading</td>
|
|
506
|
-
|
|
507
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
508
|
-
|
|
509
|
-
<td rowspan="1" colSpan="1" ><PlaceHolder type={PlaceHolderTypes.LOADING} /></td>
|
|
510
|
-
|
|
511
|
-
<td rowspan="1" colSpan="1" >自定义会话列表加载中的占位元素。</td>
|
|
512
|
-
</tr>
|
|
513
|
-
|
|
514
|
-
<tr>
|
|
515
|
-
<td rowspan="1" colSpan="1" >PlaceholderLoadError</td>
|
|
516
|
-
|
|
517
|
-
<td rowspan="1" colSpan="1" >Component</td>
|
|
518
|
-
|
|
519
|
-
<td rowspan="1" colSpan="1" ><PlaceHolder type={PlaceHolderTypes.WRONG} /></td>
|
|
520
|
-
|
|
521
|
-
<td rowspan="1" colSpan="1" >自定义会话列表加载错误时的占位元素。</td>
|
|
522
|
-
</tr>
|
|
523
|
-
|
|
524
|
-
<tr>
|
|
525
|
-
<td rowspan="1" colSpan="1" >filter</td>
|
|
526
|
-
|
|
527
|
-
<td rowspan="1" colSpan="1" >(conversationList: ConversationModel[]) => ConversationModel[]</td>
|
|
528
|
-
|
|
529
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
530
|
-
|
|
531
|
-
<td rowspan="1" colSpan="1" >用于筛选会话列表的函数。</td>
|
|
532
|
-
</tr>
|
|
533
|
-
|
|
534
|
-
<tr>
|
|
535
|
-
<td rowspan="1" colSpan="1" >sort</td>
|
|
536
|
-
|
|
537
|
-
<td rowspan="1" colSpan="1" >(conversationList: ConversationModel[]) => ConversationModel[]</td>
|
|
538
|
-
|
|
539
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
540
|
-
|
|
541
|
-
<td rowspan="1" colSpan="1" >用于排序会话列表的函数。</td>
|
|
542
|
-
</tr>
|
|
543
|
-
|
|
544
|
-
<tr>
|
|
545
|
-
<td rowspan="1" colSpan="1" >onConversationSelect</td>
|
|
546
|
-
|
|
547
|
-
<td rowspan="1" colSpan="1" >(conversation: ConversationModel) => void;</td>
|
|
548
|
-
|
|
549
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
550
|
-
|
|
551
|
-
<td rowspan="1" colSpan="1" >点击会话后的回调函数,参数为所点击的会话对象。</td>
|
|
552
|
-
</tr>
|
|
553
|
-
|
|
554
|
-
<tr>
|
|
555
|
-
<td rowspan="1" colSpan="1" >onBeforeCreateConversation</td>
|
|
556
|
-
|
|
557
|
-
<td rowspan="1" colSpan="1" >(params: CreateParams) => CreateParams;</td>
|
|
558
|
-
|
|
559
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
560
|
-
|
|
561
|
-
<td rowspan="1" colSpan="1" >创建会话前执行的自定义操作,参数为创建会话所需的参数。</td>
|
|
562
|
-
</tr>
|
|
563
|
-
|
|
564
|
-
<tr>
|
|
565
|
-
<td rowspan="1" colSpan="1" >onConversationCreate</td>
|
|
566
|
-
|
|
567
|
-
<td rowspan="1" colSpan="1" >(conversation: ConversationModel) => void;</td>
|
|
568
|
-
|
|
569
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
570
|
-
|
|
571
|
-
<td rowspan="1" colSpan="1" >会话创建后的回调函数,参数为创建的会话对象。</td>
|
|
572
|
-
</tr>
|
|
573
|
-
|
|
574
|
-
<tr>
|
|
575
|
-
<td rowspan="1" colSpan="1" >className</td>
|
|
576
|
-
|
|
577
|
-
<td rowspan="1" colSpan="1" >String</td>
|
|
578
|
-
|
|
579
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
580
|
-
|
|
581
|
-
<td rowspan="1" colSpan="1" >指定根元素类的 CSS 自定义名称。</td>
|
|
582
|
-
</tr>
|
|
583
|
-
|
|
584
|
-
<tr>
|
|
585
|
-
<td rowspan="1" colSpan="1" >style</td>
|
|
586
|
-
|
|
587
|
-
<td rowspan="1" colSpan="1" >CSSProperties</td>
|
|
588
|
-
|
|
589
|
-
<td rowspan="1" colSpan="1" >-</td>
|
|
590
|
-
|
|
591
|
-
<td rowspan="1" colSpan="1" >指定根元素样式的自定义样式。</td>
|
|
592
|
-
</tr>
|
|
593
|
-
</table>
|
|
297
|
+
| **参数名** | **类型** | **默认值** | **说明** |
|
|
298
|
+
| --- | --- | --- | --- |
|
|
299
|
+
| enableSearch | Boolean | true | 控制会话搜索功能是否显示。 |
|
|
300
|
+
| enableCreate | Boolean | true | 控制创建会话功能是否显示。 |
|
|
301
|
+
| enableActions | Boolean | true | 控制会话操作功能是否显示。 |
|
|
302
|
+
| actionsConfig | ConversationActionsConfig | - | 用于自定义会话操作配置。 |
|
|
303
|
+
| Header | Component | Header | 自定义 Header 组件。 |
|
|
304
|
+
| List | Component | List | 自定义会话列表组件。 |
|
|
305
|
+
| Preview | Component | ConversationPreview | 自定义会话预览组件。 |
|
|
306
|
+
| ConversationCreate | Component | ConversationCreate | 自定义创建会话组件。 |
|
|
307
|
+
| ConversationSearch | Component | Search | 自定义会话搜索组件。 |
|
|
308
|
+
| ConversationActions | Component | ConversationActions | 自定义会话操作组件。 |
|
|
309
|
+
| Avatar | Component | Avatar | 自定义头像组件。 |
|
|
310
|
+
| PlaceholderEmptyList | Component | | 自定义会话列表为空时的占位元素。 |
|
|
311
|
+
| PlaceholderLoading | Component | | 自定义会话列表加载中的占位元素。 |
|
|
312
|
+
| PlaceholderLoadError | Component | | 自定义会话列表加载错误时的占位元素。 |
|
|
313
|
+
| filter | (conversationList: ConversationModel[]) => ConversationModel[] | - | 用于筛选会话列表的函数。 |
|
|
314
|
+
| sort | (conversationList: ConversationModel[]) => ConversationModel[] | - | 用于排序会话列表的函数。 |
|
|
315
|
+
| onConversationSelect | (conversation: ConversationModel) => void; | - | 点击会话后的回调函数,参数为所点击的会话对象。 |
|
|
316
|
+
| onBeforeCreateConversation | (params: CreateParams) => CreateParams; | - | 创建会话前执行的自定义操作,参数为创建会话所需的参数。 |
|
|
317
|
+
| onConversationCreate | (conversation: ConversationModel) => void; | - | 会话创建后的回调函数,参数为创建的会话对象。 |
|
|
318
|
+
| className | String | - | 指定根元素类的 CSS 自定义名称。 |
|
|
319
|
+
| style | CSSProperties | - | 指定根元素样式的自定义样式。 |
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
## 概述
|
|
2
|
+
|
|
3
|
+
ConversationPreview 组件用于预览会话列表中的单个会话。它负责显示会话信息、未读数,并提供会话操作功能。
|
|
4
|
+
|
|
5
|
+
借助该组件,您可以自由地设计和组合出您所期望的 ConversationPreview 布局。此外,您还可以通过 `@select-conversation` 事件自定义选中会话时的行为。
|
|
6
|
+
|
|
7
|
+
## 自定义用法
|
|
8
|
+
|
|
9
|
+
您可以使用 `ConversationList `的 `Preview` prop 来自定义会话列表中每个会话的预览项。如果未指定 `Preview` prop,系统将默认使用 `ConversationPreviewUI` 组件。
|
|
10
|
+
``` typescript
|
|
11
|
+
<template>
|
|
12
|
+
<div class="custom-preview">
|
|
13
|
+
<div class="content">
|
|
14
|
+
<h4>Custom Preview</h4>
|
|
15
|
+
<p>{{ conversation?.getShowName() }}</p>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script lang="ts" setup>
|
|
21
|
+
import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
22
|
+
|
|
23
|
+
interface Props {
|
|
24
|
+
conversation?: ConversationModel;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const props = withDefaults(defineProps<Props>(), {});
|
|
28
|
+
</script>
|
|
29
|
+
```
|
|
30
|
+
``` typescript
|
|
31
|
+
<template>
|
|
32
|
+
<ConversationList :Preview="CustomConversationPreview" />
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script setup lang="ts">
|
|
36
|
+
import { ConversationList } from '@tencentcloud/chat-uikit-vue3';
|
|
37
|
+
import CustomConversationPreview from './CustomConversationPreview.vue';
|
|
38
|
+
</script>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Props
|
|
42
|
+
|
|
43
|
+
### ConversationPreviewProps
|
|
44
|
+
| 参数名 | 类型 | 默认值 | 说明 |
|
|
45
|
+
| --- | --- | --- | --- |
|
|
46
|
+
| **conversation***(Required)* | ConversationModel | - | 必选参数,标识当前渲染的会话列表项 |
|
|
47
|
+
| isSelected | boolean | false | 控制会话列表项 UI 是否处于选中状态 |
|
|
48
|
+
| enableActions | boolean | true | 控制会话操作功能是否显示 |
|
|
49
|
+
| actionsConfig | ConversationActionsConfig | - | 用于自定义会话操作配置 |
|
|
50
|
+
| highlightMatchString | string | - | 会话列表项 Title 高亮匹配关键词,常用于会话搜索结果高亮 |
|
|
51
|
+
| Preview | Component | ConversationPreviewUI | 自定义预览组件 |
|
|
52
|
+
| Avatar | Component | Avatar | 渲染会话列表项头像区域 |
|
|
53
|
+
| ConversationActions | Component | ConversationActions | 渲染会话列表项会话操作区域 |
|
|
54
|
+
| className | string | - | 指定根元素类的 CSS 自定义名称 |
|
|
55
|
+
| style | CSSProperties | - | 指定根元素样式的自定义样式 |
|
|
56
|
+
|
|
57
|
+
### ConversationPreviewUIProps
|
|
58
|
+
| 参数名 | 类型 | 默认值 | 说明 |
|
|
59
|
+
| --- | --- | --- | --- |
|
|
60
|
+
| **conversation***(Required)* | ConversationModel | - | 必选参数,标识当前渲染的会话列表项 |
|
|
61
|
+
| isSelected | boolean | false | 控制会话列表项 UI 是否处于选中状态 |
|
|
62
|
+
| enableActions | boolean | true | 控制会话操作功能是否显示 |
|
|
63
|
+
| actionsConfig | ConversationActionsConfig | - | 用于自定义会话操作配置 |
|
|
64
|
+
| highlightMatchString | string | - | 会话列表项 Title 高亮匹配关键词 |
|
|
65
|
+
| Title | Component | ConversationPreviewTitle | 渲染会话列表项标题区域 |
|
|
66
|
+
| LastMessageAbstract | Component | ConversationPreviewAbstract | 渲染会话列表项最新消息摘要区域 |
|
|
67
|
+
| LastMessageTimestamp | Component | ConversationPreviewTimestamp | 渲染会话列表项最新消息时间戳区域 |
|
|
68
|
+
| Unread | Component | ConversationPreviewUnread | 渲染会话列表项消息未读标识区域 |
|
|
69
|
+
| ConversationActions | Component | ConversationActions | 渲染会话列表项会话操作区域 |
|
|
70
|
+
| Avatar | Component | Avatar | 渲染会话列表项头像区域 |
|
|
71
|
+
| className | string | - | 指定根元素类的 CSS 自定义名称 |
|
|
72
|
+
| style | CSSProperties | - | 指定根元素样式的自定义样式 |
|
|
73
|
+
|
|
74
|
+
## Events
|
|
75
|
+
| 事件名 | 参数 | 说明 |
|
|
76
|
+
| --- | --- | --- |
|
|
77
|
+
| select-conversation | (conversation: ConversationModel) | 指定在选择对话列表中的对话时接收回调的事件 |
|
|
78
|
+
|
|
79
|
+
## 示例:自定义类 Discord 风格
|
|
80
|
+
|
|
81
|
+
Discord 是一个流行的聊天应用程序,类似于 Skype 或 Telegram。Discord 中的聊天内容如下图所示:
|
|
82
|
+
|
|
83
|
+
通过对 `ConversationPreview` 布局、功能以及样式的定制,我们可以快速实现类 Discord 效果。
|
|
84
|
+
``` java
|
|
85
|
+
<template>
|
|
86
|
+
<div
|
|
87
|
+
:class="[
|
|
88
|
+
'discord-preview-ui',
|
|
89
|
+
{
|
|
90
|
+
'conversationPreview--active': activeConversation?.conversationID === props.conversation.conversationID,
|
|
91
|
+
}
|
|
92
|
+
]"
|
|
93
|
+
@click="handleSelectConversation"
|
|
94
|
+
>
|
|
95
|
+
<label class="discord-preview-ui__tag">
|
|
96
|
+
#
|
|
97
|
+
</label>
|
|
98
|
+
<span class="discord-preview-ui__title">{{ conversation?.getShowName() }}</span>
|
|
99
|
+
</div>
|
|
100
|
+
</template>
|
|
101
|
+
|
|
102
|
+
<script lang="ts" setup>
|
|
103
|
+
import { useConversationListState } from '@tencentcloud/chat-uikit-vue3';
|
|
104
|
+
import type { ConversationModel } from '@tencentcloud/chat-uikit-vue3';
|
|
105
|
+
|
|
106
|
+
const { setActiveConversation, activeConversation } = useConversationListState();
|
|
107
|
+
|
|
108
|
+
interface Props {
|
|
109
|
+
conversation: ConversationModel;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const emit = defineEmits<{
|
|
113
|
+
selectConversation: [conversation: ConversationModel];
|
|
114
|
+
}>();
|
|
115
|
+
|
|
116
|
+
const props = withDefaults(defineProps<Props>(), {});
|
|
117
|
+
|
|
118
|
+
const handleSelectConversation = () => {
|
|
119
|
+
setActiveConversation(props.conversation.conversationID);
|
|
120
|
+
emit('selectConversation', props.conversation);
|
|
121
|
+
};
|
|
122
|
+
</script>
|
|
123
|
+
<style scoped>
|
|
124
|
+
.discord-style-app {
|
|
125
|
+
background-color: #2f3136;
|
|
126
|
+
padding: 20px;
|
|
127
|
+
border-radius: 8px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.discord-conversation-list {
|
|
131
|
+
background-color: #2f3136;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.discord-preview-ui {
|
|
135
|
+
height: 34px;
|
|
136
|
+
border-radius: 4px;
|
|
137
|
+
padding: 6px 8px;
|
|
138
|
+
margin: 1px 8px;
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
transition: all 0.15s ease;
|
|
143
|
+
position: relative;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.discord-preview-ui__tag {
|
|
147
|
+
margin-right: 6px;
|
|
148
|
+
font-size: 16px;
|
|
149
|
+
color: #8e9297;
|
|
150
|
+
font-weight: 600;
|
|
151
|
+
line-height: 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.discord-preview-ui__title {
|
|
155
|
+
font-size: 16px;
|
|
156
|
+
color: #8e9297;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
line-height: 1.2;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
text-overflow: ellipsis;
|
|
161
|
+
white-space: nowrap;
|
|
162
|
+
flex: 1;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.discord-preview-ui:hover {
|
|
166
|
+
background-color: #393c43;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.discord-preview-ui:hover .discord-preview-ui__tag,
|
|
170
|
+
.discord-preview-ui:hover .discord-preview-ui__title {
|
|
171
|
+
color: #dcddde;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.conversationPreview--active {
|
|
175
|
+
background-color: #404249 !important;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.conversationPreview--active .discord-preview-ui__tag,
|
|
179
|
+
.conversationPreview--active .discord-preview-ui__title {
|
|
180
|
+
color: #ffffff !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.discord-preview-ui::before {
|
|
184
|
+
content: '';
|
|
185
|
+
position: absolute;
|
|
186
|
+
left: 0;
|
|
187
|
+
top: 50%;
|
|
188
|
+
transform: translateY(-50%);
|
|
189
|
+
width: 4px;
|
|
190
|
+
height: 8px;
|
|
191
|
+
background-color: #ffffff;
|
|
192
|
+
border-radius: 0 4px 4px 0;
|
|
193
|
+
opacity: 0;
|
|
194
|
+
transition: opacity 0.15s ease;
|
|
195
|
+
}
|
|
196
|
+
</style>
|
|
197
|
+
|
|
198
|
+
```
|
|
199
|
+
``` typescript
|
|
200
|
+
<template>
|
|
201
|
+
<ConversationList :Preview="CustomConversationPreview" />
|
|
202
|
+
</template>
|
|
203
|
+
|
|
204
|
+
<script setup lang="ts">
|
|
205
|
+
import { ConversationList } from '@tencentcloud/chat-uikit-vue3';
|
|
206
|
+
import CustomConversationPreview from './CustomConversationPreview.vue';
|
|
207
|
+
</script>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
`ConversationListPreview` 定制后效果如下:
|
|
211
|
+
| **修改前** | **修改后** |
|
|
212
|
+
| --- | --- |
|
|
213
|
+
| | |
|