提交 a0ae6dd2 authored 作者: 钟是志's avatar 钟是志

5140 h5自主听课,附件上传显示问题20150295密码290414

上级 54372af4
......@@ -6,7 +6,7 @@ import systemConfig from '@/config/config';
const Brief = List.Item.Brief;
export default function DiyUploadOneStopFile(props) {
const { config, formValue = [], giveRequiredName, changeValue } = props;
const { config, formValue = [], giveRequiredName, changeValue, extInfo } = props;
const { readOnly } = config;
const [files, setFiles] = useState([]);
const inputRef = useRef(null);
......@@ -65,7 +65,7 @@ export default function DiyUploadOneStopFile(props) {
<Brief>
{
!readOnly && <>
支持格式:xlsxlsxwpsrarzipdocdocxpdfpngjpgjpeg
{extInfo || '支持格式:xls、xlsx、wps、rar、zip、doc、docx、pdf、png、jpg、jpeg'}
<div className={styles.uploadButton}>
<input type="file"
// accept={'*'}
......
......@@ -318,6 +318,7 @@ class FormArray extends Component {
formValue={formValues}
changeValue={this.changeValue}
giveRequiredName={giveRequiredName}
extInfo={x.extInfo}
/>
)
case 'Components':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论