2021-08-23 03:40:36 +08:00
|
|
|
export default class UploadImageButton extends Button<import("../../common/components/Button").IButtonAttrs> {
|
|
|
|
constructor();
|
2021-05-13 07:29:46 +08:00
|
|
|
loading: boolean;
|
|
|
|
/**
|
|
|
|
* Prompt the user to upload an image.
|
|
|
|
*/
|
|
|
|
upload(): void;
|
|
|
|
/**
|
|
|
|
* Remove the logo.
|
|
|
|
*/
|
|
|
|
remove(): void;
|
|
|
|
resourceUrl(): string;
|
|
|
|
/**
|
|
|
|
* After a successful upload/removal, reload the page.
|
|
|
|
*
|
|
|
|
* @param {Object} response
|
|
|
|
* @protected
|
|
|
|
*/
|
|
|
|
protected success(response: Object): void;
|
|
|
|
/**
|
|
|
|
* If upload/removal fails, stop loading.
|
|
|
|
*
|
|
|
|
* @param {Object} response
|
|
|
|
* @protected
|
|
|
|
*/
|
|
|
|
protected failure(response: Object): void;
|
|
|
|
}
|
|
|
|
import Button from "../../common/components/Button";
|