ed.brz9.dev/proj/y2t/assets/js/main.js

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')