progress on fancy list and info popup
This commit is contained in:
36
cateditor/src/components/RawDisplayer.vue
Normal file
36
cateditor/src/components/RawDisplayer.vue
Normal file
@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<v-card>
|
||||
<v-toolbar color="purple" dark>
|
||||
<v-toolbar-title>{{ title }}</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<pre>{{ valueString }}</pre>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
const props = {
|
||||
name: 'RawDisplayer',
|
||||
title: {
|
||||
required: true,
|
||||
type: String
|
||||
},
|
||||
value: {
|
||||
required: true
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
props,
|
||||
computed: {
|
||||
valueString() {
|
||||
return JSON.stringify(this.value, null, 2);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
pre {
|
||||
text-align: start;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user