wujingjing
2025-01-06 ea8f5b15fa108b803704a285c8695399c7d1eefd
src/components/chat/components/ChatContainer.vue
@@ -24,13 +24,9 @@
         </div>
         <!-- 输入区域 -->
         <div
            class="sticky bottom-0 w-full px-6 pt-12 pb-6 bg-[rgb(247,248,250)] flex justify-center"
            v-if="!isSharePage "
         >
         <div class="sticky bottom-0 w-full px-6 pt-12 pb-6 bg-[rgb(247,248,250)] flex justify-center" v-if="!isSharePage">
            <slot name="input-area" />
         </div>
      </div>
      <slot name="drawer" />
@@ -39,7 +35,7 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useScrollToBottom } from '../hooks/useScrollToBottom';
import { useScroll } from '../hooks/useScroll';
const props = defineProps<{
   loading?: boolean;
@@ -50,12 +46,13 @@
const chatListDom = ref<HTMLDivElement>();
const { scrollToBottom, isBottom } = useScrollToBottom({
const { scrollToBottom, isBottom } = useScroll({
   chatListDom,
});
defineExpose({
   chatListDom,
   scrollToBottom,
});
</script>