<template>
  <div class="panel-fieldset">
    <h4 class="panel-legend">投稿设置</h4>
    <el-form-item label="是否允许投稿">
      <el-switch v-model="extendsData.contributeEnable" active-value="Y" inactive-value="N" :disabled="catalogId===0"></el-switch>
    </el-form-item>
    <el-form-item label="是否允许公共投稿">
      <el-switch v-model="extendsData.publicContributeEnable" active-value="Y" inactive-value="N" :disabled="catalogId===0"></el-switch>
    </el-form-item>
  </div>
</template>
<script>
export default {
  props: {
    extendsData: {
      type: Object,
      default: function() {
        return {
          contributeEnable: 'N', //   是否允许投稿
          publicContributeEnable: 'N' //   是否允许公共投稿
        }
      }
    },
    catalogId: [Number, String]
  }
}
</script>
