Skip to content

Commit 3d8c55a

Browse files
authoredApr 28, 2022
fix(Tabs): 修复Tabs组件嵌套使用Tabs时,type属性会失效问题 #796 (#799)
1 parent 846c227 commit 3d8c55a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎packages/react-tabs/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState, useRef, useCallback, useMemo } from 'react';
1+
import React, { useEffect, useState, useRef, useCallback } from 'react';
22
import { IProps, HTMLDivProps } from '@uiw/utils';
33
import Pane from './Pane';
44
import './style/index.less';

‎packages/react-tabs/src/style/index.less

+6
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@
5555
border-bottom: 1px solid #d9d9d9;
5656
}
5757
}
58+
.@{w-tabs} {
59+
&-card &-nav::after,
60+
&-default &-nav::after {
61+
content: none;
62+
}
63+
}
5864

5965
.@{w-tabs} {
6066
&-line &-slide {

0 commit comments

Comments
 (0)
Please sign in to comment.