You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
377 B
16 lines
377 B
import Vue from 'vue'
|
|
|
|
Vue.prototype.GLOBAL ={
|
|
//用户cookie
|
|
user_key:'user',
|
|
// 检查元素可见
|
|
visible_in_container:function(p,e) {
|
|
var z = p.getBoundingClientRect();
|
|
var r = e.getBoundingClientRect();
|
|
|
|
// Check style visiblilty and off-limits
|
|
return !(r.top > z.bottom || r.bottom < z.top ||
|
|
r.left > z.right || r.right < z.left);
|
|
}
|
|
|
|
}
|
|
|