Skip to content

Commit 898f079

Browse files
docs: ✏️ 优化捐赠榜单中捐赠人链接的展示效果
1 parent 2666027 commit 898f079

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

docs/.vitepress/theme/index.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/*
2-
* @Author: weisheng
3-
* @Date: 2023-07-27 12:36:30
4-
* @LastEditTime: 2024-07-20 16:52:08
5-
* @LastEditors: weisheng
6-
* @Description:
7-
* @FilePath: /wot-design-uni/docs/.vitepress/theme/index.ts
8-
* 记得注释
9-
*/
101
import { h } from 'vue'
112
import Theme from 'vitepress/theme'
123
import './styles/vars.css'
@@ -19,7 +10,7 @@ import CustomFooter from './components/CustomFooter.vue'
1910
import SvgImage from './components/SvgImage.vue'
2011
import HomeStar from './components/HomeStar.vue'
2112
import frame from './components/frame.vue'
22-
import { ElTag } from 'element-plus'
13+
import { ElTag, ElLink } from 'element-plus'
2314

2415
export default {
2516
...Theme,
@@ -35,6 +26,6 @@ export default {
3526
app.component('SvgImage', SvgImage)
3627
app.component('frame', frame)
3728
app.component('ElTag', ElTag)
38-
29+
app.component('ElLink', ElLink)
3930
},
4031
}

docs/reward/donor.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
感谢各位捐赠者对本项目的支持,以下排名不分先后,按时间顺序排列。
44

55
:::tip
6-
捐赠后,请发送邮件到1780903673@qq.com或者通过github、微信群等社交平台告知要展示的捐赠者名称、留言、链接 (链接可以是您的博客、github、个人网站、公司产品等)
6+
捐赠后,请发送邮件到1780903673@qq.com或者通过 github、微信群等社交平台告知要展示的捐赠者名称、留言、链接 (链接可以是您的博客、github、个人网站、公司产品等)
77
:::
88

99
## 捐赠榜单
1010

11-
1211
<table v-if="data&&data.donor">
1312
<thead>
1413
<tr>
@@ -21,15 +20,17 @@
2120
<tr v-for="(donor,index) in data.donor">
2221
<td>{{donor.name}}</td>
2322
<td>{{donor.message}}</td>
24-
<td>{{donor.link}}</td>
23+
<td>
24+
<el-link v-if="donor.link!=='-'" :href="donor.link" target="_blank">{{donor.link}}</el-link>
25+
<span v-else>-</span>
26+
</td>
2527
</tr>
2628
</tbody>
2729
</table>
2830

29-
3031
:beers::beers::beers: 再次感谢各位捐赠者的支持,也欢迎大家提出自己的意见和建议。:beers::beers::beers:
3132

3233
<script setup>
3334
import { useSponsor } from '../.vitepress/theme/composables/sponsor'
3435
const { data } = useSponsor()
35-
</script>
36+
</script>

0 commit comments

Comments
 (0)