mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
924 B
Vue
53 lines
924 B
Vue
3 months ago
|
<template>
|
||
|
<div id="qPreview" >
|
||
|
<div v-for="meta in q.meta" class="meta" >
|
||
|
<span v-if="meta.type != 'color'" class="ms-2">
|
||
|
{{meta.label}}
|
||
|
</span>
|
||
|
<div v-html="meta.human_value" class="ms-2"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: "qPreview",
|
||
|
components: {},
|
||
|
data: () => {
|
||
|
return {}
|
||
|
},
|
||
|
props: {
|
||
|
q:{
|
||
|
required: true,
|
||
|
}
|
||
|
},
|
||
|
mounted() {
|
||
|
},
|
||
|
computed: {},
|
||
|
methods: {}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
#qPreview {
|
||
|
}
|
||
|
|
||
|
.meta{
|
||
|
display: inline-flex;
|
||
|
div{
|
||
|
display: inline-block;
|
||
|
padding: 3px 0;
|
||
|
}
|
||
|
|
||
|
span{
|
||
|
background: var(--xshop-secondary);
|
||
|
color: var(--xshop-diff2);
|
||
|
border-radius: var(--xshop-border-radius) ;
|
||
|
display: inline-block;
|
||
|
padding: 2px 3px;
|
||
|
height: 1.6em;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</style>
|