提交 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,102 +133,104 @@ const { copy, copied } = useClipboard() ...@@ -128,102 +133,104 @@ const { copy, copied } = useClipboard()
cursor: pointer; cursor: pointer;
z-index: 9999999; z-index: 9999999;
} }
.chat-header { .zijing-chat {
display: flex; .chat-header {
align-items: center; display: flex;
justify-content: center; align-items: center;
column-gap: 10px; justify-content: center;
} column-gap: 10px;
.chat-message { }
display: flex; .chat-message {
flex-direction: row; display: flex;
} flex-direction: row;
.chat-message-item { }
max-width: 100%; .chat-message-item {
padding: 12px 16px; max-width: 100%;
margin: 10px 0; padding: 12px 16px;
border-radius: 16px; margin: 10px 0;
color: #000; border-radius: 16px;
background-color: #f5f5f5; color: #000;
word-break: break-word; background-color: #f5f5f5;
} word-break: break-word;
.chat-message-item.user { }
color: #fff; .chat-message-item.user {
background-color: #06f; color: #fff;
} background-color: #06f;
.chat-footer { }
display: flex; .chat-footer {
align-items: center; display: flex;
column-gap: 10px; align-items: center;
} column-gap: 10px;
}
.chat-message-extra .arco-popover-content {
margin: 0;
}
.chat-message-extra .arco-popover-popup-content {
padding: 2px;
border: 0;
border-radius: 12px;
box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.12);
}
.chat-message-extra .arco-popover-popup-arrow {
display: none;
}
.chat-message-extra .arco-btn {
border-radius: 12px;
}
.dot-flashing { .chat-message-extra .arco-popover-content {
animation: dot-flashing 0.8s infinite alternate; margin: 0;
animation-delay: -0.2s; }
animation-timing-function: ease;
margin: 7px 18px;
overflow: visible !important;
position: relative;
}
.dot-flashing, .chat-message-extra .arco-popover-popup-content {
.dot-flashing:after, padding: 2px;
.dot-flashing:before { border: 0;
background-color: rgba(0, 0, 0, 0.1); border-radius: 12px;
border-radius: 4px; box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.12);
color: rgba(0, 0, 0, 0.1); }
height: 8px; .chat-message-extra .arco-popover-popup-arrow {
width: 8px; display: none;
} }
.chat-message-extra .arco-btn {
border-radius: 12px;
}
.dot-flashing:after, .dot-flashing {
.dot-flashing:before { animation: dot-flashing 0.8s infinite alternate;
animation: dot-flashing 0.8s infinite alternate; animation-delay: -0.2s;
animation-timing-function: ease; animation-timing-function: ease;
content: ''; margin: 7px 18px;
display: inline-block; overflow: visible !important;
position: absolute; position: relative;
top: 0; }
}
.dot-flashing:before { .dot-flashing,
left: -15px; .dot-flashing:after,
animation-delay: -0.4s; .dot-flashing:before {
} background-color: rgba(0, 0, 0, 0.1);
border-radius: 4px;
color: rgba(0, 0, 0, 0.1);
height: 8px;
width: 8px;
}
.dot-flashing:after { .dot-flashing:after,
left: 15px; .dot-flashing:before {
animation-delay: 0s; animation: dot-flashing 0.8s infinite alternate;
} animation-timing-function: ease;
content: '';
display: inline-block;
position: absolute;
top: 0;
}
@keyframes dot-flashing { .dot-flashing:before {
0% { left: -15px;
background-color: #000; animation-delay: -0.4s;
} }
50% { .dot-flashing:after {
background-color: rgba(0, 0, 0, 0.1); left: 15px;
animation-delay: 0s;
} }
to { @keyframes dot-flashing {
background-color: #000; 0% {
background-color: #000;
}
50% {
background-color: rgba(0, 0, 0, 0.1);
}
to {
background-color: #000;
}
} }
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论