ruoyi-plus-vben5/apps/web-antd/src/views/system/role/index.vue

29 lines
754 B
Vue
Raw Normal View History

2024-08-07 08:57:56 +08:00
<script setup lang="ts">
2024-09-09 15:12:42 +08:00
import { CodeMirror, JsonPreview, Page } from '@vben/common-ui';
2024-09-09 11:16:38 +08:00
2024-09-09 15:12:42 +08:00
import packageJson from '#/../package.json';
2024-09-09 11:16:38 +08:00
import { Card } from 'ant-design-vue';
2024-09-09 15:12:42 +08:00
import code from '#/components/tinymce/src/editor.vue?raw';
2024-08-07 08:57:56 +08:00
</script>
<template>
2024-09-09 15:12:42 +08:00
<Page content-class="flex lg:flex-row flex-col gap-[16px]">
<Card class="flex-1" title="json预览">
<div class="h-[600px] overflow-y-auto">
<JsonPreview :data="packageJson" />
</div>
</Card>
<Card class="flex-1" title="codeMirror预览">
<div class="h-[600px] overflow-y-auto">
<CodeMirror
v-model="code"
class="text-[16px]"
language="vue"
readonly
/>
</div>
2024-09-09 11:16:38 +08:00
</Card>
</Page>
2024-08-07 08:57:56 +08:00
</template>