<!--
 * @Author: your name
 * @Date: 2021-10-11 14:56:37
 * @LastEditTime: 2021-11-25 16:23:07
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \hyyfClient\src\views\PdcData\analysis\ProductionDonuts.vue
-->
<template>
  <div class="production-donuts">
    <production-donut v-for="item in datas" :key="item.id" v-bind="item">
    </production-donut>
  </div>
</template>
<script>
import ProductionDonut from "components/erp/ProductionDonut";

export default {
  props: {
    data: {
      type: Array,
      required: true,
    },
  },
  data() {
    return {
      datas: [],
    };
  },
  watch: {
    data(newValue) {
      this.datas = newValue;
      console.log(this.datas, "++++++++++++++++++");
    },
  },
  components: {
    ProductionDonut,
  },
};
</script>
<style scoped>
.production-donuts {
  padding-left: 70px;
}
</style>
