first
This commit is contained in:
27
safekiso_admin/base/components/VueJsonPretty.ts
Normal file
27
safekiso_admin/base/components/VueJsonPretty.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
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,
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user