quasar-framework
Version:
Simultaneously build desktop/mobile SPA websites & phone/tablet apps with VueJS
28 lines (27 loc) • 413 B
JavaScript
export default {
name: 'q-video',
props: {
src: {
type: String,
required: true
}
},
computed: {
iframeData () {
return {
attrs: {
src: this.src,
frameborder: '0',
allowfullscreen: true
}
}
}
},
render (h) {
return h('div', {
staticClass: 'q-video'
}, [
h('iframe', this.iframeData)
])
}
}