<template>
  <div class="tag-message" v-html="html"></div>
</template>

<script>
export default {
  name: 'TagMessage',
  props: {
    data: { type: Object }
  },
  computed: {
    html() {
      return this.data.contents.replace(/\n/g, '<br/>')
    }
  }
}
</script>

<style lang="scss" scoped>
.tag-message {
  padding: 10px;
  background-color: #fff;
  border-radius: 6px;
  font-size: 13px;
  line-height: 30px;
}
</style>
