Skip to content

Commit

Permalink
chore(demo): add select node to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hcfw007 committed Mar 26, 2019
1 parent f4c7090 commit f031150
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions demo/index.js
Expand Up @@ -3,6 +3,19 @@ import VueHorizontalTree from '../src/entry-global-component'

Vue.use(VueHorizontalTree)

const options = [
{
value: 1,
label: 'option 1'
}, {
value: 2,
label: 'option 2'
}, {
value: 3,
label: 'option 3'
},
]

var app = new Vue({
el: '#app',
data: {
Expand Down Expand Up @@ -30,6 +43,8 @@ var app = new Vue({
children: [],
}, {
name: 'child2-2-3',
type: 'select',
options: options,
children: [],
}],
}, {
Expand Down

0 comments on commit f031150

Please sign in to comment.