qianming 3 years ago
parent 3d7c1067ec
commit ff1a5b9d2c

@ -173,14 +173,6 @@ export const widgetBarchart = {
{
name: 'X轴设置',
list: [
{
type: 'el-input-text',
label: '名称',
name: 'xName',
required: false,
placeholder: '',
value: ''
},
{
type: 'el-switch',
label: '显示',
@ -189,25 +181,49 @@ export const widgetBarchart = {
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '坐标名',
name: 'xName',
required: false,
placeholder: '',
value: ''
},
{
type: 'vue-color',
label: '坐标名颜色',
name: 'xNameColor',
name: 'nameColorX',
required: false,
placeholder: '',
value: '#fff'
},
{
type: 'el-input-number',
label: '字体大小',
name: 'xNameFontSize',
label: '坐标字号',
name: 'nameFontSizeX',
required: false,
placeholder: '',
value: 12
},
{
type: 'vue-color',
label: '数值颜色',
name: 'Xcolor',
required: false,
placeholder: '',
value: '#fff',
},
{
type: 'el-input-number',
label: '数值字号',
name: 'fontSizeX',
required: false,
placeholder: '',
value: 12,
},
{
type: 'el-slider',
label: '文字角度',
label: '数值角度',
name: 'textAngle',
required: false,
placeholder: '',
@ -215,7 +231,7 @@ export const widgetBarchart = {
},
{
type: 'el-input-number',
label: '文字间隔',
label: '数值间隔',
name: 'textInterval',
required: false,
placeholder: '',
@ -229,22 +245,6 @@ export const widgetBarchart = {
placeholder: '',
value: false
},
{
type: 'vue-color',
label: '颜色',
name: 'Xcolor',
required: false,
placeholder: '',
value: '#fff',
},
{
type: 'el-input-number',
label: '字号',
name: 'fontSizeX',
required: false,
placeholder: '',
value: 12,
},
{
type: 'vue-color',
label: '轴颜色',
@ -275,14 +275,6 @@ export const widgetBarchart = {
{
name: 'Y轴设置',
list: [
{
type: 'el-input-text',
label: '名称',
name: 'textNameY',
require: false,
placeholder: '',
value: ''
},
{
type: 'el-switch',
label: '显示',
@ -291,33 +283,33 @@ export const widgetBarchart = {
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '坐标名',
name: 'textNameY',
require: false,
placeholder: '',
value: ''
},
{
type: 'vue-color',
label: '坐标名颜色',
name: 'NameColorY',
name: 'nameColorY',
required: false,
placeholder: '',
value: '#fff',
},
{
type: 'el-input-number',
label: '字体大小',
name: 'NameFontSizeY',
required: false,
placeholder: '',
value: 12,
},
{
type: 'el-switch',
label: '轴反转',
name: 'reversalY',
label: '坐标字号',
name: 'nameFontSizeY',
required: false,
placeholder: '',
value: false
value: 14,
},
{
type: 'vue-color',
label: '颜色',
label: '数值颜色',
name: 'colorY',
required: false,
placeholder: '',
@ -325,11 +317,43 @@ export const widgetBarchart = {
},
{
type: 'el-input-number',
label: '字号',
label: '数值字号',
name: 'fontSizeY',
required: false,
placeholder: '',
value: 12,
value: 14,
},
{
type: 'el-slider',
label: '数值角度',
name: 'ytextAngle',
required: false,
placeholder: '',
value: 0
},
{
type: 'el-switch',
label: '缩放',
name: 'scale',
require: false,
placeholder: '',
value: false,
},
{
type: 'el-input-number',
label: '均分',
name: 'splitNumber',
required: false,
placeholder: '',
value: ''
},
{
type: 'el-switch',
label: '轴反转',
name: 'reversalY',
required: false,
placeholder: '',
value: false
},
{
type: 'vue-color',

@ -173,41 +173,57 @@ export const widgetGradientBarchart = {
{
name: 'X轴设置',
list: [
{
type: 'el-switch',
label: '显示',
name: 'hideX',
required: false,
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '名称',
label: '坐标名',
name: 'xName',
required: false,
placeholder: '',
value: ''
},
{
type: 'el-switch',
label: '显示',
name: 'hideX',
type: 'vue-color',
label: '坐标名颜色',
name: 'nameColorX',
required: false,
placeholder: '',
value: true,
value: '#fff',
},
{
type: 'el-input-number',
label: '字号',
name: 'fontSizeX',
label: '坐标字号',
name: 'nameFontSizeX',
required: false,
placeholder: '',
value: 12,
value: 14,
},
{
type: 'vue-color',
label: '颜色',
label: '数值颜色',
name: 'Xcolor',
required: false,
placeholder: '',
value: '#fff',
},
{
type: 'el-input-number',
label: '数值字号',
name: 'fontSizeX',
required: false,
placeholder: '',
value: 14,
},
{
type: 'el-slider',
label: '文字角度',
label: '数值角度',
name: 'textAngle',
required: false,
placeholder: '',
@ -215,7 +231,7 @@ export const widgetGradientBarchart = {
},
{
type: 'el-input-number',
label: '文字间隔',
label: '数值间隔',
name: 'textInterval',
required: false,
placeholder: '',
@ -258,25 +274,40 @@ export const widgetGradientBarchart = {
{
name: 'Y轴设置',
list: [
{
type: 'el-switch',
label: '显示',
name: 'isShowY',
require: false,
placeholder: '',
value: true,
},
{
type: 'el-input-text',
label: '名称',
label: '坐标名',
name: 'textNameY',
require: false,
placeholder: '',
value: ''
},{
type: 'vue-color',
label: '坐标名颜色',
name: 'nameColorY',
required: false,
placeholder: '',
value: '#fff',
},
{
type: 'el-switch',
label: '显示',
name: 'isShowY',
require: false,
type: 'el-input-number',
label: '坐标字号',
name: 'namefontSizeY',
required: false,
placeholder: '',
value: true,
value: 14,
},
{
type: 'vue-color',
label: '颜色',
label: '数值颜色',
name: 'colorY',
required: false,
placeholder: '',
@ -284,15 +315,15 @@ export const widgetGradientBarchart = {
},
{
type: 'el-input-number',
label: '字号',
label: '数值字号',
name: 'fontSizeY',
required: false,
placeholder: '',
value: 12,
value: 14,
},
{
type: 'el-slider',
label: '文字角度',
label: '数值角度',
name: 'ytextAngle',
required: false,
placeholder: '',
@ -344,7 +375,6 @@ export const widgetGradientBarchart = {
required: false,
placeholder: '',
value: '#fff',
}
],
},

@ -210,6 +210,10 @@ export default {
type: "category",
show: optionsCollapse.hideX, //
name: optionsCollapse.xName, //
nameTextStyle: {
color: optionsCollapse.nameColorX,
fontSize: optionsCollapse.nameFontSizeX
},
nameRotate: optionsCollapse.textAngle, //
inverse: optionsCollapse.reversalX, //
axisLabel: {
@ -245,6 +249,10 @@ export default {
splitNumber: optionsCollapse.splitNumber,//
show: optionsCollapse.isShowY, //
name: optionsCollapse.textNameY, //
nameTextStyle: { //
color: optionsCollapse.nameColorY,
fontSize: optionsCollapse.namefontSizeY
},
inverse: optionsCollapse.reversalY, //
axisLabel: {
show: true,

@ -165,15 +165,18 @@ export default {
const optionsCollapse = this.optionsSetup;
const yAxis = {
type: "value",
scale : optionsCollapse.scale,
splitNumber: optionsCollapse.splitNumber,//
show: optionsCollapse.isShowY, //
name: optionsCollapse.textNameY, //
nameTextStyle: {
color: optionsCollapse.NameColorY,
fontSize: optionsCollapse.NameFontSizeY
color: optionsCollapse.nameColorY,
fontSize: optionsCollapse.nameFontSizeY
},
inverse: optionsCollapse.reversalY, //
axisLabel: {
show: true,
rotate: optionsCollapse.ytextAngle, //
textStyle: {
color: optionsCollapse.colorY, // x
fontSize: optionsCollapse.fontSizeY

Loading…
Cancel
Save