forked from opentiny/tiny-vue
30 lines
509 B
Vue
30 lines
509 B
Vue
<template>
|
|
<div>
|
|
<tiny-pie :options="options"></tiny-pie>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="jsx">
|
|
import { ChartPie } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyPie: ChartPie
|
|
},
|
|
data() {
|
|
return {
|
|
options: {
|
|
type: 'pie',
|
|
selectedMode: 'multipe',
|
|
data: [
|
|
{ value: 100, name: 'VPC' },
|
|
{ value: 90, name: 'IM' },
|
|
{ value: 49, name: 'EIP' },
|
|
{ value: 14, name: 'SG' }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|