Skip to content

Commit 7913238

Browse files
author
baojie
committed
1 parent 39cf47a commit 7913238

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

components/tabs/TabBar.jsx

+1
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

+5
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ 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);
50+
console.log(props);
4951
let activeKey;
5052
if ('activeKey' in props) {
5153
activeKey = props.activeKey;
@@ -193,7 +195,9 @@ export default {
193195
renderTabBar,
194196
destroyInactiveTabPane,
195197
direction,
198+
tabBarGutter,
196199
} = props;
200+
console.log(props);
197201
const cls = {
198202
[prefixCls]: 1,
199203
[`${prefixCls}-${tabBarPosition}`]: 1,
@@ -209,6 +213,7 @@ export default {
209213
panels: props.children,
210214
activeKey: this.$data._activeKey,
211215
direction,
216+
tabBarGutter,
212217
},
213218
on: {
214219
keydown: this.onNavKeyDown,

0 commit comments

Comments
 (0)