demo报错修改
This commit is contained in:
parent
6e2a2ce20f
commit
b848e4bc6b
|
@ -15,7 +15,8 @@
|
||||||
import { FitCenter, ImageKnifeComponent,
|
import { FitCenter, ImageKnifeComponent,
|
||||||
ImageKnifeData,
|
ImageKnifeData,
|
||||||
ImageKnifeGlobal,
|
ImageKnifeGlobal,
|
||||||
ImageKnifeOption, RequestOption } from '@ohos/libraryimageknife'
|
ImageKnifeOption,
|
||||||
|
RequestOption } from '@ohos/libraryimageknife'
|
||||||
import { BusinessError } from '@ohos.base'
|
import { BusinessError } from '@ohos.base'
|
||||||
import { fitter, sampleNone } from '@ohos/imageknife';
|
import { fitter, sampleNone } from '@ohos/imageknife';
|
||||||
|
|
||||||
|
@ -104,9 +105,9 @@ struct DownsamplingPage {
|
||||||
Column() {
|
Column() {
|
||||||
Column() {
|
Column() {
|
||||||
Text("ImageKnifeComponent用法").fontColor(Color.Gray).fontSize(16);
|
Text("ImageKnifeComponent用法").fontColor(Color.Gray).fontSize(16);
|
||||||
ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption2 })
|
// ImageKnifeComponent({ imageKnifeOption: this.imageKnifeOption2 })
|
||||||
.width(200)
|
// .width(200)
|
||||||
.height(200)
|
// .height(200)
|
||||||
}.margin({ top: 10 });
|
}.margin({ top: 10 });
|
||||||
}.margin({ bottom: 30 });
|
}.margin({ bottom: 30 });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue