mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-14 21:42:16 +00:00
21 lines
374 B
JavaScript
21 lines
374 B
JavaScript
export default {
|
|
data(){
|
|
return {
|
|
|
|
}
|
|
},
|
|
props:{
|
|
data:{
|
|
type:Object|String,
|
|
}
|
|
},
|
|
computed:{
|
|
componentData: function(){
|
|
if(!this.data){
|
|
return "Pass data to be printed by adding the :data prop on the component";
|
|
}
|
|
return JSON.stringify(this.data, null, 2);
|
|
},
|
|
},
|
|
template:`<pre class="p-2 bg-secondary text-white" >{{componentData}}</pre>`
|
|
} |