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({
|
let vm = new Vue({
|
||||||
el: '#root',
|
el: '#root',
|
||||||
data: {
|
data: {
|
||||||
|
@ -5,7 +30,7 @@ let vm = new Vue({
|
||||||
lang: '',
|
lang: '',
|
||||||
output: ''
|
output: ''
|
||||||
},
|
},
|
||||||
methods: {
|
component: {
|
||||||
check() {
|
check() {
|
||||||
return "check"
|
return "check"
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
//echo nl2br("\nreturn:\n");
|
//echo nl2br("\nreturn:\n");
|
||||||
//var_export($return);
|
//var_export($return);
|
||||||
|
|
||||||
|
|
||||||
foreach ($output as $item) {
|
foreach ($output as $item) {
|
||||||
echo '<div class="y2tout">';
|
echo '<div class="y2tout">';
|
||||||
echo $item;
|
echo $item;
|
||||||
|
@ -56,7 +57,7 @@
|
||||||
var_export($ret);
|
var_export($ret);
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
<Copybox></Copybox>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<script src="assets/js/vue.min.js"></script>
|
<script src="assets/js/vue.min.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue