diff --git a/components/index.js b/components/index.js deleted file mode 100644 index 5d11af8..0000000 --- a/components/index.js +++ /dev/null @@ -1,78 +0,0 @@ -import fullScreenContainer from './fullScreenContainer' -import loading from './loading/index.vue' - -// 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.vue' - -import activeRingChart from './activeRingChart' -import waterLevelPond from './waterLevelPond/index.vue' -import percentPond from './percentPond/index.vue' -import flylineChart from './flylineChart' -import conicalColumnChart from './conicalColumnChart' -import digitalFlop from './digitalFlop' -import scrollBoard from './scrollBoard/index.vue' -import scrollRankingBoard from './scrollRankingBoard/index.vue' - -export default function (Vue) { - Vue.component('dvFullScreenContainer', fullScreenContainer) - - Vue.component('dvLoading', loading) - - // border box - Vue.component('dvBorderBox1', borderBox1) - Vue.component('dvBorderBox2', borderBox2) - Vue.component('dvBorderBox3', borderBox3) - Vue.component('dvBorderBox4', borderBox4) - Vue.component('dvBorderBox5', borderBox5) - Vue.component('dvBorderBox6', borderBox6) - Vue.component('dvBorderBox7', borderBox7) - Vue.component('dvBorderBox8', borderBox8) - Vue.component('dvBorderBox9', borderBox9) - - // decoration - Vue.component('dvDecoration1', decoration1) - Vue.component('dvDecoration2', decoration2) - Vue.component('dvDecoration3', decoration3) - Vue.component('dvDecoration4', decoration4) - Vue.component('dvDecoration5', decoration5) - Vue.component('dvDecoration6', decoration6) - Vue.component('dvDecoration7', decoration7) - Vue.component('dvDecoration8', decoration8) - Vue.component('dvDecoration9', decoration9) - Vue.component('dvDecoration10', decoration10) - - // charts - Vue.component('dvCharts', charts) - - Vue.component('dvActiveRingChart', activeRingChart) - Vue.component('dvWaterLevelPond', waterLevelPond) - Vue.component('dvPercentPond', percentPond) - Vue.component('dvFlylineChart', flylineChart) - Vue.component('dvConicalColumnChart', conicalColumnChart) - Vue.component('dvDigitalFlop', digitalFlop) - Vue.component('dvScrollBoard', scrollBoard) - Vue.component('dvScrollRankingBoard', scrollRankingBoard) -} diff --git a/publish/copyAndAbstractLess.js b/publish/copyAndAbstractLess.js new file mode 100644 index 0000000..9a1192d --- /dev/null +++ b/publish/copyAndAbstractLess.js @@ -0,0 +1,25 @@ +const { copyDir, fileForEach } = require('./plugin/fs') +const { print } = require('./plugin/print') + +const PACKAGE_SRC = './src' +const COMPILE_SRC = './lib' + +async function start () { + const copyPackage = await copyDir(PACKAGE_SRC, COMPILE_SRC) + + if (!copyPackage) { + print.error('Exception in copyPackage!') + + return false + } + + fileForEach(COMPILE_SRC, src => { + print.tip(src) + }) +} + +module.exports = { + start +} + + diff --git a/src/components/activeRingChart/index.js b/src/components/activeRingChart/index.js new file mode 100644 index 0000000..5c11b2c --- /dev/null +++ b/src/components/activeRingChart/index.js @@ -0,0 +1,5 @@ +import ActiveRingChart from './src/main.vue' + +export default function (Vue) { + Vue.component(ActiveRingChart.name, ActiveRingChart) +} diff --git a/components/activeRingChart/index.vue b/src/components/activeRingChart/src/main.vue similarity index 98% rename from components/activeRingChart/index.vue rename to src/components/activeRingChart/src/main.vue index 8d84d9b..56a53bc 100644 --- a/components/activeRingChart/index.vue +++ b/src/components/activeRingChart/src/main.vue @@ -11,14 +11,14 @@ diff --git a/src/components/decoration8/index.js b/src/components/decoration8/index.js new file mode 100644 index 0000000..779b57d --- /dev/null +++ b/src/components/decoration8/index.js @@ -0,0 +1,5 @@ +import Decoration8 from './src/main.vue' + +export default function (Vue) { + Vue.component(Decoration8.name, Decoration8) +} diff --git a/components/decoration8/index.vue b/src/components/decoration8/src/main.vue similarity index 93% rename from components/decoration8/index.vue rename to src/components/decoration8/src/main.vue index 16d7449..09c3a26 100644 --- a/components/decoration8/index.vue +++ b/src/components/decoration8/src/main.vue @@ -26,10 +26,10 @@ diff --git a/src/components/percentPond/index.js b/src/components/percentPond/index.js new file mode 100644 index 0000000..d5edadb --- /dev/null +++ b/src/components/percentPond/index.js @@ -0,0 +1,5 @@ +import PercentPond from './src/main.vue' + +export default function (Vue) { + Vue.component(PercentPond.name, PercentPond) +} diff --git a/components/percentPond/index.vue b/src/components/percentPond/src/main.vue similarity index 99% rename from components/percentPond/index.vue rename to src/components/percentPond/src/main.vue index a6cc9f8..f16d373 100644 --- a/components/percentPond/index.vue +++ b/src/components/percentPond/src/main.vue @@ -49,7 +49,7 @@ import { deepMerge } from '@jiaminghi/charts/lib/util/index' import { deepClone } from '@jiaminghi/c-render/lib/plugin/util' export default { - name: 'PercentPond', + name: 'DvPercentPond', props: { config: { type: Object, diff --git a/src/components/scrollBoard/index.js b/src/components/scrollBoard/index.js new file mode 100644 index 0000000..9ff20e1 --- /dev/null +++ b/src/components/scrollBoard/index.js @@ -0,0 +1,5 @@ +import ScrollBoard from './src/main.vue' + +export default function (Vue) { + Vue.component(ScrollBoard.name, ScrollBoard) +} diff --git a/components/scrollBoard/index.vue b/src/components/scrollBoard/src/main.vue similarity index 99% rename from components/scrollBoard/index.vue rename to src/components/scrollBoard/src/main.vue index 9a952ba..be6d0bb 100644 --- a/components/scrollBoard/index.vue +++ b/src/components/scrollBoard/src/main.vue @@ -47,14 +47,14 @@