Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
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
Administrator
bkunyun
Commits
f6e59167
Commit
f6e59167
authored
Sep 20, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 删除图标增加hover效果
parent
878c252d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
deleteHover.svg
src/assets/project/deleteHover.svg
+17
-0
index.module.css
src/views/Project/ProjectData/SeeDataset/index.module.css
+7
-0
index.tsx
src/views/Project/ProjectData/SeeDataset/index.tsx
+2
-4
No files found.
src/assets/project/deleteHover.svg
0 → 100644
View file @
f6e59167
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"16px"
height=
"16px"
viewBox=
"0 0 16 16"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<title>
编组 58备份 7
</title>
<g
id=
"上线UI"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"编组-58备份-7"
>
<rect
id=
"矩形"
x=
"0"
y=
"0"
width=
"16"
height=
"16"
></rect>
<g
id=
"编组-50"
transform=
"translate(1.000000, 1.605109)"
stroke=
"#565C66"
stroke-width=
"1.5"
>
<line
x1=
"0"
y1=
"2.39431484"
x2=
"14"
y2=
"2.39431484"
id=
"路径-16"
></line>
<path
d=
"M3.37934347,2.39431484 L3.37934347,1 C3.37934347,0.44771525 3.82705872,1.01453063e-16 4.37934347,0 L9.63329305,0 C10.1855778,-1.01453063e-16 10.6332931,0.44771525 10.6332931,1 L10.6332931,2.39431484 L10.6332931,2.39431484"
id=
"路径-17"
></path>
<path
d=
"M2.45321216,3.89402686 L2.45321216,11.9292428 C2.45321216,12.4815275 2.90092741,12.9292428 3.45321216,12.9292428 L10.4872657,12.9292428 C11.0395505,12.9292428 11.4872657,12.4815275 11.4872657,11.9292428 L11.4872657,3.89402686 L11.4872657,3.89402686"
id=
"路径-20"
></path>
<line
x1=
"5.49894415"
y1=
"3.89402686"
x2=
"5.49894415"
y2=
"10.3954667"
id=
"路径-21"
></line>
<line
x1=
"8.49836822"
y1=
"3.89402686"
x2=
"8.49836822"
y2=
"10.3954667"
id=
"路径-22"
></line>
</g>
</g>
</g>
</svg>
\ No newline at end of file
src/views/Project/ProjectData/SeeDataset/index.module.css
View file @
f6e59167
...
@@ -71,6 +71,13 @@
...
@@ -71,6 +71,13 @@
}
}
.deleteIcon
{
.deleteIcon
{
cursor
:
pointer
;
cursor
:
pointer
;
width
:
16px
;
height
:
16px
;
background-image
:
url(../../../../assets/project/jobDel.svg)
;
background-repeat
:
no-repeat
;
}
.deleteIcon
:hover
{
background-image
:
url(../../../../assets/project/deleteHover.svg)
;
}
}
.deleteIconDisabled
{
.deleteIconDisabled
{
cursor
:
not-allowed
;
cursor
:
not-allowed
;
...
...
src/views/Project/ProjectData/SeeDataset/index.tsx
View file @
f6e59167
...
@@ -296,15 +296,13 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
...
@@ -296,15 +296,13 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
onChange=
{
(
e
)
=>
handleQueryChange
(
e
,
index
)
}
onChange=
{
(
e
)
=>
handleQueryChange
(
e
,
index
)
}
sx=
{
{
marginRight
:
"16px"
,
width
:
"180px"
}
}
sx=
{
{
marginRight
:
"16px"
,
width
:
"180px"
}
}
></
MyInput
>
></
MyInput
>
<
img
<
div
onClick=
{
()
=>
handleDeleteQuery
(
index
)
}
onClick=
{
()
=>
handleDeleteQuery
(
index
)
}
src=
{
jobDel
}
alt=
""
className=
{
classNames
({
className=
{
classNames
({
[
style
.
deleteIcon
]:
true
,
[
style
.
deleteIcon
]:
true
,
[
style
.
deleteIconDisabled
]:
querylist
.
length
===
1
,
[
style
.
deleteIconDisabled
]:
querylist
.
length
===
1
,
})
}
})
}
/
>
></
div
>
</
div
>
</
div
>
);
);
})
}
})
}
...
...
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