tabs添加custContentClass和custContentStyle
This commit is contained in:
parent
d2c548d1c2
commit
242ab8c8b5
1 changed files with 14 additions and 1 deletions
|
@ -100,6 +100,14 @@
|
|||
name: {
|
||||
type: String
|
||||
},
|
||||
custContentClass: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
custContentStyle: {
|
||||
type: Object,
|
||||
default: {}
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
@ -133,7 +141,8 @@
|
|||
`${prefixCls}-content`,
|
||||
{
|
||||
[`${prefixCls}-content-animated`]: this.animated
|
||||
}
|
||||
},
|
||||
this.custContentClass
|
||||
];
|
||||
},
|
||||
barClasses () {
|
||||
|
@ -154,6 +163,10 @@
|
|||
transform: `translateX(${p}) translateZ(0px)`
|
||||
};
|
||||
}
|
||||
const { custContentStyle } = this;
|
||||
for (const key in custContentStyle){
|
||||
style[key] = custContentStyle[key];
|
||||
}
|
||||
return style;
|
||||
},
|
||||
barStyle () {
|
||||
|
|
Loading…
Add table
Reference in a new issue