diff --git a/src/assets/images/chart/charts/pie-circle.png b/src/assets/images/chart/charts/pie-circle.png
new file mode 100644
index 00000000..7d99ed04
Binary files /dev/null and b/src/assets/images/chart/charts/pie-circle.png differ
diff --git a/src/assets/images/chart/charts/process.png b/src/assets/images/chart/charts/process.png
index b4457696..4be18d73 100644
Binary files a/src/assets/images/chart/charts/process.png and b/src/assets/images/chart/charts/process.png differ
diff --git a/src/packages/components/Charts/Mores/Process/config.ts b/src/packages/components/Charts/Mores/Process/config.ts
index 0bac2293..34d86502 100644
--- a/src/packages/components/Charts/Mores/Process/config.ts
+++ b/src/packages/components/Charts/Mores/Process/config.ts
@@ -4,9 +4,36 @@ import { ProcessConfig } from './index'
import { chartInitConfig } from '@/settings/designSetting'
import cloneDeep from 'lodash/cloneDeep'
+
+export const types = [
+ {
+ label: '线形',
+ value: 'line'
+ },
+ {
+ label: '圆形',
+ value: 'circle'
+ },
+ {
+ label: '仪表盘',
+ value: 'dashboard'
+ },
+]
+
+export const indicatorPlacements = [
+ {
+ label: '内部',
+ value: 'inside'
+ },
+ {
+ label: '外部',
+ value: 'outside'
+ }
+]
+
export const option = {
dataset: 36,
- type: "circle",
+ type: types[2].value,
color: '#4992FFFF',
// 指标位置(线条时可用)
indicatorPlacement: "outside"
diff --git a/src/packages/components/Charts/Mores/Process/config.vue b/src/packages/components/Charts/Mores/Process/config.vue
index c6b1909d..74003105 100644
--- a/src/packages/components/Charts/Mores/Process/config.vue
+++ b/src/packages/components/Charts/Mores/Process/config.vue
@@ -38,7 +38,7 @@ import {
} from '@/components/Pages/ChartItemSetting'
// 获取 option 的数据,便于使用 typeof 获取类型
-import { option } from './config'
+import { option, types, indicatorPlacements} from './config'
const props = defineProps({
optionData: {
@@ -46,30 +46,4 @@ const props = defineProps({
required: true
}
})
-
-const types = [
- {
- label: '线形',
- value: 'line'
- },
- {
- label: '圆形',
- value: 'circle'
- },
- {
- label: '仪表盘',
- value: 'dashboard'
- },
-]
-
-const indicatorPlacements = [
- {
- label: '里面',
- value: 'inside'
- },
- {
- label: '外边',
- value: 'outside'
- }
-]
\ No newline at end of file
diff --git a/src/packages/components/Charts/Mores/Process/index.ts b/src/packages/components/Charts/Mores/Process/index.ts
index d841e4f9..093aa03a 100644
--- a/src/packages/components/Charts/Mores/Process/index.ts
+++ b/src/packages/components/Charts/Mores/Process/index.ts
@@ -13,7 +13,7 @@ export const ProcessConfig: ConfigType = {
// 配置组件渲染 Components 格式: VC + key
conKey: 'VCProcess',
// 名称
- title: '多类进度条',
+ title: 'NaiveUI-进度',
// 子分类目录
category: ChatCategoryEnum.MORE,
// 子分类目录
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 @@
diff --git a/src/packages/components/Charts/Pies/PieCircle/index.ts b/src/packages/components/Charts/Pies/PieCircle/index.ts
new file mode 100644
index 00000000..deec7530
--- /dev/null
+++ b/src/packages/components/Charts/Pies/PieCircle/index.ts
@@ -0,0 +1,14 @@
+import image from '@/assets/images/chart/charts/pie-circle.png'
+import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
+import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
+
+export const PieCircleConfig: ConfigType = {
+ key: 'PieCircle',
+ chartKey: 'VPieCircle',
+ conKey: 'VCPieCircle',
+ title: '饼图-环形',
+ category: ChatCategoryEnum.PIE,
+ categoryName: ChatCategoryEnumName.PIE,
+ package: PackagesCategoryEnum.CHARTS,
+ image
+}
diff --git a/src/packages/components/Charts/Pies/PieCircle/index.vue b/src/packages/components/Charts/Pies/PieCircle/index.vue
new file mode 100644
index 00000000..a4bf95da
--- /dev/null
+++ b/src/packages/components/Charts/Pies/PieCircle/index.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
diff --git a/src/packages/components/Charts/Pies/index.ts b/src/packages/components/Charts/Pies/index.ts
index f5ce290b..f89116fc 100644
--- a/src/packages/components/Charts/Pies/index.ts
+++ b/src/packages/components/Charts/Pies/index.ts
@@ -1,3 +1,4 @@
import { PieCommonConfig } from './PieCommon/index'
+import { PieCircleConfig } from './PieCircle/index'
-export default [PieCommonConfig]
\ No newline at end of file
+export default [PieCommonConfig, PieCircleConfig]
\ No newline at end of file
diff --git a/src/packages/components/Decorates/Mores/Number/index.vue b/src/packages/components/Decorates/Mores/Number/index.vue
index ccf30bd3..806ec4e1 100644
--- a/src/packages/components/Decorates/Mores/Number/index.vue
+++ b/src/packages/components/Decorates/Mores/Number/index.vue
@@ -6,13 +6,8 @@
-
+
@@ -23,8 +18,10 @@