Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 156c23cb
authored
Apr 24, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化AppMain结构
1 parent
473da4e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
15 deletions
linkwe-pc/src/components/Pagination/index.vue
linkwe-pc/src/layout/components/AppMain.vue
linkwe-pc/src/styles/index.scss
linkwe-pc/src/components/Pagination/index.vue
View file @
156c23c
...
...
@@ -82,7 +82,7 @@ export default {
scrollTo
()
{
setTimeout
(()
=>
{
this
.
$refs
.
pagination
.
parentNode
.
scrollTop
=
0
document
.
querySelector
(
'
.page.
container'
).
scrollTop
=
0
document
.
querySelector
(
'
#page-
container'
).
scrollTop
=
0
},
200
)
},
},
...
...
linkwe-pc/src/layout/components/AppMain.vue
View file @
156c23c
<
template
>
<!--
<el-scrollbar
class=
"page-scrollbar"
>
-->
<div
class=
"app-main"
>
<transition
name=
"fade-transform"
mode=
"out-in"
v-if=
"!isActiveMicroApp"
>
<router-view
class=
"page container"
:key=
"key"
/>
<!--
<keep-alive
:include=
"cachedViews"
>
<div
class=
"page-wrap"
>
<transition
name=
"fade-transform"
mode=
"out-in"
v-if=
"!isActiveMicroApp"
>
<router-view
class=
"page container"
id=
"page-container"
:key=
"key"
/>
<!--
<keep-alive
:include=
"cachedViews"
>
</keep-alive>
-->
</transition>
<div
v-loading=
"loading"
class=
"micro-app-wrap container"
v-show=
"isActiveMicroApp"
>
<div
id=
"micro-app"
class=
"height100"
>
<!--
<div
id=
"app"
class=
"mask"
style=
"position: absolute"
>
<i
class=
"el-icon-loading cc"
></i>
</div>
-->
</transition>
<div
v-loading=
"loading"
class=
"micro-app-wrap height100"
v-show=
"isActiveMicroApp"
>
<div
id=
"micro-app"
class=
"height100"
></div>
</div>
</div>
</div>
...
...
@@ -84,18 +82,17 @@ export default {
overflow-y
:
auto
;
overflow-x
:
hidden
;
margin-top
:
20px
;
padding
:
0
15px
0
20px
;
}
.container
{
.page-wrap
{
position
:
initial
!important
;
//
用以解决加载遮罩层随内容滚动问题
height
:
100%
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
scroll-behavior
:
smooth
;
padding
:
0
15px
0
20px
;
}
.page
{
position
:
initial
!important
;
//
用以解决加载遮罩层随内容滚动问题
//
background
:
#fff
;
//
border-radius
:
var
(
--border-radius-big
);
}
.micro-app-wrap
{
position
:
relative
;
...
...
linkwe-pc/src/styles/index.scss
View file @
156c23c
...
...
@@ -349,7 +349,7 @@ div:focus {
.card-group-index
+
.g-card
{
margin-top
:
0
;
}
.page.
container
>
.g-card
{
#page-
container
>
.g-card
{
overflow
:
initial
;
}
...
...
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