forked from kaorun343/vue-youtube-embed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Size.vue
33 lines (30 loc) · 788 Bytes
/
Size.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<template lang="html">
<container :title="title">
<form @submit.prevent class="row">
<div class="columns">
<label for="height">Height</label>
<input type="number" name="height" id="height" v-model.number="height">
</div>
<div class="columns">
<label for="width">Width</label>
<input type="number" name="width" id="width" v-model.number="width">
</div>
</form>
<youtube video-id="M7lc1UVf-VE" :player-width="width" :player-height="height"></youtube>
</container>
</template>
<script>
import container from './container.vue'
export default {
data () {
return {
title: 'Height and Width',
height: 360,
width: 640
}
},
components: { container }
}
</script>
<style lang="css">
</style>