From af32755617e2b042e31424b14d352482a81c851b Mon Sep 17 00:00:00 2001 From: jiaming743 <743192023@qq.com> Date: Fri, 5 Jul 2019 16:19:18 +0800 Subject: [PATCH] move components use statments --- src/components/index.js | 77 -------------------------------------- src/index.js | 82 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 80 insertions(+), 79 deletions(-) delete mode 100644 src/components/index.js diff --git a/src/components/index.js b/src/components/index.js deleted file mode 100644 index 91036b0..0000000 --- a/src/components/index.js +++ /dev/null @@ -1,77 +0,0 @@ -import fullScreenContainer from './fullScreenContainer/index' -import loading from './loading/index' - -// border box -import borderBox1 from './borderBox1/index' -import borderBox2 from './borderBox2/index' -import borderBox3 from './borderBox3/index' -import borderBox4 from './borderBox4/index' -import borderBox5 from './borderBox5/index' -import borderBox6 from './borderBox6/index' -import borderBox7 from './borderBox7/index' -import borderBox8 from './borderBox8/index' -import borderBox9 from './borderBox9/index' - -// decoration -import decoration1 from './decoration1/index' -import decoration2 from './decoration2/index' -import decoration3 from './decoration3/index' -import decoration4 from './decoration4/index' -import decoration5 from './decoration5/index' -import decoration6 from './decoration6/index' -import decoration7 from './decoration7/index' -import decoration8 from './decoration8/index' -import decoration9 from './decoration9/index' -import decoration10 from './decoration10/index' - -// charts -import charts from './charts/index' - -import activeRingChart from './activeRingChart' -import waterLevelPond from './waterLevelPond/index' -import percentPond from './percentPond/index' -import flylineChart from './flylineChart' -import conicalColumnChart from './conicalColumnChart' -import digitalFlop from './digitalFlop' -import scrollBoard from './scrollBoard/index' -import scrollRankingBoard from './scrollRankingBoard/index' - -export default function (Vue) { - Vue.use(fullScreenContainer) - Vue.use(loading) - - // border box - Vue.use(borderBox1) - Vue.use(borderBox2) - Vue.use(borderBox3) - Vue.use(borderBox4) - Vue.use(borderBox5) - Vue.use(borderBox6) - Vue.use(borderBox7) - Vue.use(borderBox8) - Vue.use(borderBox9) - - // decoration - Vue.use(decoration1) - Vue.use(decoration2) - Vue.use(decoration3) - Vue.use(decoration4) - Vue.use(decoration5) - Vue.use(decoration6) - Vue.use(decoration7) - Vue.use(decoration8) - Vue.use(decoration9) - Vue.use(decoration10) - - // charts - Vue.use(charts) - - Vue.use(activeRingChart) - Vue.use(waterLevelPond) - Vue.use(percentPond) - Vue.use(flylineChart) - Vue.use(conicalColumnChart) - Vue.use(digitalFlop) - Vue.use(scrollBoard) - Vue.use(scrollRankingBoard) -} diff --git a/src/index.js b/src/index.js index d7d2441..2bd2c5c 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,83 @@ -import components from './components/index' +/** + * IMPORT COMPONENTS + */ +import fullScreenContainer from './components/fullScreenContainer/index' +import loading from './components/loading/index' +// border box +import borderBox1 from './components/borderBox1/index' +import borderBox2 from './components/borderBox2/index' +import borderBox3 from './components/borderBox3/index' +import borderBox4 from './components/borderBox4/index' +import borderBox5 from './components/borderBox5/index' +import borderBox6 from './components/borderBox6/index' +import borderBox7 from './components/borderBox7/index' +import borderBox8 from './components/borderBox8/index' +import borderBox9 from './components/borderBox9/index' + +// decoration +import decoration1 from './components/decoration1/index' +import decoration2 from './components/decoration2/index' +import decoration3 from './components/decoration3/index' +import decoration4 from './components/decoration4/index' +import decoration5 from './components/decoration5/index' +import decoration6 from './components/decoration6/index' +import decoration7 from './components/decoration7/index' +import decoration8 from './components/decoration8/index' +import decoration9 from './components/decoration9/index' +import decoration10 from './components/decoration10/index' + +// charts +import charts from './components/charts/index' + +import activeRingChart from './components/activeRingChart' +import waterLevelPond from './components/waterLevelPond/index' +import percentPond from './components/percentPond/index' +import flylineChart from './components/flylineChart' +import conicalColumnChart from './components/conicalColumnChart' +import digitalFlop from './components/digitalFlop' +import scrollBoard from './components/scrollBoard/index' +import scrollRankingBoard from './components/scrollRankingBoard/index' + +/** + * USE COMPONENTS + */ export default function (Vue) { - components(Vue) + Vue.use(fullScreenContainer) + Vue.use(loading) + + // border box + Vue.use(borderBox1) + Vue.use(borderBox2) + Vue.use(borderBox3) + Vue.use(borderBox4) + Vue.use(borderBox5) + Vue.use(borderBox6) + Vue.use(borderBox7) + Vue.use(borderBox8) + Vue.use(borderBox9) + + // decoration + Vue.use(decoration1) + Vue.use(decoration2) + Vue.use(decoration3) + Vue.use(decoration4) + Vue.use(decoration5) + Vue.use(decoration6) + Vue.use(decoration7) + Vue.use(decoration8) + Vue.use(decoration9) + Vue.use(decoration10) + + // charts + Vue.use(charts) + + Vue.use(activeRingChart) + Vue.use(waterLevelPond) + Vue.use(percentPond) + Vue.use(flylineChart) + Vue.use(conicalColumnChart) + Vue.use(digitalFlop) + Vue.use(scrollBoard) + Vue.use(scrollRankingBoard) }