| | |
| | | <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> |
| | | <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 { computed } from 'vue'; |
| | | import { chatComProps } from '../common'; |
| | | import { summaryAnswerTypeMapCom } from './components/types'; |
| | | const props = defineProps(chatComProps); |
| | | |
| | | |
| | | </script> |
| | | <style scoped lang="scss"></style> |