<template>
  <div class="aos-flow-submit">
    <div class="aos-flow-submit__part">
      <span class="aos-flow-submit__flow-message-title">发起意见</span>
    </div>
    <div class="aos-flow-submit__part aos-flow-submit__part-message">
      <el-input type="textarea" :autosize="{minRows:2}" v-model="message" placeholder="请输入发起意见"></el-input>
    </div>
    <div class="aos-flow-submit__footer">
      <el-button type="success" @click="handleSubmit" :loading="loading">确认</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AosFlowSubmit',
  data () {
    return {
      message: '',
      loading: false
    }
  },
  methods: {
    handleSubmit () {
      this.loading = true
      this.$emit('submit', this.message)
    },
    stopLoading () {
      this.loading = false
    }
  }
}
</script>