feat--柱线图Y轴增加配置项

This commit is contained in:
qianming
2023-11-30 16:11:23 +08:00
parent cdb1f0959f
commit f700c40797
6 changed files with 54 additions and 0 deletions

View File

@@ -541,6 +541,14 @@ export const widgetBarLineStack = {
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '最大值',
name: 'maxYLeft',
required: false,
placeholder: '',
value: '',
},
{
type: 'el-input-text',
label: '坐标名',
@@ -666,6 +674,14 @@ export const widgetBarLineStack = {
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '最大值',
name: 'maxYRight',
required: false,
placeholder: '',
value: '',
},
{
type: 'el-input-text',
label: '坐标名',

View File

@@ -549,6 +549,14 @@ export const widgetBarlinechart = {
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '最大值',
name: 'maxYLeft',
required: false,
placeholder: '',
value: '',
},
{
type: 'el-input-text',
label: '坐标名',
@@ -674,6 +682,14 @@ export const widgetBarlinechart = {
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '最大值',
name: 'maxYRight',
required: false,
placeholder: '',
value: '',
},
{
type: 'el-input-text',
label: '坐标名',

View File

@@ -561,6 +561,14 @@ export const widgetMoreBarLine = {
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '最大值',
name: 'maxYLeft',
required: false,
placeholder: '',
value: '',
},
{
type: 'el-input-text',
label: '坐标名',
@@ -686,6 +694,14 @@ export const widgetMoreBarLine = {
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '最大值',
name: 'maxYRight',
required: false,
placeholder: '',
value: '',
},
{
type: 'el-input-text',
label: '坐标名',

View File

@@ -212,6 +212,7 @@ export default {
const optionsSetup = this.optionsSetup;
const yAxis = [
{
max: optionsSetup.maxYLeft !== "" ? optionsSetup.maxYLeft : null,
type: "value",
// 均分
splitNumber: optionsSetup.splitNumberLeft,
@@ -254,6 +255,7 @@ export default {
},
},
{
max: optionsSetup.maxYRight !== "" ? optionsSetup.maxYRight : null,
type: "value",
// 均分
splitNumber: optionsSetup.splitNumberRight,

View File

@@ -219,6 +219,7 @@ export default {
const optionsSetup = this.optionsSetup;
const yAxis = [
{
max: optionsSetup.maxYLeft !== "" ? optionsSetup.maxYLeft : null,
type: "value",
// 均分
splitNumber: optionsSetup.splitNumberLeft,
@@ -261,6 +262,7 @@ export default {
},
},
{
max: optionsSetup.maxYRight !== "" ? optionsSetup.maxYRight : null,
type: "value",
// 均分
splitNumber: optionsSetup.splitNumberRight,

View File

@@ -279,6 +279,7 @@ export default {
const optionsSetup = this.optionsSetup;
const yAxis = [
{
max: optionsSetup.maxYLeft !== "" ? optionsSetup.maxYLeft : null,
type: "value",
// 均分
splitNumber: optionsSetup.splitNumberLeft,
@@ -321,6 +322,7 @@ export default {
},
},
{
max: optionsSetup.maxYRight !== "" ? optionsSetup.maxYRight : null,
type: "value",
// 均分
splitNumber: optionsSetup.splitNumberRight,