isqianming 3 years ago
parent 5ae897a2d0
commit 9c4652e269

@ -6155,8 +6155,9 @@ const widgetTools = [
selectOptions: [ selectOptions: [
{code: 'left', name: '左对齐'}, {code: 'left', name: '左对齐'},
{code: 'right', name: '右对齐'}, {code: 'right', name: '右对齐'},
//{code: 'mid', name: '居中'},
], ],
value: '' value: 'left'
}, },
{ {
type: 'el-select', type: 'el-select',
@ -6168,7 +6169,7 @@ const widgetTools = [
{code: 'top', name: '顶部'}, {code: 'top', name: '顶部'},
{code: 'bottom', name: '底部'}, {code: 'bottom', name: '底部'},
], ],
value: '' value: 'top'
}, },
{ {
type: 'el-select', type: 'el-select',
@ -6180,11 +6181,11 @@ const widgetTools = [
{code: 'vertical', name: '竖排'}, {code: 'vertical', name: '竖排'},
{code: 'horizontal', name: '横排'}, {code: 'horizontal', name: '横排'},
], ],
value: '' value: 'horizontal'
}, },
], ],
}, },
{ /*{
name: '自定义配色', name: '自定义配色',
list: [ list: [
{ {
@ -6195,7 +6196,7 @@ const widgetTools = [
value: [{color: '#ff7f50'}, {color: '#87cefa'}, {color: '#da70d6'}, {color: '#32cd32'}, {color: '#6495ed'}], value: [{color: '#ff7f50'}, {color: '#87cefa'}, {color: '#da70d6'}, {color: '#32cd32'}, {color: '#6495ed'}],
}, },
], ],
}, },*/
], ],
], ],
// 数据 // 数据

@ -94,16 +94,16 @@ export default {
// options // options
editorOptions() { editorOptions() {
this.setOptionsTitle(); this.setOptionsTitle();
//this.setOptionsX(); this.setOptionsX();
//this.setOptionsY(); this.setOptionsY();
this.setOptionsTop(); this.setOptionsTop();
this.setOptionsTooltip(); this.setOptionsTooltip();
this.setOptionsMargin(); this.setOptionsMargin();
//this.setOptionsLegend(); this.setOptionsLegend();
//this.setOptionsColor(); //this.setOptionsColor();
this.setOptionsData(); this.setOptionsData();
}, },
// // ABC
setOptionsTitle() { setOptionsTitle() {
const optionsCollapse = this.optionsSetup; const optionsCollapse = this.optionsSetup;
const title = {}; const title = {};
@ -195,7 +195,7 @@ export default {
}; };
this.options.yAxis = yAxis; this.options.yAxis = yAxis;
}, },
// or // or
setOptionsTop() { setOptionsTop() {
const optionsCollapse = this.optionsSetup; const optionsCollapse = this.optionsSetup;
const series = this.options.series; const series = this.options.series;
@ -303,7 +303,8 @@ export default {
return newArr; return newArr;
}, },
// //
staticDataFn(val, optionsSetup) { staticDataFn(val) {
const optionsSetup = this.optionsSetup;
const series = this.options.series; const series = this.options.series;
let xAxisList = [] let xAxisList = []
let yAxisList = [] let yAxisList = []

Loading…
Cancel
Save