feat:add Image support base64 for Android

This commit is contained in:
pengfei.zhou
2019-11-25 11:13:34 +08:00
parent 844d44a6f0
commit bc12ba9ac1
3 changed files with 40 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ export enum ScaleType {
export interface IImage extends IView {
imageUrl?: string
imageBase64?: string
scaleType?: ScaleType
loadCallback?: (image: { width: number; height: number } | undefined) => void
}
@@ -57,7 +58,8 @@ export interface IImage extends IView {
export class Image extends View implements IImage {
@Property
imageUrl?: string
@Property
imageBase64?: string
@Property
scaleType?: ScaleType