<!-- 路段/停车场营收排行 -->
<template>
	<view class="ranking">
		<TableRanking :loading="loading" :title="title" :tableTh="tableTh" :tableData="tableData"/>
	</view>
</template>

<script>
	import TableRanking from '@/components/tableRanking.vue'
	export default {
		components: {
			TableRanking
		},
		props: {
			loading: {
				type: Boolean,
				default: false
			},
			title: {
				type: String,
				default: ''
			},
			tableTh: {
				type: Array,
				default: () => []
			},
			tableData: {
				type: Object,
				default: () => {
					return {
						current: 1,
						total: 0,
						list: []
					}
				}
			}
		}
	}
</script>
<style lang="scss" scoped>
	.ranking-title {
		text-align: center;
		margin-bottom: 10px;
	}
</style>
