File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <NPopover trigger =" hover" placement =" right" >
3
+ <template #trigger >
4
+ <div class =" bg-stone-100 hover:bg-stone-50 dark:bg-stone-800 dark:hover:bg-stone-700 rounded-full shadow h-14 w-14 p-3.5 text-gray-500 hover:text-gray-900 hover:dark:text-gray-300" >
5
+ <NuxtLink target =" _blank" :to =" link" ><Icon class =" w-full h-full" name =" carbon:generate-pdf" ></Icon ></NuxtLink >
6
+ </div >
7
+ </template >
8
+ 下载 PDF 原版文件
9
+ </NPopover >
10
+ </template >
11
+ <script setup lang="ts">
12
+ defineProps <{
13
+ link: string
14
+ }>()
15
+ </script >
Original file line number Diff line number Diff line change 1
1
---
2
2
title : ' 西方确指'
3
3
description : ' 庐山东林寺印经处 印赠'
4
+ download_link : https://file.hufasi.com/%E8%A5%BF%E6%96%B9%E7%A1%AE%E6%8C%87%EF%BC%88%E4%B8%9C%E6%9E%97%E7%89%88%E6%89%AB%E6%8F%8F%EF%BC%892020.6.16.pdf
4
5
---
5
6
6
7
:: cover
Original file line number Diff line number Diff line change 5
5
<ContentDoc class =" p-10 leading-relaxed bg-neutral-50 dark:bg-neutral-800 " :class =" `text-${fontSize} paragraph-${fontSize}`" />
6
6
<div class =" relative mb-3" >
7
7
<div class =" fixed bottom-3 flex flex-col gap-3" >
8
- <SettingsColorMode class =" bg-stone-100 hover:bg-stone-50 dark:bg-stone-800 dark:hover:bg-stone-700 rounded-full shadow h-14 w-14" />
8
+ <SettingsPdfDownload v-if =" page?.download_link" :link =" page.download_link" />
9
+ <SettingsColorMode class =" " />
9
10
<SettingsFontSize
10
- class =" bg-stone-100 hover:bg-stone-50 dark:bg-stone-800 dark:hover:bg-stone-700 rounded-full shadow"
11
11
:default-value =" fontSize"
12
12
@change =" (value) => fontSize = value"
13
13
/>
You can’t perform that action at this time.
0 commit comments