summaryrefslogtreecommitdiff
path: root/src/client/components/code.vue
blob: f5d6c5673ad5b69a569df72954bed462a4d3684e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<template>
<XCode :code="code" :lang="lang" :inline="inline"/>
</template>

<script lang="ts">
import { defineComponent, defineAsyncComponent } from 'vue';

export default defineComponent({
	components: {
		XCode: defineAsyncComponent(() => import('./code-core.vue'))
	},
	props: {
		code: {
			type: String,
			required: true
		},
		lang: {
			type: String,
			required: false
		},
		inline: {
			type: Boolean,
			required: false
		}
	}
});
</script>