提交 a1c2e72d authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 86ba453c
差异被折叠。
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
"chalk": "^5.4.1", "chalk": "^5.4.1",
"eslint": "^8.57.1", "eslint": "^8.57.1",
"eslint-plugin-vue": "^9.32.0", "eslint-plugin-vue": "^9.32.0",
"sass": "^1.84.0",
"unplugin-auto-import": "^19.0.0", "unplugin-auto-import": "^19.0.0",
"unplugin-vue-components": "^28.0.0", "unplugin-vue-components": "^28.0.0",
"vite": "^5.4.14", "vite": "^5.4.14",
......
...@@ -74,7 +74,12 @@ const { copy, copied } = useClipboard() ...@@ -74,7 +74,12 @@ const { copy, copied } = useClipboard()
<li>雷军</li> <li>雷军</li>
</ul> </ul>
<div id="tooltip-box" ref="floating" :style="floatingStyles" @click="handleSearch">AI搜索</div> <div id="tooltip-box" ref="floating" :style="floatingStyles" @click="handleSearch">AI搜索</div>
<a-drawer v-model:visible="dialogVisible" :mask-closable="false" width="500px" style="z-index: 1000"> <a-drawer
v-model:visible="dialogVisible"
:mask-closable="false"
width="500px"
style="z-index: 1000"
class="zijing-chat">
<template #title> <template #title>
<div class="chat-header"> <div class="chat-header">
<img src="https://webapp-pub.ezijing.com/plugins/sky-agents/ai.png" width="34px" />紫荆AI助手 <img src="https://webapp-pub.ezijing.com/plugins/sky-agents/ai.png" width="34px" />紫荆AI助手
...@@ -112,7 +117,7 @@ const { copy, copied } = useClipboard() ...@@ -112,7 +117,7 @@ const { copy, copied } = useClipboard()
</a-drawer> </a-drawer>
</template> </template>
<style> <style lang="scss">
#tooltip-box { #tooltip-box {
display: none; display: none;
width: max-content; width: max-content;
...@@ -128,17 +133,18 @@ const { copy, copied } = useClipboard() ...@@ -128,17 +133,18 @@ const { copy, copied } = useClipboard()
cursor: pointer; cursor: pointer;
z-index: 9999999; z-index: 9999999;
} }
.chat-header { .zijing-chat {
.chat-header {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
column-gap: 10px; column-gap: 10px;
} }
.chat-message { .chat-message {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.chat-message-item { .chat-message-item {
max-width: 100%; max-width: 100%;
padding: 12px 16px; padding: 12px 16px;
margin: 10px 0; margin: 10px 0;
...@@ -146,74 +152,74 @@ const { copy, copied } = useClipboard() ...@@ -146,74 +152,74 @@ const { copy, copied } = useClipboard()
color: #000; color: #000;
background-color: #f5f5f5; background-color: #f5f5f5;
word-break: break-word; word-break: break-word;
} }
.chat-message-item.user { .chat-message-item.user {
color: #fff; color: #fff;
background-color: #06f; background-color: #06f;
} }
.chat-footer { .chat-footer {
display: flex; display: flex;
align-items: center; align-items: center;
column-gap: 10px; column-gap: 10px;
} }
.chat-message-extra .arco-popover-content { .chat-message-extra .arco-popover-content {
margin: 0; margin: 0;
} }
.chat-message-extra .arco-popover-popup-content { .chat-message-extra .arco-popover-popup-content {
padding: 2px; padding: 2px;
border: 0; border: 0;
border-radius: 12px; border-radius: 12px;
box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.12); box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.12);
} }
.chat-message-extra .arco-popover-popup-arrow { .chat-message-extra .arco-popover-popup-arrow {
display: none; display: none;
} }
.chat-message-extra .arco-btn { .chat-message-extra .arco-btn {
border-radius: 12px; border-radius: 12px;
} }
.dot-flashing { .dot-flashing {
animation: dot-flashing 0.8s infinite alternate; animation: dot-flashing 0.8s infinite alternate;
animation-delay: -0.2s; animation-delay: -0.2s;
animation-timing-function: ease; animation-timing-function: ease;
margin: 7px 18px; margin: 7px 18px;
overflow: visible !important; overflow: visible !important;
position: relative; position: relative;
} }
.dot-flashing, .dot-flashing,
.dot-flashing:after, .dot-flashing:after,
.dot-flashing:before { .dot-flashing:before {
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
border-radius: 4px; border-radius: 4px;
color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.1);
height: 8px; height: 8px;
width: 8px; width: 8px;
} }
.dot-flashing:after, .dot-flashing:after,
.dot-flashing:before { .dot-flashing:before {
animation: dot-flashing 0.8s infinite alternate; animation: dot-flashing 0.8s infinite alternate;
animation-timing-function: ease; animation-timing-function: ease;
content: ''; content: '';
display: inline-block; display: inline-block;
position: absolute; position: absolute;
top: 0; top: 0;
} }
.dot-flashing:before { .dot-flashing:before {
left: -15px; left: -15px;
animation-delay: -0.4s; animation-delay: -0.4s;
} }
.dot-flashing:after { .dot-flashing:after {
left: 15px; left: 15px;
animation-delay: 0s; animation-delay: 0s;
} }
@keyframes dot-flashing { @keyframes dot-flashing {
0% { 0% {
background-color: #000; background-color: #000;
} }
...@@ -225,5 +231,6 @@ const { copy, copied } = useClipboard() ...@@ -225,5 +231,6 @@ const { copy, copied } = useClipboard()
to { to {
background-color: #000; background-color: #000;
} }
}
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论