Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
陈峰 committed Mar 26, 2019
1 parent 3669399 commit 0705e55
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ $ yarn add vue-json-viewer

``` js
import Vue from 'vue'
import JsonViewer from '../lib'
import JsonViewer from 'vue-json-viewer'

// Import JsonViewer as a Vue.js plugin
Vue.use(JsonViewer)
// or
// components: {JsonViewer}


new Vue({
el: '#app',
Expand Down Expand Up @@ -111,6 +114,22 @@ new Vue({
}
})
```
### SSR
``` js
import JsonViewer from 'vue-json-viewer/ssr'

// Import JsonViewer as a Vue.js plugin
Vue.use(JsonViewer)
// or
// components: {JsonViewer}
```
and

``` js
import 'vue-json-viewer/style.css'
```


### Preview
![preview](./example/preview.png)

Expand Down

0 comments on commit 0705e55

Please sign in to comment.