Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
有来技术
vue3-element-admin
提交
3fcbd549
V
vue3-element-admin
项目概览
有来技术
/
vue3-element-admin
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue3-element-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3fcbd549
编写于
5月 26, 2022
作者:
郝
郝先瑞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复控制台的一些警告问题
上级
c03db1d1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
11 deletion
+14
-11
package.json
package.json
+2
-1
src/components/RightPanel/index.vue
src/components/RightPanel/index.vue
+1
-1
src/layout/components/TagsView/ScrollPane.vue
src/layout/components/TagsView/ScrollPane.vue
+2
-3
src/layout/components/TagsView/index.vue
src/layout/components/TagsView/index.vue
+4
-4
src/main.ts
src/main.ts
+2
-0
src/utils/resize.ts
src/utils/resize.ts
+3
-2
未找到文件。
package.json
浏览文件 @
3fcbd549
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
"
@wangeditor/editor-for-vue
"
:
"
^5.1.10
"
,
"
@wangeditor/editor-for-vue
"
:
"
^5.1.10
"
,
"
axios
"
:
"
^0.24.0
"
,
"
axios
"
:
"
^0.24.0
"
,
"
better-scroll
"
:
"
^2.4.2
"
,
"
better-scroll
"
:
"
^2.4.2
"
,
"
default-passive-events
"
:
"
^2.0.0
"
,
"
echarts
"
:
"
^5.2.2
"
,
"
echarts
"
:
"
^5.2.2
"
,
"
element-plus
"
:
"
^2.1.8
"
,
"
element-plus
"
:
"
^2.1.8
"
,
"
nprogress
"
:
"
^0.2.0
"
,
"
nprogress
"
:
"
^0.2.0
"
,
...
@@ -40,12 +41,12 @@
...
@@ -40,12 +41,12 @@
"
eslint-config-prettier
"
:
"
^8.5.0
"
,
"
eslint-config-prettier
"
:
"
^8.5.0
"
,
"
eslint-plugin-prettier
"
:
"
^4.0.0
"
,
"
eslint-plugin-prettier
"
:
"
^4.0.0
"
,
"
eslint-plugin-vue
"
:
"
^8.6.0
"
,
"
eslint-plugin-vue
"
:
"
^8.6.0
"
,
"
fast-glob
"
:
"
^3.2.11
"
,
"
husky
"
:
"
^7.0.4
"
,
"
husky
"
:
"
^7.0.4
"
,
"
prettier
"
:
"
^2.6.2
"
,
"
prettier
"
:
"
^2.6.2
"
,
"
sass
"
:
"
^1.43.4
"
,
"
sass
"
:
"
^1.43.4
"
,
"
typescript
"
:
"
^4.5.4
"
,
"
typescript
"
:
"
^4.5.4
"
,
"
vite
"
:
"
^2.9.7
"
,
"
vite
"
:
"
^2.9.7
"
,
"
fast-glob
"
:
"
^3.2.11
"
,
"
vite-plugin-svg-icons
"
:
"
^2.0.1
"
,
"
vite-plugin-svg-icons
"
:
"
^2.0.1
"
,
"
vue-tsc
"
:
"
^0.34.7
"
"
vue-tsc
"
:
"
^0.34.7
"
},
},
...
...
src/components/RightPanel/index.vue
浏览文件 @
3fcbd549
...
@@ -58,7 +58,7 @@ watch(show, value => {
...
@@ -58,7 +58,7 @@ watch(show, value => {
});
});
function
addEventClick
()
{
function
addEventClick
()
{
window
.
addEventListener
(
'
click
'
,
closeSidebar
);
window
.
addEventListener
(
'
click
'
,
closeSidebar
,
{
passive
:
true
}
);
}
}
function
closeSidebar
(
evt
:
any
)
{
function
closeSidebar
(
evt
:
any
)
{
...
...
src/layout/components/TagsView/ScrollPane.vue
浏览文件 @
3fcbd549
...
@@ -35,7 +35,7 @@ const visitedViews = computed(() => tagsView.visitedViews);
...
@@ -35,7 +35,7 @@ const visitedViews = computed(() => tagsView.visitedViews);
const
scrollWrapper
=
computed
(()
=>
proxy
?.
$refs
.
scrollContainer
.
$refs
.
wrap$
);
const
scrollWrapper
=
computed
(()
=>
proxy
?.
$refs
.
scrollContainer
.
$refs
.
wrap$
);
onMounted
(()
=>
{
onMounted
(()
=>
{
scrollWrapper
.
value
.
addEventListener
(
'
scroll
'
,
emitScroll
,
true
)
scrollWrapper
.
value
.
addEventListener
(
'
scroll
'
,
emitScroll
,
{
passive
:
true
}
)
})
})
onBeforeUnmount
(()
=>
{
onBeforeUnmount
(()
=>
{
scrollWrapper
.
value
.
removeEventListener
(
'
scroll
'
,
emitScroll
)
scrollWrapper
.
value
.
removeEventListener
(
'
scroll
'
,
emitScroll
)
...
@@ -81,8 +81,7 @@ function moveToTarget(currentTag: TagView) {
...
@@ -81,8 +81,7 @@ function moveToTarget(currentTag: TagView) {
)
{
)
{
prevTag
=
tagListDom
[
k
];
prevTag
=
tagListDom
[
k
];
}
}
if
(
if
((
tagListDom
[
k
]
as
any
).
dataset
.
path
===
(
tagListDom
[
k
]
as
any
).
dataset
.
path
===
visitedViews
.
value
[
currentIndex
+
1
].
path
visitedViews
.
value
[
currentIndex
+
1
].
path
)
{
)
{
nextTag
=
tagListDom
[
k
];
nextTag
=
tagListDom
[
k
];
...
...
src/layout/components/TagsView/index.vue
浏览文件 @
3fcbd549
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<router-link
<router-link
v-for=
"tag in visitedViews"
v-for=
"tag in visitedViews"
:key=
"tag.path"
:key=
"tag.path"
:data-path=
"tag.path"
:class=
"isActive(tag) ? 'active' : ''"
:class=
"isActive(tag) ? 'active' : ''"
:to=
"
{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
:to=
"
{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
class="tags-view__item"
class="tags-view__item"
...
@@ -64,8 +65,7 @@ import {
...
@@ -64,8 +65,7 @@ import {
nextTick
,
nextTick
,
ref
,
ref
,
watch
,
watch
,
onMounted
,
onMounted
ComponentInternalInstance
}
from
'
vue
'
;
}
from
'
vue
'
;
import
path
from
'
path-browserify
'
;
import
path
from
'
path-browserify
'
;
...
@@ -80,7 +80,7 @@ import useStore from '@/store';
...
@@ -80,7 +80,7 @@ import useStore from '@/store';
const
{
tagsView
,
permission
}
=
useStore
();
const
{
tagsView
,
permission
}
=
useStore
();
const
{
proxy
}
=
getCurrentInstance
()
as
ComponentInternalInstance
;
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
const
router
=
useRouter
();
const
router
=
useRouter
();
const
route
=
useRoute
();
const
route
=
useRoute
();
...
@@ -108,7 +108,7 @@ watch(
...
@@ -108,7 +108,7 @@ watch(
watch
(
visible
,
value
=>
{
watch
(
visible
,
value
=>
{
if
(
value
)
{
if
(
value
)
{
document
.
body
.
addEventListener
(
'
click
'
,
closeMenu
);
document
.
body
.
addEventListener
(
'
click
'
,
closeMenu
,
{
passive
:
true
}
);
}
else
{
}
else
{
document
.
body
.
removeEventListener
(
'
click
'
,
closeMenu
);
document
.
body
.
removeEventListener
(
'
click
'
,
closeMenu
);
}
}
...
...
src/main.ts
浏览文件 @
3fcbd549
...
@@ -9,6 +9,8 @@ import 'element-plus/theme-chalk/index.css';
...
@@ -9,6 +9,8 @@ import 'element-plus/theme-chalk/index.css';
import
Pagination
from
'
@/components/Pagination/index.vue
'
;
import
Pagination
from
'
@/components/Pagination/index.vue
'
;
import
'
@/permission
'
;
import
'
@/permission
'
;
import
'
default-passive-events
'
// 引入svg注册脚本
// 引入svg注册脚本
import
'
virtual:svg-icons-register
'
;
import
'
virtual:svg-icons-register
'
;
...
...
src/utils/resize.ts
浏览文件 @
3fcbd549
...
@@ -16,7 +16,7 @@ export default function () {
...
@@ -16,7 +16,7 @@ export default function () {
};
};
const
initResizeEvent
=
()
=>
{
const
initResizeEvent
=
()
=>
{
window
.
addEventListener
(
'
resize
'
,
chartResizeHandler
);
window
.
addEventListener
(
'
resize
'
,
chartResizeHandler
,
{
passive
:
true
}
);
};
};
const
destroyResizeEvent
=
()
=>
{
const
destroyResizeEvent
=
()
=>
{
...
@@ -28,7 +28,8 @@ export default function () {
...
@@ -28,7 +28,8 @@ export default function () {
if
(
sidebarElm
.
value
)
{
if
(
sidebarElm
.
value
)
{
sidebarElm
.
value
.
addEventListener
(
sidebarElm
.
value
.
addEventListener
(
'
transitionend
'
,
'
transitionend
'
,
sidebarResizeHandler
as
EventListener
sidebarResizeHandler
as
EventListener
,
{
passive
:
true
}
);
);
}
}
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录