<template>
  <div class="submitButton_wrapper">
    <a-button
      @click="disabled ? false : handleSubmit($event)"
      block
      type="primary"
      v-text="text"
    ></a-button>
  </div>
</template>
<script>
/*
 * author kcz
 * date 2019-11-20
 */
export default {
  name: 'KSubmitButton',
  data() {
    return {}
  },
  props: {
    text: {
      type: String,
      default: ''
    },
    disabled: {
      type: Boolean,
      default: false
    }
  },
  components: {},

  methods: {
    handleSubmit(event) {
      this.$emit('handleSubmit',event)
    }
  }
}
</script>
<style lang="less" scoped>
.submitButton_wrapper {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  position: absolute;
  left: 0;
  bottom: 30px;
}
</style>
