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
965249bc
Commit
965249bc
authored
Dec 05, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
右键提示
parent
c64642b2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
5 deletions
+55
-5
contextmenu.svg
src/assets/contextmenu.svg
+35
-0
pointer_contextmenu.svg
src/assets/pointer_contextmenu.svg
+2
-0
index.less
src/index.less
+13
-2
AssetManageTree.jsx
src/view/Manage/AssetManage/Component/AssetManageTree.jsx
+1
-0
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+1
-1
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+1
-1
ModelTree.jsx
src/view/Manage/Model/Component/ModelTree.jsx
+2
-1
No files found.
src/assets/contextmenu.svg
0 → 100755
View file @
965249bc
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"24"
height=
"16"
viewBox=
"0 0 124 103"
>
<metadata>
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta
xmlns:x=
"adobe:ns:meta/"
x:xmptk=
"Adobe XMP Core 5.6-c138 79.159824, 2016/09/14-01:09:01 "
>
<rdf:RDF
xmlns:rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<rdf:Description
rdf:about=
""
/>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
</metadata>
<defs>
<style>
.cls-1 {
fill: #fff;
stroke: #302624;
stroke-linejoin: round;
stroke-width: 1px;
fill-rule: evenodd;
filter: url(#filter);
}
</style>
<filter
id=
"filter"
x=
"49"
y=
"40"
width=
"125"
height=
"104"
filterUnits=
"userSpaceOnUse"
>
<feOffset
result=
"offset"
dx=
"-3.464"
dy=
"2"
in=
"SourceAlpha"
/>
<feGaussianBlur
result=
"blur"
stdDeviation=
"2.449"
/>
<feFlood
result=
"flood"
flood-opacity=
"0.32"
/>
<feComposite
result=
"composite"
operator=
"in"
in2=
"blur"
/>
<feBlend
result=
"blend"
in=
"SourceGraphic"
/>
<feFlood
result=
"flood-2"
flood-color=
"#fff"
/>
<feComposite
result=
"composite-2"
operator=
"in"
in2=
"SourceGraphic"
/>
<feBlend
result=
"blend-2"
in2=
"blend"
/>
</filter>
</defs>
<g
transform=
"translate(-49.5 -40.5)"
style=
"fill: #fff; filter: url(#filter)"
>
<path
id=
"形状_2"
data-name=
"形状 2"
class=
"cls-1"
d=
"M141.723,135.147a29.367,29.367,0,0,1-28.506-36.052L99,95.9V136H81.857V95.9L57,101.018,89.571,43,117.7,89A29.31,29.31,0,1,1,141.723,135.147ZM131.464,120.3a2.374,2.374,0,0,0,2.379,2.369h0.01a2.374,2.374,0,0,0,2.379-2.369V106.666a2.373,2.373,0,0,0-2.379-2.368h-0.01a2.373,2.373,0,0,0-2.379,2.368V120.3Zm-1.1-20.775a3.295,3.295,0,1,0,3.295-3.306A3.3,3.3,0,0,0,130.366,99.525ZM156,99.35a10.487,10.487,0,0,0-10.511-10.463H133.661v5.582a5.179,5.179,0,0,1,.763-0.062H144.6a5.133,5.133,0,1,1,0,10.265h-7.871l0,0h-0.141l2.338,3.444,1.082,1.7h0.07l8.223,12.114h7.32l-8.57-12.243A10.471,10.471,0,0,0,156,99.354v0Z"
style=
"stroke: inherit; filter: none; fill: inherit"
/>
</g>
<use
transform=
"translate(-49.5 -40.5)"
xlink:href=
"#形状_2"
style=
"stroke: #302624; filter: none; fill: none"
/>
</svg>
src/assets/pointer_contextmenu.svg
0 → 100755
View file @
965249bc
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1669969202405"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"15629"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"24"
height=
"24"
><path
d=
"M505.6 841.6H246.4c-35.2 0-64-28.8-64-64V244.8c0-35.2 28.8-64 64-64h531.2c35.2 0 64 28.8 64 64v265.6c0 12.8-11.2 24-24 24s-24-11.2-24-24V244.8c0-9.6-8-16-16-16H246.4c-9.6 0-16 8-16 16v531.2c0 9.6 8 16 16 16h259.2c12.8 0 24 11.2 24 24s-11.2 25.6-24 25.6z"
p-id=
"15630"
></path><path
d=
"M683.2 832c-54.4 0-96-12.8-120-36.8l-120-118.4c-6.4-6.4-11.2-14.4-11.2-24s4.8-17.6 11.2-25.6l1.6-1.6c35.2-20.8 64 11.2 83.2 36.8 3.2 3.2 6.4 6.4 8 9.6V473.6c0-11.2 4.8-22.4 16-27.2 11.2-6.4 25.6-6.4 35.2 0 9.6 6.4 14.4 16 14.4 28.8v144c3.2 1.6 8 1.6 9.6 0V560c0-16 12.8-32 30.4-33.6 14.4-1.6 30.4 8 35.2 32v80c1.6 1.6 6.4 1.6 8 0v-56c0-17.6 12.8-32 30.4-33.6 12.8-1.6 30.4 6.4 35.2 32V651.2c1.6 1.6 6.4 1.6 9.6 0v-48c0-17.6 12.8-32 32-33.6 12.8-1.6 30.4 6.4 33.6 32v89.6c4.8 68.8-12.8 140.8-142.4 140.8zM460.8 644.8c-1.6 1.6-3.2 4.8-3.2 8s1.6 4.8 3.2 6.4l120 118.4c19.2 19.2 56 28.8 102.4 28.8 102.4 0 123.2-44.8 123.2-116.8V603.2c0-3.2-3.2-9.6-8-9.6s-9.6 4.8-9.6 9.6v48c0 8-3.2 14.4-9.6 19.2-11.2 6.4-27.2 6.4-36.8 0-6.4-4.8-11.2-11.2-9.6-19.2v-68.8c-1.6-4.8-3.2-11.2-9.6-11.2-3.2 0-8 3.2-8 9.6v56c0 8-3.2 14.4-9.6 19.2-9.6 6.4-25.6 6.4-35.2 0-6.4-4.8-11.2-11.2-9.6-19.2v-1.6c0-41.6 0-64 1.6-75.2h-1.6c0-4.8-3.2-11.2-8-11.2s-9.6 4.8-9.6 9.6V619.2c0 8-3.2 14.4-9.6 19.2-11.2 6.4-27.2 6.4-38.4 0-6.4-4.8-11.2-11.2-9.6-19.2v-145.6c0-4.8-1.6-6.4-3.2-8-3.2-1.6-8-1.6-11.2 0-3.2 1.6-3.2 3.2-3.2 6.4v225.6c0 4.8-1.6 8-6.4 11.2-3.2 1.6-8 1.6-12.8 0-11.2-6.4-22.4-19.2-32-32-28.8-28.8-41.6-40-56-32z"
p-id=
"15631"
></path><path
d=
"M520 496c-4.8 0-9.6-3.2-11.2-8-1.6-6.4-3.2-12.8-3.2-20.8 0-36.8 30.4-67.2 67.2-67.2s67.2 30.4 67.2 67.2c0 6.4-1.6 12.8-3.2 19.2-1.6 6.4-8 9.6-14.4 8-6.4-1.6-9.6-8-8-14.4 1.6-3.2 1.6-8 1.6-12.8 0-24-19.2-43.2-43.2-43.2s-43.2 19.2-43.2 43.2c0 4.8 0 9.6 1.6 12.8 1.6 6.4-1.6 12.8-8 14.4 0 1.6-1.6 1.6-3.2 1.6zM710.4 308.8H300.8c-6.4 0-12.8-4.8-12.8-12.8s4.8-12.8 12.8-12.8h409.6c6.4 0 12.8 4.8 12.8 12.8s-6.4 12.8-12.8 12.8z"
p-id=
"15632"
></path><path
d=
"M512 393.6H300.8c-6.4 0-12.8-4.8-12.8-12.8s4.8-12.8 12.8-12.8H512c6.4 0 12.8 4.8 12.8 12.8s-6.4 12.8-12.8 12.8z"
p-id=
"15633"
></path></svg>
\ No newline at end of file
src/index.less
View file @
965249bc
...
...
@@ -395,6 +395,16 @@ a.yy-typography-disabled {
}
}
.allow-right-click {
cursor: context-menu !important;
.cursor-contextmenu {
cursor: url(./assets/contextmenu.svg), auto;
}
.cursor-pointer-contextmenu {
cursor: url(./assets/pointer_contextmenu.svg), auto;
}
.tree-contextmenu {
.yy-tree-node-content-wrapper {
cursor: url(./assets/pointer_contextmenu.svg), auto;
}
}
\ No newline at end of file
src/view/Manage/AssetManage/Component/AssetManageTree.jsx
View file @
965249bc
...
...
@@ -764,6 +764,7 @@ const AssetManageTree = (props) => {
}
</
AutoComplete
>
<
Tree
className=
'tree-contextmenu'
checkable=
{
checkable
}
showLine=
{
true
}
showIcon=
{
false
}
...
...
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
965249bc
...
...
@@ -980,7 +980,7 @@ const AssetTable = (props) => {
rowClassName=
{
(
record
,
index
)
=>
{
let
classNames
=
[];
if
(
reference
===
AssetManageReference
&&
(
record
.
resourceState
===
'uncombed'
||
record
.
resourceState
===
'notRelatedAsset'
))
{
classNames
.
push
(
'
allow-right-click
'
);
classNames
.
push
(
'
cursor-contextmenu
'
);
}
if
(
record
?.
id
===
anchorId
||
record
?.
id
===
selectItem
?.
id
)
{
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
965249bc
...
...
@@ -797,7 +797,7 @@ const ModelTable = (props) => {
dataSource=
{
modelId
?(
subData
||
[]):(
filterData
||
[])
}
pagination=
{
false
}
size=
{
modelId
?
'small'
:
'default'
}
rowClassName=
{
(
record
,
index
)
=>
'
allow-right-click
'
}
rowClassName=
{
(
record
,
index
)
=>
'
cursor-contextmenu
'
}
onRow=
{
(
record
,
index
)
=>
{
return
{
id
:
`data-model-${record?.id}`
,
...
...
src/view/Manage/Model/Component/ModelTree.jsx
View file @
965249bc
...
...
@@ -580,6 +580,7 @@ const ModelTree = (props) => {
</
AutoComplete
>
}
<
Tree
className=
'tree-contextmenu'
onExpand=
{
onExpand
}
expandedKeys=
{
expandedKeys
}
autoExpandParent=
{
autoExpandParent
}
...
...
@@ -589,7 +590,7 @@ const ModelTree = (props) => {
treeData=
{
treeData
}
selectedKeys=
{
[
item
?
item
.
key
:
''
]
}
titleRender=
{
(
nodeData
)
=>
{
return
<
span
title=
{
nodeData
?.
remark
||
''
}
>
{
(
nodeData
.
status
===-
1
)?
`${nodeData?.name}_已下线`
:
nodeData
?.
name
||
''
}
</
span
>;
return
<
span
title=
{
nodeData
?.
remark
||
''
}
className=
'cursor-pointer-contextmenu'
>
{
(
nodeData
.
status
===-
1
)?
`${nodeData?.name}_已下线`
:
nodeData
?.
name
||
''
}
</
span
>;
}
}
onRightClick=
{
({
event
,
node
})
=>
{
if
(
viewSelectedKey
===
'dir'
&&
getDataModelerRole
(
user
)
===
DataModelerRoleAdmin
)
{
...
...
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