diff --git a/packages/vue/src/chart/chart-core/common/util.ts b/packages/vue/src/chart/chart-core/common/util.ts index 6163e7bed..bbbc95033 100644 --- a/packages/vue/src/chart/chart-core/common/util.ts +++ b/packages/vue/src/chart/chart-core/common/util.ts @@ -14,7 +14,7 @@ export function toUpperCase(str) { } export const getFormatted = (value, type, digit, defaultVal = '-') => { - if (typeof value === 'object') { + if (typeof value === 'object' && !isNull(value)) { value = value.value } if (isNaN(value)) { diff --git a/packages/vue/src/chart/chart-core/package.json b/packages/vue/src/chart/chart-core/package.json index fd6ec2a21..bf0891313 100644 --- a/packages/vue/src/chart/chart-core/package.json +++ b/packages/vue/src/chart/chart-core/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/vue-chart-core", - "version": "3.17.0", + "version": "3.17.1", "description": "", "main": "lib/index.js", "module": "index.ts", diff --git a/packages/vue/src/chart/chart-core/src/chart-core.ts b/packages/vue/src/chart/chart-core/src/chart-core.ts index ad3a398de..18471179c 100644 --- a/packages/vue/src/chart/chart-core/src/chart-core.ts +++ b/packages/vue/src/chart/chart-core/src/chart-core.ts @@ -5,6 +5,7 @@ import { DEFAULT_COLORS, SAAS_DEFAULT_COLORS, SAAS_DEFAULT_SAME_COLORS, DEFAULT_ import IntegrateChart from '../base' import BaiduMapChart from '../base/components/BaiduMapChart' import AutonaviMapChart from '../base/components/AutonaviMapChart' +import cloneDeep from '../base/util/cloneDeep' import '@opentiny/vue-theme/chart-core/index.less' export default {