From 8bf88bc4c5b5be661755035b3c76c325e70162e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E9=98=B3?= <3311118881@qq.com> Date: Thu, 22 Aug 2024 14:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 1 + src/components/FileUpload/index.tsx | 4 ++-- src/pages/Swiper/index.tsx | 2 +- src/styles/customAntd.scss | 10 ++++++++++ src/styles/index.css | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 src/styles/customAntd.scss diff --git a/src/App.tsx b/src/App.tsx index df495fe..c4fa398 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,6 +4,7 @@ import Loader from './common/Loader'; import useAuthRedirect from '@/hooks/useAuthRedirect'; import { ConfigProvider } from 'antd'; import RouteList from './components/RouteList'; +import "@/styles/customAntd.scss" function App() { useAuthRedirect() diff --git a/src/components/FileUpload/index.tsx b/src/components/FileUpload/index.tsx index cc4b428..017c642 100644 --- a/src/components/FileUpload/index.tsx +++ b/src/components/FileUpload/index.tsx @@ -90,8 +90,8 @@ export default ({ dir, open, onCancel, onSuccess }: UploadFileProps) => { isCompressionUpload && } /> + } className='customizeAntdInputAddonAfter' /> diff --git a/src/styles/customAntd.scss b/src/styles/customAntd.scss new file mode 100644 index 0000000..9d744c0 --- /dev/null +++ b/src/styles/customAntd.scss @@ -0,0 +1,10 @@ +// 自定义input后置按钮样式 +.customizeAntdInputAddonAfter { + .ant-input-group-addon { + padding: 0; + + >span { + padding: 8px 10px; + } + } +} \ No newline at end of file diff --git a/src/styles/index.css b/src/styles/index.css index 3148697..b1a2655 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -215,6 +215,6 @@ span.flatpickr-weekday, display: none !important; } -.ant-btn-primary{ +.ant-btn-primary { background-color: #727cf5; } \ No newline at end of file