Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (24 loc) · 594 Bytes

json-preview.md

File metadata and controls

30 lines (24 loc) · 594 Bytes

JsonPreview

json 数据预览组件

Usage

<template>
  <JsonPreview :data="data" />
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import { JsonPreview } from '/@/components/CodeEditor';

  export default defineComponent({
    components: { JsonPreview },
    setup() {
      return {
        data: {},
      };
    },
  });
</script>

Props

属性 类型 默认值 可选值 说明
data object - - 需要预览的 Json 数据