mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-11 02:23:09 +02:00
0e4a111f81
Resolve #7779
27 lines
453 B
Vue
27 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>
|