0.0.10 • Published 5 years ago

vue-image-mark v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago