@saooti/octopus-sdk 33.2.21 → 33.2.22
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
|
@@ -32,7 +32,7 @@ export default defineComponent({
|
|
|
32
32
|
disable: {type: Boolean, default: false},
|
|
33
33
|
onlyClick: {type: Boolean, default: false},
|
|
34
34
|
isFixed: {type: Boolean, default: false},
|
|
35
|
-
|
|
35
|
+
relativeClass: {type: String, default: undefined},
|
|
36
36
|
leftPos: {type: Boolean, default: false},
|
|
37
37
|
},
|
|
38
38
|
data () {
|
|
@@ -99,8 +99,8 @@ export default defineComponent({
|
|
|
99
99
|
let parentRight = 0;
|
|
100
100
|
let parentTop = 0;
|
|
101
101
|
let parentScrollTop = 0;
|
|
102
|
-
if(this.
|
|
103
|
-
const modalBody = document.getElementsByClassName(
|
|
102
|
+
if(this.relativeClass){
|
|
103
|
+
const modalBody = document.getElementsByClassName(this.relativeClass)[0];
|
|
104
104
|
const modalBodyRect = modalBody.getBoundingClientRect();
|
|
105
105
|
parentLeft = modalBodyRect.left;
|
|
106
106
|
parentRight = modalBodyRect.right;
|