なんかもうめっちゃ変えた

This commit is contained in:
syuilo 2017-11-13 18:05:35 +09:00
parent f8dddc81e2
commit bc9a8283c6
77 changed files with 170 additions and 165 deletions

View file

@ -1,5 +1,5 @@
import * as riot from 'riot';
const route = require('page');
import * as route from 'page';
let page = null;
export default me => {
@ -22,7 +22,7 @@ export default me => {
}
// EXEC
route();
(route as any)();
};
function mount(content) {

View file

@ -343,7 +343,7 @@
};
this.changeFile = () => {
this.refs.file.files.forEach(this.upload);
Array.from(this.refs.file.files).forEach(this.upload);
};
this.selectFile = () => {
@ -367,7 +367,7 @@
};
this.onpaste = e => {
e.clipboardData.items.forEach(item => {
Array.from(e.clipboardData.items).forEach(item => {
if (item.kind == 'file') {
this.upload(item.getAsFile());
}