<template>
  <div>
    <div class="panel-fieldset">
      <h4 class="panel-legend">推荐配置</h4>
      <el-form-item label="开启推荐：">
        <el-switch v-model="extend.recommendFlag" :disabled="disabled" active-value="Y" inactive-value="N"></el-switch>
      </el-form-item>
    </div>
  </div>
</template>
<script>

export default {
  data() {
    return {
    }
  },
  methods: {
  },
  computed: {
    extend: {
      get() {
        return this.extends
      },
      set(val) {
        this.$emit('update:extends', val)
      }
    }
  },
  props: {
    extends: {
      type: Object,
      default: function () {
        return {
          recommendFlag: 'Y' // 开启自动统计
        }
      }
    },
    disabled: {
      type: Boolean
    }
  }
}
</script>
