1.0.9 • Published 3 years ago

vuehotzone2 v1.0.9

Weekly downloads
12
License
Apache-2.0 Licens...
Repository
github
Last release
3 years ago

Introduction

A vue2 hotzone component

基于开源项目vue-hotzone二次开发

Install

npm i vuehotzone2 --save
# or
yarn add vuehotzone2

Use

// Use in global
import hotzone from 'vuehotzone2'
import 'vuehotzone2/dist/vuehotzone2.css'

Vue.use(hotzone)
<hotzone [options]></hotzone>

Options

Attributes

You can set them to your data function

AttributeTypeDescriptionKeys
imageStringimage of hotzone(required: true)
maxNumbermax number of zones
zonesInitArrayinit zonesitem(heightPer, leftPer, topPer, widthPer)

Events

Event NameDescriptionParameters
changetriggers when the zones changesthe array of the zones
addtriggers when the zone addthe add zone item
removetriggers when the zone removethe index of the remove zone
overRangetriggers when zones number > maxthe index of the overRange zone
erasetriggers when add zone overRange or smaller than the minimum area(48*48)the index of the erase zone

License

vuehotzone2 is Apache licensed.

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