2
0
mirror of https://github.com/tenrok/vue-json-viewer.git synced 2026-06-11 18:02:29 +03:00

chore: readme

This commit is contained in:
风棋
2021-10-31 10:36:02 +08:00
parent c521d0f613
commit 683909e61e
2 changed files with 18 additions and 6 deletions
+9 -3
View File
@@ -2,7 +2,7 @@
[中文版](https://github.com/chenfengjw163/vue-json-viewer/blob/master/README_CN.md)
Simple JSON viewer component, for Vue.js 2.
Simple JSON viewer component, for Vue.js 2 or 3.
Support for incremental update components
@@ -20,12 +20,18 @@ Support for incremental update components
## Installing
Using npm:
```
$ npm install vue-json-viewer --save
$ npm install vue-json-viewer@2 --save
// Vue2
$ npm install vue-json-viewer@3 --save
// Vue3
```
Using yarn:
```
$ yarn add vue-json-viewer
$ yarn add vue-json-viewer@2
// Vue2
$ yarn add vue-json-viewer@3
// Vue3
```
## Example
+9 -3
View File
@@ -1,6 +1,6 @@
# vue-json-viewer
简单易用的json内容展示组件,支持vue@2.0+,支持SSR,组件支持增量渲染即使大文件json也可以快速渲染。
简单易用的json内容展示组件,支持vue@2和3,支持SSR,组件支持增量渲染即使大文件json也可以快速渲染。
[![Travis](https://img.shields.io/travis/chenfengjw163/vue-json-viewer/master.svg?style=flat-square)](https://travis-ci.org/chenfengjw163/vue-json-viewer)
[![npm](https://img.shields.io/npm/v/vue-json-viewer.svg?style=flat-square)](https://www.npmjs.com/package/vue-json-viewer)
@@ -14,12 +14,18 @@
## 安装
使用 npm:
```
$ npm install vue-json-viewer --save
$ npm install vue-json-viewer@2 --save
// Vue2
$ npm install vue-json-viewer@3 --save
// Vue3
```
使用 yarn:
```
$ yarn add vue-json-viewer
$ yarn add vue-json-viewer@2
// Vue2
$ yarn add vue-json-viewer@3
// Vue3
```
## 示例