mirror of
https://github.com/tenrok/vue-json-viewer.git
synced 2026-05-30 15:24:09 +03:00
fix array with 0 or ''
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
this.value.push(vals[index]);
|
||||
|
||||
if (vals[index + 1]) {
|
||||
if (this.value.length < vals.length) {
|
||||
this.setValue(vals, index + 1);
|
||||
}
|
||||
}, 0);
|
||||
@@ -94,7 +94,6 @@ export default {
|
||||
innerHTML: '['
|
||||
}
|
||||
}))
|
||||
|
||||
this.ordered.forEach((value, key) => {
|
||||
elements.push(h(JsonBox, {
|
||||
key,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-json-viewer",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "vuejs展示json的组件",
|
||||
"main": "vue-json-viewer.js",
|
||||
"files": [
|
||||
|
||||
Reference in New Issue
Block a user