copybox test
This commit is contained in:
parent
838af601f0
commit
933c23355c
|
@ -1,3 +1,28 @@
|
|||
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: {
|
||||
|
@ -5,7 +30,7 @@ let vm = new Vue({
|
|||
lang: '',
|
||||
output: ''
|
||||
},
|
||||
methods: {
|
||||
component: {
|
||||
check() {
|
||||
return "check"
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
//$txt = var_export($output, true);
|
||||
//echo nl2br("\nreturn:\n");
|
||||
//var_export($return);
|
||||
|
||||
|
||||
foreach ($output as $item) {
|
||||
echo '<div class="y2tout">';
|
||||
|
@ -56,7 +57,7 @@
|
|||
var_export($ret);
|
||||
*/
|
||||
?>
|
||||
|
||||
<Copybox></Copybox>
|
||||
|
||||
</div>
|
||||
<script src="assets/js/vue.min.js"></script>
|
||||
|
|
Loading…
Reference in New Issue