File tree 4 files changed +13
-125
lines changed
4 files changed +13
-125
lines changed Original file line number Diff line number Diff line change 49
49
"dependencies" : {
50
50
"@nuxt/kit" : " ^3.0.0-rc.1" ,
51
51
"@vueuse/core" : " ^8.7.5" ,
52
- "fragment-for-vue" : " ^1.0.1" ,
53
52
"katex" : " ^0.15.1" ,
54
53
"pathe" : " ^0.2.0" ,
55
54
"prismjs" : " ^1.25.0" ,
78
77
"vue-tsc" : " ^0.34.11"
79
78
},
80
79
"peerDependencies" : {
81
- "fragment-for-vue" : " ^1.0.1" ,
82
80
"katex" : " ^0.15.1" ,
83
81
"prismjs" : " ^1.25.0" ,
84
82
"vue" : " ^3.2.20"
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { computed } from " vue"
3
- import { Fragment } from " fragment-for-vue/vue3"
2
+ import { computed } from " vue" ;
4
3
5
- const baseWidth = 46 // todo: add magic numbers to a config json
4
+ const baseWidth = 46 ; // todo: add magic numbers to a config json
6
5
7
6
const props = defineProps ({
8
7
format: { type: Object , required: true },
9
- })
8
+ });
10
9
11
10
const columnStyle = computed (() => {
12
- const columns = Number ((1 / props .format .column_ratio ).toFixed (0 ))
13
- const totalWidth = (columns - 1 ) * baseWidth
11
+ const columns = Number ((1 / props .format .column_ratio ).toFixed (0 ));
12
+ const totalWidth = (columns - 1 ) * baseWidth ;
14
13
return {
15
14
width: ` calc((100% - ${totalWidth }px) * ${props .format .column_ratio }) ` ,
16
- }
17
- })
15
+ };
16
+ });
18
17
19
- const spacerStyle = computed (() => ({ width: ` ${baseWidth }px ` }))
18
+ const spacerStyle = computed (() => ({ width: ` ${baseWidth }px ` }));
20
19
</script >
21
20
22
21
<script lang="ts">
23
22
export default {
24
23
name: " NotionColumn" ,
25
- }
24
+ };
26
25
</script >
27
26
28
27
<template >
29
- <Fragment >
30
- <div class =" notion-column" :style =" columnStyle" >
31
- <slot />
32
- </div >
33
- <div class =" notion-spacer" :style =" spacerStyle" />
34
- </Fragment >
28
+ <div class =" notion-column" :style =" columnStyle" >
29
+ <slot />
30
+ </div >
31
+ <div class =" notion-spacer" :style =" spacerStyle" />
35
32
</template >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1232,11 +1232,6 @@ flat@^5.0.0:
1232
1232
resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241"
1233
1233
integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==
1234
1234
1235
- fragment-for-vue@^1.0.1 :
1236
- version "1.0.1"
1237
- resolved "https://registry.yarnpkg.com/fragment-for-vue/-/fragment-for-vue-1.0.1.tgz#669c9779bd89a986ad3c8dfaf26af25237629a45"
1238
- integrity sha512-LTjux+UjhTL5tyGAA64GfUsJLLBnth0OwU3XZgzm0Z7lsbf7oObwGpBYUpgL4BMmUJaFmBo8ubsBVNMMUtMERA==
1239
-
1240
1235
fs-extra@^10.0.0 :
1241
1236
version "10.1.0"
1242
1237
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf"
You can’t perform that action at this time.
0 commit comments