feat:add imagepath and imageRes for Image
This commit is contained in:
15
doric-js/index.d.ts
vendored
15
doric-js/index.d.ts
vendored
@@ -483,6 +483,18 @@ declare module 'doric/lib/src/widget/image' {
|
||||
}
|
||||
export interface IImage extends IView {
|
||||
imageUrl?: string;
|
||||
/**
|
||||
* Read image from local path
|
||||
* For android,it based on assets dir.
|
||||
* For iOS,it based on main bundle dir.
|
||||
*/
|
||||
imagePath?: string;
|
||||
/**
|
||||
* Read image from resource
|
||||
* For android,it will try to read from drawable.
|
||||
* For iOS,it will try to read from Image.Assets.
|
||||
*/
|
||||
imageRes?: string;
|
||||
imageBase64?: string;
|
||||
scaleType?: ScaleType;
|
||||
isBlur?: boolean;
|
||||
@@ -497,7 +509,8 @@ declare module 'doric/lib/src/widget/image' {
|
||||
}
|
||||
export class Image extends View implements IImage {
|
||||
imageUrl?: string;
|
||||
imageBase64?: string;
|
||||
imagePath?: string;
|
||||
imageRes?: string;
|
||||
scaleType?: ScaleType;
|
||||
isBlur?: boolean;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user