A json diff vue component
npm install vue-json-diff基于Fehelper里的jsondiff功能封装的vue组件。
推荐浏览器插件:FeHelper--Web前端助手(https://github.com/zxlie/FeHelper)
实在太香,忍不住安利!
安装vue-json-diff包,依赖vue
```
npm install vue-json-diff
or
yarn add vue-json-diff
vue调用
`
``
属性 | 类型 | 描述
---|---|---
jsonSourceLeft | Object/String | 左侧区域展示数据
jsonSourceRight | Object/String | 右侧区域展示数据
showHeading | Boolean | 是否显示顶部对比结果
errorHandler | Function | 错误处理回调方法
diffHandler | Function | 对比结果回调方法
如果需要帮助: QQ:1034688013 邮箱: 1034688013@qq.com if you need help: QQ:1034688013 email: 1034688013@qq.com