39 lines
664 B
JavaScript
39 lines
664 B
JavaScript
Vue.component('Copybox',{
|
|
template : `
|
|
<div class="y2t-output">
|
|
<button v-on:click="copyToClipboard">Copy</button>
|
|
<slot></slot>
|
|
</div>
|
|
`,
|
|
props : {
|
|
obj : Object
|
|
},
|
|
data () {
|
|
return {
|
|
siteoff : {
|
|
fr : "Site officiel",
|
|
en : "Official website",
|
|
it : "Sito ufficiale",
|
|
},
|
|
}
|
|
},
|
|
methods : {
|
|
copyToClipboard(){
|
|
|
|
},
|
|
}
|
|
})
|
|
|
|
let vm = new Vue({
|
|
el: '#root',
|
|
data: {
|
|
url: '',
|
|
lang: '',
|
|
output: ''
|
|
},
|
|
component: {
|
|
check() {
|
|
return "check"
|
|
}
|
|
}
|
|
}).$mount('#root') |