Skip to content

Commit

Permalink
chore: 删除 Link 组件使用 VPLink 替代
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp committed Nov 5, 2024
1 parent d0ae5b4 commit c470678
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .vitepress/theme/components/Card.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { withBase } from 'vitepress'
import { computed, defineProps, withDefaults } from 'vue'
import { computed } from 'vue'
import { isLinkExternal, isRelativeLink } from '../utils'
import '../styles/card.scss'
Expand Down
6 changes: 3 additions & 3 deletions .vitepress/theme/components/Footer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { useQRCode } from '@vueuse/integrations/useQRCode'
import { useData, withBase } from 'vitepress'
import { VPLink } from 'vitepress/theme'
import { socialList } from '../composables/socialList'
const { frontmatter, theme } = useData()
Expand All @@ -14,13 +15,12 @@ const qrcode = useQRCode(theme.value.footer.qrcodeLink)
<h3 class="footer-title">{{ item.title }}</h3>
<ul>
<li v-for="ic in item.items">
<Link
<VPLink
:href="ic.link"
:title="`${ic.text}(${withBase(ic.link)})`"
:no-icon="true"
>
{{ ic.text }}
</Link>
</VPLink>
</li>
</ul>
</div>
Expand Down
44 changes: 0 additions & 44 deletions .vitepress/theme/components/Link.vue

This file was deleted.

2 changes: 0 additions & 2 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import DocFeedback from './components/DocFeedback.vue'
import DocHeader from './components/DocHeader.vue'
import DocInfo from './components/DocInfo.vue'
import HighlightTargetedHeading from './components/HighlightTargetedHeading.vue'
import Link from './components/Link.vue'
import LinkGrid from './components/LinkGrid.vue'

import 'uno.css'
Expand Down Expand Up @@ -45,7 +44,6 @@ export default {
debug: false,
})
app.use(pinia)
app.component('Link', Link)
app.component('Coins', Coins)
app.component('Card', Card)
app.component('LinkGrid', LinkGrid)
Expand Down
6 changes: 5 additions & 1 deletion src/components/staff/StaffList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ const sortedMembers = computed(() => {
.members {
padding-top: 24px;
margin-left: 12px;
}
@media (min-width: 768px) {
.members {
flex-grow: 1;
padding-top: 16px;
padding-top: 52px;
}
}
Expand All @@ -184,6 +185,7 @@ const sortedMembers = computed(() => {
max-width: 100%;
}
}
.members {
display: flex;
flex-wrap: wrap;
Expand All @@ -208,6 +210,8 @@ const sortedMembers = computed(() => {
.member-name {
font-size: 16px; /* Adjust the font size as needed */
font-weight: bold;
word-break: keep-all;
white-space: nowrap;
}
.member-title {
Expand Down

0 comments on commit c470678

Please sign in to comment.