tooltip优化-柱状图

This commit is contained in:
qianming
2024-09-29 18:02:35 +08:00
parent 326d1c166a
commit 88e4717631
2 changed files with 28 additions and 1 deletions

View File

@@ -1048,7 +1048,7 @@ export const widgetBarchart = {
name: 'fontColor',
required: false,
placeholder: '',
value: ''
value: '#fff'
},
{
type: 'el-input-number',
@@ -1138,6 +1138,14 @@ export const widgetBarchart = {
],
value: 'shadow'
},
{
type: 'vue-color',
label: '背景颜色',
name: 'tooltipBackgroundColor',
required: false,
placeholder: '',
value: '#333'
},
{
type: 'el-input-number',
label: '字体字号',
@@ -1195,6 +1203,22 @@ export const widgetBarchart = {
],
value: 'sans-serif'
},
{
type: 'vue-color',
label: '边框颜色',
name: 'tooltipBorderColor',
required: false,
placeholder: '',
value: '#333'
},
{
type: 'el-input-number',
label: '边框宽度',
name: 'tooltipBorderWidth',
required: false,
placeholder: '',
value: 0
},
],
},
{

View File

@@ -282,6 +282,9 @@ export default {
axisPointer: {
type: optionsSetup.tooltipAxisPointerType,
},
backgroundColor: optionsSetup.tooltipBackgroundColor,
borderColor: optionsSetup.tooltipBorderColor,
borderWidth: optionsSetup.tooltipBorderWidth,
textStyle: {
color: optionsSetup.tooltipColor,
fontSize: optionsSetup.tooltipFontSize,