Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
26fe3e2a
提交
26fe3e2a
authored
1月 07, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(components/backtoup): 新增返回顶部_快捷按钮
同上
上级
b4e493cc
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
50 行增加
和
1 行删除
+50
-1
App.vue
src/App.vue
+1
-0
variables.module.scss
src/assets/styles/variables.module.scss
+1
-1
index.vue
src/components/BackToUp/index.vue
+43
-0
main.js
src/main.js
+3
-0
index.vue
src/views/bi/sale/index.vue
+2
-0
没有找到文件。
src/App.vue
浏览文件 @
26fe3e2a
<
template
>
<router-view
/>
<back-to-up></back-to-up>
</
template
>
<
script
setup
>
...
...
src/assets/styles/variables.module.scss
浏览文件 @
26fe3e2a
...
...
@@ -21,7 +21,7 @@ $menuLightText: #303133;
$menuLightActiveText
:
#409EFF
;
// 基础变量
$base-sidebar-width
:
2
3
0px
;
$base-sidebar-width
:
2
1
0px
;
$sideBarWidth
:
200px
;
// 菜单暗色变量
...
...
src/components/BackToUp/index.vue
0 → 100644
浏览文件 @
26fe3e2a
<
template
>
<div
class=
"back-to-top"
v-show=
"y > 300"
@
click=
"y = 0"
>
<el-icon>
<Top
/>
</el-icon>
</div>
</
template
>
<
script
setup
>
import
{
useWindowScroll
}
from
'@vueuse/core'
const
{
x
,
y
}
=
useWindowScroll
({
behavior
:
'smooth'
})
</
script
>
<
style
scoped
lang=
"scss"
>
.back-to-top
{
position
:
fixed
;
bottom
:
30px
;
right
:
10px
;
z-index
:
999
;
width
:
46px
;
height
:
46px
;
border-radius
:
50%
;
background-color
:
var
(
--
el-bg-color-overlay
);
box-shadow
:
0
0
10px
rgba
(
0
,
0
,
0
,
0
.1
);
cursor
:
pointer
;
transition
:
all
0
.5s
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
i
{
font-size
:
20px
;
color
:
var
(
--
el-text-color-regular
)
}
}
</
style
>
\ No newline at end of file
src/main.js
浏览文件 @
26fe3e2a
...
...
@@ -46,6 +46,8 @@ import GroupLegend from '@/components/ECharts/GroupLegend'
import
NoData
from
'@/components/NoData'
// 树形类目
import
CategoryTree
from
'@/components/CategoryTree'
// 返回头部
import
BackToUp
from
'@/components/BackToUp'
const
app
=
createApp
(
App
)
...
...
@@ -73,6 +75,7 @@ app.component('LevitatedSphere', LevitatedSphere)
app
.
component
(
'GroupLegend'
,
GroupLegend
)
app
.
component
(
'NoData'
,
NoData
)
app
.
component
(
'CategoryTree'
,
CategoryTree
)
app
.
component
(
'BackToUp'
,
BackToUp
)
// 全局插件
app
.
use
(
plugins
)
...
...
src/views/bi/sale/index.vue
浏览文件 @
26fe3e2a
...
...
@@ -609,6 +609,7 @@ init()
background-color
:
var
(
--
el-bg-color-overlay
);
padding
:
20px
;
margin-top
:
20px
;
width
:
100%
;
/* 图容器 */
.echarts_wrap
{
...
...
@@ -648,6 +649,7 @@ init()
background-color
:
var
(
--
el-gray-3
);
margin-top
:
10px
;
cursor
:
context-menu
;
width
:
100%
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论