add side nav

This commit is contained in:
jiaming 2018-12-17 16:49:22 +08:00
parent 5622555d4b
commit 2a9b465bb7
1 changed files with 17 additions and 2 deletions

View File

@ -1,6 +1,8 @@
<template>
<div id="chart">
<border-box-7 class="attention">
<side-nav :nav="navData" />
<border-box-7 class="attention" id="attention">
<div class="title">Attention</div>
<div class="text-info">
@ -34,7 +36,7 @@ colors: ['#9cf4a7', '#66d7ee', '#eee966', '#a866ee', '#ee8f66', '#ee66aa']
</div>
</border-box-7>
<border-box-7 class="chart-item">
<border-box-7 class="chart-item" id="radar-chart">
<radar-chart :data="radarChartData1" :colors="colors" class="chart" />
<div class="config-info">
@ -118,6 +120,7 @@ data: {
<highlight-code>
data: {
//
ringFillColor: ['rgba(61, 231, 201, 0.1)'],
ringFillType: 'mulCover', // 线mulCover
}
</highlight-code>
@ -136,6 +139,7 @@ data: {
<highlight-code>
data: {
//
ringFillColor: ['rgba(61, 231, 201, 0.1)'],
ringFillType: 'ring', // 线ring
}
</highlight-code>
@ -474,6 +478,17 @@ export default {
name: 'Chart',
data () {
return {
navData: [
{
title: 'Attention',
target: 'attention'
},
{
title: 'Radar-Chart',
target: 'radar-chart'
}
],
radarChartData1: {
data: [
{