Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wuyanan
2024-08-29 09:35:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3eb8f5f83a53ffdaf79c316b2d6f210ef38f8d3
f3eb8f5f
1 parent
d719f93b
fix |> 修复语音输入,点击搜索后,弹窗未消失问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchComponent.ets
View file @
f3eb8f5
...
...
@@ -40,7 +40,7 @@ export struct SearchComponent {
@StorageProp('currentBreakpoint') @Watch("currentChanged") currentBreakpoint: string = 'sm';
private breakpointSystem = new BreakpointSystem();
@State percent: number = 1
private
comment
InputDialogController?: CustomDialogController
private
voice
InputDialogController?: CustomDialogController
currentChanged() {
if (this.currentBreakpoint == "md" || this.currentBreakpoint == "lg") {
...
...
@@ -419,16 +419,16 @@ export struct SearchComponent {
VoiceRecoginizer.checkPemmission(getContext(this) as common.UIAbilityContext)
this.
comment
InputDialogController = new CustomDialogController({
this.
voice
InputDialogController = new CustomDialogController({
builder: VoiceSearchCustomDialog (
{ onSearchBtnClick:((content:string) => {
this.commentInputDialogController?.close()
this.searchText = content
if (StringUtils.isNotEmpty(this.searchText)) {
SearcherAboutDataModel.putSearchHistoryData(this.searchText)
this.getSearchHistoryData()
this.getSearchInputResData(this.searchText)
}
this.voiceInputDialogController?.close()
})
}
),
...
...
@@ -436,8 +436,8 @@ export struct SearchComponent {
alignment: DialogAlignment.Bottom,
customStyle: true,
backgroundColor: "#50000000",
}).open()
})
this.voiceInputDialogController.open()
}
getSearchResultCountData() {
...
...
Please
register
or
login
to post a comment