2026-02-03 01:46:03 +08:00
|
|
|
|
<!--
|
|
|
|
|
|
SlidingWindowDemo.vue
|
|
|
|
|
|
滑动窗口机制演示
|
|
|
|
|
|
|
|
|
|
|
|
用途:
|
|
|
|
|
|
展示 "Sliding Window" (滑动窗口) 如何处理长对话。
|
|
|
|
|
|
当新消息进入时,最旧的消息被移除上下文,演示遗忘机制。
|
|
|
|
|
|
|
|
|
|
|
|
交互功能:
|
|
|
|
|
|
- 发送消息:用户可发送消息,AI 自动回复。
|
|
|
|
|
|
- 自动演示:一键模拟长对话,观察窗口滑动。
|
|
|
|
|
|
- 视觉反馈:清晰展示哪些消息在"窗口内"(活跃),哪些在"窗口外"(遗忘)。
|
|
|
|
|
|
-->
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="sliding-window-demo">
|
2026-02-03 01:46:03 +08:00
|
|
|
|
<div class="control-panel">
|
|
|
|
|
|
<div class="info-stat">
|
|
|
|
|
|
<span class="label">Window Size / 窗口大小</span>
|
|
|
|
|
|
<span class="value">{{ windowSize }} Messages</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="actions">
|
|
|
|
|
|
<button class="action-btn" @click="autoPlay" :disabled="isAutoPlaying">
|
|
|
|
|
|
▶ Auto Play
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button class="action-btn outline" @click="reset">
|
|
|
|
|
|
↺ Reset
|
|
|
|
|
|
</button>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</div>
|
2026-02-03 01:46:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="visualization-area">
|
|
|
|
|
|
<div class="conversation-stream">
|
|
|
|
|
|
<!-- Forgotten / History Zone -->
|
|
|
|
|
|
<div class="zone history-zone">
|
|
|
|
|
|
<div class="zone-label">
|
|
|
|
|
|
<span class="icon">🗑️</span> Forgotten (History)
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<transition-group name="fade-list">
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-for="msg in historyMessages"
|
|
|
|
|
|
:key="msg.id"
|
|
|
|
|
|
class="message-bubble history"
|
|
|
|
|
|
:class="msg.role.toLowerCase()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="avatar">{{ msg.role === 'User' ? '👤' : '🤖' }}</div>
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
<div class="role-name">{{ msg.role }}</div>
|
|
|
|
|
|
<div class="text">{{ msg.content }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</transition-group>
|
|
|
|
|
|
<div v-if="historyMessages.length === 0" class="empty-placeholder">
|
|
|
|
|
|
No history yet...
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
<!-- Divider -->
|
|
|
|
|
|
<div class="window-divider">
|
|
|
|
|
|
<span>⬆ Out of Context</span>
|
|
|
|
|
|
<div class="divider-line"></div>
|
|
|
|
|
|
<span>⬇ In Context</span>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</div>
|
2026-02-03 01:46:03 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- Active Window Zone -->
|
|
|
|
|
|
<div class="zone active-zone">
|
|
|
|
|
|
<div class="zone-label">
|
|
|
|
|
|
<span class="icon">🖼️</span> Active Context Window
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<transition-group name="slide-list">
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-for="msg in activeMessages"
|
|
|
|
|
|
:key="msg.id"
|
2026-02-03 01:46:03 +08:00
|
|
|
|
class="message-bubble active"
|
|
|
|
|
|
:class="msg.role.toLowerCase()"
|
2026-01-16 19:10:21 +08:00
|
|
|
|
>
|
2026-02-03 01:46:03 +08:00
|
|
|
|
<div class="avatar">{{ msg.role === 'User' ? '👤' : '🤖' }}</div>
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
<div class="role-name">{{ msg.role }}</div>
|
|
|
|
|
|
<div class="text">{{ msg.content }}</div>
|
|
|
|
|
|
</div>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</transition-group>
|
2026-02-03 01:46:03 +08:00
|
|
|
|
<div v-if="activeMessages.length === 0" class="empty-placeholder">
|
|
|
|
|
|
Start the conversation...
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
<div class="input-section">
|
|
|
|
|
|
<input
|
|
|
|
|
|
v-model="newMessage"
|
|
|
|
|
|
@keyup.enter="sendMessage"
|
|
|
|
|
|
placeholder="Type a message..."
|
|
|
|
|
|
:disabled="isAutoPlaying"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<button class="send-btn" @click="sendMessage" :disabled="!newMessage.trim() || isAutoPlaying">
|
|
|
|
|
|
Send
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="info-box">
|
|
|
|
|
|
<p>
|
|
|
|
|
|
<span class="icon">💡</span>
|
|
|
|
|
|
<strong>Note:</strong>
|
|
|
|
|
|
滑动窗口是最简单的记忆管理策略。它保证了 Token 永远不会溢出,但代价是"健忘"。
|
|
|
|
|
|
一旦消息滑出窗口(进入上方灰色区域),模型就完全不知道它的存在了。
|
|
|
|
|
|
</p>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
import { ref, computed } from 'vue'
|
|
|
|
|
|
|
|
|
|
|
|
const windowSize = 4
|
|
|
|
|
|
const messages = ref([])
|
|
|
|
|
|
const newMessage = ref('')
|
2026-02-03 01:46:03 +08:00
|
|
|
|
const isAutoPlaying = ref(false)
|
2026-01-16 19:10:21 +08:00
|
|
|
|
let msgId = 0
|
|
|
|
|
|
|
|
|
|
|
|
const activeMessages = computed(() => {
|
|
|
|
|
|
return messages.value.slice(-windowSize)
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const historyMessages = computed(() => {
|
2026-02-03 01:46:03 +08:00
|
|
|
|
return messages.value.slice(0, Math.max(0, messages.value.length - windowSize))
|
2026-01-16 19:10:21 +08:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const sendMessage = () => {
|
|
|
|
|
|
if (!newMessage.value.trim()) return
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
addMessage('User', newMessage.value)
|
|
|
|
|
|
const userText = newMessage.value
|
|
|
|
|
|
newMessage.value = ''
|
|
|
|
|
|
|
|
|
|
|
|
// Simulate AI response
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
addMessage('AI', `I heard you say "${userText}". Interesting!`)
|
|
|
|
|
|
}, 600)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const addMessage = (role, content) => {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
messages.value.push({
|
|
|
|
|
|
id: msgId++,
|
2026-02-03 01:46:03 +08:00
|
|
|
|
role,
|
|
|
|
|
|
content
|
2026-01-16 19:10:21 +08:00
|
|
|
|
})
|
2026-02-03 01:46:03 +08:00
|
|
|
|
}
|
2026-01-16 19:10:21 +08:00
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
const autoPlay = async () => {
|
|
|
|
|
|
isAutoPlaying.value = true
|
|
|
|
|
|
const script = [
|
|
|
|
|
|
"Hello there!",
|
|
|
|
|
|
"Hi! I'm an AI assistant.",
|
|
|
|
|
|
"What is your name?",
|
|
|
|
|
|
"I am Model GPT-X.",
|
|
|
|
|
|
"Do you remember my first message?",
|
|
|
|
|
|
"Yes, you said 'Hello there!'.",
|
|
|
|
|
|
"Tell me a joke.",
|
|
|
|
|
|
"Why did the chicken cross the road?",
|
|
|
|
|
|
"To get to the other side!",
|
|
|
|
|
|
"Haha, classic.",
|
|
|
|
|
|
"Wait, what was my name again?",
|
|
|
|
|
|
"I... I don't remember. It fell out of my context window!"
|
|
|
|
|
|
]
|
2026-01-16 19:10:21 +08:00
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
for (const line of script) {
|
|
|
|
|
|
if (!isAutoPlaying.value) break
|
|
|
|
|
|
const role = messages.value.length % 2 === 0 ? 'User' : 'AI'
|
|
|
|
|
|
addMessage(role, line)
|
|
|
|
|
|
await new Promise(r => setTimeout(r, 1500))
|
|
|
|
|
|
}
|
|
|
|
|
|
isAutoPlaying.value = false
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const reset = () => {
|
|
|
|
|
|
messages.value = []
|
|
|
|
|
|
msgId = 0
|
2026-02-03 01:46:03 +08:00
|
|
|
|
isAutoPlaying.value = false
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.sliding-window-demo {
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
background-color: var(--vp-c-bg-soft);
|
|
|
|
|
|
padding: 1.5rem;
|
|
|
|
|
|
margin: 1rem 0;
|
|
|
|
|
|
font-family: var(--vp-font-family-mono);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.control-panel {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
display: flex;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
margin-bottom: 1.5rem;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
background: var(--vp-c-bg);
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.info-stat {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info-stat .label {
|
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
|
color: var(--vp-c-text-2);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info-stat .value {
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
font-size: 1.1rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
|
|
display: flex;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.action-btn {
|
|
|
|
|
|
padding: 0.25rem 0.75rem;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
background-color: var(--vp-c-brand);
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: opacity 0.2s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-btn:disabled {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
opacity: 0.5;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
cursor: not-allowed;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.action-btn.outline {
|
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
color: var(--vp-c-text-1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.visualization-area {
|
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
|
background: var(--vp-c-bg-alt);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
padding: 1rem;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.conversation-stream {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
gap: 0;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.zone {
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.history-zone {
|
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.03);
|
|
|
|
|
|
border: 1px dashed var(--vp-c-divider);
|
|
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.active-zone {
|
|
|
|
|
|
background-color: var(--vp-c-bg);
|
|
|
|
|
|
border: 2px solid var(--vp-c-brand);
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
|
|
min-height: 150px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.zone-label {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
|
font-weight: bold;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
color: var(--vp-c-text-2);
|
|
|
|
|
|
margin-bottom: 0.8rem;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.window-divider {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
color: var(--vp-c-text-3);
|
|
|
|
|
|
font-size: 0.75rem;
|
|
|
|
|
|
margin: 0.5rem 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.divider-line {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
height: 1px;
|
|
|
|
|
|
background-color: var(--vp-c-divider);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.message-bubble {
|
2026-02-03 01:46:03 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 0.8rem;
|
|
|
|
|
|
margin-bottom: 0.8rem;
|
|
|
|
|
|
padding: 0.6rem;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
border-radius: 6px;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
background: var(--vp-c-bg);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
2026-02-03 01:46:03 +08:00
|
|
|
|
transition: all 0.5s ease;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.message-bubble.history {
|
|
|
|
|
|
filter: grayscale(100%);
|
|
|
|
|
|
opacity: 0.7;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.message-bubble.user .avatar {
|
|
|
|
|
|
order: 1;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.message-bubble.user {
|
|
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
|
text-align: right;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.message-bubble.user .content {
|
|
|
|
|
|
align-items: flex-end;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
|
width: 2rem;
|
|
|
|
|
|
height: 2rem;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
background: var(--vp-c-bg-soft);
|
|
|
|
|
|
border-radius: 50%;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.content {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
max-width: 80%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.role-name {
|
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
|
color: var(--vp-c-text-3);
|
|
|
|
|
|
margin-bottom: 0.2rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
|
line-height: 1.4;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.empty-placeholder {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
color: var(--vp-c-text-3);
|
|
|
|
|
|
font-style: italic;
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.input-section {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 0.5rem;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
margin-bottom: 1rem;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
|
flex: 1;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
padding: 0.75rem;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
2026-02-03 01:46:03 +08:00
|
|
|
|
border-radius: 6px;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
background: var(--vp-c-bg);
|
2026-02-03 01:46:03 +08:00
|
|
|
|
color: var(--vp-c-text-1);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
input:focus {
|
|
|
|
|
|
outline: none;
|
|
|
|
|
|
border-color: var(--vp-c-brand);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.send-btn {
|
|
|
|
|
|
padding: 0 1.5rem;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
background: var(--vp-c-brand);
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border: none;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
font-weight: bold;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
cursor: pointer;
|
2026-02-03 01:46:03 +08:00
|
|
|
|
transition: background 0.2s;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.send-btn:hover {
|
|
|
|
|
|
background: var(--vp-c-brand-dark);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.send-btn:disabled {
|
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info-box {
|
|
|
|
|
|
background-color: var(--vp-c-bg-alt);
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
color: var(--vp-c-text-2);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-03 01:46:03 +08:00
|
|
|
|
.info-box .icon {
|
|
|
|
|
|
margin-right: 0.5rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Animations */
|
|
|
|
|
|
.slide-list-enter-active,
|
|
|
|
|
|
.slide-list-leave-active,
|
|
|
|
|
|
.fade-list-enter-active,
|
|
|
|
|
|
.fade-list-leave-active {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
transition: all 0.5s ease;
|
|
|
|
|
|
}
|
2026-02-03 01:46:03 +08:00
|
|
|
|
|
|
|
|
|
|
.slide-list-enter-from {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transform: translateY(20px);
|
|
|
|
|
|
}
|
2026-02-03 01:46:03 +08:00
|
|
|
|
|
|
|
|
|
|
.slide-list-leave-to {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transform: translateY(-20px);
|
|
|
|
|
|
}
|
2026-02-03 01:46:03 +08:00
|
|
|
|
|
|
|
|
|
|
.fade-list-enter-from {
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
.fade-list-leave-to {
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
transform: translateY(-10px);
|
|
|
|
|
|
}
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</style>
|