<template>
  <div class="articlecon">
    <div class="txtbody" v-html="currentTag.articleInfo.html"></div>
  </div>
</template>

<script setup>
import { computed } from "vue";
import { useStore } from "vuex";
const store = useStore();

const currentTag = computed(() => store.getters["tags/currentTag"]);
</script>

<style lang="scss">
.articlecon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding-top: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  img {
    max-width: 90% !important;
    margin: 0 auto;
  }
  .txtbody {
    width: 100%;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    height: auto;
    padding: 20px;
    margin-bottom: 80px;
    line-height: 1.5;
    :deep(p) {
      line-height: 24px;
    }
  }
  .title {
    position: absolute;
    left: 20px;
    top: 20px;
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    z-index: 999;
    > i {
      margin-right: 4px;
    }
  }
}
</style>
<style lang="scss">
.articlecon {
  img,
  video {
    max-width: 100% !important;
    margin: 0 auto;
  }
}
</style>