@slidev/client 0.36.8 → 0.36.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/internals/PresenterPrint.vue +16 -2
- package/package.json +3 -3
- package/routes.ts +1 -2
|
@@ -25,7 +25,7 @@ const slidesWithNote = computed(() => rawRoutes
|
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
-
<div v-for="(slide, index) of slidesWithNote" :key="index" class="flex flex-col gap-4">
|
|
28
|
+
<div v-for="(slide, index) of slidesWithNote" :key="index" class="flex flex-col gap-4 break-inside-avoid-page">
|
|
29
29
|
<div>
|
|
30
30
|
<h2 class="text-lg">
|
|
31
31
|
<div class="font-bold flex gap-2">
|
|
@@ -44,8 +44,22 @@ const slidesWithNote = computed(() => rawRoutes
|
|
|
44
44
|
</div>
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
|
-
<style lang="postcss">
|
|
47
|
+
<style scoped lang="postcss">
|
|
48
48
|
@page {
|
|
49
49
|
size: A4;
|
|
50
|
+
margin-top: 1.5cm;
|
|
51
|
+
margin-bottom: 1cm;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
* {
|
|
55
|
+
-webkit-print-color-adjust: exact;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
html,
|
|
59
|
+
html body,
|
|
60
|
+
html #app,
|
|
61
|
+
html #page-root {
|
|
62
|
+
height: auto;
|
|
63
|
+
overflow: auto !important;
|
|
50
64
|
}
|
|
51
65
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/client",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.9",
|
|
4
4
|
"description": "Presentation slides for developers",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@antfu/utils": "^0.5.2",
|
|
19
|
-
"@slidev/parser": "0.36.
|
|
20
|
-
"@slidev/types": "0.36.
|
|
19
|
+
"@slidev/parser": "0.36.9",
|
|
20
|
+
"@slidev/types": "0.36.9",
|
|
21
21
|
"@unocss/reset": "^0.45.29",
|
|
22
22
|
"@vueuse/core": "^9.3.0",
|
|
23
23
|
"@vueuse/head": "^0.9.8",
|
package/routes.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { RouteRecordRaw } from 'vue-router'
|
|
2
2
|
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
|
|
3
3
|
import Play from './internals/Play.vue'
|
|
4
|
-
import PresenterPrint from './internals/PresenterPrint.vue'
|
|
5
4
|
import Print from './internals/Print.vue'
|
|
6
5
|
// @ts-expect-error missing types
|
|
7
6
|
import _rawRoutes from '/@slidev/routes'
|
|
@@ -21,7 +20,7 @@ export const routes: RouteRecordRaw[] = [
|
|
|
21
20
|
{ name: 'print', path: '/print', component: Print },
|
|
22
21
|
{ path: '', redirect: { path: '/1' } },
|
|
23
22
|
{ path: '/:pathMatch(.*)', redirect: { path: '/1' } },
|
|
24
|
-
{ path: '/presenter/print', component: PresenterPrint },
|
|
23
|
+
{ path: '/presenter/print', component: () => import('./internals/PresenterPrint.vue') },
|
|
25
24
|
{
|
|
26
25
|
name: 'presenter',
|
|
27
26
|
path: '/presenter/:no',
|