forked from github/dataease
style(图表): Typos
This commit is contained in:
parent
7943ad5ebb
commit
6bffb5f676
@ -1431,11 +1431,11 @@ export function configMergeCells(chart: Chart, options: S2Options, dataConfig: S
|
|||||||
const { showIndex } = parseJson(chart.customAttr).tableHeader
|
const { showIndex } = parseJson(chart.customAttr).tableHeader
|
||||||
if (mergeCells) {
|
if (mergeCells) {
|
||||||
const fields = chart.data.fields || []
|
const fields = chart.data.fields || []
|
||||||
const fielsMap = fields.reduce((p, n) => {
|
const fieldMap = fields.reduce((p, n) => {
|
||||||
p[n.dataeaseName] = n
|
p[n.dataeaseName] = n
|
||||||
return p
|
return p
|
||||||
}, {}) || {}
|
}, {}) || {}
|
||||||
const quotaIndex = dataConfig.meta.findIndex(m => fielsMap[m.field].groupType === 'q')
|
const quotaIndex = dataConfig.meta.findIndex(m => fieldMap[m.field].groupType === 'q')
|
||||||
const data = chart.data?.tableRow
|
const data = chart.data?.tableRow
|
||||||
if (quotaIndex === 0 || !data?.length) {
|
if (quotaIndex === 0 || !data?.length) {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user