<script>
export default {
  name: "OpenOrClose",
  props: {
    selectData: {
      type: Array,
      default: () => [],
    },
  },
  data() {
    return {
      title: "提交",
    };
  },
  computed: {
    disabled: {
      get() {
        const { selectData } = this;
        if (selectData.length < 1) {
          return true;
        }
        return false;
      },
      set() {},
    },
  },
  methods: {
    useClick() {},
  },
  created() {},
};
</script>

<template>
  <el-button @click="useClick" :disabled="disabled" v-bind="$attrs">{{
    title
  }}</el-button>
</template>
