Collapse add simple prop
This commit is contained in:
parent
0c9f8fabb3
commit
3f611f57ed
4 changed files with 25 additions and 4 deletions
|
@ -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 () {
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
},
|
||||
iconClasses () {
|
||||
return [
|
||||
`ivu-icon`,
|
||||
'ivu-icon',
|
||||
{
|
||||
[`ivu-icon-${this.icon}`]: this.icon !== '',
|
||||
[`${this.customIcon}`]: this.customIcon !== '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue