28 lines
558 B
TypeScript
28 lines
558 B
TypeScript
import { defineComponent, h, PropType } from 'vue';
|
|
|
|
import VueJsonPretty from 'vue-json-pretty';
|
|
|
|
export default defineComponent({
|
|
name: 'VueJsonPretty',
|
|
components: {
|
|
VueJsonPretty,
|
|
},
|
|
props: {
|
|
path: {
|
|
type: String,
|
|
default: 'res',
|
|
},
|
|
data: {
|
|
type: Object,
|
|
default: () => {},
|
|
},
|
|
},
|
|
setup(props) {
|
|
return () =>
|
|
h(VueJsonPretty, {
|
|
path: props.path,
|
|
data: props.data,
|
|
});
|
|
},
|
|
});
|