|
|
@ -100,6 +100,11 @@ export interface ComponentToken {
|
|
|
|
* @descEN Vertical margin of vertical tab item
|
|
|
|
* @descEN Vertical margin of vertical tab item
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
verticalItemMargin: string;
|
|
|
|
verticalItemMargin: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @desc 标签文本颜色
|
|
|
|
|
|
|
|
* @descEN Text color of tab
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
itemColor: string;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @desc 标签激活态文本颜色
|
|
|
|
* @desc 标签激活态文本颜色
|
|
|
|
* @descEN Text color of active tab
|
|
|
|
* @descEN Text color of active tab
|
|
|
@ -656,6 +661,7 @@ const genTabStyle: GenerateStyle<TabsToken, CSSObject> = (token: TabsToken) => {
|
|
|
|
tabsHorizontalItemMargin,
|
|
|
|
tabsHorizontalItemMargin,
|
|
|
|
horizontalItemPadding,
|
|
|
|
horizontalItemPadding,
|
|
|
|
itemSelectedColor,
|
|
|
|
itemSelectedColor,
|
|
|
|
|
|
|
|
itemColor,
|
|
|
|
} = token;
|
|
|
|
} = token;
|
|
|
|
|
|
|
|
|
|
|
|
const tabCls = `${componentCls}-tab`;
|
|
|
|
const tabCls = `${componentCls}-tab`;
|
|
|
@ -673,6 +679,7 @@ const genTabStyle: GenerateStyle<TabsToken, CSSObject> = (token: TabsToken) => {
|
|
|
|
border: 0,
|
|
|
|
border: 0,
|
|
|
|
outline: 'none',
|
|
|
|
outline: 'none',
|
|
|
|
cursor: 'pointer',
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
|
|
|
color: itemColor,
|
|
|
|
'&-btn, &-remove': {
|
|
|
|
'&-btn, &-remove': {
|
|
|
|
'&:focus:not(:focus-visible), &:active': {
|
|
|
|
'&:focus:not(:focus-visible), &:active': {
|
|
|
|
color: itemActiveColor,
|
|
|
|
color: itemActiveColor,
|
|
|
@ -1052,6 +1059,7 @@ export default genComponentStyleHook(
|
|
|
|
horizontalItemPaddingLG: `${token.padding}px 0`,
|
|
|
|
horizontalItemPaddingLG: `${token.padding}px 0`,
|
|
|
|
verticalItemPadding: `${token.paddingXS}px ${token.paddingLG}px`,
|
|
|
|
verticalItemPadding: `${token.paddingXS}px ${token.paddingLG}px`,
|
|
|
|
verticalItemMargin: `${token.margin}px 0 0 0`,
|
|
|
|
verticalItemMargin: `${token.margin}px 0 0 0`,
|
|
|
|
|
|
|
|
itemColor: token.colorText,
|
|
|
|
itemSelectedColor: token.colorPrimary,
|
|
|
|
itemSelectedColor: token.colorPrimary,
|
|
|
|
itemHoverColor: token.colorPrimaryHover,
|
|
|
|
itemHoverColor: token.colorPrimaryHover,
|
|
|
|
itemActiveColor: token.colorPrimaryActive,
|
|
|
|
itemActiveColor: token.colorPrimaryActive,
|
|
|
|