0.0.10 • Published 4 years ago

vue-image-mark v0.0.10

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

npm.io

install

import ImageMark from "./ImageMark";

...
components: { ImageMark },
...

props

nametypedefaultrequireddescription
imageSrcStringtrue图片地址
pointListArraytrue点列表
pointStyleObjectfalse附加到每个点上的样式

events

nameparamsdescriptioin
addpoint {x:Number,y:Number,id:Number,...}x,y均为百分比数值, 必须设置此方法才能在图片上添加点
pointClickpoint {x:Number,y:Number,id:Number,...}
<ImageMark imageSrc="http://static.doveaz.xyz/img/2d.jpg" :pointList="pointList" @add="handleAdd"></ImageMark>
0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago