@saooti/octopus-sdk 37.0.32 → 37.0.33
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
package/src/assets/form.scss
CHANGED
|
@@ -119,11 +119,14 @@ export default defineComponent({
|
|
|
119
119
|
}
|
|
120
120
|
const rectElement = (e.target as HTMLElement).getBoundingClientRect();
|
|
121
121
|
(this.$refs.popover as HTMLElement).style.display = "block";
|
|
122
|
-
this.
|
|
123
|
-
|
|
122
|
+
if(this.leftPos){
|
|
123
|
+
this.posX = rectElement.right -
|
|
124
124
|
parentRight -
|
|
125
|
-
(this.$refs.popover as HTMLElement).clientWidth
|
|
126
|
-
|
|
125
|
+
(this.$refs.popover as HTMLElement).clientWidth;
|
|
126
|
+
}else{
|
|
127
|
+
this.posX = rectElement.left - parentLeft;
|
|
128
|
+
}
|
|
129
|
+
this.posX = Math.max(0, this.posX);
|
|
127
130
|
const yPosParent = this.topPos ? rectElement.top : rectElement.bottom;
|
|
128
131
|
const yGap = this.topPos
|
|
129
132
|
? -5 - (this.$refs.popover as HTMLElement).clientHeight
|