@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/dist/scaffoldvuer.common.js +57 -54
- package/dist/scaffoldvuer.common.js.map +1 -1
- package/dist/scaffoldvuer.css +1 -1
- package/dist/scaffoldvuer.umd.js +57 -54
- package/dist/scaffoldvuer.umd.js.map +1 -1
- package/dist/scaffoldvuer.umd.min.js +1 -1
- package/dist/scaffoldvuer.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ScaffoldTooltip.vue +9 -0
- package/src/components/ScaffoldVuer.vue +6 -4
package/package.json
CHANGED
|
@@ -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
|
-
|
|
779
|
-
this.tData.
|
|
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
|
}
|