forked from github/dataease
Merge pull request #3186 from dataease/pr@dev@refactor_component-drage
refactor: 优化仪表板组件拖拽判断,防止出现控制台异常打印
This commit is contained in:
commit
ff5f8eb08c
@ -731,14 +731,14 @@ export default {
|
||||
},
|
||||
// private 监控dragging resizing
|
||||
dragging(val) {
|
||||
if (this.enabled) {
|
||||
if (this.enabled && this.curComponent) {
|
||||
this.curComponent.optStatus.dragging = val
|
||||
this.$store.commit('setScrollAutoMove', 0)
|
||||
}
|
||||
},
|
||||
// private 监控dragging resizing
|
||||
resizing(val) {
|
||||
if (this.enabled) {
|
||||
if (this.enabled && this.curComponent) {
|
||||
this.curComponent.optStatus.resizing = val
|
||||
this.$store.commit('setScrollAutoMove', 0)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user