From f883fec1f65fca4e8265282b39e55d4a15182370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Mon, 16 Jun 2025 14:04:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=A5=BC=E5=9B=BE?= =?UTF-8?q?=E7=BA=B9=E7=90=86=E9=85=8D=E7=BD=AE=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chartConfiguration/vcharts/index.ts | 3 +- .../chartConfiguration/vcharts/style.ts | 40 +++++++++++++++++++ .../VChart/Pies/VChartPie/config.ts | 4 +- .../VChart/Pies/VChartPie/config.vue | 11 ++++- 4 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 src/packages/chartConfiguration/vcharts/style.ts diff --git a/src/packages/chartConfiguration/vcharts/index.ts b/src/packages/chartConfiguration/vcharts/index.ts index b773da19..4f7b95bd 100644 --- a/src/packages/chartConfiguration/vcharts/index.ts +++ b/src/packages/chartConfiguration/vcharts/index.ts @@ -1,2 +1,3 @@ export * from './legends' -export * from './label' \ No newline at end of file +export * from './label' +export * from './style' \ No newline at end of file diff --git a/src/packages/chartConfiguration/vcharts/style.ts b/src/packages/chartConfiguration/vcharts/style.ts new file mode 100644 index 00000000..3524c960 --- /dev/null +++ b/src/packages/chartConfiguration/vcharts/style.ts @@ -0,0 +1,40 @@ +export const styleConfig = { + texture: [ + { + label: '无纹理', + value: '' + }, + { + label: '圆形', + value: 'circle' + }, + { + label: '钻石', + value: 'diamond' + }, + { + label: '矩形', + value: 'rect' + }, + { + label: '竖线', + value: 'horizontal-line' + }, + { + label: '横线', + value: 'vertical-line' + }, + { + label: '右向左斜线', + value: 'bias-rl' + }, + { + label: '左向右斜线', + value: 'bias-lr' + }, + { + label: '格子', + value: 'grid' + } + ] +} diff --git a/src/packages/components/VChart/Pies/VChartPie/config.ts b/src/packages/components/VChart/Pies/VChartPie/config.ts index 418ee426..7c8c27cb 100644 --- a/src/packages/components/VChart/Pies/VChartPie/config.ts +++ b/src/packages/components/VChart/Pies/VChartPie/config.ts @@ -49,7 +49,9 @@ export const option: IPieOption & { dataset?: any } = { lineWidth: 0, // 颜色 stroke: '#ffffff' - } + }, + // 纹理 + texture: '' }, state: { hover: { diff --git a/src/packages/components/VChart/Pies/VChartPie/config.vue b/src/packages/components/VChart/Pies/VChartPie/config.vue index e1ca7277..c310188f 100644 --- a/src/packages/components/VChart/Pies/VChartPie/config.vue +++ b/src/packages/components/VChart/Pies/VChartPie/config.vue @@ -44,6 +44,13 @@ + + + @@ -64,7 +71,7 @@ :min="0" > - +