<template>
  <a-modal
    :title="title"
    :width="600"
    :visible="visible"
    @cancel="handleCancel"
    :okButtonProps="okButtonProps"
    cancelText="关闭">

    <div class="message">
      <div class="title">{{ record.titile }}</div>
      <div class="createBy">发布人：{{ record.sender }}</div>
      <div class="sendTime">发布时间：{{ record.sendTime }}</div>
      <a-divider/>
      <p v-html="record.msgContent"></p>
    </div>


  </a-modal>
</template>

<script>
  export default {
    name: "SysAnnouncementModal",
    components: {},
    data() {
      return {
        okButtonProps:{},
        title: "通知消息",
        record: {},
        labelCol: {
          xs: {span: 24},
          sm: {span: 5},
        },
        wrapperCol: {
          xs: {span: 24},
          sm: {span: 16},
        },
        visible: false,

        loading: false,
        bodyStyle: {
          padding: "0",
          height: (window.innerHeight * 0.8) + "px",
          "overflow-y": "auto"
        },
      }
    },
    created() {
    },
    methods: {
      detail(record) {
        this.visible = true;
        this.record = record;
      },
      handleCancel() {
        this.visible = false;
      },
    }
  }
</script>

<style scoped lang="less">
  .daily-article {
    .article-button {
      font-size: 1.2rem !important;
    }

    .ant-card-body {
      padding: 18px !important;
    }

    .ant-card-head {
      padding: 0 1rem;
    }

    .ant-card-meta {
      margin-bottom: 1rem;
    }

    .article-content {
      p {
        word-wrap: break-word;
        word-break: break-all;
        text-overflow: initial;
        white-space: normal;
        font-size: .9rem !important;
        margin-bottom: .8rem;
      }
    }
  }
</style>