0.0.7 • Published 3 years ago
vue-json-preview v0.0.7
vue-json-preview
Debug json data in ease and fast
Preview
Demo
Todo
- Auto hide when env is Production
- Flexible styling
- Default theme variant
Copy button for each single object in Array
Install
npm install vue-json-preview --save
Usage
Use in vue project
<template>
<vue-json-preview :data="data" :position="position" />
</template>
<script>
import VueJsonPreview from "vue-json-preview";
export default {
data() {
return {
data: ["linux", "windows", "osx", "solaris"],
position: "BOTTOM_RIGHT"
}
},
components: {
VueJsonPreview
}
}
</script>
Options
Props
Props | Type | Default | Description |
---|---|---|---|
data | Object, Array, String, Boolean | Array | Data you want to debug |
position | String | BOTTOM_RIGHT | The position of element in DOM, optional value: 'BOTTOM_RIGHT', 'BOTTOM_LEFT', 'TOP_RIGHT', 'TOP_LEFT' |
License
Contributions
If you find issue or bug please refer to issue section. If you think this needs couple improvements please discuss and send PR.