diff --git a/lib/types/json-array.vue b/lib/types/json-array.vue index e030fa0..4fd15a5 100644 --- a/lib/types/json-array.vue +++ b/lib/types/json-array.vue @@ -24,17 +24,6 @@ export default { sort: Boolean, expand: Boolean }, - computed: { - ordered () { - let value = this.value - - if (!this.sort) { - return value - } - - return value.sort() - } - }, watch: { jsonValue(newVal) { this.setValue(newVal); @@ -94,7 +83,7 @@ export default { } })) if (this.expand) { - this.ordered.forEach((value, key) => { + this.value.forEach((value, key) => { elements.push(h(JsonBox, { key, style: { diff --git a/package.json b/package.json index ee4ed7d..93f9305 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-json-viewer", - "version": "2.2.10", + "version": "2.2.11", "description": "vuejs展示json的组件", "main": "vue-json-viewer.js", "files": [