mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 04:40:37 +00:00
no message
This commit is contained in:
parent
6e8ee60df0
commit
5fcc4c730f
@ -51,7 +51,8 @@
|
|||||||
reverse: {
|
reverse: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
}
|
},
|
||||||
|
beforeResize: Function
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
@ -74,6 +75,21 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
resizeDown(e) {
|
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.mouseX = e.pageX || e.clientX + document.documentElement.scrollLeft;
|
||||||
this.mouseY = e.pageY || e.clientY + document.documentElement.scrollTop;
|
this.mouseY = e.pageY || e.clientY + document.documentElement.scrollTop;
|
||||||
this.offset = {
|
this.offset = {
|
||||||
@ -88,6 +104,7 @@
|
|||||||
event: 'down',
|
event: 'down',
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
handleMove(e) {
|
handleMove(e) {
|
||||||
if (!this.resizing) {
|
if (!this.resizing) {
|
||||||
return;
|
return;
|
||||||
@ -118,7 +135,11 @@
|
|||||||
offset: this.offset,
|
offset: this.offset,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
handleUp() {
|
handleUp() {
|
||||||
|
if (!this.resizing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.resizing = false;
|
this.resizing = false;
|
||||||
this.tmpSize = undefined;
|
this.tmpSize = undefined;
|
||||||
this.$emit('on-change', {
|
this.$emit('on-change', {
|
||||||
|
|||||||
@ -655,12 +655,6 @@ export default {
|
|||||||
this.chackPass();
|
this.chackPass();
|
||||||
},
|
},
|
||||||
|
|
||||||
taskId(id) {
|
|
||||||
if (id > 0) {
|
|
||||||
this.$Modal.resetIndex();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
projectKeyValue(val) {
|
projectKeyValue(val) {
|
||||||
if (val == '') {
|
if (val == '') {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user