2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-20 20:00:37 +03:00

feat: Add PreviewMode

This commit is contained in:
风棋
2020-10-13 16:51:14 +08:00
parent 0fe1ca5dc2
commit febc8e5d00
9 changed files with 38 additions and 10 deletions
+5
View File
@@ -25,6 +25,7 @@
ref="jsonBox"
:value="value"
:sort="sort"
:preview-mode="previewMode"
/>
</div>
<div
@@ -83,6 +84,10 @@ export default {
timeformat: {
type: Function,
default: value => value.toLocaleString(),
},
previewMode: {
type: Boolean,
default: false,
}
},
provide () {