Collapse add simple prop

This commit is contained in:
梁灏 2018-06-21 19:14:09 +08:00
parent 0c9f8fabb3
commit 3f611f57ed
4 changed files with 25 additions and 4 deletions

View file

@ -15,6 +15,10 @@
},
value: {
type: [Array, String]
},
simple: {
type: Boolean,
default: false
}
},
data () {
@ -24,7 +28,12 @@
},
computed: {
classes () {
return `${prefixCls}`;
return [
`${prefixCls}`,
{
[`${prefixCls}-simple`]: this.simple
}
];
}
},
mounted () {

View file

@ -99,7 +99,7 @@
},
iconClasses () {
return [
`ivu-icon`,
'ivu-icon',
{
[`ivu-icon-${this.icon}`]: this.icon !== '',
[`${this.customIcon}`]: this.customIcon !== '',