wujingjing
2024-07-24 4eb6092c32df67d752101ab8ae23c9b2236db0dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<template>
    <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">
import { chatComProps } from '../common';
import { summaryAnswerTypeMapCom } from './components/types';
const props = defineProps(chatComProps);
</script>
<style scoped lang="scss"></style>