Demo:窗口大小改变后修改画布大小
This commit is contained in:
parent
633ed68f92
commit
52d094a7c7
@ -126,6 +126,9 @@ export default {
|
|||||||
this.$bus.$on('createAssociativeLine', () => {
|
this.$bus.$on('createAssociativeLine', () => {
|
||||||
this.mindMap.associativeLine.createLineFromActiveNode()
|
this.mindMap.associativeLine.createLineFromActiveNode()
|
||||||
})
|
})
|
||||||
|
window.addEventListener('resize', () => {
|
||||||
|
this.mindMap.resize()
|
||||||
|
})
|
||||||
if (this.openTest) {
|
if (this.openTest) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.test()
|
this.test()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user