fix(chart): [chart] Fixed chart-core bug (#1706)

* fix: 【Charts】update charts snapshots

* fix: 修复图表height为100%时的高度问题

* fix: 优化图表extend逻辑

* fix: 修复图表extend失效问题

* fix: 删除注释

* fix: 新增图表echartOption变量,以便用户获取echart配置

* fix: 修复playground百度地图案例错误问题

* fix: 修复图表option复杂变量失效问题

* fix: 修改高德百度地图案例注释

* fix: chart-core添加cloneDeep引入

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

* fix: 更新chart-core包版本为3.17.1
This commit is contained in:
Davont 2024-07-02 21:03:58 +08:00 committed by GitHub
parent 4a863b99dc
commit a2b3c6a859
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ export function toUpperCase(str) {
} }
export const getFormatted = (value, type, digit, defaultVal = '-') => { export const getFormatted = (value, type, digit, defaultVal = '-') => {
if (typeof value === 'object') { if (typeof value === 'object' && !isNull(value)) {
value = value.value value = value.value
} }
if (isNaN(value)) { if (isNaN(value)) {

View File

@ -1,6 +1,6 @@
{ {
"name": "@opentiny/vue-chart-core", "name": "@opentiny/vue-chart-core",
"version": "3.17.0", "version": "3.17.1",
"description": "", "description": "",
"main": "lib/index.js", "main": "lib/index.js",
"module": "index.ts", "module": "index.ts",

View File

@ -5,6 +5,7 @@ import { DEFAULT_COLORS, SAAS_DEFAULT_COLORS, SAAS_DEFAULT_SAME_COLORS, DEFAULT_
import IntegrateChart from '../base' import IntegrateChart from '../base'
import BaiduMapChart from '../base/components/BaiduMapChart' import BaiduMapChart from '../base/components/BaiduMapChart'
import AutonaviMapChart from '../base/components/AutonaviMapChart' import AutonaviMapChart from '../base/components/AutonaviMapChart'
import cloneDeep from '../base/util/cloneDeep'
import '@opentiny/vue-theme/chart-core/index.less' import '@opentiny/vue-theme/chart-core/index.less'
export default { export default {