Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
97e3472b
Commit
97e3472b
authored
Aug 08, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
fc0df335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+22
-20
No files found.
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
97e3472b
...
@@ -654,28 +654,30 @@ const AssetTree = (props) => {
...
@@ -654,28 +654,30 @@ const AssetTree = (props) => {
style=
{
{
width
:
'100%'
}
}
style=
{
{
width
:
'100%'
}
}
>
>
<
Spin
spinning=
{
loading
}
>
<
Spin
spinning=
{
loading
}
>
<
AutoComplete
allowClear
value=
{
keyword
}
style=
{
{
marginBottom
:
10
,
width
:
'100%'
}
}
placeholder=
'搜索目录'
onSelect=
{
onAutoCompleteSelect
}
onSearch=
{
onAutoCompleteSearch
}
onClear=
{
()
=>
{
setKeyword
(
''
);
}
}
notFoundContent=
{
keyword
?<
span
>
暂无数据
</
span
>:
null
}
>
{
{
(
options
||
[]).
map
((
item
,
index
)
=>
{
viewSelectedKeyRef
.
current
===
'dir'
&&
<
AutoComplete
return
(
allowClear
<
Option
key=
{
item
.
key
}
value=
{
item
.
value
}
>
value=
{
keyword
}
<
div
style=
{
{
whiteSpace
:
'normal'
}
}
>
style=
{
{
marginBottom
:
10
,
width
:
'100%'
}
}
{
highlightSearchContentByTerms
(
item
.
value
,
[
keyword
])
}
placeholder=
'搜索目录'
</
div
>
onSelect=
{
onAutoCompleteSelect
}
</
Option
>
onSearch=
{
onAutoCompleteSearch
}
);
onClear=
{
()
=>
{
setKeyword
(
''
);
}
}
})
notFoundContent=
{
keyword
?<
span
>
暂无数据
</
span
>:
null
}
>
{
(
options
||
[]).
map
((
item
,
index
)
=>
{
return
(
<
Option
key=
{
item
.
key
}
value=
{
item
.
value
}
>
<
div
style=
{
{
whiteSpace
:
'normal'
}
}
>
{
highlightSearchContentByTerms
(
item
.
value
,
[
keyword
])
}
</
div
>
</
Option
>
);
})
}
</
AutoComplete
>
}
}
</
AutoComplete
>
<
Tree
<
Tree
showLine=
{
true
}
showLine=
{
true
}
showIcon=
{
false
}
showIcon=
{
false
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment