Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
rbc-demo
Commits
c4254cf2
Commit
c4254cf2
authored
Jan 18, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(@gms/gms-plugin-billexpand): 按钮组悬浮位置错误
parent
2ba90028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
buttonGrouop.vue
...p/@gms/gms-plugin-billexpand/src/control/buttonGrouop.vue
+12
-2
No files found.
develop/@gms/gms-plugin-billexpand/src/control/buttonGrouop.vue
View file @
c4254cf2
<
template
>
<
template
>
<div
class=
"btngroup-container"
:style=
"btnContainerStyle"
>
<div
ref=
"btnGroup"
class=
"btngroup-container"
:style=
"btnContainerStyle"
>
<ButtonGroup
class=
"button-group"
>
<ButtonGroup
class=
"button-group"
>
<div
v-for=
"(item, index) in btnGroup"
:key=
"index"
>
<div
v-for=
"(item, index) in btnGroup"
:key=
"index"
>
<gms-button
:define=
"item.buttonDefine"
:context=
"context"
:billStateDisable=
"item.billStateDisable"
></gms-button>
<gms-button
:define=
"item.buttonDefine"
:context=
"context"
:billStateDisable=
"item.billStateDisable"
></gms-button>
...
@@ -35,7 +35,7 @@ export default {
...
@@ -35,7 +35,7 @@ export default {
mounted
()
{
mounted
()
{
// 判断是否在typesBill组件中
// 判断是否在typesBill组件中
const
location
=
this
.
define
.
layout
.
adsorption
===
'bottom'
?
'bottom'
:
'top'
const
location
=
this
.
define
.
layout
.
adsorption
===
'bottom'
?
'bottom'
:
'top'
if
(
document
.
querySelector
(
'.initHeight'
))
{
if
(
this
.
checkParent
(
))
{
if
(
location
===
'top'
)
{
if
(
location
===
'top'
)
{
this
.
btnContainerStyle
=
{
this
.
btnContainerStyle
=
{
position
:
'fixed'
,
position
:
'fixed'
,
...
@@ -55,6 +55,16 @@ export default {
...
@@ -55,6 +55,16 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
checkParent
()
{
let
curNode
=
this
.
$refs
.
btnGroup
while
(
curNode
)
{
if
(
!
curNode
.
nodeName
)
break
if
(
curNode
.
nodeName
.
toLowerCase
()
==
'body'
)
break
if
(
curNode
.
classList
.
contains
(
'initHeight'
))
return
true
curNode
=
curNode
.
parentNode
}
return
false
},
getBtnGroup
()
{
getBtnGroup
()
{
const
keys
=
this
.
define
.
config
?
this
.
define
.
config
.
btnConfig
:
[]
const
keys
=
this
.
define
.
config
?
this
.
define
.
config
.
btnConfig
:
[]
this
.
btnGroup
=
keys
.
map
((
item
)
=>
{
this
.
btnGroup
=
keys
.
map
((
item
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment