UNPKG
vimo-dt
Version:
latest (1.0.4)
1.0.4
1.0.2
1.0.1
0.10.0
A Vue2.x UI Project For Mobile & HyBrid
github.com/vm-component/vimo
vm-component/vimo
vimo-dt
/
src
/
util
/
get-insert-position.js
13 lines
(12 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * 获取弹出层组件插入位置 *
@param
{
String
}
position
- 元素ID *
@return
{
Element
} *
@private
*/
export
default
function
getInsertPosition
(
position
) {
return
(
document
.
getElementById
(position) ||
document
.
body
) }