@abi-software/scaffoldvuer 0.1.52-beta.3 → 0.1.52-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "0.1.52-beta.3",
3
+ "version": "0.1.52-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -102,6 +102,15 @@ export default {
102
102
  }
103
103
  }
104
104
  }
105
+
106
+ &.el-popper[x-placement^="bottom"] {
107
+ .popper__arrow {
108
+ border-bottom-color: $app-primary-color !important;
109
+ &:after {
110
+ border-bottom-color: #fff !important;
111
+ }
112
+ }
113
+ }
105
114
  }
106
115
 
107
116
  .tooltipContainer {
@@ -753,6 +753,7 @@ export default {
753
753
  this.$emit("scaffold-selected", event.identifiers);
754
754
  } else if (event.eventType == 2) {
755
755
  this.tData.visible = false;
756
+ const offsets = this.$refs.scaffoldContainer.getBoundingClientRect();
756
757
  if (event.identifiers[0]) {
757
758
  let id = event.identifiers[0].data.id
758
759
  ? event.identifiers[0].data.id
@@ -760,8 +761,8 @@ export default {
760
761
  if (event.identifiers[0].coords) {
761
762
  this.tData.visible = true;
762
763
  this.tData.label = id;
763
- this.tData.x = event.identifiers[0].coords.x;
764
- this.tData.y =event.identifiers[0].coords.y;
764
+ this.tData.x = event.identifiers[0].coords.x - offsets.left;
765
+ this.tData.y = event.identifiers[0].coords.y - offsets.top;
765
766
  }
766
767
  if (this.$refs.treeControl) {
767
768
  let region = event.identifiers[0].data.region;
@@ -775,8 +776,9 @@ export default {
775
776
  } else if (event.eventType == 3) { //MOVE
776
777
  if (event.identifiers[0]) {
777
778
  if (event.identifiers[0].coords) {
778
- this.tData.x = event.identifiers[0].coords.x;
779
- this.tData.y = event.identifiers[0].coords.y;
779
+ const offsets = this.$refs.scaffoldContainer.getBoundingClientRect();
780
+ this.tData.x = event.identifiers[0].coords.x - offsets.left;
781
+ this.tData.y = event.identifiers[0].coords.y - offsets.top;
780
782
  }
781
783
  }
782
784
  }