check
This commit is contained in:
parent
f69966c381
commit
87e00dbe01
|
@ -1,6 +1,7 @@
|
||||||
Vue.component('Copybox',{
|
Vue.component('Copybox',{
|
||||||
template : `
|
template : `
|
||||||
<div class="tabprixcontent">
|
<div class="y2t-output">
|
||||||
|
<button v-on:click="copyToClipboard">Copy</button>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
|
@ -17,8 +18,8 @@ Vue.component('Copybox',{
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods : {
|
methods : {
|
||||||
capitalize(s){
|
copyToClipboard(){
|
||||||
return s.charAt(0).toUpperCase() + s.slice(1)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue