Skip to content

Commit

Permalink
docs: github socialLinks
Browse files Browse the repository at this point in the history
  • Loading branch information
drl990114 committed Feb 24, 2024
1 parent f514036 commit da48e7f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default defineConfig({
themeConfig: {
logo: '/logo.png',
lastUpdated: true,
socialLinks: {
github: 'https://github.com/drl990114/zens',
},
footer: 'Open-source MIT Licensed | Copyright © 2024 <a href="https://github.com/drl990114">@drl990114</a>'
},
exportStatic: {},
Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ hero:
actions:
- text: 快速上手
link: /getting-started
- text: GitHub
link: https://github.com/drl990114/zens
---
7 changes: 7 additions & 0 deletions src/Tooltip/demo/basic.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Button, Tooltip } from 'zens';

export default () => (
<Tooltip title='这是一个提示'>
<Button>按钮</Button>
</Tooltip>
);
17 changes: 17 additions & 0 deletions src/Tooltip/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Tooltip 提示
nav:
title: 组件
order: 2
group:
title: 反馈
order: 1
---

# Tooltip 提示

## 代码演示

### 基本用法

<code src="./demo/basic.tsx"></code>

0 comments on commit da48e7f

Please sign in to comment.