Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-scene
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f8190957
authored
Jan 29, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改箭头点击区域
1 parent
241d0c65
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
src/components/Arrow.vue
src/components/Arrow.vue
View file @
f819095
...
@@ -2,16 +2,20 @@
...
@@ -2,16 +2,20 @@
<div>
<div>
<!-- 左箭头 开始 -->
<!-- 左箭头 开始 -->
<div
class=
"left_arrow"
>
<div
class=
"left_arrow"
>
<div
class=
"arrow_inner"
@
click=
"leftClickEvent"
>
<img
src=
"@/assets/images/arrow_left.png"
class=
"img"
alt=
""
@
click=
"leftClickEvent"
/>
<img
src=
"@/assets/images/arrow_left.png"
class=
"img"
alt=
""
@
click=
"leftClickEvent"
/>
<img
src=
"@/assets/images/arrow_circle.png"
class=
"circle"
alt=
""
/>
<img
src=
"@/assets/images/arrow_circle.png"
class=
"circle"
alt=
""
/>
</div>
</div>
</div>
<!-- 左箭头 end -->
<!-- 左箭头 end -->
<!-- 右箭头 开始 -->
<!-- 右箭头 开始 -->
<div
class=
"right_arrow"
>
<div
class=
"right_arrow"
>
<img
src=
"@/assets/images/arrow_right.png"
class=
"img"
alt=
""
@
click=
"rightClickEvent"
/>
<div
class=
"arrow_inner"
@
click=
"rightClickEvent"
>
<img
src=
"@/assets/images/arrow_right.png"
class=
"img"
alt=
""
/>
<img
src=
"@/assets/images/arrow_circle.png"
class=
"circle"
alt=
""
/>
<img
src=
"@/assets/images/arrow_circle.png"
class=
"circle"
alt=
""
/>
</div>
</div>
</div>
<!-- 右箭头 end -->
<!-- 右箭头 end -->
</div>
</div>
</
template
>
</
template
>
...
@@ -54,20 +58,28 @@ export default {
...
@@ -54,20 +58,28 @@ export default {
bottom
:
0
;
bottom
:
0
;
z-index
:
10
;
z-index
:
10
;
width
:
100px
;
width
:
100px
;
.arrow_inner
{
position
:
fixed
;
width
:
100px
;
height
:
50vh
;
top
:
50%
;
transform
:
translateY
(
-50%
);
z-index
:
14
;
cursor
:
pointer
;
}
.img
{
.img
{
width
:
48px
;
width
:
48px
;
height
:
48px
;
height
:
48px
;
opacity
:
0
;
opacity
:
0
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
fixed
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
z-index
:
12
;
}
}
.circle
{
.circle
{
width
:
84px
;
width
:
84px
;
height
:
84px
;
height
:
84px
;
position
:
fixed
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
//
transform
:
translateY
(
-50%
);
//
transform
:
translateY
(
-50%
);
margin-top
:
-42px
;
margin-top
:
-42px
;
...
@@ -103,6 +115,7 @@ export default {
...
@@ -103,6 +115,7 @@ export default {
animation
:
rotate360
1.2s
ease-out
0s
;
animation
:
rotate360
1.2s
ease-out
0s
;
}
}
}
}
@keyframes
rotate360
{
@keyframes
rotate360
{
100
%
{
100
%
{
transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment