!236 3.x样例拼音检查修改

Merge pull request !236 from zgf/3.x
This commit is contained in:
Madi 2024-05-04 10:54:59 +00:00 committed by Gitee
commit 96e61758ad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 5 deletions

View File

@ -18,20 +18,20 @@ import { ImageKnifeComponent, ImageKnifeOption } from '@ohos/imageknife';
@Component
struct ListPage {
private datas: string[] = []
private data: string[] = []
@State ImageKnifeOption: ImageKnifeOption = { loadSrc: $r('app.media.startIcon')}
aboutToAppear(): void {
for (let i = 0; i < 1000; i++) {
this.datas.push(i.toString())
this.data.push(i.toString())
}
}
build() {
Row() {
List({ space: 10 }) {
ForEach(this.datas, (item: string) => {
ForEach(this.data, (item: string) => {
ImageKnifeComponent({ imageKnifeOption: this.ImageKnifeOption }).height(200).width(200)
}, (item: string) => item)
}

View File

@ -16,7 +16,7 @@ export struct UserAvatar {
imgSizes: number = 1
@State ImageKnifeOption: ImageKnifeOption = new ImageKnifeOption()
@StorageProp('WeLink_Mob_fontSize_multiple') @Watch('updateImgSize') WeLink_Mob_fontSize_multiple: number = 0
scaleable: boolean = true;
scalable: boolean = true;
@State calcImgSize: number = 100
aboutToAppear(): void {
@ -25,7 +25,7 @@ export struct UserAvatar {
}
setImageSize() {
if (!this.scaleable) {
if (!this.scalable) {
this.calcImgSize = this.imgSize
} else if (this.WeLink_Mob_fontSize_multiple < 0.9) {
this.calcImgSize = this.imgSize * 0.9