store.vue
642 Bytes
<template>
<div>
<div class="title title-icon">
<span class="icon"></span>
<span>门店类型</span>
</div>
<div class="container flex">
<pie-chart :id="chart.id" :list="storeData" :keys="chart.keys"></pie-chart>
<Legend :list="storeData" :colors="chart.colors"></Legend>
</div>
</div>
</template>
<script>
import { clientMixin } from '../../mixins/index'
export default {
name: 'Store',
mixins: [clientMixin],
data() {
return {
chart: {
id: 'store',
keys: ['name', 'num'],
colors: ['#4FA0FF', '#7CFFB2', '#FDF006', '#EB6001']
}
}
}
}
</script>