Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-portal
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
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 959995fe
authored
Aug 30, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.73.0' into 'master'
上线合并 See merge request
!37
2 parents
24876580
b9df1836
Pipeline
#42
for
959995fe
failed
in 0 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
13 deletions
src/components/DesktopRightSider/DesktopRightSider.vue
src/components/DesktopRightSider/DesktopRightSider.vue
View file @
959995f
<
template
>
<
template
>
<el-main
<el-main
id=
"glsxRightSide"
id=
"glsxRightSide"
class=
"glsx-right-side"
class=
"glsx-right-side"
:style=
"
{ margin: '24px 16px', padding: '24px', background: '#fff', minHeight: '280px' }"
:style=
"
{ margin: '24px 16px', padding: '24px', background: '#fff', minHeight: '280px' }">
>
<el-breadcrumb>
<el-breadcrumb>
<el-breadcrumb-item
class=
"breadcrumb-item"
<el-breadcrumb-item
class=
"breadcrumb-item"
:class=
"
{active: index === breadCrumbList.length - 1, pointer: item.path}"
:class=
"
{active: index === breadCrumbList.length - 1, pointer: item.path}"
...
@@ -14,9 +12,12 @@
...
@@ -14,9 +12,12 @@
</el-breadcrumb-item>
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
<div
v-show=
"showEmpty"
>
<div
v-show=
"showEmpty"
>
<el-empty
description=
"暂无数据"
:image-size=
"imgSize"
></el-empty>
<el-empty
description=
"暂无数据"
:image-size=
"imgSize"
></el-empty>
</div>
</div>
<div
v-show=
"!showEmpty"
id=
"sub-system-frame"
ref=
"elmSubMicro"
></div>
<div
v-show=
"!showEmpty"
id=
"sub-system-frame"
ref=
"elmSubMicro"
></div>
</el-main>
</el-main>
</
template
>
</
template
>
...
@@ -39,13 +40,25 @@ export default {
...
@@ -39,13 +40,25 @@ export default {
// 监听子系统挂载的元素内容变化
// 监听子系统挂载的元素内容变化
const
subMircroEle
=
document
.
getElementById
(
'sub-system-frame'
);
const
subMircroEle
=
document
.
getElementById
(
'sub-system-frame'
);
subMircroEle
.
addEventListener
(
'DOMNodeInserted'
,
function
(
e
)
{
// subMircroEle.addEventListener('DOMNodeInserted', function (e) {
const
target
=
e
.
currentTarget
,
// const target = e.currentTarget,
tarInner
=
target
.
innerHTML
;
// tarInner = target.innerHTML;
if
(
!
state
.
el_sub_innerH
!==
!
tarInner
)
{
// if (!state.el_sub_innerH !== !tarInner) {
state
.
el_sub_innerH
=
target
.
innerHTML
;
// state.el_sub_innerH = target.innerHTML;
// }
// })
const
observer
=
new
MutationObserver
((
mutations
)
=>
{
mutations
.
forEach
((
mutation
)
=>
{
if
(
mutation
.
type
===
'childList'
)
{
const
tarInner
=
subMircroEle
.
innerHTML
;
if
(
state
.
el_sub_innerH
!==
tarInner
)
{
state
.
el_sub_innerH
=
tarInner
;
}
}
})
}
});
});
observer
.
observe
(
subMircroEle
,
{
childList
:
true
,
subtree
:
true
});
})
})
const
showEmpty
=
computed
(()
=>
{
const
showEmpty
=
computed
(()
=>
{
...
@@ -104,7 +117,7 @@ export default {
...
@@ -104,7 +117,7 @@ export default {
}
}
</
style
>
</
style
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import
"styles/variables.less"
;
@import
'styles/variables.less'
;
.glsx-right-side
{
.glsx-right-side
{
position
:
relative
;
position
:
relative
;
}
}
...
...
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