fix(web): pageTabs style reset
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
.page-tabs:global(.ant-segmented) {
|
|
||||||
padding: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
.page-tabs:global(.ant-segmented .ant-segmented-item-label) {
|
|
||||||
line-height: 24px;
|
|
||||||
min-height: 24px;
|
|
||||||
padding: 0 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-tabs:global(.ant-segmented .ant-segmented-item-selected) {
|
|
||||||
box-shadow: 0px 2px 4px 0px rgba(33, 35, 50, 0.16);
|
|
||||||
}
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: ZhaoYing
|
* @Author: ZhaoYing
|
||||||
* @Date: 2026-02-02 15:18:50
|
* @Date: 2026-02-02 15:18:50
|
||||||
* @Last Modified by: ZhaoYing
|
* @Last Modified by: ZhaoYing
|
||||||
* @Last Modified time: 2026-02-02 15:18:50
|
* @Last Modified time: 2026-04-21 16:36:54
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* PageTabs Component
|
* PageTabs Component
|
||||||
@@ -16,8 +16,6 @@
|
|||||||
import { type FC } from 'react';
|
import { type FC } from 'react';
|
||||||
import { Segmented, type SegmentedProps } from 'antd';
|
import { Segmented, type SegmentedProps } from 'antd';
|
||||||
|
|
||||||
import styles from './index.module.css';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Page tabs component wrapper for Ant Design Segmented component.
|
* Page tabs component wrapper for Ant Design Segmented component.
|
||||||
* Applies custom styling via CSS modules.
|
* Applies custom styling via CSS modules.
|
||||||
@@ -27,11 +25,12 @@ const PageTabs: FC<SegmentedProps> = ({
|
|||||||
options,
|
options,
|
||||||
onChange
|
onChange
|
||||||
}) => {
|
}) => {
|
||||||
|
console.log('value', value)
|
||||||
return <Segmented
|
return <Segmented
|
||||||
value={value}
|
value={value}
|
||||||
options={options}
|
options={options}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
className={styles.pageTabs}
|
className="pageTabs"
|
||||||
/>;
|
/>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -444,3 +444,17 @@ body {
|
|||||||
.ͼ1.cm-focused {
|
.ͼ1.cm-focused {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
.pageTabs.ant-segmented {
|
||||||
|
padding: 4px;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pageTabs.ant-segmented .ant-segmented-item-label {
|
||||||
|
line-height: 24px;
|
||||||
|
min-height: 24px;
|
||||||
|
padding: 0 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pageTabs.ant-segmented .ant-segmented-item-selected {
|
||||||
|
box-shadow: 0px 2px 4px 0px rgba(33, 35, 50, 0.16);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user