From 99e2261b15262926b0f0aae9e5390fd97b0017d2 Mon Sep 17 00:00:00 2001 From: tiankonglin Date: Mon, 14 Oct 2024 21:14:02 +0800 Subject: [PATCH] =?UTF-8?q?Signed-off-by:=20tiankonglin=20=20=E4=BF=AE=E6=94=B9=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/src/main/ets/components/Block.ets | 5 ----- .../common/src/main/ets/components/ColorBlock.ets | 6 ------ .../components/common/src/main/ets/components/IconBlock.ets | 5 ----- .../common/src/main/ets/components/RadioBlock.ets | 5 ----- .../common/src/main/ets/components/SliderBlock.ets | 5 ----- .../main/ets/pages/containers/TextPickerDialogBootcamp.ets | 1 - 6 files changed, 27 deletions(-) diff --git a/examples/components/common/src/main/ets/components/Block.ets b/examples/components/common/src/main/ets/components/Block.ets index 6ee598c1f64..10dd831621c 100644 --- a/examples/components/common/src/main/ets/components/Block.ets +++ b/examples/components/common/src/main/ets/components/Block.ets @@ -35,11 +35,6 @@ export struct Block { isOn: this.isEnabled }).onChange((enabled) => { this.isEnabled = enabled; - if (this.isEnabled) { - console.log('Block 打开 ' + this.title); - } else { - console.log('Block 关闭 ' + this.title); - } }) } .padding({ left: 8, right: 8 }) diff --git a/examples/components/common/src/main/ets/components/ColorBlock.ets b/examples/components/common/src/main/ets/components/ColorBlock.ets index 911d992286b..03e01738c82 100644 --- a/examples/components/common/src/main/ets/components/ColorBlock.ets +++ b/examples/components/common/src/main/ets/components/ColorBlock.ets @@ -43,23 +43,17 @@ export struct ColorBlock { if (colors.red === 255 && colors.green === 255 && colors.blue === 255 && colors.alpha === 255) { color = '#FFFFFF' } - console.log('ColorBlock onChange'); if (this.isEnabled) { let time = formatDate(new Date(Date.now())) this.listColorBlockTagsTemp.push(new BlockTag(time, tagDesRule(this.title, (color).toString()))) - console.log('Block =====>>>>>' + JSON.stringify(this.listColorBlockTagsTemp)); setTimeout(() => { if (AppStorage.get('Block')) { this.listColorBlockTags = this.listColorBlockTags.concat(this.listColorBlockTagsTemp); this.listColorBlockTagsTemp = []; - console.log('get Block this.listBlockTags ==' + JSON.stringify(this.listColorBlockTagsTemp)); - console.log('get Block this.listBlockTags length ==>> ' + this.listColorBlockTags.length); } else { if (this.listColorBlockTagsTemp) { this.listColorBlockTags = this.listColorBlockTags.concat(this.listColorBlockTagsTemp); } - console.log('Block this.listBlockTags ==' + JSON.stringify(this.listColorBlockTags)); - console.log('Block this.listBlockTags length ==>> ' + this.listColorBlockTags.length); if (this.listColorBlockTags) { this.listColorBlockTagsTemp = []; } diff --git a/examples/components/common/src/main/ets/components/IconBlock.ets b/examples/components/common/src/main/ets/components/IconBlock.ets index 4c6bab813f2..111d69111b0 100644 --- a/examples/components/common/src/main/ets/components/IconBlock.ets +++ b/examples/components/common/src/main/ets/components/IconBlock.ets @@ -39,19 +39,14 @@ export struct IconBlock { if (this.isEnabled) { let time = formatDate(new Date(Date.now())) this.listIconBlockTagsTemp.push(new BlockTag(time, tagDesRule(this.title, (index + 1).toString()))) - console.log('Block =====>>>>>' + JSON.stringify(this.listIconBlockTagsTemp)); setTimeout(() => { if (AppStorage.get('Block')) { this.listIconBlockTags = this.listIconBlockTags.concat(this.listIconBlockTagsTemp); this.listIconBlockTagsTemp = []; - console.log('get Block Icon ==' + JSON.stringify(this.listIconBlockTagsTemp)); - console.log('get Block Icon length ==>> ' + this.listIconBlockTags.length); } else { if (this.listIconBlockTagsTemp) { this.listIconBlockTags = this.listIconBlockTags.concat(this.listIconBlockTagsTemp); } - console.log('Block Icon ==' + JSON.stringify(this.listIconBlockTags)); - console.log('Block Icon length ==>> ' + this.listIconBlockTags.length); if (this.listIconBlockTags) { this.listIconBlockTagsTemp = []; } diff --git a/examples/components/common/src/main/ets/components/RadioBlock.ets b/examples/components/common/src/main/ets/components/RadioBlock.ets index 5c9b7663cac..ba008933160 100644 --- a/examples/components/common/src/main/ets/components/RadioBlock.ets +++ b/examples/components/common/src/main/ets/components/RadioBlock.ets @@ -45,7 +45,6 @@ export struct RadioBlock { this.value = item.value; let time = formatDate(new Date(Date.now())) this.listRadioBlockTagsTemp.push(new BlockTag(time, tagDesRule(this.title, item.label.toString()))) - console.log('Block =====>>>>>' + JSON.stringify(this.listRadioBlockTagsTemp)); } }) .onClick(() => { @@ -53,14 +52,10 @@ export struct RadioBlock { if (AppStorage.get('Block')) { this.listRadioBlockTags = this.listRadioBlockTags.concat(this.listRadioBlockTagsTemp); this.listRadioBlockTagsTemp = []; - console.log('get Block this.listBlockTags ==' + JSON.stringify(this.listRadioBlockTags)); - console.log('get Block this.listBlockTags length ==>> ' + this.listRadioBlockTags.length); } else { if (this.listRadioBlockTagsTemp) { this.listRadioBlockTags = this.listRadioBlockTags.concat(this.listRadioBlockTagsTemp); } - console.log('Block this.listBlockTags ==' + JSON.stringify(this.listRadioBlockTags)); - console.log('Block this.listBlockTags length ==>> ' + this.listRadioBlockTags.length); if (this.listRadioBlockTags) { this.listRadioBlockTagsTemp = []; } diff --git a/examples/components/common/src/main/ets/components/SliderBlock.ets b/examples/components/common/src/main/ets/components/SliderBlock.ets index fd74b00823e..aa043573b47 100644 --- a/examples/components/common/src/main/ets/components/SliderBlock.ets +++ b/examples/components/common/src/main/ets/components/SliderBlock.ets @@ -57,18 +57,13 @@ export struct SliderBlock { setTimeout(() => { let time = formatDate(new Date(Date.now())) this.listSliderTagsTemp.push(new BlockTag(time, tagDesRule(this.title, value.toString()))) - console.log('Block =====>>>>>' + JSON.stringify(this.listSliderTagsTemp)); if (AppStorage.get('Block')) { this.listSliderTags = this.listSliderTags.concat(this.listSliderTagsTemp); this.listSliderTagsTemp = []; - console.log('get Block Slider ==' + JSON.stringify(this.listSliderTags)); - console.log('get Block Slider length ==>> ' + this.listSliderTags.length); } else { if (this.listSliderTagsTemp) { this.listSliderTags = this.listSliderTags.concat(this.listSliderTagsTemp); } - console.log('Block Slider ==' + JSON.stringify(this.listSliderTags)); - console.log('Block Slider length ==>> ' + this.listSliderTags.length); if (this.listSliderTags) { this.listSliderTagsTemp = []; } diff --git a/examples/components/feature/src/main/ets/pages/containers/TextPickerDialogBootcamp.ets b/examples/components/feature/src/main/ets/pages/containers/TextPickerDialogBootcamp.ets index 0e82eb2aa55..0ac58de1adc 100644 --- a/examples/components/feature/src/main/ets/pages/containers/TextPickerDialogBootcamp.ets +++ b/examples/components/feature/src/main/ets/pages/containers/TextPickerDialogBootcamp.ets @@ -115,7 +115,6 @@ export struct TextPickerDialogBootcamp { }, onAccept: (value: TextPickerResult) => { this.select = value.index - console.log(this.select + '') }, onCancel: () => { console.info('TextPickerDialog:onCancel()')