refactor: 视图样式配置项调整

This commit is contained in:
junjie 2022-01-11 17:26:07 +08:00
parent 6bcd70444b
commit 3f028ce0b0
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ export default {
initOptions() {
const type = this.chart.type
if (type) {
if (type.includes('horizontal')) {
if (type.includes('horizontal') || type === 'funnel') {
this.labelPosition = this.labelPositionH
} else if (type.includes('pie')) {
this.labelPosition = this.labelPositionPie

View File

@ -130,7 +130,7 @@ export default {
initOptions() {
const type = this.chart.type
if (type) {
if (type.includes('horizontal')) {
if (type.includes('horizontal') || type === 'funnel') {
this.labelPosition = this.labelPositionH
} else if (type.includes('pie')) {
this.labelPosition = this.labelPositionPie