mirror of
https://github.com/KevinMidboe/vue-chartjs.git
synced 2025-10-29 18:00:20 +00:00
Refactor modules
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<test-chart :width="100" :height="200" :player={wins:'12'} :opponent={wins:'23'}></test-chart>
|
<bar-example :width="100" :height="200" :player={wins:'12'} :opponent={wins:'23'}></bar-example>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TestChart from './components/TestChart'
|
import BarExample from './examples/BarExample'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { TestChart }
|
components: { BarExample }
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// import BarChart from './BaseCharts/Bar'
|
import BarChart from '../BaseCharts/Bar'
|
||||||
import BarChart from './BaseCharts/Line'
|
|
||||||
|
|
||||||
export default BarChart.extend({
|
export default BarChart.extend({
|
||||||
props: ['player', 'opponent'],
|
props: ['player', 'opponent'],
|
||||||
Reference in New Issue
Block a user