<template>
  <div>
    <div class="panel-fieldset">
      <h4 class="panel-legend">公共站点</h4>
      <el-form-item label="是否是公共站点：">
        <el-switch v-model="extend.commonSiteFlag" :disabled="disabled" active-value="Y" inactive-value="N"></el-switch>
      </el-form-item>
      <el-form-item label="自动复制栏目：">
        <el-switch v-model="extend.commonSiteCatalogCopy" :disabled="disabled" active-value="Y" inactive-value="N"></el-switch>
      </el-form-item>
      <el-form-item label="自动复制模板：">
        <el-switch v-model="extend.commonSiteTemplateCopy" :disabled="disabled" active-value="Y" inactive-value="N"></el-switch>
      </el-form-item>
    </div>
  </div>
</template>
<script>

export default {
  data() {
    return {
    }
  },
  computed: {
    extend: {
      get() {
        return this.extends
      },
      set(val) {
        this.$emit('update:extends', val)
      }
    }
  },
  methods: {
  },
  created() {
  },
  props: {
    extends: {
      type: Object,
      default: function () {
        return {
          cmmonSiteFlag: 'N', // 是否是公共站点
          commonSiteCatalogCopy: 'N', // 自动复制栏目
          commonSiteTemplateCopy: 'N' // 自动复制模板
        }
      }
    },
    disabled: {
      type: Boolean
    }
  }
}
</script>
