From cef67555bf7efe26770c00936ec0f47857a348b3 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 9 Mar 2023 18:01:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AiDvRender.vue | 2 +- components/AiEchart/template/bar/barChart1.js | 38 +-- packages/bigscreen/designer/config.js | 30 +- ui/packages/tools/AiEchartV2.vue | 286 ++++++++++++++++++ 4 files changed, 314 insertions(+), 42 deletions(-) create mode 100644 ui/packages/tools/AiEchartV2.vue diff --git a/components/AiDvRender.vue b/components/AiDvRender.vue index 09ee0614..fb6ee9fe 100644 --- a/components/AiDvRender.vue +++ b/components/AiDvRender.vue @@ -15,7 +15,7 @@ :key="data.height" :theme="theme" :style="{height: data.height + 'px', width: '100%'}"/> - { - return e.data[e.seriesName] || '' - } - }, - barWidth: 16, + barWidth: 20, barCategoryGap: 40, itemStyle: {} } diff --git a/packages/bigscreen/designer/config.js b/packages/bigscreen/designer/config.js index 0ef74ffd..1053bb49 100644 --- a/packages/bigscreen/designer/config.js +++ b/packages/bigscreen/designer/config.js @@ -12,7 +12,7 @@ const components = [ type: 'barChart1', label: '柱状图1', title: '柱状图', - border: 'border1', + border: 'border6', icon: 'icontext_box', value: '', thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar1.png', @@ -44,7 +44,7 @@ const components = [ value: '', title: '柱状图2', width: 500, - border: 'border1', + border: 'border6', sourceDataId: '', height: 300, thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar2.png', @@ -78,7 +78,7 @@ const components = [ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar3.png', dataX: '', dataY: [], - border: 'border1', + border: 'border6', top: 0, left: 0, zIndex: 1, @@ -110,7 +110,7 @@ const components = [ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar5.png', top: 0, left: 0, - border: 'border1', + border: 'border6', api: '', apiData: [], dataType: 'staticData', @@ -160,7 +160,7 @@ const components = [ value: '', width: 500, sourceDataId: '', - border: 'border1', + border: 'border6', height: 300, thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar8.png', dataX: '', @@ -185,7 +185,7 @@ const components = [ type: 'barChart9', label: '柱状图7', title: '柱状图7', - border: 'border1', + border: 'border6', icon: 'icontext_box', value: '', width: 500, @@ -220,7 +220,7 @@ const components = [ type: 'lineChart1', label: '折线图1', title: '折线图1', - border: 'border1', + border: 'border6', icon: 'icontext_box', value: '', width: 500, @@ -249,7 +249,7 @@ const components = [ type: 'lineChart2', label: '折线图2', title: '折线图2', - border: 'border1', + border: 'border6', icon: 'icontext_box', value: '', width: 500, @@ -279,7 +279,7 @@ const components = [ label: '折线图3', title: '折线图3', icon: 'icontext_box', - border: 'border1', + border: 'border6', value: '', width: 500, height: 300, @@ -309,7 +309,7 @@ const components = [ title: '折线图4', icon: 'icontext_box', value: '', - border: 'border1', + border: 'border6', width: 500, height: 300, zIndex: 1, @@ -338,7 +338,7 @@ const components = [ title: '折线图5', icon: 'icontext_box', value: '', - border: 'border1', + border: 'border6', width: 500, height: 300, zIndex: 1, @@ -374,7 +374,7 @@ const components = [ title: '饼图', icon: 'icontext_box', value: '', - border: 'border1', + border: 'border6', width: 500, height: 300, zIndex: 1, @@ -402,7 +402,7 @@ const components = [ title: '饼图', icon: 'icontext_box', value: '', - border: 'border1', + border: 'border6', width: 500, height: 300, zIndex: 1, @@ -431,7 +431,7 @@ const components = [ title: '饼图', icon: 'icontext_box', value: '', - border: 'border1', + border: 'border6', width: 500, height: 300, zIndex: 1, @@ -469,7 +469,7 @@ const components = [ type: 'table', label: '表格', title: '表格', - border: 'border1', + border: 'border6', width: 650, height: 400, zIndex: 1, diff --git a/ui/packages/tools/AiEchartV2.vue b/ui/packages/tools/AiEchartV2.vue new file mode 100644 index 00000000..1dbeb7f6 --- /dev/null +++ b/ui/packages/tools/AiEchartV2.vue @@ -0,0 +1,286 @@ + + + + +