38 lines
644 B
JavaScript
38 lines
644 B
JavaScript
Vue.component('Copybox',{
|
|
template : `
|
|
<div class="tabprixcontent">
|
|
<slot></slot>
|
|
</div>
|
|
`,
|
|
props : {
|
|
obj : Object
|
|
},
|
|
data () {
|
|
return {
|
|
siteoff : {
|
|
fr : "Site officiel",
|
|
en : "Official website",
|
|
it : "Sito ufficiale",
|
|
},
|
|
}
|
|
},
|
|
methods : {
|
|
capitalize(s){
|
|
return s.charAt(0).toUpperCase() + s.slice(1)
|
|
},
|
|
}
|
|
})
|
|
|
|
let vm = new Vue({
|
|
el: '#root',
|
|
data: {
|
|
url: '',
|
|
lang: '',
|
|
output: ''
|
|
},
|
|
component: {
|
|
check() {
|
|
return "check"
|
|
}
|
|
}
|
|
}).$mount('#root') |