docs: update component and config
This commit is contained in:
parent
c0bb6bcc14
commit
b86a121707
@ -18,6 +18,15 @@ export const theme: Theme = plumeTheme({
|
|||||||
},
|
},
|
||||||
|
|
||||||
markdown: {
|
markdown: {
|
||||||
|
icon: {
|
||||||
|
provider: 'iconify',
|
||||||
|
preload: [
|
||||||
|
// used within <AsideNae />
|
||||||
|
'tabler:star',
|
||||||
|
'octicon:issue-opened-16',
|
||||||
|
'ep:milk-tea',
|
||||||
|
],
|
||||||
|
},
|
||||||
chartjs: true,
|
chartjs: true,
|
||||||
echarts: true,
|
echarts: true,
|
||||||
markmap: true,
|
markmap: true,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { VPLink } from 'vuepress-theme-plume/client'
|
import { VPIcon, VPLink } from 'vuepress-theme-plume/client'
|
||||||
import { useRouteLocale } from 'vuepress/client'
|
import { useRouteLocale } from 'vuepress/client'
|
||||||
|
|
||||||
interface Locale {
|
interface Locale {
|
||||||
@ -21,17 +21,17 @@ const locale = computed(() => locales[lang.value])
|
|||||||
<template>
|
<template>
|
||||||
<div class="aside-nav-wrapper">
|
<div class="aside-nav-wrapper">
|
||||||
<VPLink class="link" no-icon href="https://github.com/pengzhanbo/vuepress-theme-plume">
|
<VPLink class="link" no-icon href="https://github.com/pengzhanbo/vuepress-theme-plume">
|
||||||
<span class="vpi-github-star" />
|
<VPIcon name="tabler:star" />
|
||||||
<span class="link-text">{{ locale.star }}</span>
|
<span class="link-text">{{ locale.star }}</span>
|
||||||
<span class="vpi-arrow-right" />
|
<span class="vpi-arrow-right" />
|
||||||
</VPLink>
|
</VPLink>
|
||||||
<VPLink class="link" no-icon href="https://github.com/pengzhanbo/vuepress-theme-plume/issues/new/choose">
|
<VPLink class="link" no-icon href="https://github.com/pengzhanbo/vuepress-theme-plume/issues/new/choose">
|
||||||
<span class="vpi-github-issue" />
|
<VPIcon name="octicon:issue-opened-16" />
|
||||||
<span class="link-text">{{ locale.issue }}</span>
|
<span class="link-text">{{ locale.issue }}</span>
|
||||||
<span class="vpi-arrow-right" />
|
<span class="vpi-arrow-right" />
|
||||||
</VPLink>
|
</VPLink>
|
||||||
<VPLink class="link" href="/sponsor/">
|
<VPLink class="link" href="/sponsor/">
|
||||||
<span class="vpi-bubble-tea" />
|
<VPIcon name="ep:milk-tea" />
|
||||||
<span class="link-text">{{ locale.sponsor }}</span>
|
<span class="link-text">{{ locale.sponsor }}</span>
|
||||||
<span class="vpi-arrow-right" />
|
<span class="vpi-arrow-right" />
|
||||||
</VPLink>
|
</VPLink>
|
||||||
@ -65,15 +65,7 @@ const locale = computed(() => locales[lang.value])
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vpi-github-star {
|
.aside-nav-wrapper :deep([class*=" vpi-"]) {
|
||||||
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m12 1.5l3.1 6.3l6.9 1l-5 4.8l1.2 6.9l-6.2-3.2l-6.2 3.2L7 13.6L2 8.8l6.9-1z'/%3E%3C/svg%3E");
|
margin: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.vpi-github-issue {
|
|
||||||
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 9.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3'/%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0M1.5 8a6.5 6.5 0 1 0 13 0a6.5 6.5 0 0 0-13 0'/%3E%3C/svg%3E");
|
|
||||||
}
|
|
||||||
|
|
||||||
.vpi-bubble-tea {
|
|
||||||
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m17.95 9l-1.478 8.69c-.25 1.463-.374 2.195-.936 2.631c-1.2.931-6.039.88-7.172 0c-.562-.436-.687-1.168-.936-2.632L5.95 9M6 9l.514-1.286a5.908 5.908 0 0 1 10.972 0L18 9M5 9h14m-7 0l4-7m-5.99 12h.01m1 4h.01m1.99-2h.01'/%3E%3C/svg%3E");
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,12 +1,20 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { PlumeThemeHomeHeroTintPlate } from 'vuepress-theme-plume/client'
|
|
||||||
import { computed, watch } from 'vue'
|
import { computed, watch } from 'vue'
|
||||||
import InputRange from './InputRange.vue'
|
import InputRange from './InputRange.vue'
|
||||||
|
|
||||||
const min = 20
|
const min = 20
|
||||||
const max = 240
|
const max = 240
|
||||||
|
|
||||||
const tintPlate = defineModel<PlumeThemeHomeHeroTintPlate>({
|
interface PlateItem {
|
||||||
|
value: number
|
||||||
|
offset: number
|
||||||
|
}
|
||||||
|
|
||||||
|
const tintPlate = defineModel<{
|
||||||
|
r: PlateItem
|
||||||
|
g: PlateItem
|
||||||
|
b: PlateItem
|
||||||
|
}>({
|
||||||
required: true,
|
required: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user