<template>
  <div id="right">
    <el-col :span="24" class="maintoplefttitle">
      <div style="padding:10px 0 0 0;border-bottom: 1px dashed #ccc;">
        <span>|</span><span>通知公告</span><span><i class="el-icon-more"></i></span>
      </div>
    </el-col>
    <el-col :span="24">
      <el-col :span="24" class="leftcontext" v-for="(item, index) in infolist" :key="index">
        <el-col :span="21" class="title"> <span>.</span>{{ item.title }} </el-col>
        <el-col :span="3" class="date">{{ item.date }}</el-col>
      </el-col>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'context',
  props: {
    infolist: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.context {
  height: 300px;
  background-color: #fff;
  width: 595px;
}

.context .leftcontext {
  padding: 0 20px 0 20px;
}

.main .context .maintoplefttitle {
  padding: 20px;
  // border-bottom: 1px dashed #ccc;
}
.main .context .maintoplefttitle span:first-child {
  font-weight: 1000;
  padding: 10px 5px 0 0px;
  font-size: 20px;
  color: #005293;
}

.main .context .maintoplefttitle span:nth-child(2) {
  font-size: 20px;
  color: #005293;
  padding: 0 10px 0 0;
}
.main .context .maintoplefttitle span:nth-child(3) {
  font-size: 20px;
  color: #005293;
  float: right;
}

.maintopright .leftcontext {
  padding: 0 20px 0 20px;
  font-size: 16px;
}

.maintopright .leftcontext p {
  margin: 0;
  padding: 0;
}

.maintopright .leftcontext title span:first-child {
  font-weight: 1000;
  padding: 5px;
}

.title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 38px;
}

.date {
  float: right;
  color: #777777;
}
</style>
