feat: codemirror6
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import { withInstall } from '#/utils';
|
||||
|
||||
import jsonPreview from './src/json-preview/json-preview.vue';
|
||||
|
||||
export const JsonPreview = withInstall(jsonPreview);
|
@@ -1,19 +0,0 @@
|
||||
<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 lang="less">
|
||||
html[class='dark'] {
|
||||
.vjs-tree-node:hover {
|
||||
background-color: #333;
|
||||
}
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user