mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
Merge pull request #13582 from dataease/pr@dev-v2@chart-length-limit-fix
fix(图表): 修复不是条形图的图表,在纵轴标签中出现长度限制输入框的问题
This commit is contained in:
commit
ec6f6a2510
@ -414,6 +414,7 @@ onMounted(() => {
|
||||
class="form-item"
|
||||
:class="'form-item-' + themes"
|
||||
:label="t('chart.length_limit')"
|
||||
v-if="showProperty('showLengthLimit')"
|
||||
>
|
||||
<el-input-number
|
||||
:disabled="!state.axisForm.axisLabel.show"
|
||||
|
@ -66,7 +66,8 @@ export class HorizontalBar extends G2PlotChartView<BarOptions, Bar> {
|
||||
'splitLine',
|
||||
'axisForm',
|
||||
'axisLabel',
|
||||
'position'
|
||||
'position',
|
||||
'showLengthLimit'
|
||||
]
|
||||
}
|
||||
axis: AxisType[] = [...BAR_AXIS_TYPE]
|
||||
|
@ -57,7 +57,15 @@ export class ProgressBar extends G2PlotChartView<BarOptions, G2Progress> {
|
||||
'basic-style-selector': ['colors', 'alpha', 'gradient', 'radiusColumnBar'],
|
||||
'label-selector': ['hPosition', 'color', 'fontSize'],
|
||||
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'tooltipFormatter', 'show'],
|
||||
'y-axis-selector': ['name', 'color', 'fontSize', 'axisForm', 'axisLabel', 'position'],
|
||||
'y-axis-selector': [
|
||||
'name',
|
||||
'color',
|
||||
'fontSize',
|
||||
'axisForm',
|
||||
'axisLabel',
|
||||
'position',
|
||||
'showLengthLimit'
|
||||
],
|
||||
'function-cfg': ['emptyDataStrategy']
|
||||
}
|
||||
axis: AxisType[] = [...BAR_AXIS_TYPE, 'yAxisExt']
|
||||
|
@ -66,7 +66,8 @@ export class RangeBar extends G2PlotChartView<BarOptions, Bar> {
|
||||
'splitLine',
|
||||
'axisForm',
|
||||
'axisLabel',
|
||||
'position'
|
||||
'position',
|
||||
'showLengthLimit'
|
||||
]
|
||||
}
|
||||
axis: AxisType[] = [...BAR_AXIS_TYPE, 'yAxisExt']
|
||||
|
@ -68,7 +68,8 @@ export class Waterfall extends G2PlotChartView<WaterfallOptions, G2Waterfall> {
|
||||
'splitLine',
|
||||
'axisForm',
|
||||
'axisLabel',
|
||||
'axisLabelFormatter'
|
||||
'axisLabelFormatter',
|
||||
'showLengthLimit'
|
||||
]
|
||||
}
|
||||
axis: AxisType[] = ['xAxis', 'yAxis', 'filter', 'drill', 'extLabel', 'extTooltip']
|
||||
|
Loading…
Reference in New Issue
Block a user