@@ -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);