样式优化

This commit is contained in:
yj 2024-10-12 17:07:22 +08:00
parent 10097e70a7
commit 99c421864b
2 changed files with 95 additions and 67 deletions

View File

@ -153,3 +153,19 @@
}
}
}
.createRoom {
>div {
display: flex;
align-items: center;
margin-bottom: 14px;
>span {
color: white;
flex-shrink: 0;
font-size: 14px;
text-align: right;
width: 70px;
}
}
}

View File

@ -345,10 +345,12 @@ const Index: React.FC = () => {
</div>
<Modal title={isCreateRoom ? '新建会议室' : '修改会议信息'} open={createRoomModal} footer={null} closable={false} centered width={'400px'}>
<div>
<div>
{isCreateRoom ? <Input
<div className={styles.createRoom}>
{isCreateRoom ? <div>
<span></span>
<Input
placeholder="请输入房间号"
style={{ marginBottom: '14px' }}
style={{ flexGrow: 1 }}
className={styles.letterSpacing}
showCount
maxLength={8}
@ -380,10 +382,13 @@ const Index: React.FC = () => {
>
</span>
}
/> : null}
/>
</div> : null}
<div>
<span></span>
<Input.TextArea
placeholder="请输入房间名字"
style={{ marginBottom: '14px' }}
style={{ flexGrow: 1 }}
showCount
maxLength={30}
value={createRoomFrom.roomName}
@ -394,9 +399,12 @@ const Index: React.FC = () => {
})
}}
autoSize />
</div>
<div>
<span></span>
<Input
placeholder="请输入届"
style={{ marginBottom: '14px' }}
style={{ flexGrow: 1 }}
value={createRoomFrom.year}
onChange={(e) => {
const regex = /^[0-9]*$/;
@ -408,9 +416,12 @@ const Index: React.FC = () => {
}
}}
/>
</div>
<div>
<span></span>
<Select
placeholder='请选择学科'
style={{ width: '100%', marginBottom: '14px' }}
style={{ flexGrow: 1 }}
options={subjectList}
value={createRoomFrom.subject} onChange={(e) => {
setCreateRoomFrom({
@ -419,6 +430,7 @@ const Index: React.FC = () => {
})
}} />
</div>
</div>
<div style={{
display: 'flex', justifyContent: 'center'
}}>