💩 临时用 TJson 组件代替 vue-json-viewer

This commit is contained in:
BTMuli
2024-01-09 22:36:37 +08:00
parent 03772b22ee
commit 18501910cc
5 changed files with 41 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
<template>
<div class="tj-box">
{{ JSON.stringify(props.data, null, 2) }}
</div>
</template>
<script lang="ts" setup>
interface TJsonProps {
data: JSON;
}
const props = defineProps<TJsonProps>();
</script>
<style lang="css" scoped>
.tj-box {
overflow: auto;
width: 100%;
height: 100%;
padding: 10px;
border: 1px solid var(--common-shadow-2);
border-radius: 10px;
white-space: pre-wrap;
word-break: break-all;
}
</style>