vue3-json-diff

1.0.2 • Public • Published

vue3-json-diff

example effect/效果

Install/安装

npm install --save vue3-json-diff

Usage/用法

<script setup lang="ts">
  import {ref} from "vue"
  import Vue3JsonDiff from "vue3-json-diff"
  import "vue3-json-diff/dist/style.css"
  const left_data = ref({
    id: 18,
    name: "alice",
  })
  const right_data = ref({
    id: 18,
    name: "bob",
  })
</script>

<template>
  <main>
    <div style="width: 900px">
      <Vue3JsonDiff
          :left-value="left_data"
          :right-value="right_data"
      />
    </div>
  </main>
</template>

Readme

Keywords

none

Package Sidebar

Install

npm i vue3-json-diff

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

112 kB

Total Files

7

Last publish

Collaborators

  • ramwin