BoardAgentList.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div class="conversation-agent-list">
  3. <BoardAgentItem
  4. v-for="(item, index) of list"
  5. :key="index"
  6. :title="item.name"
  7. :desc="item.type"
  8. :id="item.id"
  9. @active="handleActive"
  10. />
  11. </div>
  12. </template>
  13. <script setup>
  14. import BoardAgentItem from './BoardAgentItem.vue';
  15. const props = defineProps({
  16. list: Array
  17. });
  18. const emit = defineEmits(['itemActive']);
  19. // const list = [
  20. // {
  21. // title: '智能问答',
  22. // desc: '你说一句话,我写万字长文'
  23. // },
  24. // {
  25. // title: '智能客服',
  26. // desc: '你说一句话,我写万字长文'
  27. // },
  28. // {
  29. // title: '出题组卷',
  30. // desc: '你说一句话,我写万字长文'
  31. // },
  32. // {
  33. // title: '以文生图',
  34. // desc: '你说一句话,我写万字长文'
  35. // },
  36. // {
  37. // title: '数据分析',
  38. // desc: '你说一句话,我写万字长文'
  39. // },
  40. // {
  41. // title: '报告自动生成',
  42. // desc: '你说一句话,我写万字长文'
  43. // },
  44. // {
  45. // title: '智能问答',
  46. // desc: '你说一句话,我写万字长文'
  47. // },
  48. // {
  49. // title: '文档创作',
  50. // desc: '你说一句话,我写万字长文'
  51. // },
  52. // {
  53. // title: '设备检测',
  54. // desc: '你说一句话,我写万字长文'
  55. // },
  56. // {
  57. // title: '智能客服',
  58. // desc: '你说一句话,我写万字长文'
  59. // },
  60. // {
  61. // title: '以文生图',
  62. // desc: '你说一句话,我写万字长文'
  63. // },
  64. // {
  65. // title: '出题组卷',
  66. // desc: '你说一句话,我写万字长文'
  67. // }
  68. // ];
  69. const handleActive = (target_id) => {
  70. emit('itemActive', target_id);
  71. };
  72. </script>
  73. <style lang="css" scoped>
  74. .conversation-agent-list {
  75. display: grid;
  76. grid-template-columns: 1fr 1fr 1fr;
  77. gap: 20px;
  78. }
  79. </style>