diff --git a/components/vc-tabs/src/TabBarTabsNode.jsx b/components/vc-tabs/src/TabBarTabsNode.jsx index e22a37154..ed3b87920 100644 --- a/components/vc-tabs/src/TabBarTabsNode.jsx +++ b/components/vc-tabs/src/TabBarTabsNode.jsx @@ -56,7 +56,7 @@ export default { {...events} class={cls} key={key} - style={{ marginRight: tabBarGutter && index === children.length - 1 ? 0 : tabBarGutter }} + style={{ marginRight: tabBarGutter && index === children.length - 1 ? 0 : `${tabBarGutter}px` }} {...{ directives: directives }} > {tab}