2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-20 20:00:37 +03:00
This commit is contained in:
fengqi.cf
2021-12-18 16:21:04 +08:00
parent 15c590580d
commit a2114f64f0
2 changed files with 26 additions and 0 deletions
+7
View File
@@ -160,6 +160,8 @@ import 'vue-json-viewer/style.css'
| `expanded` | Default expand the view | `false` |
| `timeformat` | custom time format function | time => time.toLocaleString() |
| `preview-mode` | no expand mode | `false` |
| `show-array-index` | array show index | `true` |
## Listeners
@@ -173,6 +175,11 @@ import 'vue-json-viewer/style.css'
| ----------- |:------------- | ----------- |
| `copy` | Custom content for copy button | `{copied: boolean}` |
## shortcut keys
| Name | Description | Scope |
| ----------- |:------------- | ----------- |
| `alt` + click | expand all node | |
## Theming
To create custom theme, (e.g. `my-awesome-json-theme`), in two easy steps: