You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
703 B
43 lines
703 B
10 months ago
|
<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>
|