From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/views/ai/chat/index/components/role/RoleCategoryList.vue | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/src/views/ai/chat/index/components/role/RoleCategoryList.vue b/src/views/ai/chat/index/components/role/RoleCategoryList.vue
new file mode 100644
index 0000000..2efc821
--- /dev/null
+++ b/src/views/ai/chat/index/components/role/RoleCategoryList.vue
@@ -0,0 +1,39 @@
+<template>
+ <div class="flex flex-row flex-wrap items-center">
+ <div class="flex flex-row mr-10px" v-for="category in categoryList" :key="category">
+ <el-button
+ plain
+ round
+ size="small"
+ :type="category === active ? 'primary' : ''"
+ @click="handleCategoryClick(category)"
+ >
+ {{ category }}
+ </el-button>
+ </div>
+ </div>
+</template>
+<script setup lang="ts">
+import { PropType } from 'vue'
+
+// 瀹氫箟灞炴��
+defineProps({
+ categoryList: {
+ type: Array as PropType<string[]>,
+ required: true
+ },
+ active: {
+ type: String,
+ required: false,
+ default: '鍏ㄩ儴'
+ }
+})
+
+// 瀹氫箟鍥炶皟
+const emits = defineEmits(['onCategoryClick'])
+
+/** 澶勭悊鍒嗙被鐐瑰嚮浜嬩欢 */
+const handleCategoryClick = async (category: string) => {
+ emits('onCategoryClick', category)
+}
+</script>
--
Gitblit v1.8.0