1.1.4 • Published 3 years ago

vte-drag v1.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

简介

vte悬浮窗组件

使用方式:

在需要实现弹窗拖拽的元素中新建一个新的空div元素,

新建DragElement实例

new DragElement(param1,param2)

​ param1 : 需要被绑定的元素 ​ param2 : vte项目悬浮窗实际地址(全路径) 默认当前域

method:

​ bind(param1) ​ param1 : 需要被绑定的元素

​ description:

​ 将iframe中的事件响应在被嵌入的页面中 ​ 将iframe挂载到被绑定的元素上

​ unBind()

​ description:

​ 将iframe页面以及postMessage事件在父页面中销毁

property

​ handshake(callback)

https://github.com/dollarshaveclub/postmate

​ 实现父子页面postMessage通信的手段(postmate实例)

​ 打包命令

webpack --config ./webpack.condfig.js --mode development

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago