@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "33.2.21",
3
+ "version": "33.2.22",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -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
- isInModal: {type: Boolean, default: false},
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.isInModal){
103
- const modalBody = document.getElementsByClassName('octopus-modal-body')[0];
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;