diff --git a/docs/.vitepress/plugins/badge/constants.ts b/docs/.vitepress/plugins/badge/constants.ts index d13196347..656dfbbd5 100644 --- a/docs/.vitepress/plugins/badge/constants.ts +++ b/docs/.vitepress/plugins/badge/constants.ts @@ -17,7 +17,7 @@ export type BadgeValue = BadgeType | string */ export const BADGE_TEXT_MAP: Record = { new: '新增', - deprecated: '已废弃', + deprecated: '弃用', beta: 'Beta', alpha: 'Alpha', } diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 14e85c8e3..d2da971df 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -328,9 +328,13 @@ div:has(h1[id='bubble-气泡组件']) { } .version-badge--deprecated { - background-color: #fef0f0; - color: #f56c6c; - border: 1px solid #fde2e2; + padding: 1px 6px; + background-color: var(--vp-c-bg-soft); + color: var(--vp-c-text-3); + border: 0; + border-radius: 4px; + font-size: 12px; + font-weight: 400; } .version-badge--beta { @@ -353,9 +357,8 @@ div:has(h1[id='bubble-气泡组件']) { } .dark .version-badge--deprecated { - background-color: rgba(245, 108, 108, 0.15); - color: #f89898; - border-color: rgba(245, 108, 108, 0.25); + background-color: rgba(255, 255, 255, 0.08); + color: var(--vp-c-text-2); } .dark .version-badge--beta { diff --git a/docs/.vitepress/themeConfig.ts b/docs/.vitepress/themeConfig.ts index a5f10ae3a..b3c8c3335 100644 --- a/docs/.vitepress/themeConfig.ts +++ b/docs/.vitepress/themeConfig.ts @@ -14,7 +14,6 @@ const sharedSidebarItems = [ text: '组件', base: '/components/', items: [ - { text: 'Container 容器', link: 'container' }, { text: 'Layout 布局', link: 'layout' }, { text: 'Bubble 气泡', link: 'bubble' }, { text: 'Sender 消息输入框', link: 'sender' }, @@ -30,6 +29,7 @@ const sharedSidebarItems = [ { text: 'Attachments 附件卡片', link: 'attachments' }, { text: 'McpServerPicker 插件选择器', link: 'mcp-server-picker' }, { text: 'Theme 主题', link: 'theme' }, + { text: 'Container 容器', link: 'container' }, ], }, { diff --git a/docs/demos/history/basic.vue b/docs/demos/history/basic.vue index 3cc2c32ff..6c46adca5 100644 --- a/docs/demos/history/basic.vue +++ b/docs/demos/history/basic.vue @@ -3,7 +3,7 @@ :data="data" :selected="selected" :show-rename-controls="isTouchDevice" - rename-control-on-click-outside="cancel" + :rename-control-on-click-outside="isTouchDevice ? 'cancel' : 'confirm'" @item-click="(item) => (selected = item.id)" @item-title-change="(newTitle, item) => (item.title = newTitle)" @item-action="(item) => console.log(item)" @@ -13,6 +13,8 @@