mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
14148f6c4a
Resolve #7779
28 lines
453 B
Vue
28 lines
453 B
Vue
<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>
|