feat: Image loadCallback add animated prop

This commit is contained in:
pengfei.zhou
2021-09-23 18:15:55 +08:00
committed by osborn
parent c452ebffda
commit 3fd8405e0b
10 changed files with 6638 additions and 6912 deletions

File diff suppressed because it is too large Load Diff

1
doric-js/index.d.ts vendored
View File

@@ -659,6 +659,7 @@ declare module 'doric/lib/src/widget/image' {
loadCallback?: (image: {
width: number;
height: number;
animated: boolean;
} | undefined) => void;
/**
* Default is Environment.screenScale.

View File

@@ -53,6 +53,7 @@ export declare class Image extends View {
loadCallback?: (image: {
width: number;
height: number;
animated: boolean;
} | undefined) => void;
/**
* Default is Environment.screenScale.

View File

@@ -90,7 +90,7 @@ export class Image extends View {
errorColor?: Color
@Property
loadCallback?: (image: { width: number; height: number } | undefined) => void
loadCallback?: (image: { width: number; height: number; animated: boolean } | undefined) => void
/**
* Default is Environment.screenScale.