Commit 44864e25 authored by shanqiyun's avatar shanqiyun

修改上传pdf样式

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