|
24 | 24 |
|
25 | 25 | <h3>Options</h3>
|
26 | 26 | <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> --> |
39 | 52 | </div>
|
40 | 53 |
|
41 | 54 | <h3>Latest Click Result:</h3>
|
|
47 | 60 | <vue-json-pretty
|
48 | 61 | :data="json"
|
49 | 62 | :path="path"
|
| 63 | + :deep="deep" |
50 | 64 | :show-length="showLength"
|
51 | 65 | :path-checked="['res', 'res.c']"
|
52 | 66 | :path-selectable="((path, data) => typeof data !== 'number')"
|
@@ -84,13 +98,14 @@ export default {
|
84 | 98 | }, {
|
85 | 99 | news_id: 51182,
|
86 | 100 | 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'] |
88 | 103 | }]
|
89 | 104 | },
|
90 | 105 | selectableType: 'both',
|
91 |
| - showLength: false, |
| 106 | + showLength: true, |
92 | 107 | path: 'res',
|
93 |
| - deep: 3, |
| 108 | + deep: 4, |
94 | 109 | itemData: {},
|
95 | 110 | itemPath: ''
|
96 | 111 | }
|
|
0 commit comments