代码告警

Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
zhouhongli2023 2024-04-29 11:15:13 +00:00 committed by Gitee
parent 30dda440eb
commit 360a5582cc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 9 additions and 9 deletions

View File

@ -26,7 +26,7 @@ export default struct FuncBtn {
@State iconActiveUrl: string = '';
@State @Watch('iconClassName') isActive: boolean = false;
@State @Watch('iconClassName') isDisable: boolean = false;
@State iconText: string= '';
@State iconText: string = '';
@State textColor: string = 'rgb(255, 255, 255)';
btnClick: Function = null;

View File

@ -24,7 +24,7 @@ export default struct InComDialog {
cancel: () => void;
confirm: (msg) => void;
cancelHandle: () => void;
List: [];
list: [];
build() {
GridRow({ columns: { xs: 4, sm: 4, md: 8, lg: 12 }, gutter: 12 }) {
@ -43,7 +43,7 @@ export default struct InComDialog {
})
Column() {
ForEach(this.List, (item) => {
ForEach(this.list, (item) => {
Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
Text(item.msg)
.width('100%')

View File

@ -65,7 +65,7 @@ export default struct IncomingCom {
},
cancelHandle: () => {},
// @ts-ignore
List: this.msgList
list: this.msgList
}),
cancel: () => {},
customStyle: true

View File

@ -20,12 +20,12 @@ import LogUtils from '../common/utils/LogUtils';
const TAG = 'MainAbility';
export default class MainAbility extends Ability {
onCreate(want, launchParam) {
onCreate(want, launchParam): void {
LogUtils.i(TAG, 'onCreate');
globalThis.settingsAbilityContext = this.context;
}
onDestroy() {
onDestroy(): void {
LogUtils.i(TAG, 'onDestroy!');
}
@ -42,17 +42,17 @@ export default class MainAbility extends Ability {
});
}
onWindowStageDestroy() {
onWindowStageDestroy(): void {
// Main window is destroyed, release UI related resources
LogUtils.i(TAG, 'onWindowStageDestroy!');
}
onForeground() {
onForeground(): void {
// Ability has brought to foreground
LogUtils.i(TAG, 'onForeground!');
}
onBackground() {
onBackground(): void {
// Ability has back to background
LogUtils.i(TAG, 'onBackground!');
}