perf: 更新 externalLinkIcon 样式
This commit is contained in:
parent
db5220a015
commit
0244f6886f
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -27,6 +27,7 @@
|
|||||||
"portfinder",
|
"portfinder",
|
||||||
"shiki",
|
"shiki",
|
||||||
"shikiji",
|
"shikiji",
|
||||||
|
"taze",
|
||||||
"Tongji",
|
"Tongji",
|
||||||
"tsbuildinfo",
|
"tsbuildinfo",
|
||||||
"vite",
|
"vite",
|
||||||
|
|||||||
19
theme/src/client/components/global/ExternalLinkIcon.vue
Normal file
19
theme/src/client/components/global/ExternalLinkIcon.vue
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<script lang="ts" setup>
|
||||||
|
import IconExternalLink from '../icons/IconExternalLink.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<IconExternalLink class="external-icon" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.external-icon {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
color: var(--vp-c-text-3);
|
||||||
|
vertical-align: middle;
|
||||||
|
top: 1px;
|
||||||
|
width: 0.8em;
|
||||||
|
height: 0.8em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -3,6 +3,7 @@ import './styles/index.scss'
|
|||||||
import { defineClientConfig } from '@vuepress/client'
|
import { defineClientConfig } from '@vuepress/client'
|
||||||
import { h } from 'vue'
|
import { h } from 'vue'
|
||||||
import Badge from './components/global/Badge.vue'
|
import Badge from './components/global/Badge.vue'
|
||||||
|
import ExternalLinkIcon from './components/global/ExternalLinkIcon.vue'
|
||||||
import { setupDarkMode, useScrollPromise } from './composables/index.js'
|
import { setupDarkMode, useScrollPromise } from './composables/index.js'
|
||||||
import Layout from './layouts/Layout.vue'
|
import Layout from './layouts/Layout.vue'
|
||||||
import NotFound from './layouts/NotFound.vue'
|
import NotFound from './layouts/NotFound.vue'
|
||||||
@ -12,6 +13,7 @@ export default defineClientConfig({
|
|||||||
// global component
|
// global component
|
||||||
|
|
||||||
app.component('Badge', Badge)
|
app.component('Badge', Badge)
|
||||||
|
app.component('ExternalLinkIcon', ExternalLinkIcon)
|
||||||
|
|
||||||
app.component('DocSearch', () => {
|
app.component('DocSearch', () => {
|
||||||
const SearchComponent
|
const SearchComponent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user