<template>
  <div class="resultStatusComponents">
    <!-- // todo-An icon插槽组件化 -->
    <el-result 
      :icon="status" 
      :title="title" 
      :subTitle="subTitle"
    >
      <template slot="extra">
        <slot></slot>  
      </template>
    </el-result>
  </div>
</template>
<script>
export default {
  name: 'resultStatus',
  props: {
    // 状态 success / warning / info / error
    status: {
      type: String,
      default: 'success'
    },
    // 主标题
    title:{
      type: String,
      default: '成功'
    },
    //次标题
    subTitle:{
      type: String,
      default: ''
    },
  },
  data () {
    return {
      
    }
  },
  methods: {
  }
}
</script>