forked from opentiny/tiny-vue
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:
parent
afe9682f8a
commit
52c6c3427a
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue