Skip to content

Commit e382111

Browse files
committed
fix: small fixes
1 parent 44f8032 commit e382111

File tree

2 files changed

+4
-92
lines changed

2 files changed

+4
-92
lines changed

src/views/Dashboard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,10 @@
385385
no-sorting
386386
>
387387
<td slot="avatar" class="text-center" slot-scope="{item}">
388-
<div class="avatar">
389-
<img :src="item.avatar.url" class="img-avatar" alt="">
388+
<div class="c-avatar">
389+
<img :src="item.avatar.url" class="c-avatar-img" alt="">
390390
<span
391-
class="avatar-status"
391+
class="c-avatar-status"
392392
:class="`bg-${item.avatar.status || 'secondary'}`"
393393
></span>
394394
</div>

src/views/charts/MainChartExample.vue

Lines changed: 1 addition & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -97,94 +97,6 @@ export default {
9797
}
9898
}
9999
}
100-
},
101-
// mounted () {
102-
// const brandSuccess = getStyle('--success') || '#4dbd74'
103-
// const brandInfo = getStyle('--info') || '#20a8d8'
104-
// const brandDanger = getStyle('--danger') || '#f86c6b'
105-
//
106-
// let elements = 27
107-
// const data1 = []
108-
// const data2 = []
109-
// const data3 = []
110-
//
111-
// for (let i = 0; i <= elements; i++) {
112-
// data1.push(random(50, 200))
113-
// data2.push(random(80, 100))
114-
// data3.push(65)
115-
// }
116-
// this.renderChart({
117-
// datasets: [
118-
// {
119-
// label: 'My First dataset',
120-
// backgroundColor: hexToRgba(brandInfo, 10),
121-
// borderColor: brandInfo,
122-
// pointHoverBackgroundColor: '#fff',
123-
// borderWidth: 2,
124-
// data: data1
125-
// },
126-
// {
127-
// label: 'My Second dataset',
128-
// backgroundColor: 'transparent',
129-
// borderColor: brandSuccess,
130-
// pointHoverBackgroundColor: '#fff',
131-
// borderWidth: 2,
132-
// data: data2
133-
// },
134-
// {
135-
// label: 'My Third dataset',
136-
// backgroundColor: 'transparent',
137-
// borderColor: brandDanger,
138-
// pointHoverBackgroundColor: '#fff',
139-
// borderWidth: 1,
140-
// borderDash: [8, 5],
141-
// data: data3
142-
// }
143-
// ]
144-
// }, {
145-
// tooltips: {
146-
// enabled: false,
147-
// custom: CustomTooltips,
148-
// intersect: true,
149-
// mode: 'index',
150-
// position: 'nearest',
151-
// callbacks: {
152-
// labelColor: function (tooltipItem, chart) {
153-
// return { backgroundColor: chart.data.datasets[tooltipItem.datasetIndex].borderColor }
154-
// }
155-
// }
156-
// },
157-
// maintainAspectRatio: false,
158-
// legend: {
159-
// display: false
160-
// },
161-
// scales: {
162-
// xAxes: [{
163-
// gridLines: {
164-
// drawOnChartArea: false
165-
// }
166-
// }],
167-
// yAxes: [{
168-
// ticks: {
169-
// beginAtZero: true,
170-
// maxTicksLimit: 5,
171-
// stepSize: Math.ceil(250 / 5),
172-
// max: 250
173-
// },
174-
// gridLines: {
175-
// display: true
176-
// }
177-
// }]
178-
// },
179-
// elements: {
180-
// point: {
181-
// radius: 0,
182-
// hitRadius: 10,
183-
// hoverRadius: 4,
184-
// hoverBorderWidth: 3
185-
// }
186-
// }
187-
// })
188-
// }
100+
}
189101
}
190102
</script>

0 commit comments

Comments
 (0)