0.1.2 • Published 6 years ago

vue-ad-bar v0.1.2

Weekly downloads
4
License
MIT
Repository
-
Last release
6 years ago

vue-ad-bar

npm.io

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

keydesctypedefaultrequired
imgad img urlStringtrue
widthmax width of the ad barString"1200px"
heightmax height of the ad barString"80px"
linkad linkString
bgColorbar background-colorString
showCloseshow close btnBooleantrue
clicktrigger by click ad-barEvent
closetrigger by close btnEvent
closeclose iconSlot
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago