2023-12-09 14:47:03 +00:00
|
|
|
<template>
|
|
|
|
<span v-if="value" class="-mb-2">
|
|
|
|
<template v-if="valueIsObject">
|
|
|
|
<open-tag v-for="(val,index) in value" :key="index+val" :opt="val" />
|
|
|
|
</template>
|
|
|
|
<open-tag v-else :opt="value" />
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import OpenTag from './OpenTag.vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: { OpenTag },
|
|
|
|
props: {
|
2024-01-28 18:53:49 +00:00
|
|
|
value: {}
|
2023-12-09 14:47:03 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
data () {
|
|
|
|
return {}
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
valueIsObject () {
|
|
|
|
if (typeof this.value === 'object' && this.value !== null) {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|