添加了部分来自于BedrockWiki的文章!
This commit is contained in:
26
docs/.vitepress/theme/components/content/WikiImage.vue
Normal file
26
docs/.vitepress/theme/components/content/WikiImage.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<img
|
||||
:src="props.src"
|
||||
:alt="props.alt"
|
||||
:class="{ 'pixelated-image' : props.pixelated === 'true' }"
|
||||
:width="props.width"
|
||||
>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
const props =
|
||||
defineProps<{
|
||||
src: string
|
||||
alt?: string
|
||||
pixelated?: string
|
||||
width?: string,
|
||||
theme?: string
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.pixelated-image {
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user