<template>
  <div>
    <p class="item">
      <span class="m-1"> 月份：{{ content.month }} </span
      ><span class="m-1">作业中段：{{ content.middleName }} </span
      ><span class="m-1">计划开采量：{{ content.amount }}吨</span
      ><i
        class="el-icon-delete-solid"
        @click="deleteItem"
        style="color: #f56c6c; cursor: pointer"
      ></i>
    </p>
  </div>
</template>

<script>
export default {
  props: ["content", "index"],
  methods: {
    deleteItem() {
      this.$emit("delete", this.index);
    },
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<!--scoped作用域，设置样式仅用于当前类，不加就是全局生效-->
<style scoped>
.item {
  color: #333;
}
.m-1 {
  margin-right: 20px;
}
</style>
