fix(chart): [chart] Fixed baidu chart example and chart-core bug (#1691)

* fix: 【Charts】update charts snapshots

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

* fix: 优化图表extend逻辑

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

* fix: 删除注释

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

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

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

* fix: 修改高德百度地图案例注释
This commit is contained in:
Davont 2024-06-25 20:46:10 -07:00 committed by GitHub
parent afe9682f8a
commit 52c6c3427a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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)
@ -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)