Commit fc73bb27 authored by LAPTOP-HKT2DOFA\ninghw123's avatar LAPTOP-HKT2DOFA\ninghw123
parents 03103919 be9c5e28
...@@ -6,6 +6,7 @@ import {Picker,DatePicker} from 'antd-mobile' ...@@ -6,6 +6,7 @@ import {Picker,DatePicker} from 'antd-mobile'
import moment from 'moment' import moment from 'moment'
import pickdown from '../../../assets/pickdown.png' import pickdown from '../../../assets/pickdown.png'
import datepick from '../../../assets/datepick.png' import datepick from '../../../assets/datepick.png'
import dele from '../../../assets/delete.png'
export default class SingleItem extends Component{ export default class SingleItem extends Component{
constructor(props){ constructor(props){
...@@ -132,13 +133,14 @@ export function SinglePicker(props){ ...@@ -132,13 +133,14 @@ export function SinglePicker(props){
export function SingleDatePicker(props){ export function SingleDatePicker(props){
const CustomChildren = ({ extra, onClick, children,outerStyle }) => ( const CustomChildren = ({ extra, onClick, children,outerStyle }) => (
<div <div
onClick={onClick}
style={{ backgroundColor: 'transparent',height: '.6rem', lineHeight: '.6rem' }}> style={{ backgroundColor: 'transparent',height: '.6rem', lineHeight: '.6rem' }}>
<div style={{ float:'left',height: '100%',width:'80%' }}> <div onClick={onClick} style={{ float:'left',height: '100%',width:'80%' }}>
<div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap',marginLeft:'.4rem' }}>{children}</div> <div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap',marginLeft:'.4rem' }}>{children}</div>
</div> </div>
<div style={{float:'right',height:'100%',width:'15%',marginTop:'.06rem',marginRight:'0.2rem'}}> <div onClick={children=="请选择"?props.del:v=>{
<img src={datepick} /> props.onChange()}} style={{float:'right',height:'100%',width:'15%',marginTop:'.06rem',marginRight:'0.2rem'}}>
<img src={children=="请选择"?datepick:dele} />
</div> </div>
</div> </div>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment