Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
chore: apply custom plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tajiri committed Mar 22, 2020
1 parent 7ae5302 commit a634001
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/vue-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Vue, { PropType } from 'vue'
import { ChartData, ChartOptions } from 'chart.js'
import { Doughnut, Bar, mixins } from 'vue-chartjs'
import { Plugin } from '@nuxt/types'
import { useDayjsAdapter } from './chartjs-adapter-dayjs'

type ChartVCData = { chartData: ChartData }
type ChartVCMethod = {
Expand All @@ -11,6 +12,8 @@ type ChartVCComputed = unknown
type ChartVCProps = { options: Object }

const VueChartPlugin: Plugin = () => {
useDayjsAdapter()

const { reactiveProp } = mixins

Vue.component<ChartVCData, ChartVCMethod, ChartVCComputed, ChartVCProps>(
Expand Down

0 comments on commit a634001

Please sign in to comment.