| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <template>
- <div class="conversation-agent-list">
- <BoardAgentItem
- v-for="(item, index) of list"
- :key="index"
- :title="item.name"
- :desc="item.type"
- :id="item.id"
- @active="handleActive"
- />
- </div>
- </template>
- <script setup>
- import BoardAgentItem from './BoardAgentItem.vue';
- const props = defineProps({
- list: Array
- });
- const emit = defineEmits(['itemActive']);
- // const list = [
- // {
- // title: '智能问答',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '智能客服',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '出题组卷',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '以文生图',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '数据分析',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '报告自动生成',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '智能问答',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '文档创作',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '设备检测',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '智能客服',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '以文生图',
- // desc: '你说一句话,我写万字长文'
- // },
- // {
- // title: '出题组卷',
- // desc: '你说一句话,我写万字长文'
- // }
- // ];
- const handleActive = (target_id) => {
- emit('itemActive', target_id);
- };
- </script>
- <style lang="css" scoped>
- .conversation-agent-list {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- gap: 20px;
- }
- </style>
|