1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<el-alert class="app-rawitem-alert__container" :title="title" :type="type" :show-icon="Boolean(showIcon)" :closable="Boolean(closeable)">
</el-alert>
</template>
<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator';
@Component({
})
export default class AppRawAlert extends Vue {
/**
* 提示内容
*
* @type {string}
* @memberof AppRawAlert
*/
@Prop() public title?: string;
/**
* 提示类型
*
* @type {string}
* @memberof AppRawAlert
*/
@Prop() public type?: string;
/**
* 是否展示图标
*
* @type {boolean}
* @memberof AppRawAlert
*/
@Prop() public showIcon?: boolean;
/**
* 是否可关闭
*
* @type {boolean}
* @memberof AppRawAlert
*/
@Prop({default:true}) public closeable?: boolean;
}
</script>