Blame view

Yi.Vben5.Vue3/packages/effects/common-ui/src/components/json-preview/json-preview.vue 348 Bytes
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <script lang="ts" setup>
  import VueJsonPretty from 'vue-json-pretty';
  import 'vue-json-pretty/lib/styles.css';
  
  defineProps<{ data: any }>();
  </script>
  
  <template>
    <VueJsonPretty :data="data" :deep="3" :show-length="true" path="res" />
  </template>
  
  <style>
  html[class='dark'] {
    .vjs-tree-node:hover {
      background-color: #333;
    }
  }
  </style>