diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue index 4ff7531c..a3fd64bb 100644 --- a/src/components/tabs/tabs.vue +++ b/src/components/tabs/tabs.vue @@ -100,6 +100,13 @@ name: { type: String }, + custContentClass: { + type: String, + default: '' + }, + custContentStyle: { + type: Object, + } }, data () { return { @@ -133,7 +140,8 @@ `${prefixCls}-content`, { [`${prefixCls}-content-animated`]: this.animated - } + }, + this.custContentClass ]; }, barClasses () { @@ -154,6 +162,12 @@ transform: `translateX(${p}) translateZ(0px)` }; } + const { custContentStyle } = this; + if (custContentStyle) { + for (const key in custContentStyle){ + style[key] = custContentStyle[key]; + } + } return style; }, barStyle () {