fix warning

This commit is contained in:
2024-09-06 15:36:19 +08:00
parent bdfab3ab29
commit 7f9c4bc663
17 changed files with 40 additions and 60 deletions

View File

@@ -2,7 +2,7 @@ import { CommonRes } from '@devwiki/common_ui/Index'
@Entry
@Component
export struct SVGPage {
struct SVGPage {
build() {
Column() {
Text().width(96).height(96).backgroundColor($r('app.media.ic_eye_off'))

View File

@@ -3,6 +3,27 @@
@Component
struct TextPage {
@State states: string[] = ['1', '2', '3', '4'];
build() {
Column(){
Button('Change').onClick(() => {
this.states[3] = '999'
})
List(){
ForEach(this.states, (state: string, index: number) => {
ListItem(){
Column(){
Text(state).width(this.getWidth(state, index))
Divider().width('90%')
}
}
})
}.height('100%').width('100')
}.width('100%')
}
getWidth(title: string, index: number): Length {
return 0;
}
}

View File

@@ -12,7 +12,7 @@ class ToastViewMode {
@Entry
@Component
export struct ToastPage {
struct ToastPage {
@Provide toastVM: ToastViewMode = new ToastViewMode();