Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
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
ReactWeb5
CivManage
Commits
d816d9fa
Commit
d816d9fa
authored
Jun 13, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/maintenance
parents
c1dd8d8b
797b1028
Pipeline
#74156
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
TreeSelect.jsx
src/pages/productCenter/webConfig/menuconfig/TreeSelect.jsx
+11
-2
No files found.
src/pages/productCenter/webConfig/menuconfig/TreeSelect.jsx
View file @
d816d9fa
import
React
,
{
useState
,
useEffect
,
forwardRef
,
useImperativeHandle
}
from
'react'
;
import
{
GetWebMenuInfo
}
from
'@/services/webConfig/api'
;
import
{
message
,
Input
,
Tree
,
Empty
,
Tooltip
}
from
'antd'
;
import
{
message
,
Input
,
Tree
,
Empty
,
Tooltip
,
Tag
}
from
'antd'
;
import
lodash
from
'lodash'
;
import
{
FolderFilled
,
FileOutlined
,
InfoCircleOutlined
,
HomeOutlined
}
from
'@ant-design/icons'
;
import
styles
from
'./TreeSelect.less'
;
...
...
@@ -89,7 +89,16 @@ const TreeSelect = (props, ref) => {
param
:
item
,
title
:
(
<
div
className=
{
styles
.
treeLine
}
>
{
item
.
shortName
}
{
item
.
function
}
{
item
.
state
===
'测试'
?
(
<
Tag
color=
"gold"
style=
{
{
marginLeft
:
'5px'
}
}
>
{
item
.
state
}
</
Tag
>
)
:
(
<
Tag
color=
"cyan"
style=
{
{
marginLeft
:
'5px'
}
}
>
{
item
.
state
}
</
Tag
>
)
}
<
Tooltip
title=
{
item
.
desc
}
overlayStyle=
{
{
maxWidth
:
350
}
}
>
<
InfoCircleOutlined
style=
{
{
color
:
'#40a9ff'
,
padding
:
'2px 2px 0 0'
,
marginLeft
:
'5px'
}
}
...
...
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