message-room.vue 576 B

1234567891011121314151617181920
  1. <!-- eslint-disable vue/valid-template-root -->
  2. <template>
  3. <RoomMessageCard :message="props.message" />
  4. </template>
  5. <script setup lang="ts">
  6. import { IMessageModel } from '@tencentcloud/chat-uikit-engine';
  7. import { RoomMessageCard } from '@tencentcloud/roomkit-web-vue3';
  8. interface IProps {
  9. message: IMessageModel;
  10. }
  11. // eslint-disable-next-line @typescript-eslint/no-unused-vars
  12. const props = withDefaults(defineProps<IProps>(), {
  13. message: () => ({} as IMessageModel),
  14. });
  15. </script>
  16. <style lang="scss" scoped>
  17. /* stylelint-disable-next-line no-empty-source */
  18. </style>