File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export default {
22
22
async created () {
23
23
// react-notion tester: 2e22de6b770e4166be301490f6ffd420
24
24
// equation tester: 2a1d5226d68246deba627012081693f9
25
+ // sync tester: c10e1556bec44f23a20f71497b3d98c4
25
26
// table tester: bd1de400a8b349dc824f4f00e61d0797
26
27
// todo tester: 235057194b954a60ace89c052a65d102
27
28
this .blockMap = await getPageBlocks (" 2e22de6b770e4166be301490f6ffd420" );
Original file line number Diff line number Diff line change 7
7
</template >
8
8
9
9
<script >
10
- import Blockable , { blockComputed } from " @/lib/blockable" ;
10
+ import { Blockable , blockComputed } from " @/lib/blockable" ;
11
11
12
12
export default {
13
13
extends: Blockable,
Original file line number Diff line number Diff line change 41
41
/>
42
42
<NotionTable v-else-if =" isType('table')" v-bind =" pass" ><slot /></NotionTable >
43
43
<NotionSyncPointer
44
- v-else-if =" isType('transclusion_reference')"
44
+ v-else-if =" isRendererRegistered && isType('transclusion_reference')"
45
45
v-bind =" pass"
46
46
/>
47
- <div v-else-if =" isType('transclusion_container')" class =" notion-sync-block" >
47
+ <div
48
+ v-else-if =" isRendererRegistered && isType('transclusion_container')"
49
+ class =" notion-sync-block"
50
+ >
48
51
<slot />
49
52
</div >
50
53
<NotionTableRow v-else-if =" isType('table_row')" v-bind =" pass" />
58
61
</template >
59
62
60
63
<script >
61
- import { Blockable } from " @/lib/blockable" ;
64
+ import Vue from " vue" ;
65
+
66
+ import { Blockable , blockComputed } from " @/lib/blockable" ;
62
67
63
68
import NotionBookmark from " @/blocks/bookmark" ;
64
69
import NotionCallout from " @/blocks/callout" ;
@@ -99,5 +104,11 @@ export default {
99
104
NotionTodo,
100
105
NotionToggle,
101
106
},
107
+ computed: {
108
+ ... blockComputed,
109
+ isRendererRegistered () {
110
+ return " NotionRenderer" in Vue? .options ? .components ;
111
+ },
112
+ },
102
113
};
103
114
< / script>
You can’t perform that action at this time.
0 commit comments