|
@@ -3627,11 +3627,17 @@ export struct LocalMusic {
|
|
|
.onSubmit((value: string) => {
|
|
.onSubmit((value: string) => {
|
|
|
console.log('onecold onSubmit ='+value)
|
|
console.log('onecold onSubmit ='+value)
|
|
|
this.searchController.stopEditing()
|
|
this.searchController.stopEditing()
|
|
|
|
|
+ if(this.modeType==0){
|
|
|
|
|
+ this.modeType =1//如果是首页 切换到媒体库搜索
|
|
|
|
|
+ }
|
|
|
this.onSearchInput(this.searchText);
|
|
this.onSearchInput(this.searchText);
|
|
|
|
|
|
|
|
})
|
|
})
|
|
|
.onChange((value: string) => {
|
|
.onChange((value: string) => {
|
|
|
console.log('onecold onChange ='+value)
|
|
console.log('onecold onChange ='+value)
|
|
|
|
|
+ if(this.modeType==0){
|
|
|
|
|
+ this.modeType =1//如果是首页 切换到媒体库搜索
|
|
|
|
|
+ }
|
|
|
this.onSearchInput(value);
|
|
this.onSearchInput(value);
|
|
|
})
|
|
})
|
|
|
.visibility(this.isSearchMode?Visibility.Visible:Visibility.None)
|
|
.visibility(this.isSearchMode?Visibility.Visible:Visibility.None)
|