19 lines
310 B
JavaScript
19 lines
310 B
JavaScript
module.exports = class {
|
|
onCreate(input) {
|
|
this.state = {
|
|
isImage: (input.file && input.file.mimeType.startsWith("image/"))
|
|
}
|
|
}
|
|
|
|
onInput(input) {
|
|
this.state.isImage = (input.file && input.file.mimeType.startsWith("image/"))
|
|
}
|
|
|
|
open() {
|
|
|
|
}
|
|
|
|
close() {
|
|
this.emit("close")
|
|
}
|
|
} |