feat: json-preview组件

This commit is contained in:
dap
2024-09-09 11:16:38 +08:00
parent b3d00730e9
commit 7fa27837d2
5 changed files with 387 additions and 333 deletions

View File

@@ -1,9 +1,24 @@
<script setup lang="ts">
import CommonSkeleton from '#/views/common';
import { Page } from '@vben/common-ui';
import { Card } from 'ant-design-vue';
import { JsonPreview } from '#/components/code-editor';
const obj = {
address: {
a: 1,
b: true,
},
age: 1234,
name: 'ruoyi-plus',
};
</script>
<template>
<div>
<CommonSkeleton />
</div>
<Page>
<Card title="json预览">
<JsonPreview :data="obj" />
</Card>
</Page>
</template>