@opentiny/vue-renderless
Advanced tools
Comparing version 3.10.2 to 3.10.3
@@ -68,3 +68,3 @@ import { | ||
}; | ||
const isFixed = (el, offsetParent) => { | ||
const isFixed = (el) => { | ||
if (el === window.document.body) { | ||
@@ -76,6 +76,3 @@ return false; | ||
} | ||
if (el === offsetParent) { | ||
return false; | ||
} | ||
return el.parentNode ? isFixed(el.parentNode, offsetParent) : false; | ||
return el.parentNode ? isFixed(el.parentNode) : false; | ||
}; | ||
@@ -298,7 +295,6 @@ const getBoundingClientRect = (el) => { | ||
Popper.prototype._getPosition = function(popper, reference) { | ||
let offsetParent = getOffsetParent(reference); | ||
if (this._options.forceAbsolute) { | ||
return "absolute"; | ||
} | ||
let isParentFixed = isFixed(reference, offsetParent); | ||
let isParentFixed = isFixed(reference); | ||
return isParentFixed ? "fixed" : "absolute"; | ||
@@ -305,0 +301,0 @@ }; |
{ | ||
"name": "@opentiny/vue-renderless", | ||
"version": "3.10.2", | ||
"version": "3.10.3", | ||
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://opentiny.design/tiny-vue", |
@@ -178,14 +178,18 @@ import "../chunk-PKUHTIDK.js"; | ||
const setActiveButtonValue = ({ api, emit, props, state }) => (value) => { | ||
let currentValue = value; | ||
currentValue = calcCurrentValue({ currentValue, props, state }); | ||
if (!state.isDouble) { | ||
state.leftBtnValue = currentValue; | ||
if (Array.isArray(value)) { | ||
; | ||
[state.leftBtnValue, state.rightBtnValue] = value; | ||
} else { | ||
if (state.activeIndex === 0) { | ||
let currentValue = calcCurrentValue({ currentValue: value, props, state }); | ||
if (!state.isDouble) { | ||
state.leftBtnValue = currentValue; | ||
} else { | ||
state.rightBtnValue = currentValue; | ||
if (state.activeIndex === 0) { | ||
state.leftBtnValue = currentValue; | ||
} else { | ||
state.rightBtnValue = currentValue; | ||
} | ||
} | ||
state.activeValue = currentValue; | ||
} | ||
state.activeValue = currentValue; | ||
state.innerTrigger = true; | ||
@@ -192,0 +196,0 @@ emit("update:modelValue", api.getActiveButtonValue()); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1840100