forked from floraachy/ImageKnife
1.update README.md
Signed-off-by: zhoulisheng1 <zhoulisheng1@huawei.com>
This commit is contained in:
parent
cd390dcd6b
commit
619103145c
|
@ -60,7 +60,7 @@ struct Index {
|
|||
build() {
|
||||
Scroll() {
|
||||
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
|
||||
ImageKnifeComponent({ imageKnifeOption: $imageKnifeOption1 })
|
||||
ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption1 })
|
||||
.width(300) // 自定义组件支持通用属性链式调用,可以直接设置宽高
|
||||
.height(300)
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ struct IndexFunctionDemo {
|
|||
Scroll() {
|
||||
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
|
||||
Text("简单示例:加载一张gif图片").fontSize(15)
|
||||
ImageKnifeComponent({ imageKnifeOption: $imageKnifeOption })
|
||||
ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption })
|
||||
.width(300) // 自定义组件支持通用属性链式调用,可以直接设置宽高
|
||||
.height(300)
|
||||
}
|
||||
|
@ -254,7 +254,7 @@ struct Index {
|
|||
build() {
|
||||
Scroll() {
|
||||
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
|
||||
ImageKnifeComponent({ imageKnifeOption: $imageKnifeOption1 })
|
||||
ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption1 })
|
||||
}
|
||||
}
|
||||
.width('100%')
|
||||
|
|
Loading…
Reference in New Issue