diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue index ed816aa1..160beae0 100644 --- a/src/components/tabs/tabs.vue +++ b/src/components/tabs/tabs.vue @@ -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 () {