diff --git a/src/packages/components/Charts/Mores/WaterPolo/config.ts b/src/packages/components/Charts/Mores/WaterPolo/config.ts index e671ed00..89441cca 100644 --- a/src/packages/components/Charts/Mores/WaterPolo/config.ts +++ b/src/packages/components/Charts/Mores/WaterPolo/config.ts @@ -3,6 +3,37 @@ import { CreateComponentType } from '@/packages/index.d' import { WaterPoloConfig } from './index' import cloneDeep from 'lodash/cloneDeep' +export const shapes = [ + { + label: '圆形', + value: 'circle' + }, + { + label: '正方形', + value: 'rect' + }, + { + label: '带圆角的正方形', + value: 'roundRect' + }, + { + label: '正三角形', + value: 'triangle' + }, + { + label: '菱形', + value: 'diamond' + }, + { + label: '水滴', + value: 'pin' + }, + { + label: '箭头', + value: 'arrow' + }, +] + export const includes = [] export const option = { @@ -10,6 +41,7 @@ export const option = { series: [ { type: 'liquidFill', + shape: shapes[0].value, radius: '90%', data: [0], center: ['50%', '50%'], diff --git a/src/packages/components/Charts/Mores/WaterPolo/config.vue b/src/packages/components/Charts/Mores/WaterPolo/config.vue index 029b9919..4121b380 100644 --- a/src/packages/components/Charts/Mores/WaterPolo/config.vue +++ b/src/packages/components/Charts/Mores/WaterPolo/config.vue @@ -15,19 +15,26 @@ placeholder="水球数值" > + + + + + + + + > + > @@ -44,7 +51,7 @@