7 changed files with 90 additions and 21 deletions
After Width: | Height: | Size: 722 B |
@ -0,0 +1,46 @@ |
|||||
|
import React, { useState, useEffect, useRef } from "react"; |
||||
|
import { connect } from "react-redux"; |
||||
|
import { DatePicker, Button, Space } from '@douyinfe/semi-ui'; |
||||
|
import './videoPlay.less'; |
||||
|
|
||||
|
const VideoOperationTime = ({ close }) => { |
||||
|
|
||||
|
return ( |
||||
|
<div style={{ |
||||
|
position: 'absolute', top: 'calc(50% - 90px)', left: 'calc(50% - 260px)', |
||||
|
width: 520, height: 180, backgroundColor: '#000000A5', padding: '40px 30px', |
||||
|
display: 'flex', flexDirection: 'column', justifyContent: 'space-between' |
||||
|
}}> |
||||
|
<div style={{ display: 'flex', justifyContent: 'center' }}> |
||||
|
<DatePicker |
||||
|
density='compact' |
||||
|
type="dateTimeRange" |
||||
|
defaultPickerValue={[new Date('2022-08-08 00:00'), new Date('2022-08-09 12:00')]} |
||||
|
onChange={console.log} |
||||
|
style={{ width: '100%' }} |
||||
|
/> |
||||
|
</div> |
||||
|
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}> |
||||
|
<span style={{ color: '#FF7100' }}> |
||||
|
<img src="/assets/images/background/warning.png" height={14} style={{ position: 'relative', top: 2 }} /> |
||||
|
最长时间跨度不超过72小时 |
||||
|
</span> |
||||
|
<span> |
||||
|
<Space> |
||||
|
<Button theme='light' type='tertiary' onClick={() => { close() }}>取消</Button> |
||||
|
<Button theme='solid' type='primary' onClick={() => { close() }}>播放</Button> |
||||
|
</Space> |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
) |
||||
|
} |
||||
|
|
||||
|
function mapStateToProps (state) { |
||||
|
const { auth } = state; |
||||
|
return { |
||||
|
user: auth.user, |
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
export default connect(mapStateToProps)(VideoOperationTime); |
Loading…
Reference in new issue