Skip to content

Commit 00a40a4

Browse files
committed
fix: fix plugin
1 parent dc98d6e commit 00a40a4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export {
1818

1919
const CoreuiVueCharts = {
2020
install (Vue) {
21-
for (let component in [
22-
CChartBar, CChartLine, CChartDoughnut,
23-
CChartRadar, CChartPie,CChartPolarArea
24-
]) {
25-
Vue.component(component, component)
26-
}
21+
Vue.component('CChartBar', CChartBar)
22+
Vue.component('CChartLine', CChartLine)
23+
Vue.component('CChartDoughnut', CChartDoughnut)
24+
Vue.component('CChartRadar', CChartRadar)
25+
Vue.component('CChartPie', CChartPie)
26+
Vue.component('CChartPolarArea', CChartPolarArea)
2727
}
2828
}
2929

0 commit comments

Comments
 (0)