gotop-button
v1.0.0
Published
Button for going to top.
Downloads
5
Readme
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>