修复默认页面

master
yutent 2023-04-22 23:13:15 +08:00
parent 90e987a5ba
commit afb9f5041b
2 changed files with 9 additions and 6 deletions

View File

@ -13,13 +13,16 @@
### 使用 ### 使用
```html <wc-sandbox>
<wc-lang slot="javascript">
import '//jscdn.ink/@bd/ui/latest/space/index.js'
import '//jscdn.ink/@bd/ui/latest/icon/index.js'
</wc-lang>
<wc-lang slot="html">
<wc-icon name="home"></wc-icon> <wc-icon name="home"></wc-icon>
``` </wc-lang>
</wc-sandbox>
<section class="flex-free">
<wc-icon name="home"></wc-icon>
</section>
### 尺寸 ### 尺寸
`size="xxxl"`, `size="xxl"`, `size="xl"`, `size="l"`, `size="m"`, `size="s"`, 连同默认尺寸在内, 5种预设规格。 `size="xxxl"`, `size="xxl"`, `size="xl"`, `size="l"`, `size="m"`, `size="s"`, 连同默认尺寸在内, 5种预设规格。

View File

@ -27,7 +27,7 @@ export default {
}, },
mounted() { mounted() {
let key = location.search.slice(1) let key = location.search.slice(1) || 'logs'
this.nav = key this.nav = key
fetch(`/docset/ui/${key}.md`) fetch(`/docset/ui/${key}.md`)