Skip to content

Commit

Permalink
fix(chart): [chart] Fixed baidu chart example and chart-core bug (#1691)
Browse files Browse the repository at this point in the history
* fix: 【Charts】update charts snapshots

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

* fix: 优化图表extend逻辑

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

* fix: 删除注释

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

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

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

* fix: 修改高德百度地图案例注释
  • Loading branch information
Davont authored Jun 26, 2024
1 parent afe9682 commit 52c6c34
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { AutonaviMap as TinyAutonaviMap } from '@opentiny/vue'
const options = ref({
key: '4b5f2cf2cba25200cc6b68c398468899',
url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址
url: 'https://webapi.amap.com/maps', // 高德地图接口的url地址
v: '1.4.3',
amap: {
resizeEnable: true,
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/chart/amap/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
return {
options: {
key: '4b5f2cf2cba25200cc6b68c398468899',
url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址
url: 'https://webapi.amap.com/maps', // 高德地图接口的url地址
v: '1.4.3',
amap: {
resizeEnable: true,
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/chart/bmap/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default {
data() {
return {
options: {
key: '4b5f2cf2cba25200cc6b68c398468899',
url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址
key: 'oBvDtR6nzWtVchkY4cLHtnah1VVZQKRK',
url: 'https://api.map.baidu.com/api', // 百度地图接口的url地址
v: '1.4.3',
bmap: {
resizeEnable: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/src/chart/chart-core/src/chart-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export default {
if (Object.keys(this.options).length === 0) {
this.updateChart(data)
} else {
this.option = JSON.parse(JSON.stringify(this.options))
this.option = cloneDeep(this.options)
}
let { option } = this
clearTimeout(this.timer)
Expand Down Expand Up @@ -527,7 +527,7 @@ export default {
if (Object.keys(this.options).length === 0) {
this.updateChart(data)
} else {
this.option = { ...this.options }
this.option = cloneDeep(this.options)
}
let { option } = this
option = this.afterConfigFn(option)
Expand Down

0 comments on commit 52c6c34

Please sign in to comment.