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
e6409075
Commit
e6409075
authored
Dec 01, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改同步按钮
parent
d48ff204
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ModelTree.jsx
src/view/Manage/Model/Component/ModelTree.jsx
+3
-3
No files found.
src/view/Manage/Model/Component/ModelTree.jsx
View file @
e6409075
import
React
,
{
useState
,
useEffect
,
useContext
}
from
"react"
;
import
React
,
{
useState
,
useEffect
,
useContext
}
from
"react"
;
import
{
Tooltip
,
Tree
,
Modal
,
Spin
,
Dropdown
,
Menu
,
Button
,
AutoComplete
}
from
"antd"
;
import
{
Tooltip
,
Tree
,
Modal
,
Spin
,
Dropdown
,
Menu
,
Button
,
AutoComplete
}
from
"antd"
;
import
{
PlusOutlined
,
S
ync
Outlined
,
ImportOutlined
,
UnorderedListOutlined
,
ReloadOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
,
S
wap
Outlined
,
ImportOutlined
,
UnorderedListOutlined
,
ReloadOutlined
}
from
'@ant-design/icons'
;
import
classnames
from
'classnames'
;
import
classnames
from
'classnames'
;
import
{
useContextMenu
,
Menu
as
RcMenu
,
Item
as
RcItem
}
from
"react-contexify"
;
import
{
useContextMenu
,
Menu
as
RcMenu
,
Item
as
RcItem
}
from
"react-contexify"
;
...
@@ -539,7 +539,7 @@ const ModelTree = (props) => {
...
@@ -539,7 +539,7 @@ const ModelTree = (props) => {
(viewSelectedKey==='dir' && getDataModelerRole(user)===DataModelerRoleAdmin) && !isSetRootId && (
(viewSelectedKey==='dir' && getDataModelerRole(user)===DataModelerRoleAdmin) && !isSetRootId && (
<Dropdown overlay={syncMenu} placement="bottomLeft">
<Dropdown overlay={syncMenu} placement="bottomLeft">
<Tooltip title="同步目录">
<Tooltip title="同步目录">
<S
yncOutlined className='default ml-2' style={{ fontSize:16,cursor:'pointer'
}} />
<S
wapOutlined className='default ml-2' style={{ fontSize:16,cursor:'pointer', transform: 'rotate(90deg)',
}} />
</Tooltip>
</Tooltip>
</Dropdown>
</Dropdown>
)
)
...
@@ -548,7 +548,7 @@ const ModelTree = (props) => {
...
@@ -548,7 +548,7 @@ const ModelTree = (props) => {
{
{
(
viewSelectedKey
===
'dir'
&&
getDataModelerRole
(
user
)
===
DataModelerRoleAdmin
)
&&
isSetRootId
&&
(
(
viewSelectedKey
===
'dir'
&&
getDataModelerRole
(
user
)
===
DataModelerRoleAdmin
)
&&
isSetRootId
&&
(
<
Tooltip
title=
"同步目录"
className=
'ml-6'
>
<
Tooltip
title=
"同步目录"
className=
'ml-6'
>
<
Button
type=
'text'
icon=
{
<
S
yncOutlined
className=
'default'
/>
}
size=
'small'
onClick=
{
sync
}
/>
<
Button
type=
'text'
icon=
{
<
S
wapOutlined
className=
'default'
style=
{
{
transform
:
'rotate(90deg)'
}
}
/>
}
size=
'small'
onClick=
{
sync
}
/>
</
Tooltip
>
</
Tooltip
>
)
)
}
}
...
...
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