Comparing version 0.4.27 to 0.4.28
@@ -195,3 +195,3 @@ /* eslint-disable no-void */ | ||
function handleItemResize(key, entry) { | ||
var _a; | ||
var _a, _b, _c, _d; | ||
if (props.ignoreItemResize) | ||
@@ -204,3 +204,3 @@ return; | ||
const previousHeight = ft.get(index); | ||
const height = entry.contentRect.height; | ||
const height = (_c = (_b = (_a = entry.borderBoxSize) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.blockSize) !== null && _c !== void 0 ? _c : entry.contentRect.height; | ||
if (height === previousHeight) | ||
@@ -222,3 +222,3 @@ return; | ||
if (lastAnchorIndex !== undefined && index <= lastAnchorIndex) { | ||
(_a = listElRef.value) === null || _a === void 0 ? void 0 : _a.scrollBy(0, delta); | ||
(_d = listElRef.value) === null || _d === void 0 ? void 0 : _d.scrollBy(0, delta); | ||
} | ||
@@ -225,0 +225,0 @@ ft.add(index, delta); |
@@ -200,3 +200,3 @@ "use strict"; | ||
function handleItemResize(key, entry) { | ||
var _a; | ||
var _a, _b, _c, _d; | ||
if (props.ignoreItemResize) | ||
@@ -209,3 +209,3 @@ return; | ||
const previousHeight = ft.get(index); | ||
const height = entry.contentRect.height; | ||
const height = (_c = (_b = (_a = entry.borderBoxSize) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.blockSize) !== null && _c !== void 0 ? _c : entry.contentRect.height; | ||
if (height === previousHeight) | ||
@@ -227,3 +227,3 @@ return; | ||
if (lastAnchorIndex !== undefined && index <= lastAnchorIndex) { | ||
(_a = listElRef.value) === null || _a === void 0 ? void 0 : _a.scrollBy(0, delta); | ||
(_d = listElRef.value) === null || _d === void 0 ? void 0 : _d.scrollBy(0, delta); | ||
} | ||
@@ -230,0 +230,0 @@ ft.add(index, delta); |
{ | ||
"name": "vueuc", | ||
"version": "0.4.27", | ||
"version": "0.4.28", | ||
"description": "Util Components for Vue", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
216045