Skip to content

Commit 1eebeb6

Browse files
committed
add sync blocks to block.vue
1 parent 3e70fa8 commit 1eebeb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/block.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import NotionText from "@/blocks/text.vue"
1717
import NotionTodo from "@/blocks/todo.vue"
1818
import NotionToggle from "@/blocks/toggle.vue"
1919
import NotionTableOfContents from "@/blocks/table-of-contents.vue"
20+
import NotionSyncBlock from "@/blocks/sync-block.vue"
21+
import NotionSyncPointerBlock from "@/blocks/sync-pointer-block.vue"
2022
2123
const NotionCode = defineAsyncComponent(() => import("@/blocks/code.vue"))
2224
@@ -57,5 +59,7 @@ if (!availableType.includes(type.value)) console.warn(`${type.value.toUpperCase(
5759
<NotionTable v-else-if="isType('table')" v-bind="pass"><slot /></NotionTable>
5860
<NotionTableRow v-else-if="isType('table_row')" v-bind="pass" />
5961
<NotionTableOfContents v-else-if="isType('table_of_contents')" v-bind="pass"></NotionTableOfContents>
62+
<NotionSyncBlock v-else-if="isType('transclusion_container')"><slot /></NotionSyncBlock>
63+
<NotionSyncPointerBlock v-else-if="isType('transclusion_reference')" v-bind="pass"></NotionSyncPointerBlock>
6064
<hr v-else-if="isType('divider')" class="notion-hr" />
6165
</template>

0 commit comments

Comments
 (0)