Skip to content

Commit

Permalink
chore: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvasilchuk committed Sep 21, 2020
1 parent 9aa7b00 commit 1d552af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions demo/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export default Vue.extend({
aspectRatios: ['16:9', '4:3', '1:1'],
}
},
methods: {
change() {
this.aspectRatios.reverse()
},
},
render(h): VNode {
return h('section', undefined, [
h('h1', undefined, [h('code', undefined, 'v-aspect-ratio')]),
Expand All @@ -22,6 +27,11 @@ export default Vue.extend({
value
)
),
h(
'button',
{ attrs: { type: 'button' }, on: { click: this.change } },
'Change'
),
])
},
})

0 comments on commit 1d552af

Please sign in to comment.