vue-json-compare
Advanced tools
Comparing version
{ | ||
"name": "vue-json-compare", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "A vue(2.x) components for compare JSON data", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -52,2 +52,3 @@ # vue-json-compare | ||
注意:左边是使用了[vue-json](https://github.com/5SSS/vue-json)这个包,纯展示使用的。右边的才是vue-json-compare展示的结果。 | ||
(left: vue-json-cool component, right: vue-json-compare component) | ||
@@ -54,0 +55,0 @@  |
@@ -22,3 +22,3 @@ import check from './typeof.js' | ||
let newObj = Object.create(null) | ||
newObj.type = check.type(obj[key]) | ||
newObj.type = check.getType(obj[key]) | ||
newObj.line = _line++ | ||
@@ -56,3 +56,3 @@ newObj.key = key | ||
let newObj = Object.create(null) | ||
newObj.type = check.type(arr[i]) | ||
newObj.type = check.getType(arr[i]) | ||
newObj.key = i | ||
@@ -59,0 +59,0 @@ newObj.line = _line++ |
@@ -23,3 +23,3 @@ export default { | ||
}, | ||
type (item) { | ||
getType (item) { | ||
let t = Object.prototype.toString.call(item) | ||
@@ -26,0 +26,0 @@ let match = /(?!\[).+(?=\])/g |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
80025
0.13%73
1.39%