<template>
  <el-form
    ref="form"
    v-loading.fullscreen.lock="loading"
    element-loading-background="rgba(0, 0, 0, 0.8)"
  >
    <el-form-item  label="Banner开关">
          <el-switch
            v-model="comp.props.IsShow.val" 
            active-value="1"
            inactive-value="0"
            @change="changeSwitch()"
          ></el-switch>
        </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: "CompScanCodeProps",
  props: ["cfg", "comp"],
  data() {
    return {
      uploadImgList: [],
      url: this.sup8._appConf.apiUrl.alioss,
      loading: false,
    };
  },
  methods: {
    changeSwitch() {
      this.$forceUpdate();
    }
  },
  watch: {},
  created() {
    var that = this;

    that.mergeCompProps(that.comp);
  },
  mounted: function() {
    var that = this;
  }
};
</script>

<style scoped>
.el-collapse-item__content {
  padding-bottom: 0 !important;
}
</style>
