2.0.0 • Published 2 years ago

vue-event-report v2.0.0

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
2 years ago

vue-event-report

vue event report component

Getting started

  • make sure node and npm installed;

Install

> npm install vue-event-report

Usage

main.js
import vue from 'vue';
import vue_event_report from 'vue-event-report';

// install
vue.use(vue_event_report);
// set report handler
vue_event_report.setReportHandler(({ event, data }) => {
    if (event == 'click') {
        // click event
    } else if (event == 'exposure') {
        // exposure event
    }
})
app.vue
<template>
  <div>
    <div v-report="{ key: value }">
    </div>
    <div v-report:click="{ key: value }">
    </div>
    <div v-report:exposure="{ key: value }">
    </div>
  </div>
</template>

Development

  • make sure node and npm installed;
  • clone the repo to local;
  • run npm install to install node modules;
  • run npm run build to get an unminified build file at lib folder;
2.0.0

2 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago