修改样式

This commit is contained in:
linxd
2025-06-30 20:03:50 +08:00
parent 6605cc8862
commit 1f753cce50
5 changed files with 22 additions and 22 deletions

View File

@ -6,8 +6,8 @@ export default {
// pathRewrite: { '^': '' }, // pathRewrite: { '^': '' },
// }, // },
'/api': { '/api': {
// target: 'http://10.242.37.148:18022',//连接天宫的ng target: 'http://10.0.0.125:18012',//测试环境
target: 'http://10.0.0.10:18013',//连接天宫的ng // target: 'http://10.0.0.14:18013',//连接天宫的ng
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^/api': '' }, pathRewrite: { '^/api': '' },
}, },

View File

@ -1,6 +1,6 @@
.file-upload-wrapper { .file-upload-wrapper {
.ant-upload-list { .ant-upload-list {
margin-top: 8px; // margin-top: 8px;
} }
.ant-upload-list-item-name { .ant-upload-list-item-name {
@ -10,7 +10,7 @@
} }
.ant-upload-select { .ant-upload-select {
margin-bottom: 8px; // margin-bottom: 8px;
} }
.file-upload-tip { .file-upload-tip {

View File

@ -203,7 +203,7 @@ const FileUpload: React.FC<FileUploadProps> = ({
} }
return ( return (
<Button icon={<UploadOutlined />} disabled={disabled}> <Button type="link" icon={<UploadOutlined />} disabled={disabled}>
{buttonText || defaultButtonText} {buttonText || defaultButtonText}
</Button> </Button>
); );

View File

@ -60,9 +60,9 @@
} }
} }
/* 覆盖antd样式 */ /* 覆盖antd样式 - 仅在announceContainer内生效 */
:global { .announceContainer {
.ant-radio-button-wrapper { :global(.ant-radio-button-wrapper) {
margin-right: 5px; margin-right: 5px;
margin-bottom: 8px; margin-bottom: 8px;
border-radius: 0; border-radius: 0;
@ -73,15 +73,15 @@
padding: 0 10px; padding: 0 10px;
} }
.ant-radio-button-wrapper:first-child { :global(.ant-radio-button-wrapper:first-child) {
border-radius: 0; border-radius: 0;
} }
.ant-radio-button-wrapper:last-child { :global(.ant-radio-button-wrapper:last-child) {
border-radius: 0; border-radius: 0;
} }
.ant-radio-button-wrapper-checked { :global(.ant-radio-button-wrapper-checked) {
background-color: rgb(0, 79, 142); background-color: rgb(0, 79, 142);
border-color: rgb(0, 79, 142); border-color: rgb(0, 79, 142);
color: #fff; color: #fff;
@ -92,7 +92,7 @@
} }
} }
.ant-btn-primary { :global(.ant-btn-primary) {
background-color: rgb(0, 79, 142); background-color: rgb(0, 79, 142);
border-color: rgb(0, 79, 142); border-color: rgb(0, 79, 142);
border-radius: 0; border-radius: 0;
@ -102,24 +102,24 @@
} }
} }
.ant-select-selector { :global(.ant-select-selector) {
border-radius: 0 !important; border-radius: 0 !important;
} }
.ant-input { :global(.ant-input) {
border-radius: 0; border-radius: 0;
} }
.ant-input-affix-wrapper { :global(.ant-input-affix-wrapper) {
border-radius: 0; border-radius: 0;
} }
.ant-list-pagination { :global(.ant-list-pagination) {
margin-top: 20px; margin-top: 20px;
text-align: center; text-align: center;
} }
.ant-pagination-item { :global(.ant-pagination-item) {
border-radius: 0; border-radius: 0;
&-active { &-active {
@ -131,17 +131,17 @@
} }
} }
.ant-pagination-item-link { :global(.ant-pagination-item-link) {
border-radius: 0; border-radius: 0;
} }
.ant-pagination-options { :global(.ant-pagination-options) {
.ant-select-selector { :global(.ant-select-selector) {
border-radius: 0; border-radius: 0;
} }
} }
.ant-tag { :global(.ant-tag) {
margin-right: 0; margin-right: 0;
border-radius: 2px; border-radius: 2px;
} }

View File

@ -187,7 +187,7 @@ const AnnouncePage: React.FC = () => {
}; };
return ( return (
<div className={styles.announcePage}> <div className={styles.announceContainer}>
<div className={styles.searchSection}> <div className={styles.searchSection}>
{/* 公告搜索 */} {/* 公告搜索 */}
<div className={styles.searchRow}> <div className={styles.searchRow}>