fix warning
This commit is contained in:
@@ -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'))
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
@@ -12,7 +12,7 @@ class ToastViewMode {
|
||||
|
||||
@Entry
|
||||
@Component
|
||||
export struct ToastPage {
|
||||
struct ToastPage {
|
||||
|
||||
@Provide toastVM: ToastViewMode = new ToastViewMode();
|
||||
|
||||
|
Reference in New Issue
Block a user