Skip to content

Commit dfddb21

Browse files
committed
[doc]更新CmdK组件的输入框样式,添加分隔线以改善视觉效果;更新Header组件,调整版本链接的布局;在Icon页面中引入新的Markdown插件以增强功能。
1 parent 8c9c2b0 commit dfddb21

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docs/site/src/lib/cmdk/CmdK.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
<input
237237
bind:this={cmdKInput}
238238
bind:value={cmdKValue}
239-
class="focus:ring-b caret-primary dark:caret-dark focus:outline-hidden w-full placeholder:text-black/20 dark:bg-black dark:placeholder:text-white/30"
239+
class="caret-primary dark:caret-dark focus:outline-hidden w-full placeholder:text-black/20 dark:bg-black dark:placeholder:text-white/30"
240240
type="text"
241241
placeholder={isZh ? '请输入组件关键字' : 'Please enter the component keyword'}
242242
/>
@@ -343,6 +343,7 @@
343343
</button>
344344
</div>
345345
</div>
346+
<div class="h-px bg-black/5 dark:bg-white/10"></div>
346347
{/each}
347348
</div>
348349
<div class="flex gap-4 border-t border-black/10 px-4 py-2 text-xs opacity-60 dark:border-white/10">

docs/site/src/lib/header/Header.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@
147147
{isZh ? '更新日志' : 'Changelog'}
148148
</a>
149149
<div class="my-2 h-px bg-black/5 dark:bg-white/20"></div>
150-
<a href="https://0.stdf.design" target="_blank" class="hover:underline">Version 0.x </a>
150+
<div class="flex flex-col space-y-2">
151+
<a href="https://1.0.stdf.design" target="_blank" class="hover:underline">Version 1.0.x </a>
152+
<a href="https://0.stdf.design" target="_blank" class="hover:underline">Version 0.x </a>
153+
</div>
151154
</div>
152155
{/if}
153156
</div>

docs/site/src/routes/guide/icon/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { mdTextToHljs } from '../../../utils/index';
2+
import { mdTextToHljs, groupIconMdPlugin } from '../../../utils/index';
33
import { isWideScreenStore } from '../../../store';
44
55
// @ts-ignore
@@ -8,7 +8,7 @@
88
import text_en from '../../../../../mds/guide/icon_en.md';
99
1010
const isZh = localStorage.getItem('lang') === 'zh_CN';
11-
const hljsText = mdTextToHljs((isZh ? text : text_en).replace(/<a href="/g, '<a target="_blank" href="'));
11+
const hljsText = groupIconMdPlugin(mdTextToHljs((isZh ? text : text_en).replace(/<a href="/g, '<a target="_blank" href="')));
1212
</script>
1313

1414
<article

0 commit comments

Comments
 (0)