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" > - +