增加gif图duration的默认值,以及默认播放次数

Signed-off-by: zgf <zenggaofeng2@h-partners.com>
This commit is contained in:
zgf 2024-06-19 10:36:30 +08:00
parent 8b715efb24
commit ed67b3b198
2 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ struct TestGifPlayTimesPage {
}
ImageKnifeComponent({ imageKnifeOption: this.ImageKnifeOption1 }).width(300).height(300).borderWidth(3)
Text("gif自带默播放一次")
ImageKnifeComponent({ imageKnifeOption: {
loadSrc:$r('app.media.diamond_1')
} }).width(300).height(300).borderWidth(3)
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB