Upgrade to openai style for aichat (#46)

This commit is contained in:
AceDataCloud committed 2024-06-13 16:03:13 +00:00
1 parent 3918446e7a
commit 7869cc0acd
14 files changed
+431 -220

No files matched your search

+35 -4
View File
@@ -1,18 +1,41 @@
<template>
<div class="introduction-item">
{{ content }}
<div class="item">
<div class="icon">
<font-awesome-icon
:icon="icon"
:style="{
color: color
}"
/>
</div>
<div class="content">
{{ content }}
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { color } from '@codemirror/theme-one-dark';
export default defineComponent({
name: 'ConversationIntroductionItem',
components: {
FontAwesomeIcon
},
props: {
content: {
type: String,
required: true
},
icon: {
type: String,
required: true
},
color: {
type: String,
default: 'rgb(0, 0, 0)'
}
},
data() {
@@ -23,12 +46,20 @@ export default defineComponent({
</script>
<style lang="scss" scoped>
.introduction-item {
.item {
height: 100px;
font-size: 14px;
background-color: var(--el-fill-color-extra-light);
background-color: var(--el-color-white);
color: var(--el-text-color-primary);
border: 1px solid var(--el-border-color-lighter);
padding: 10px 20px;
border-radius: 20px;
&:hover {
background-color: var(--el-bg-color-page);
}
.icon {
font-size: 14px;
margin-bottom: 10px;
}
}
</style>