2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-11 18:02:29 +03:00
This commit is contained in:
fengqi.cf
2022-03-03 19:28:04 +08:00
parent a4a149e5d6
commit c1bccc349c
8 changed files with 46 additions and 8 deletions
+7 -1
View File
@@ -16,6 +16,9 @@ new Vue({
const onCopied = (copyEvent) => {
alert(`Text successfully copied!\n${copyEvent.text}`);
}
const onKeyclick = (path) => {
alert(`Key Click!\n${path}`);
}
return (
<div>
<json-viewer
@@ -40,9 +43,12 @@ new Vue({
align: 'left'
}}
boxed
show-double-quotes
show-array-index={false}
timeformat={time => new Date(time)}
sort></json-viewer>
sort
onKeyclick={onKeyclick}
></json-viewer>
<hr />
<json-viewer
value={this.jsonData}