我正在创建一个简单的表格,使用带有redux表格和材料ui的电子反应样板上传文件。
问题是我不知道如何创建输入文件字段,因为材料ui不支持上传文件输入。
关于如何实现这一目标的任何想法?
在结构上比@galki的解决方案更有意义的另一个> = v1.0解决方案。
RaisedButton在> = v1.0中已弃用。我找不到更多信息containerElement(可能没有记录?),但是当前的API component为此提供了信息。
RaisedButton
containerElement
component
<Button variant="contained" component="label" > Upload File <input type="file" style={{ display: "none" }} /> </Button>