hook multifile to ui
This commit is contained in:
parent
e42ad175db
commit
c9ae76b209
77 changed files with 1528 additions and 1111 deletions
12
app/templates/uploadedFileList/index.js
Normal file
12
app/templates/uploadedFileList/index.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
const html = require('choo/html');
|
||||
const file = require('../uploadedFile');
|
||||
|
||||
module.exports = function(files, state, emit) {
|
||||
//const progressRatio = state.transfer ? state.transfer.progressRatio : 0;
|
||||
|
||||
return html`
|
||||
<ul class="uploadedFiles">
|
||||
${files.map(f => file(f, state, emit))}
|
||||
</ul>
|
||||
`;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue