Skip to content

Commit 4d67183

Browse files
baojie223baojie
authored andcommitted
fix: tabBarGutter not work
* fix: vueComponent#2083 * fix: vueComponent#2083 Co-authored-by: baojie <[email protected]>
1 parent a4ac23b commit 4d67183

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

components/tabs/TabBar.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const TabBar = {
1818
renderTabBar: PropTypes.func,
1919
panels: PropTypes.array.def([]),
2020
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
21+
tabBarGutter: PropTypes.number,
2122
},
2223
render() {
2324
const {

components/vc-tabs/src/Tabs.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default {
4343
defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
4444
__propsSymbol__: PropTypes.any,
4545
direction: PropTypes.string.def('ltr'),
46+
tabBarGutter: PropTypes.number,
4647
},
4748
data() {
4849
const props = getOptionProps(this);
@@ -193,6 +194,7 @@ export default {
193194
renderTabBar,
194195
destroyInactiveTabPane,
195196
direction,
197+
tabBarGutter,
196198
} = props;
197199
const cls = {
198200
[prefixCls]: 1,
@@ -209,6 +211,7 @@ export default {
209211
panels: props.children,
210212
activeKey: this.$data._activeKey,
211213
direction,
214+
tabBarGutter,
212215
},
213216
on: {
214217
keydown: this.onNavKeyDown,

0 commit comments

Comments
 (0)