Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 9a7ef036
authored
May 25, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(backButton): 新增 全局组件 返回按钮
1 parent
1e109536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
src/components/venusBackButton/index.vue
src/components/venusBackButton/index.vue
0 → 100644
View file @
9a7ef03
<
template
>
<el-button
class=
"venus-back-button"
type=
"text"
:style=
"
{ width: `${size}px`, height: `${size}px` }"
@click="handleBack">
<i
class=
"el-icon-back"
:style=
"
{ fontSize: `${size * 0.6}px` }">
</i>
</el-button>
</
template
>
<
script
>
export
default
{
name
:
"VenusBackButton"
,
props
:
{
size
:
{
type
:
Number
,
default
:
32
,
},
},
methods
:
{
handleBack
()
{
this
.
$router
.
back
();
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
.venus-back-button
{
padding
:
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
transition
:
color
200ms
,
background-color
200ms
;
color
:
#303133
;
background-color
:
white
;
border-radius
:
6px
;
&:hover
{
color
:
#2a58ad
;
background-color
:
rgba
(
245
,
245
,
245
);
}
}
</
style
>
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