wujingjing
2024-07-24 4eb6092c32df67d752101ab8ae23c9b2236db0dc
src/components/chat/chatComponents/summaryCom/SummaryCom.vue
@@ -1,6 +1,21 @@
<template>
    <div></div>
   <div class="w-full space-y-3">
      <template v-if="data && data.length > 0">
         <!-- 不能使用 index -->
         <component
            v-for="(item, index) in data"
            :key="item.id"
            :id="item.id"
            :is="summaryAnswerTypeMapCom[item.type]"
            :data="item"
         ></component>
      </template>
   </div>
</template>
<script setup lang="ts"></script>
<script setup lang="ts">
import { chatComProps } from '../common';
import { summaryAnswerTypeMapCom } from './components/types';
const props = defineProps(chatComProps);
</script>
<style scoped lang="scss"></style>