1.0.0 • Published 5 years ago

gotop-button v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

gotop-button

Button for going to top.

Build Setup

# install
npm install gotop-footer --save

预览

预览

##use

<template>
  <div id="app">
    <div class="list_item" v-for="(item, index) in CityData" :key="index">
      <span>{{item.name}}: {{item.value}}</span>
    </div>
    <go-top-button></go-top-button>
  </div>
</template>

<script>
import goTopButton from './myPlugin/goTopButton'; // import
import cityData from './data'; // Sample data
export default {
  name: 'app',
  components: {
    goTopButton
  },
  data () {
    return {
      CityData: cityData
    }
  }
}
</script>