Skip to content

Commit

Permalink
fix(chart): [chart] Fixed chart-core bug (#1708)
Browse files Browse the repository at this point in the history
* fix: chart-core添加cloneDeep引入

* fix: 修改chart组件getFormatted函数判断逻辑

* fix: 更新chart-core包版本为3.17.1
  • Loading branch information
Davont authored Jul 2, 2024
1 parent fa7fa03 commit 80b0d28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue/src/chart/chart-core/common/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/chart/chart-core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/vue/src/chart/chart-core/src/chart-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 80b0d28

Please sign in to comment.