|
@@ -666,22 +666,18 @@ export struct SettingPage {
|
|
|
// .height(30);
|
|
// .height(30);
|
|
|
|
|
|
|
|
Select([
|
|
Select([
|
|
|
- { value: CommonConstants.SORT_ARRAY[0] },
|
|
|
|
|
- { value: CommonConstants.SORT_ARRAY[1] },
|
|
|
|
|
- { value: CommonConstants.SORT_ARRAY[2] },
|
|
|
|
|
- { value: CommonConstants.SORT_ARRAY[3] },
|
|
|
|
|
- { value: CommonConstants.SORT_ARRAY[4] },
|
|
|
|
|
- { value: CommonConstants.SORT_ARRAY[5] },
|
|
|
|
|
- { value: CommonConstants.SORT_ARRAY[6] },
|
|
|
|
|
- { value: CommonConstants.SORT_ARRAY[7] }])
|
|
|
|
|
|
|
+ { value: CommonConstants.TWO_FINGER_TYPE[0] },
|
|
|
|
|
+ { value:CommonConstants.TWO_FINGER_TYPE[1]},
|
|
|
|
|
+ { value: CommonConstants.TWO_FINGER_TYPE[2] }])
|
|
|
.font({ size: 15, weight: FontWeight.Medium })
|
|
.font({ size: 15, weight: FontWeight.Medium })
|
|
|
.fontColor(Color.Gray)
|
|
.fontColor(Color.Gray)
|
|
|
.margin({ right: 18 })
|
|
.margin({ right: 18 })
|
|
|
- .selected(this.sortType)
|
|
|
|
|
- .value(CommonConstants.SORT_ARRAY[this.sortType])
|
|
|
|
|
|
|
+ .selected(this.twoFingerType)
|
|
|
|
|
+ .value(CommonConstants.TWO_FINGER_TYPE[this.twoFingerType-1])
|
|
|
.onSelect(async (_index: number, text?: string | undefined) => {
|
|
.onSelect(async (_index: number, text?: string | undefined) => {
|
|
|
- this.sortType = _index
|
|
|
|
|
- PreferencesUtil.put(SettingPage.SORT_TYPE, this.sortType)
|
|
|
|
|
|
|
+ _index ++;
|
|
|
|
|
+ this.twoFingerType = _index
|
|
|
|
|
+ PreferencesUtil.put(SettingPage.TWO_FINGER_TYPE, this.twoFingerType)
|
|
|
this.sendChangeEvent()
|
|
this.sendChangeEvent()
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|