mirror of
https://gitee.com/dromara/go-view.git
synced 2024-11-30 02:38:30 +08:00
fix: 去掉多余代码
This commit is contained in:
parent
15d07ac439
commit
8aef6ea198
@ -928,8 +928,6 @@ export const useChartEditStore = defineStore({
|
|||||||
const scaleHeight = parseFloat((width / baseProportion / editCanvasHeight).toFixed(5))
|
const scaleHeight = parseFloat((width / baseProportion / editCanvasHeight).toFixed(5))
|
||||||
this.setScale(scaleHeight > 1 ? 1 : scaleHeight)
|
this.setScale(scaleHeight > 1 ? 1 : scaleHeight)
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onCanvsSizecomputed?.()
|
|
||||||
} else {
|
} else {
|
||||||
window['$message'].warning('请先创建画布,再进行缩放')
|
window['$message'].warning('请先创建画布,再进行缩放')
|
||||||
}
|
}
|
||||||
|
3
types/global.d.ts
vendored
3
types/global.d.ts
vendored
@ -11,9 +11,6 @@ interface Window {
|
|||||||
|
|
||||||
// 编辑 JSON 的存储对象
|
// 编辑 JSON 的存储对象
|
||||||
opener: any
|
opener: any
|
||||||
|
|
||||||
//当画布大小重新计算后
|
|
||||||
onCanvsSizecomputed:Function
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare type Recordable<T = any> = Record<string, T>
|
declare type Recordable<T = any> = Record<string, T>
|
||||||
|
Loading…
Reference in New Issue
Block a user