vue-ad-bar

0.1.2 • Public • Published

vue-ad-bar

Usage

Install

$ npm i vue-ad-bar

Mount

<template>
  <div class="hello">
    <vue-ad-bar :img="adsPic" bgColor="#d8d8d8" link="https://vv13.cn"></vue-ad-bar>
    ...
  </div>
</template>
<script>
import VueAdBar from "vue-ad-bar";
import adsPic from "./ads.png";

export default {
  components: {
    VueAdBar
  },
  data() {
    return {
      adsPic,
    };
  }
};
</script>

API

key desc type default required
img ad img url String true
width max width of the ad bar String "1200px"
height max height of the ad bar String "80px"
link ad link String
bgColor bar background-color String
showClose show close btn Boolean true
click trigger by click ad-bar Event
close trigger by close btn Event
close close icon Slot

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i vue-ad-bar

    Weekly Downloads

    0

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    70.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • zwhvv13