diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue index 160beae0..47e31484 100644 --- a/src/components/tabs/tabs.vue +++ b/src/components/tabs/tabs.vue @@ -106,7 +106,6 @@ }, custContentStyle: { type: Object, - default: {} } }, data () { @@ -164,8 +163,10 @@ }; } const { custContentStyle } = this; - for (const key in custContentStyle){ - style[key] = custContentStyle[key]; + if (custContentStyle) { + for (const key in custContentStyle){ + style[key] = custContentStyle[key]; + } } return style; },