From 27b6f008c136a28166b24decb5e77ac35ccac763 Mon Sep 17 00:00:00 2001 From: JM <32119686+jiaming743@users.noreply.github.com> Date: Sat, 7 Sep 2019 12:59:15 +0800 Subject: [PATCH 01/63] update 2019-09-07 --- docs/guide/README.md | 6 ++++++ docs/guide/scrollBoard.md | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/docs/guide/README.md b/docs/guide/README.md index a7c0c31..3c589cc 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -20,6 +20,12 @@ ::: tip TIP 建议使用Chrome浏览器。 + +组件props均未设置`deep`监听,刷新props时,请直接生成**新的props**,请勿直接更新props下某一个属性,这样组件将无法刷新状态。 + +`this.someProps.someAttr = ['foo', 'foo']`是无效的 + +`this.someProps = { someAttr: ['foo', 'foo'] }`才是有效的 ::: ## 安装 diff --git a/docs/guide/scrollBoard.md b/docs/guide/scrollBoard.md index d024b75..6edc62e 100644 --- a/docs/guide/scrollBoard.md +++ b/docs/guide/scrollBoard.md @@ -6,6 +6,14 @@ sidebarDepth: 2 轮播表可以单条轮播也可以整页轮播,支持点击事件,展示数据使用**v-html**渲染,因此你可以传递`html`字符串,定制个性化元素。 +::: tip TIP +组件内部没有设置`deep`监听props,数据变更时,请生成新的props,不然组件将无法刷新状态 + +`this.config.data = ['foo', 'foo']`是无效的 + +`this.config = { data: ['foo', 'foo'] }`才是有效的 +::: + ```html ``` From dcc80b8068d075caed59d4a44a3d594ad0be195d Mon Sep 17 00:00:00 2001 From: jiaming743 <743192023@qq.com> Date: Wed, 11 Sep 2019 11:03:13 +0800 Subject: [PATCH 02/63] update 2019-09-11 --- docs/guide/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/guide/README.md b/docs/guide/README.md index 3c589cc..d8abadf 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -58,4 +58,12 @@ Vue.use(dataV) import { borderBox1 } from '@jiaminghi/data-view' Vue.use(borderBox1) -``` \ No newline at end of file +``` + +## UMD版 + +`UMD`版可直接使用`script`标签引入,`UMD`版文件下载请移步[UMD](https://github.com/jiaming743/DataV/tree/master/dist),引入后将自动把所有组件注册为**Vue全局组件**,引入`DataV`前请确保已引入`Vue`。 + + +<<< @/docs/guide/umdExample.html + \ No newline at end of file From d1ee1777b594b5be4a5764135de5d6ee80294f04 Mon Sep 17 00:00:00 2001 From: JM <32119686+jiaming743@users.noreply.github.com> Date: Thu, 19 Sep 2019 11:28:13 +0800 Subject: [PATCH 03/63] update 2019-09-19 --- demo/electronic-file/src/components/datav/CenterCmp.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/electronic-file/src/components/datav/CenterCmp.vue b/demo/electronic-file/src/components/datav/CenterCmp.vue index e93602c..eb9d0ae 100644 --- a/demo/electronic-file/src/components/datav/CenterCmp.vue +++ b/demo/electronic-file/src/components/datav/CenterCmp.vue @@ -1,5 +1,5 @@ + +` + +async function addGrowingIOSDK () { + const indexPagePath = DIST_PATH + '/index.html' + + let indexPage = await readFile(indexPagePath) + + if (!indexPage) return false + + if (indexPage.indexOf(GrowingIO_SDK) !== -1) return true + + const addedSDKHead = indexPage.match(/(\s|\S)*<\/head>/)[0] + .replace('', `${GrowingIO_SDK}\n `) + + indexPage = indexPage.replace(/(\s|\S)*<\/head>/, addedSDKHead) + + return writeFile(indexPagePath, indexPage) +} + const { host, user, pass } = config || getNodeParams() if (!host || !user || !pass) { @@ -74,10 +102,24 @@ if (!host || !user || !pass) { return false } -print.tip('Start Upload!') +try { + (async function () { + print.tip('Start add Growing IO SDK!') + + const addGIOSDK = await addGrowingIOSDK() -ftp.connect({ - host, - user, - password: pass -}) + if (!addGIOSDK) return print.error('Add Growing IO SDK fail!') + + print.tip('Add Growing IO SDK success!') + + print.tip('Start Upload!') + + ftp.connect({ + host, + user, + password: pass + }) + })() +} catch { + print.error('Deploy Fail!') +} From 80e9c46f729260e176da2189092054ba3ecc8ec6 Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Fri, 8 Nov 2019 15:05:14 +0800 Subject: [PATCH 15/63] update readme --- docs/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/README.md b/docs/README.md index 7daadda..a63743b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4,11 +4,11 @@ heroImage: ./favicon.ico actionText: 快速开始 → actionLink: /guide/ features: -- title: 易学易用 +- title: 开源免费 + details: 长期维护,不断添加新组件以丰富组件库 +- title: 开箱即用 details: 大部分组件设置宽高或配置简单的数据即可使用 -- title: 体积轻量 - details: 未压缩前包体积为100K左右,压缩后仅20K左右 - title: 视觉绚丽 - details: 视觉效果绚丽,通过组合不同的配置项可以达到多变的视觉效果 + details: 通过组合不同的配置项可以达到多变的视觉效果 footer: MIT Licensed | Copyright © 2018-present JiaMing --- \ No newline at end of file From 9e658ce834994a93472bdaf1649f2110eed4a252 Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Fri, 8 Nov 2019 15:05:27 +0800 Subject: [PATCH 16/63] add baidu verify --- docs/.vuepress/public/baidu_verify_cQ2lJRe4pj.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/.vuepress/public/baidu_verify_cQ2lJRe4pj.html diff --git a/docs/.vuepress/public/baidu_verify_cQ2lJRe4pj.html b/docs/.vuepress/public/baidu_verify_cQ2lJRe4pj.html new file mode 100644 index 0000000..75bdd9e --- /dev/null +++ b/docs/.vuepress/public/baidu_verify_cQ2lJRe4pj.html @@ -0,0 +1 @@ +cQ2lJRe4pj \ No newline at end of file From 5e0983f8336fb1ff8eb33ea53058e52fd22de30d Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Fri, 8 Nov 2019 16:26:26 +0800 Subject: [PATCH 17/63] add new keywords --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 50eac25..4426bad 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "keywords": [ "vue", "dataview", - "charts" + "charts", + "MIT", + "开源" ], "author": "JiaMing <743192023@qq.com>", "license": "MIT", From ff7bf27bbf92228e8ff0dba5dc180f89d42262db Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Fri, 8 Nov 2019 16:26:40 +0800 Subject: [PATCH 18/63] update index --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index a63743b..cdd302a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,5 +10,5 @@ features: details: 大部分组件设置宽高或配置简单的数据即可使用 - title: 视觉绚丽 details: 通过组合不同的配置项可以达到多变的视觉效果 -footer: MIT Licensed | Copyright © 2018-present JiaMing +footer: MIT Licensed | Copyright © 2018-present DataV-Team --- \ No newline at end of file From d938296d1127c76f9843eaa80eb9d8f0c4b82cc6 Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Fri, 8 Nov 2019 16:27:28 +0800 Subject: [PATCH 19/63] add new cmp for auto turn react home page --- docs/.vuepress/components/reactPageBtn.vue | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/.vuepress/components/reactPageBtn.vue diff --git a/docs/.vuepress/components/reactPageBtn.vue b/docs/.vuepress/components/reactPageBtn.vue new file mode 100644 index 0000000..3915b0a --- /dev/null +++ b/docs/.vuepress/components/reactPageBtn.vue @@ -0,0 +1,27 @@ + + + + + From e173db5dfc8b05dde51396150ef95eb1a6e3cb47 Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Fri, 8 Nov 2019 16:29:08 +0800 Subject: [PATCH 20/63] add react version nav --- docs/guide/README.md | 2 +- docs/guide/activeRingChart.md | 2 +- docs/guide/borderBox.md | 2 +- docs/guide/capsuleChart.md | 1 + docs/guide/charts.md | 2 +- docs/guide/conicalColumnChart.md | 2 +- docs/guide/decoration.md | 2 +- docs/guide/digitalFlop.md | 2 ++ docs/guide/flylineChart.md | 2 +- docs/guide/fullScreenContainer.md | 2 +- docs/guide/loading.md | 2 +- docs/guide/percentPond.md | 2 ++ docs/guide/scrollBoard.md | 2 +- docs/guide/scrollRankingBoard.md | 2 +- docs/guide/waterLevelPond.md | 2 ++ 15 files changed, 18 insertions(+), 11 deletions(-) diff --git a/docs/guide/README.md b/docs/guide/README.md index 3c39d0d..3b3d7e8 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -1,6 +1,6 @@ # 介绍 -组件库基于Vue,主要用于构建大屏(**全屏**)数据展示页面即**数据可视化**,具有多种类型组件可供使用: +组件库基于Vue,主要用于构建大屏(**全屏**)数据展示页面即**数据可视化**,具有多种类型组件可供使用: * **边框** diff --git a/docs/guide/activeRingChart.md b/docs/guide/activeRingChart.md index 0b44ed4..560958f 100644 --- a/docs/guide/activeRingChart.md +++ b/docs/guide/activeRingChart.md @@ -4,7 +4,7 @@ sidebarDepth: 2 # 动态环图 -基于**Charts**封装。 +基于**Charts**封装。 ```html diff --git a/docs/guide/borderBox.md b/docs/guide/borderBox.md index 655f88c..017ad77 100644 --- a/docs/guide/borderBox.md +++ b/docs/guide/borderBox.md @@ -1,6 +1,6 @@ # 边框 -边框均由**SVG**元素绘制,体积轻量不失真,它们的使用极为方便。 +边框均由**SVG**元素绘制,体积轻量不失真,它们的使用极为方便。 ::: tip TIP 边框组件默认宽高均为100%,组件内容将被slot插槽分发至边框组件下class为`border-box-content`的容器内,如有布局需要,请针对该容器布局,以免产生样式冲突,导致边框显示异常。 diff --git a/docs/guide/capsuleChart.md b/docs/guide/capsuleChart.md index ad17d8f..15222cf 100644 --- a/docs/guide/capsuleChart.md +++ b/docs/guide/capsuleChart.md @@ -4,6 +4,7 @@ sidebarDepth: 2 # 胶囊柱图 + ```html diff --git a/docs/guide/charts.md b/docs/guide/charts.md index 0d5d219..843b550 100644 --- a/docs/guide/charts.md +++ b/docs/guide/charts.md @@ -1,6 +1,6 @@ # 图表 -图表组件基于[Charts](http://charts.jiaminghi.com)封装,只需要将对应图表`option`数据传入组件即可。 +图表组件基于[Charts](http://charts.jiaminghi.com)封装,只需要将对应图表`option`数据传入组件即可。 ::: tip TIP 当窗口发生**resize**时,图表组件会重新计算宽高以便于自适应。 diff --git a/docs/guide/conicalColumnChart.md b/docs/guide/conicalColumnChart.md index a3d0521..4e4c0bb 100644 --- a/docs/guide/conicalColumnChart.md +++ b/docs/guide/conicalColumnChart.md @@ -4,7 +4,7 @@ sidebarDepth: 2 # 锥形柱图 -锥形柱图是特殊的柱状图,他将根据数值大小,降序排列锥形柱,适合排名类数据展示。 +锥形柱图是特殊的柱状图,他将根据数值大小,降序排列锥形柱,适合排名类数据展示。 ```html diff --git a/docs/guide/decoration.md b/docs/guide/decoration.md index 8007a5d..6426454 100644 --- a/docs/guide/decoration.md +++ b/docs/guide/decoration.md @@ -1,6 +1,6 @@ # 装饰 -你可以使用装饰去点缀你的页面,以增强视觉效果,与边框组件相同,他们也是用**SVG**元素绘制的。 +你可以使用装饰去点缀你的页面,以增强视觉效果,与边框组件相同,他们也是用**SVG**元素绘制的。 ## dv-decoration-1
diff --git a/docs/guide/digitalFlop.md b/docs/guide/digitalFlop.md index f01d97e..daba6c5 100644 --- a/docs/guide/digitalFlop.md +++ b/docs/guide/digitalFlop.md @@ -4,6 +4,8 @@ sidebarDepth: 2 # 数字翻牌器 + + ```html ``` diff --git a/docs/guide/flylineChart.md b/docs/guide/flylineChart.md index 2b8fc7e..c63a4e4 100644 --- a/docs/guide/flylineChart.md +++ b/docs/guide/flylineChart.md @@ -4,7 +4,7 @@ sidebarDepth: 2 # 飞线图 -设置一个中心点,若干飞线点,即可得到动态飞线图,组件提供的[dev模式](/guide/flylineChart.html#dev模式)可以帮你快速配置飞线点位置。 +设置一个中心点,若干飞线点,即可得到动态飞线图,组件提供的[dev模式](/guide/flylineChart.html#dev模式)可以帮你快速配置飞线点位置。 ```html diff --git a/docs/guide/fullScreenContainer.md b/docs/guide/fullScreenContainer.md index 994bcac..5ef5fd8 100644 --- a/docs/guide/fullScreenContainer.md +++ b/docs/guide/fullScreenContainer.md @@ -1,6 +1,6 @@ # 全屏容器 -数据可视化页面一般在浏览器中进行全屏展示,全屏容器将根据屏幕比例及当前浏览器窗口大小,自动进行缩放处理。浏览器全屏后,全屏容器将充满屏幕。 +数据可视化页面一般在浏览器中进行全屏展示,全屏容器将根据屏幕比例及当前浏览器窗口大小,自动进行缩放处理。浏览器全屏后,全屏容器将充满屏幕。 ::: tip TIP 建议在全屏容器内使用**百分比**搭配**flex**进行布局,以便于在不同的分辨率下得到较为一致的展示效果。 diff --git a/docs/guide/loading.md b/docs/guide/loading.md index 426f1dc..0cd72b2 100644 --- a/docs/guide/loading.md +++ b/docs/guide/loading.md @@ -1,6 +1,6 @@ # Loading加载 -数据尚未加载完成时,可以显示Loading效果,增强用户体验。 +数据尚未加载完成时,可以显示Loading效果,增强用户体验。
Loading... diff --git a/docs/guide/percentPond.md b/docs/guide/percentPond.md index d7c1761..60008e2 100644 --- a/docs/guide/percentPond.md +++ b/docs/guide/percentPond.md @@ -4,6 +4,8 @@ sidebarDepth: 2 # 进度池 + + ```html ``` diff --git a/docs/guide/scrollBoard.md b/docs/guide/scrollBoard.md index 6edc62e..e6ceb9d 100644 --- a/docs/guide/scrollBoard.md +++ b/docs/guide/scrollBoard.md @@ -4,7 +4,7 @@ sidebarDepth: 2 # 轮播表 -轮播表可以单条轮播也可以整页轮播,支持点击事件,展示数据使用**v-html**渲染,因此你可以传递`html`字符串,定制个性化元素。 +轮播表可以单条轮播也可以整页轮播,支持点击事件,展示数据使用**v-html**渲染,因此你可以传递`html`字符串,定制个性化元素。 ::: tip TIP 组件内部没有设置`deep`监听props,数据变更时,请生成新的props,不然组件将无法刷新状态 diff --git a/docs/guide/scrollRankingBoard.md b/docs/guide/scrollRankingBoard.md index c0c46bc..cbb69ca 100644 --- a/docs/guide/scrollRankingBoard.md +++ b/docs/guide/scrollRankingBoard.md @@ -4,7 +4,7 @@ sidebarDepth: 2 # 排名轮播表 -排名轮播表同轮播表类似,也可以选择单条轮播或整页轮播。 +排名轮播表同轮播表类似,也可以选择单条轮播或整页轮播。 ```html diff --git a/docs/guide/waterLevelPond.md b/docs/guide/waterLevelPond.md index 2ddec78..bced2d1 100644 --- a/docs/guide/waterLevelPond.md +++ b/docs/guide/waterLevelPond.md @@ -4,6 +4,8 @@ sidebarDepth: 2 # 水位图 + + 水位图有三种形态,多种配置,具体使用示例如下: ```html From 9a4f825831c0c831a6b9b28ece98a0028c0dfc72 Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Fri, 8 Nov 2019 16:29:14 +0800 Subject: [PATCH 21/63] update umd --- docs/guide/umdExample.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/guide/umdExample.html b/docs/guide/umdExample.html index 7a145fc..18a41af 100644 --- a/docs/guide/umdExample.html +++ b/docs/guide/umdExample.html @@ -3,11 +3,10 @@ DataV - - - - + + + diff --git a/docs/DataV/index.js b/docs/DataV/index.js index 0c6a3f0..8c3dec2 100644 --- a/docs/DataV/index.js +++ b/docs/DataV/index.js @@ -15,6 +15,7 @@ import borderBox7 from './components/borderBox7/index' import borderBox8 from './components/borderBox8/index' import borderBox9 from './components/borderBox9/index' import borderBox10 from './components/borderBox10/index' +import borderBox11 from './components/borderBox11/index' // decoration import decoration1 from './components/decoration1/index' @@ -59,6 +60,7 @@ export default function (Vue) { Vue.use(borderBox8) Vue.use(borderBox9) Vue.use(borderBox10) + Vue.use(borderBox11) // decoration Vue.use(decoration1) From 8d586ec3ee0e3ddf2ce6a5dc8ef48187073c26a1 Mon Sep 17 00:00:00 2001 From: JM <743192023@qq.com> Date: Sat, 30 Nov 2019 20:58:37 +0800 Subject: [PATCH 25/63] update 2019-11-30 --- .../DataV/components/borderBox11/src/main.vue | 79 ++++++++++++++++++- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/docs/DataV/components/borderBox11/src/main.vue b/docs/DataV/components/borderBox11/src/main.vue index 5d3d1b3..4b57e31 100644 --- a/docs/DataV/components/borderBox11/src/main.vue +++ b/docs/DataV/components/borderBox11/src/main.vue @@ -51,11 +51,86 @@ + + + + + + + + + + + + + + 全球能源占比和国家分布 + + Date: Sat, 30 Nov 2019 22:51:09 +0800 Subject: [PATCH 26/63] update 2019-11-30 --- .../DataV/components/borderBox11/src/main.vue | 170 +++++++++++++----- docs/guide/borderBox.md | 23 +++ 2 files changed, 144 insertions(+), 49 deletions(-) diff --git a/docs/DataV/components/borderBox11/src/main.vue b/docs/DataV/components/borderBox11/src/main.vue index 4b57e31..46f9ddd 100644 --- a/docs/DataV/components/borderBox11/src/main.vue +++ b/docs/DataV/components/borderBox11/src/main.vue @@ -2,20 +2,21 @@
- + - - + + - + + > + + + + > + + + > + + + > + + + > + + + > + + - 全球能源占比和国家分布 + {{ title }} +## dv-border-box-11 +
+ dv-border-box-11 +
+ +```html +dv-border-box-11 +``` + + +### 特殊配置 + +属性|说明|类型|可选值|默认值 +:--:|:--:|:--:|:--:|:--: +title|边框标题|`String`|`-`|`''` +titleWidth|标题宽度|`Number`|`-`|`250` + + diff --git a/docs/DataV/components/borderBox10/src/main.vue b/docs/DataV/components/borderBox10/src/main.vue index b860083..fcaf766 100644 --- a/docs/DataV/components/borderBox10/src/main.vue +++ b/docs/DataV/components/borderBox10/src/main.vue @@ -1,5 +1,5 @@ @@ -35,7 +68,6 @@ export default { position: relative; width: 100%; height: 100%; - box-shadow: inset 0 0 25px 3px #1d48c4; border-radius: 6px; .border { diff --git a/docs/DataV/components/borderBox2/src/main.vue b/docs/DataV/components/borderBox2/src/main.vue index 78255f5..ec55116 100644 --- a/docs/DataV/components/borderBox2/src/main.vue +++ b/docs/DataV/components/borderBox2/src/main.vue @@ -1,14 +1,18 @@