Signed-off-by: tiankonglin <tiankonglin@openvalley.net>

修改评论
This commit is contained in:
tiankonglin 2024-10-14 21:14:02 +08:00
parent 718089196b
commit 99e2261b15
6 changed files with 0 additions and 27 deletions

View File

@ -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 })

View File

@ -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 = [];
}

View File

@ -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 = [];
}

View File

@ -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 = [];
}

View File

@ -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 = [];
}

View File

@ -115,7 +115,6 @@ export struct TextPickerDialogBootcamp {
},
onAccept: (value: TextPickerResult) => {
this.select = value.index
console.log(this.select + '')
},
onCancel: () => {
console.info('TextPickerDialog:onCancel()')