🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

vue-json-compare

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-json-compare

A vue(2.x) components for compare JSON data

2.0.7
npm
Version published
Weekly downloads
4.1K
-0.41%
Maintainers
1
Weekly downloads
 
Created
Source

vue-json-compare

GitHub license

A vue(2.x) components for compare JSON data

  • Github

Install

npm install --save vue-json-compare

Usage

<template>
  <div>
    <vue-json-compare :oldData="oldData" :newData="newData"></vue-json-compare>
  </div>
</template>
import vueJsonCompare from 'vue-json-compare'

export default {
  components: {
    vueJsonCompare
  },
  data () {
    return {
      oldData: {
        a: 1,
        e: 0
      },
      newData: {
        a: 2
        b: 3
      }
    }
  }
}

Example

注意:左边是使用了vue-json这个包,纯展示使用的。右边的才是vue-json-compare展示的结果。 (left: vue-json-cool component, right: vue-json-compare component)

示例

Props

AttributeLevelDescriptionTypeDefault
oldDatabasicjson dataJSON object or object Array, {...}, [{...}, {...}]-
newDatabasicjson dataJSON object or object Array, {...}, [{...}, {...}]-

Events

not yet...

PS

如果喜欢请给个星星,谢谢。 If you like, please give me a star, thank you.

如果需要帮助: QQ:1573815240 邮箱: 1573815240@qq.com if you need help: QQ:1573815240 email: 1573815240@qq.com

Keywords

vue

FAQs

Package last updated on 15 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts