【解决todo】角色列表 icon 修改为为 Icon 组件

pull/476/MERGE
cherishsince 2024-07-09 17:51:08 +08:00
parent 5734faa5fc
commit 4cfc785667
1 changed files with 5 additions and 7 deletions

View File

@ -10,15 +10,13 @@
<el-icon><More /></el-icon>
</el-button>
</span>
<!-- TODO @fan下面两个 icon可以使用类似 <Icon icon="ep:question-filled" /> 替代哈 -->
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item :command="['edit', role]">
<el-icon><EditPen /></el-icon>
<Icon icon="ep:edit" color="#787878" />
</el-dropdown-item>
<el-dropdown-item :command="['delete', role]" style="color: red">
<el-icon><Delete /></el-icon>
<span>删除</span>
<Icon icon="ep:delete" color="red" />删除
</el-dropdown-item>
</el-dropdown-menu>
</template>
@ -43,9 +41,9 @@
</template>
<script setup lang="ts">
import { ChatRoleVO } from '@/api/ai/model/chatRole'
import { PropType, ref } from 'vue'
import { Delete, EditPen, More } from '@element-plus/icons-vue'
import {ChatRoleVO} from '@/api/ai/model/chatRole'
import {PropType, ref} from 'vue'
import {More} from '@element-plus/icons-vue'
const tabsRef = ref<any>() // tabs ref