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
e4754c03
Commit
e4754c03
authored
Feb 16, 2022
by
乔延琦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-yuancheng' into 'develop'
fix: popover滚动问题 See merge request GFP/RBC/rbc-frontend!47
parents
16a92500
d716c521
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletions
+30
-1
index.vue
...ms-plugin-billexpand/src/control/baseDataSelect/index.vue
+30
-1
No files found.
develop/@gms/gms-plugin-billexpand/src/control/baseDataSelect/index.vue
View file @
e4754c03
<
template
>
<
template
>
<div
class=
"rbc-basedata"
>
<div
class=
"rbc-basedata"
>
<el-popover
trigger=
"manual"
v-model=
"dataListShow"
:visible-arrow=
"false"
:width=
"searchPopperMinWidth"
>
<el-popover
ref=
"popover"
trigger=
"manual"
v-model=
"dataListShow"
:visible-arrow=
"false"
:width=
"searchPopperMinWidth"
>
<div
class=
"select-box"
slot=
"reference"
>
<div
class=
"select-box"
slot=
"reference"
>
<Input
ref=
"searchInput"
v-model=
"selectValue"
:disabled=
"disabled"
:readonly=
"readonly || multiple"
:class=
"
{'multiple-input': multiple
&&
!readonly}" placeholder="" @on-change="handleChange" @on-focus="handleFocus" @on-blur="handleBlur" @keydown.down.native="handleSelectNext" @keydown.up.native="handleSelectPrev" @keydown.enter.native="handleSelected">
<Input
ref=
"searchInput"
v-model=
"selectValue"
:disabled=
"disabled"
:readonly=
"readonly || multiple"
:class=
"
{'multiple-input': multiple
&&
!readonly}" placeholder="" @on-change="handleChange" @on-focus="handleFocus" @on-blur="handleBlur" @keydown.down.native="handleSelectNext" @keydown.up.native="handleSelectPrev" @keydown.enter.native="handleSelected">
<Icon
type=
"ios-close-circle"
:class=
"
{'clear-icon': true, 'hidden-icon': disabled || readonly || !selectValue }" slot="suffix" @click="clearList" />
<Icon
type=
"ios-close-circle"
:class=
"
{'clear-icon': true, 'hidden-icon': disabled || readonly || !selectValue }" slot="suffix" @click="clearList" />
...
@@ -104,9 +104,38 @@ export default {
...
@@ -104,9 +104,38 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
addDomListener
()
addResizeListener
(
this
.
$el
,
this
.
handleResize
)
addResizeListener
(
this
.
$el
,
this
.
handleResize
)
},
},
beforeDestroy
()
{
this
.
removeDomListener
()
},
methods
:
{
methods
:
{
addDomListener
()
{
if
(
this
.
isVxe
)
{
let
doms
=
document
.
querySelectorAll
(
'.rootClass'
)
if
(
doms
.
length
)
{
doms
.
forEach
(
item
=>
{
item
.
addEventListener
(
'scroll'
,
this
.
refreshPopover
)
})
}
}
},
removeDomListener
()
{
if
(
this
.
isVxe
)
{
let
doms
=
document
.
querySelectorAll
(
'.rootClass'
)
if
(
doms
.
length
)
{
doms
.
forEach
(
item
=>
{
item
.
removeEventListener
(
'scroll'
,
this
.
refreshPopover
)
})
}
}
},
refreshPopover
()
{
if
(
this
.
dataListShow
)
{
this
.
$refs
.
popover
.
updatePopper
()
}
},
handleResize
()
{
handleResize
()
{
this
.
searchPopperMinWidth
=
this
.
$el
.
getBoundingClientRect
().
width
this
.
searchPopperMinWidth
=
this
.
$el
.
getBoundingClientRect
().
width
},
},
...
...
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