Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
水玉婷
ai-wechat
Commits
8c7e6432
Commit
8c7e6432
authored
Jan 22, 2026
by
水玉婷
Browse files
feat:柱图最小宽度,饼图选中样式调整
parent
0f428801
Changes
4
Hide whitespace changes
Inline
Side-by-side
.env.dev
View file @
8c7e6432
# 开发环境配置
# 开发环境配置
#
VITE_API_BASE_URL=http://peddev.cmic.com.cn
VITE_API_BASE_URL=http://peddev.cmic.com.cn
VITE_API_BASE_URL=http://10.17.86.60:8656
#
VITE_API_BASE_URL=http://10.17.86.60:8656
# 应用基础路径
# 应用基础路径
VITE_BASE_PATH=/ai/
VITE_BASE_PATH=/ai/
...
...
src/views/components/ColumnChart.vue
View file @
8c7e6432
...
@@ -327,7 +327,8 @@ const getBaseSeriesConfig = (name: string, data: any[], color: string, yAxisInde
...
@@ -327,7 +327,8 @@ const getBaseSeriesConfig = (name: string, data: any[], color: string, yAxisInde
itemStyle
:
{
color
},
itemStyle
:
{
color
},
barWidth
:
'
auto
'
as
const
,
barWidth
:
'
auto
'
as
const
,
barGap
:
'
30%
'
,
barGap
:
'
30%
'
,
barCategoryGap
:
'
40%
'
barCategoryGap
:
'
40%
'
,
barMaxWidth
:
30
// 最大宽度30px
});
});
// ========== 图表类型配置生成器 ==========
// ========== 图表类型配置生成器 ==========
...
...
src/views/components/PieChart.vue
View file @
8c7e6432
...
@@ -293,11 +293,6 @@ const createPieChartOption = (pieData: any[]) => {
...
@@ -293,11 +293,6 @@ const createPieChartOption = (pieData: any[]) => {
fontSize
:
isManyItems
?
12
:
14
,
fontSize
:
isManyItems
?
12
:
14
,
fontWeight
:
'
bold
'
,
fontWeight
:
'
bold
'
,
color
:
'
#000
'
color
:
'
#000
'
},
itemStyle
:
{
shadowBlur
:
10
,
shadowOffsetX
:
0
,
shadowColor
:
'
rgba(0, 0, 0, 0.5)
'
}
}
},
},
data
:
pieData
,
data
:
pieData
,
...
...
src/views/components/style.less
View file @
8c7e6432
...
@@ -293,6 +293,11 @@ li {
...
@@ -293,6 +293,11 @@ li {
color: @white;
color: @white;
}
}
// 图表块样式
.chart-block {
margin-top: 16px;
}
// 错误消息样式
// 错误消息样式
:deep(.message-error) {
:deep(.message-error) {
line-height: 1.5;
line-height: 1.5;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment