no message

This commit is contained in:
kuaifan 2022-05-15 22:46:56 +08:00
parent 6e8ee60df0
commit 5fcc4c730f
2 changed files with 22 additions and 7 deletions

View File

@ -51,7 +51,8 @@
reverse: {
type: Boolean,
default: false
}
},
beforeResize: Function
},
data() {
@ -74,6 +75,21 @@
methods: {
resizeDown(e) {
if (!this.beforeResize) {
this.handleDown(e)
return
}
const before = this.beforeResize();
if (before && before.then) {
before.then(_ => {
this.handleDown(e)
});
} else {
this.handleDown(e);
}
},
handleDown(e) {
this.mouseX = e.pageX || e.clientX + document.documentElement.scrollLeft;
this.mouseY = e.pageY || e.clientY + document.documentElement.scrollTop;
this.offset = {
@ -88,6 +104,7 @@
event: 'down',
});
},
handleMove(e) {
if (!this.resizing) {
return;
@ -118,7 +135,11 @@
offset: this.offset,
});
},
handleUp() {
if (!this.resizing) {
return;
}
this.resizing = false;
this.tmpSize = undefined;
this.$emit('on-change', {

View File

@ -655,12 +655,6 @@ export default {
this.chackPass();
},
taskId(id) {
if (id > 0) {
this.$Modal.resetIndex();
}
},
projectKeyValue(val) {
if (val == '') {
return;