1.0.6 • Published 9 months ago

draw-hot-spots v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

安装

npm i draw-hot-spots

注册

import DrawHotSpots from "draw-hot-spots";

import "draw-hot-spots/draw-hot-spots.css";

Vue.use(DrawHotSpots);

使用画热区组件

 <draw-hot-spots  v-model="mapAreaDatas"></draw-hot-Spots>
draw-hot-spots属性
属性必须类型描述
v-modelArray获取热区的信息
imgString热区背景图

使用渲染热区组件

  <render-hot-spots  :mapAreaDatas="mapAreaDatas" :showHotSpot="true" @hot-spots-event="handleHotSpotsEvent"></render-hot-spots>
draw-hot-spots属性
属性必须类型描述
mapAreaDatasArray热区的信息
imgString热区背景图
showHotSpotBoolean是否显示热区
unitString像素单位默认px
defaultFontSizeNumber像素单位为rem时设置

最终上线效果

1693215551593 npm.io

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago