From 2f23f0a33772a2c5a76466fa448c5c4290b09e47 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Fri, 19 Jul 2024 10:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Operation/index.module.scss | 4 +- .../SpeakerModeModal/index.module.scss | 2 +- src/components/SpeakerModeModal/index.tsx | 2 +- src/page/Home/Index/index.module.scss | 12 ++- src/page/Home/Index/index.tsx | 4 +- src/page/Home/User/index.module.scss | 20 +++- src/page/Home/User/index.tsx | 16 ++-- src/page/Home/index.module.scss | 26 +++--- src/page/Meeting/index.module.scss | 92 ++++++++++--------- src/page/Meeting/index.tsx | 4 +- vite.config.ts | 2 +- 11 files changed, 102 insertions(+), 82 deletions(-) diff --git a/src/components/Operation/index.module.scss b/src/components/Operation/index.module.scss index 5bdfca7..6a1307b 100644 --- a/src/components/Operation/index.module.scss +++ b/src/components/Operation/index.module.scss @@ -4,8 +4,8 @@ flex-shrink: 0; >div { - width: 50px; - height: 50px; + width: 40px; + height: 40px; display: flex; justify-content: center; align-items: center; diff --git a/src/components/SpeakerModeModal/index.module.scss b/src/components/SpeakerModeModal/index.module.scss index bf05079..555706c 100644 --- a/src/components/SpeakerModeModal/index.module.scss +++ b/src/components/SpeakerModeModal/index.module.scss @@ -21,7 +21,7 @@ >span { color: white; - font-size: 20px; + font-size: 16px; margin-top: 10px; } } diff --git a/src/components/SpeakerModeModal/index.tsx b/src/components/SpeakerModeModal/index.tsx index 80f9779..a251e29 100644 --- a/src/components/SpeakerModeModal/index.tsx +++ b/src/components/SpeakerModeModal/index.tsx @@ -31,7 +31,7 @@ const SpeakerModeModal = forwardRef((props: any, ref: any) => { footer={null} onCancel={() => setIsSpeakerModeModal(false)} centered - width={'30vw'} + width={'560px'} >
setMode('FreedomMode')} /> diff --git a/src/page/Home/Index/index.module.scss b/src/page/Home/Index/index.module.scss index 98c76a1..b2575fd 100644 --- a/src/page/Home/Index/index.module.scss +++ b/src/page/Home/Index/index.module.scss @@ -10,7 +10,7 @@ } .indexBtns { - padding: 10px 0 30px; + padding: 10px 0 20px; margin: 0 30px; box-sizing: border-box; border-bottom: 1px solid #2C2C2C; @@ -36,13 +36,13 @@ flex-grow: 1; display: flex; flex-direction: column; - padding: 30px; + padding: 20px 30px; box-sizing: border-box; .indexContentTitle { flex-shrink: 0; color: white; - font-size: 24px; + font-size: 18px; font-weight: bold; } @@ -71,7 +71,7 @@ align-items: center; >div:nth-child(1) { - font-size: 18px; + font-size: 16px; color: white; flex-grow: 1; text-overflow: ellipsis; @@ -88,12 +88,13 @@ >span { color: #767676; margin-left: 4px; + font-size: 14px; } } } >div:nth-child(2) { - margin-top: 22px; + margin-top: 16px; display: flex; align-items: center; justify-content: space-between; @@ -106,6 +107,7 @@ >span { color: #767676; margin-right: 4px; + font-size: 14px; } } diff --git a/src/page/Home/Index/index.tsx b/src/page/Home/Index/index.tsx index a98b6b8..c45ba87 100644 --- a/src/page/Home/Index/index.tsx +++ b/src/page/Home/Index/index.tsx @@ -156,7 +156,7 @@ const Index: React.FC = () => {
- +
{
- +
span { color: #8B8787; - font-size: 20px; + font-size: 16px; } } } @@ -78,7 +90,7 @@ >span { flex-shrink: 0; color: #EEEEEE; - width: 120px; + width: 70px; text-align: right; } } diff --git a/src/page/Home/User/index.tsx b/src/page/Home/User/index.tsx index 1870246..0efe0c4 100644 --- a/src/page/Home/User/index.tsx +++ b/src/page/Home/User/index.tsx @@ -15,7 +15,7 @@ const User: React.FC = () => { searchKeywod: '', total: 0, pageIndex: 1, - pageSize: 6, + pageSize: 14, }) const [roleList, setRoleList] = useState([]) const [addUserModal, setAddUserModal] = useState(false) @@ -104,7 +104,11 @@ const User: React.FC = () => { icon={} className={styles.userBtnsDel} onClick={() => { - setDeleteUserPawModal(true) + if (selectedRowKeys.length) { + setDeleteUserPawModal(true) + } else { + message.error('请选择要删除的用户') + } }} > 删除用户 @@ -145,7 +149,7 @@ const User: React.FC = () => { dataSource={list.data} pagination={false} scroll={{ y: '70vh' }} - style={{ width: '81.4vw', flexGrow: 1 }} + className={styles.userContentTable} > @@ -208,7 +212,7 @@ const User: React.FC = () => {
- +
@@ -314,7 +318,7 @@ const User: React.FC = () => {
- +
@@ -369,7 +373,7 @@ const User: React.FC = () => {
- +
是否确认删除该用户? diff --git a/src/page/Home/index.module.scss b/src/page/Home/index.module.scss index 9c0d514..7479b5e 100644 --- a/src/page/Home/index.module.scss +++ b/src/page/Home/index.module.scss @@ -4,7 +4,7 @@ display: flex; .homeLeft { - width: 300px; + width: 220px; background-color: rgb(31, 33, 37); flex-shrink: 0; padding: 20px 20px; @@ -21,11 +21,11 @@ cursor: pointer; >div { - height: 50px; - width: 50px; + height: 40px; + width: 40px; border-radius: 50%; overflow: hidden; - margin-right: 16px; + margin-right: 14px; flex-shrink: 0; >img { @@ -48,7 +48,7 @@ flex-shrink: 0; >img { - width: 82px; + width: 62px; margin-right: 12px; } @@ -62,12 +62,12 @@ align-items: center; >span:nth-child(1) { - font-size: 36px; + font-size: 30px; color: white; } >span:nth-child(2) { - font-size: 16px; + font-size: 14px; color: #979797; width: 16px; margin-left: 10px; @@ -75,7 +75,7 @@ } >div:nth-child(2) { - font-size: 16px; + font-size: 14px; color: #979797; } } @@ -89,7 +89,7 @@ >div:nth-child(#{$i}) { display: flex; align-items: center; - height: 48px; + height: 38px; cursor: pointer; padding: 0px 10px; box-sizing: border-box; @@ -98,7 +98,7 @@ >div { >img { - width: 24px; + width: 16px; } } @@ -137,14 +137,14 @@ >div:nth-child(#{$i}) { display: flex; align-items: center; - height: 48px; + height: 38px; cursor: pointer; padding: 0px 10px; box-sizing: border-box; >div { - width: 24px; - height: 24px; + width: 16px; + height: 16px; @if $i ==1 { background: url('/src/assets/icon16.png') no-repeat center/cover; diff --git a/src/page/Meeting/index.module.scss b/src/page/Meeting/index.module.scss index bdb0bea..4481174 100644 --- a/src/page/Meeting/index.module.scss +++ b/src/page/Meeting/index.module.scss @@ -2,7 +2,7 @@ .meetingContentUser { position: absolute; left: 20px; - bottom: 20px; + bottom: 16px; display: flex; align-items: center; z-index: 2; @@ -10,15 +10,15 @@ .meetingContentUserRole { background: #FDC229; border-radius: 6px; - width: 44px; - height: 34px; + width: 34px; + height: 24px; display: flex; justify-content: center; align-items: center; margin-right: 6px; >img { - width: 20px; + width: 14px; } } @@ -27,15 +27,16 @@ align-items: center; background-color: #0000009E; border-radius: 6px; - height: 34px; + height: 24px; padding: 0 4px; + box-sizing: border-box; >img { - width: 28px; + width: 18px; } >span { - font-size: 18px; + font-size: 16px; color: #EEEEEE; margin-left: 4px; } @@ -70,7 +71,7 @@ justify-content: space-between; align-items: center; border-bottom: 1px solid #2C2C2C; - padding: 10px 0 10px 52px; + padding: 4px 0 4px 52px; box-sizing: border-box; flex-shrink: 0; @@ -97,14 +98,14 @@ } >div:nth-child(2) { - font-size: 20px; + font-size: 16px; color: #EEEEEE; } } >div:nth-child(2) { color: #EEEEEE; - font-size: 20px; + font-size: 16px; } >div:nth-child(3) { @@ -115,12 +116,13 @@ cursor: pointer; background-color: #31353A; color: #EEEEEE; - width: 154px; - height: 40px; - line-height: 40px; + width: 140px; + height: 36px; + line-height: 36px; text-align: center; border-radius: 5px; margin-right: 20px; + font-size: 16px; &:hover { background-color: lighten(#31353A, 4%); @@ -273,13 +275,13 @@ } .meetingContentBodyRight { - width: 374px; + width: 300px; flex-shrink: 0; height: 100%; .meetingUserList { height: 100%; - padding: 20px 0; + padding: 10px 0 20px; box-sizing: border-box; background-color: #16191E; display: flex; @@ -290,13 +292,13 @@ display: flex; align-items: center; justify-content: space-between; - margin-bottom: 20px; + margin-bottom: 10px; padding: 0 20px; box-sizing: border-box; >span { color: #EEEEEE; - font-size: 24px; + font-size: 18px; } >img { @@ -324,15 +326,15 @@ align-items: center; >span { - font-size: 20px; + font-size: 14px; color: #F3F3F5; margin-left: 4px; } >div { flex-shrink: 0; - width: 40px; - height: 40px; + width: 30px; + height: 30px; overflow: hidden; border-radius: 50%; @@ -349,7 +351,7 @@ align-items: center; >img { - width: 28px; + width: 20px; margin-left: 4px; } } @@ -359,7 +361,7 @@ top: 60px; left: 50%; transform: translate(-50%, 0); - width: 200px; + width: 160px; z-index: 1; display: flex; align-items: center; @@ -404,13 +406,13 @@ box-sizing: border-box; >div { - font-size: 20px; + font-size: 14px; cursor: pointer; background-color: #31353A; color: #EEEEEE; - width: 154px; - height: 40px; - line-height: 40px; + width: 104px; + height: 30px; + line-height: 30px; text-align: center; border-radius: 5px; @@ -436,13 +438,13 @@ display: flex; align-items: center; justify-content: space-between; - padding: 20px; + padding: 10px 20px; box-sizing: border-box; border-bottom: 1px solid #23272E; >span { color: #EEEEEE; - font-size: 24px; + font-size: 18px; } >img { @@ -468,14 +470,14 @@ align-items: center; >span { - font-size: 20px; + font-size: 14px; color: #F3F3F5; margin-left: 4px; } >div { - width: 40px; - height: 40px; + width: 30px; + height: 30px; overflow: hidden; border-radius: 50%; @@ -495,7 +497,7 @@ box-sizing: border-box; border-radius: 0 25px 25px 25px; margin: 10px 0 10px 40px; - font-size: 20px; + font-size: 14px; } } @@ -510,14 +512,14 @@ flex-direction: row-reverse; >span { - font-size: 20px; + font-size: 14px; color: #F3F3F5; } >div { margin-left: 4px; - width: 40px; - height: 40px; + width: 30px; + height: 30px; overflow: hidden; border-radius: 50%; @@ -537,7 +539,7 @@ box-sizing: border-box; border-radius: 25px 0 25px 25px; margin: 10px 40px 10px 0; - font-size: 20px; + font-size: 14px; } } @@ -545,9 +547,9 @@ .meetingUserChatInput { flex-shrink: 0; - padding: 20px; + padding: 10px 20px; box-sizing: border-box; - height: 220px; + height: 160px; display: flex; flex-direction: column; align-items: flex-end; @@ -581,7 +583,7 @@ } >img { - height: 50px; + height: 30px; } >span { @@ -598,13 +600,13 @@ :global { .meetingContentFooterPopover { >div { - width: 220px; - height: 40px; - line-height: 40px; + width: 140px; + height: 30px; + line-height: 30px; border-radius: 5px; color: #EEEEEE; text-align: center; - margin-bottom: 16px; + margin-bottom: 8px; cursor: pointer; &:last-child { @@ -731,7 +733,7 @@ >span { color: #EEEEEE; - font-size: 20px; + font-size: 16px; } >div { @@ -741,7 +743,7 @@ >span { margin-right: 20px; cursor: pointer; - font-size: 26px; + font-size: 16px; } } } diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 252af6b..c08d399 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -686,7 +686,7 @@ const Meeting: React.FC = () => {
- +
{sharedScreenList.map((item: any, index: number) => { @@ -720,7 +720,7 @@ const Meeting: React.FC = () => { open={isSharedFilesModel} footer={null} centered - width={'60vw'} + width={'800px'} onCancel={() => setIsSharedFilesModel(false)} maskClosable > diff --git a/vite.config.ts b/vite.config.ts index c623c17..557d993 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,7 +12,7 @@ const loder_pxtovw = pxtovw({ export default defineConfig({ css: { postcss: { - plugins: [loder_pxtovw], + // plugins: [loder_pxtovw], }, }, server: {