Skip to content

Commit 0f0000c

Browse files
committed
update to 1.4.0
1 parent dbbe96f commit 0f0000c

File tree

4 files changed

+33
-18
lines changed

4 files changed

+33
-18
lines changed

example/App.vue

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,31 @@
2424

2525
<h3>Options</h3>
2626
<div class="options">
27-
<label>selectable-type</label>
28-
<select v-model="selectableType">
29-
<option>-</option>
30-
<option>both</option>
31-
<option>checkbox</option>
32-
<option>tree</option>
33-
</select>
34-
<label>path</label>
35-
<input type="text" v-model="path">
36-
<label>showLength</label>
37-
<input type="checkbox" v-model="showLength">
38-
<label for="checkbox">{{ showLength }}</label>
27+
<div>
28+
<label>selectable-type</label>
29+
<select v-model="selectableType">
30+
<option>-</option>
31+
<option>both</option>
32+
<option>checkbox</option>
33+
<option>tree</option>
34+
</select>
35+
</div>
36+
<div>
37+
<label>path</label>
38+
<input type="text" v-model="path">
39+
</div>
40+
<div>
41+
<label>showLength</label>
42+
<input type="checkbox" v-model="showLength">
43+
</div>
44+
<!-- <div>
45+
<label>deep</label>
46+
<select v-model="deep">
47+
<option :value="2">2</option>
48+
<option :value="3">3</option>
49+
<option :value="4">4</option>
50+
</select>
51+
</div> -->
3952
</div>
4053

4154
<h3>Latest Click Result:</h3>
@@ -47,6 +60,7 @@
4760
<vue-json-pretty
4861
:data="json"
4962
:path="path"
63+
:deep="deep"
5064
:show-length="showLength"
5165
:path-checked="['res', 'res.c']"
5266
:path-selectable="((path, data) => typeof data !== 'number')"
@@ -84,13 +98,14 @@ export default {
8498
}, {
8599
news_id: 51182,
86100
title: 'Teslamask\'s American Business Relations: The government does not pay billions to build factories',
87-
source: 'AI Finance'
101+
source: 'AI Finance',
102+
members: ['Daniel, Mike, John']
88103
}]
89104
},
90105
selectableType: 'both',
91-
showLength: false,
106+
showLength: true,
92107
path: 'res',
93-
deep: 3,
108+
deep: 4,
94109
itemData: {},
95110
itemPath: ''
96111
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-json-pretty",
3-
"version": "1.3.5",
3+
"version": "1.4.0",
44
"description": "A Vue.js 2.0 Toolkit for JSON",
55
"author": "leezng <im.leezng@gmail.com>",
66
"main": "vue-json-pretty.js",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import App from './components/app.vue'
22
import './assets/less/index.less'
33

44
export default Object.assign({}, App, {
5-
version: '1.3.5'
5+
version: '1.4.0'
66
})

0 commit comments

Comments
 (0)