Skip to content

Commit 9087ffb

Browse files
committed
feat:【AI 大模型】RoleCategory.vue、RoleHeader.vue 使用 unocss
1 parent a8047e5 commit 9087ffb

File tree

2 files changed

+5
-46
lines changed

2 files changed

+5
-46
lines changed

src/views/ai/chat/index/components/role/RoleCategoryList.vue

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div class="category-list">
3-
<div class="category" v-for="category in categoryList" :key="category">
2+
<div class="flex flex-row flex-wrap items-center">
3+
<div class="flex flex-row mr-10px" v-for="category in categoryList" :key="category">
44
<el-button
55
plain
66
round
@@ -37,17 +37,3 @@ const handleCategoryClick = async (category: string) => {
3737
emits('onCategoryClick', category)
3838
}
3939
</script>
40-
<style scoped lang="scss">
41-
.category-list {
42-
display: flex;
43-
flex-direction: row;
44-
flex-wrap: wrap;
45-
align-items: center;
46-
47-
.category {
48-
display: flex;
49-
flex-direction: row;
50-
margin-right: 10px;
51-
}
52-
}
53-
</style>
Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!-- header -->
22
<template>
3-
<el-header class="chat-header">
4-
<div class="title">
3+
<el-header class="flex flex-row justify-between items-center px-10px whitespace-nowrap text-ellipsis w-full" :style="{ backgroundColor: 'var(--el-bg-color-page)' }">
4+
<div class="text-20px font-bold overflow-hidden max-w-220px" :style="{ color: 'var(--el-text-color-primary)' }">
55
{{ title }}
66
</div>
7-
<div class="title-right">
7+
<div class="flex flex-row">
88
<slot></slot>
99
</div>
1010
</el-header>
@@ -19,30 +19,3 @@ defineProps({
1919
}
2020
})
2121
</script>
22-
23-
<style scoped lang="scss">
24-
.chat-header {
25-
display: flex;
26-
flex-direction: row;
27-
justify-content: space-between;
28-
align-items: center;
29-
padding: 0 10px;
30-
white-space: nowrap;
31-
text-overflow: ellipsis;
32-
background-color: var(--el-bg-color-page);
33-
width: 100%;
34-
35-
.title {
36-
font-size: 20px;
37-
font-weight: bold;
38-
overflow: hidden;
39-
color: var(--el-text-color-primary);
40-
max-width: 220px;
41-
}
42-
43-
.title-right {
44-
display: flex;
45-
flex-direction: row;
46-
}
47-
}
48-
</style>

0 commit comments

Comments
 (0)