fix: tabBarGutter not work
* fix: #2083 * fix: #2083 Co-authored-by: baojie <baojie223@qq.com>pull/2098/head
parent
39cf47a9d8
commit
603dcec087
|
@ -18,6 +18,7 @@ const TabBar = {
|
|||
renderTabBar: PropTypes.func,
|
||||
panels: PropTypes.array.def([]),
|
||||
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
tabBarGutter: PropTypes.number,
|
||||
},
|
||||
render() {
|
||||
const {
|
||||
|
|
|
@ -43,6 +43,7 @@ export default {
|
|||
defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
||||
__propsSymbol__: PropTypes.any,
|
||||
direction: PropTypes.string.def('ltr'),
|
||||
tabBarGutter: PropTypes.number,
|
||||
},
|
||||
data() {
|
||||
const props = getOptionProps(this);
|
||||
|
@ -193,6 +194,7 @@ export default {
|
|||
renderTabBar,
|
||||
destroyInactiveTabPane,
|
||||
direction,
|
||||
tabBarGutter,
|
||||
} = props;
|
||||
const cls = {
|
||||
[prefixCls]: 1,
|
||||
|
@ -209,6 +211,7 @@ export default {
|
|||
panels: props.children,
|
||||
activeKey: this.$data._activeKey,
|
||||
direction,
|
||||
tabBarGutter,
|
||||
},
|
||||
on: {
|
||||
keydown: this.onNavKeyDown,
|
||||
|
|
Loading…
Reference in New Issue