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