Commit 44864e25 authored by 单奇雲's avatar 单奇雲

修改上传pdf样式

parent b91fe379
......@@ -25,9 +25,10 @@ class UploadItem extends Component {
render() {
const { name, type, unionKey: key } = this.props;
let src = type === '.pdf' ? '/src/assets/planMgmt/pdf.png' : '/src/assets/planMgmt/word.png'
return (
<div className='upload-item'>
<img src='/src/assets/planMgmt/word.png' alt="" />
<img src={src} alt="" style={{height: '33px'}}/>
<Input value={name} onChange={this.onFileNameChange} />
<span>{type}</span>
<Icon icon="cross" style={{ fontSize: 16, color: 'red' }} onClick={()=>this.removeFile(key)} />
......
......@@ -89,7 +89,7 @@ class Upload extends Component {
<div className='upload-header'>
<label>
<span className="upload-header-button">点我上传</span>
<Input style={{ display: 'none' }} type="file" multiple="multiple" accept=".doc,.docx" onChange={this.onUpLoad} />
<Input style={{ display: 'none' }} type="file" multiple="multiple" accept=".doc,.docx,.pdf" onChange={this.onUpLoad} />
</label>
</div>
<div className='upload-list'>
......
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