js: add stretchInset in image

This commit is contained in:
王劲鹏
2020-04-16 17:14:56 +08:00
committed by osborn
parent 357fbd8e66
commit 79d4eafa5a
7 changed files with 48 additions and 0 deletions

View File

@@ -80,6 +80,14 @@ export class Image extends View {
@Property
loadCallback?: (image: { width: number; height: number } | undefined) => void
@Property
stretchInset?: {
left: number,
top: number,
right: number,
bottom: number
}
}
export function image(config: Partial<Image>) {