props.js
1.1 KB
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
import defprops from '../../libs/config/props';
export default {
props: {
// 显示文字
title: {
type: String,
default: defprops.alert.title
},
// 主题,success/warning/info/error
type: {
type: String,
default: defprops.alert.type
},
// 辅助性文字
description: {
type: String,
default: defprops.alert.description
},
// 是否可关闭
closable: {
type: Boolean,
default: defprops.alert.closable
},
// 是否显示图标
showIcon: {
type: Boolean,
default: defprops.alert.showIcon
},
// 浅或深色调,light-浅色,dark-深色
effect: {
type: String,
default: defprops.alert.effect
},
// 文字是否居中
center: {
type: Boolean,
default: defprops.alert.center
},
// 字体大小
fontSize: {
type: [String, Number],
default: defprops.alert.fontSize
}
}
}