<template>
  <div class="preview_box">
    <div class="preview_main">
      <div class="preview_header">
        <a-icon type="close" />
        表单标题
        <a-icon type="more" :rotate="90" />
      </div>
      <div class="preview_content">
        <div v-html="content"></div>
      </div>
    </div>
    <p class="preview_title">{{ title }}</p>
  </div>
</template>
<script>
export default {
  props: {
    content: {
      type: String,
      required: true
    },
    title: {
      type: String,
      required: true
    }
  },
  data() {
    return {}
  },
  watch: {},
  components: {},
  methods: {}
}
</script>
<style stoped lang="less">
.preview_box {
  position: absolute;
  top: 0;
  right: -455px;
  width: 30%;
  min-width: 375px;
  height: 500px;
  ::-webkit-scrollbar {
    height: 6px;
    width: 0px;
  }
}
.preview_main {
  width: 100%;
  height: 100%;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}
.preview_content {
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1;
  overflow: auto;
  & > div {
    width: 100%;
  }
}
.preview_header {
  width: 100%;
  height: 66px;
  background-color: #ededed;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  padding: 0 15px 20px;
  font-weight: 700;
  color: #000;
}
.preview_title {
  color: #999;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
}
</style>
