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

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

上级 a0ae6dd2
......@@ -6,8 +6,8 @@ import systemConfig from '@/config/config';
const Brief = List.Item.Brief;
export default function DiyUploadOneStopFile(props) {
const { config, formValue = [], giveRequiredName, changeValue, extInfo } = props;
const { readOnly } = config;
const { config, formValue = [], giveRequiredName, changeValue, } = props;
const { readOnly, accept = "*", extInfo } = config;
const [files, setFiles] = useState([]);
const inputRef = useRef(null);
......@@ -54,6 +54,7 @@ export default function DiyUploadOneStopFile(props) {
});
});
};
return (
<List.Item
multipleLine={true}
......@@ -69,8 +70,10 @@ export default function DiyUploadOneStopFile(props) {
<div className={styles.uploadButton}>
<input type="file"
// accept={'*'}
accept={accept}
id={config.key}
ref={inputRef}
// capture={'camera'} // 写了这个就只有拍照. 没有选择的功能
style={{
opacity: 0,
width: '100vw',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论