qianlishi 3 years ago
parent 4cbc0a1d57
commit ddb997793d

@ -308,7 +308,6 @@ export default {
this.formData = newValue || {};
},
options(val) {
console.log(val);
this.setDefaultValue();
this.isShowData();
}

@ -84,6 +84,7 @@
width: bigscreenWidthInWorkbench + 'px',
height: bigscreenHeightInWorkbench + 'px'
}"
@mousedown="handleMouseDown"
>
<vue-ruler-tool
v-model="dashboard.presetLine"
@ -547,6 +548,13 @@ export default {
}
}
},
handleMouseDown() {
console.log(1);
const draggableArr = this.$refs.widgets;
for (let i = 0; i < draggableArr.length; i++) {
this.$refs.widgets[i].$refs.draggable.setActive(false);
}
},
//
widgetValueChanged(key, val) {
/* this.widgets this.widgetIndex value

@ -107,7 +107,6 @@ export default {
},
//
handleBlur({ index, left, top, width, height }) {
console.log({ index, left, top, width, height });
this.$emit("onActivated", { index, left, top, width, height });
this.$refs.draggable.setActive(true);
}

Loading…
Cancel
Save