@polyv/product-ui 1.0.0-rc-20250612.3 → 1.0.0-rc-20250612.4
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/address-edit.cjs.js +1 -1
- package/address-edit.es.js +2 -2
- package/address-edit.umd.js +1 -1
- package/address-item.cjs.js +1 -1
- package/address-item.es.js +2 -2
- package/address-item.umd.js +1 -1
- package/address-list.cjs.js +1 -1
- package/address-list.es.js +2 -2
- package/address-list.umd.js +1 -1
- package/index.cjs.js +1 -1
- package/index.es.js +24 -20
- package/index.umd.js +1 -1
- package/mobile-product-pendant.cjs.js +1 -1
- package/mobile-product-pendant.es.js +2 -2
- package/mobile-product-pendant.umd.js +1 -1
- package/order-confirm.cjs.js +1 -1
- package/order-confirm.es.js +2 -2
- package/order-confirm.umd.js +1 -1
- package/order-detail.cjs.js +1 -1
- package/order-detail.es.js +2 -2
- package/order-detail.umd.js +1 -1
- package/order-item.cjs.js +1 -1
- package/order-item.es.js +2 -2
- package/order-item.umd.js +1 -1
- package/order-list-popup.cjs.js +1 -1
- package/order-list-popup.es.js +2 -2
- package/order-list-popup.umd.js +1 -1
- package/order-list.cjs.js +1 -1
- package/order-list.es.js +2 -2
- package/order-list.umd.js +1 -1
- package/order-popup.cjs.js +1 -1
- package/order-popup.es.js +2 -2
- package/order-popup.umd.js +1 -1
- package/package.json +1 -1
- package/pc-product-pendant.cjs.js +1 -1
- package/pc-product-pendant.es.js +2 -2
- package/pc-product-pendant.umd.js +1 -1
- package/product-button.cjs.js +1 -1
- package/product-button.es.js +2 -2
- package/product-button.umd.js +1 -1
- package/product-detail-popup.cjs.js +1 -1
- package/product-detail-popup.es.js +24 -20
- package/product-detail-popup.umd.js +1 -1
- package/product-detail.cjs.js +1 -1
- package/product-detail.es.js +24 -20
- package/product-detail.umd.js +2 -2
- package/product-iframe-link-popup.cjs.js +1 -1
- package/product-iframe-link-popup.es.js +2 -2
- package/product-iframe-link-popup.umd.js +1 -1
- package/product-item.cjs.js +1 -1
- package/product-item.es.js +24 -20
- package/product-item.umd.js +1 -1
- package/product-list-popup.cjs.js +2 -2
- package/product-list-popup.es.js +24 -20
- package/product-list-popup.umd.js +2 -2
- package/product-list.cjs.js +1 -1
- package/product-list.es.js +24 -20
- package/product-list.umd.js +1 -1
|
@@ -7436,24 +7436,31 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
7436
7436
|
}
|
|
7437
7437
|
function isTitleOverflowing() {
|
|
7438
7438
|
const titleEl = titleRef.value;
|
|
7439
|
-
if (!titleEl)
|
|
7439
|
+
if (!titleEl || !titleEl.parentElement) {
|
|
7440
|
+
return false;
|
|
7441
|
+
}
|
|
7442
|
+
const originalRect = titleEl.getBoundingClientRect();
|
|
7440
7443
|
const clone = titleEl.cloneNode(true);
|
|
7441
|
-
const computedStyle = window.getComputedStyle(titleEl);
|
|
7442
|
-
clone.style.font = computedStyle.font;
|
|
7443
|
-
clone.style.lineHeight = computedStyle.lineHeight;
|
|
7444
|
-
clone.style.display = "block";
|
|
7445
|
-
clone.style.width = titleEl.clientWidth + "px";
|
|
7446
|
-
clone.style.visibility = "hidden";
|
|
7447
7444
|
clone.style.position = "absolute";
|
|
7445
|
+
clone.style.top = "-9999px";
|
|
7446
|
+
clone.style.left = "-9999px";
|
|
7447
|
+
clone.style.visibility = "hidden";
|
|
7448
|
+
clone.style.width = `${originalRect.width}px`;
|
|
7449
|
+
clone.style.boxSizing = "border-box";
|
|
7448
7450
|
clone.style.whiteSpace = "normal";
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7451
|
+
clone.style.webkitLineClamp = "unset";
|
|
7452
|
+
clone.style.display = "block";
|
|
7453
|
+
titleEl.parentElement.appendChild(clone);
|
|
7454
|
+
const cloneHeight = clone.getBoundingClientRect().height;
|
|
7455
|
+
titleEl.parentElement.removeChild(clone);
|
|
7456
|
+
return cloneHeight > originalRect.height + 1;
|
|
7453
7457
|
}
|
|
7454
|
-
|
|
7458
|
+
const checkOverflow2 = () => {
|
|
7455
7459
|
moreArrowVisible.value = isTitleOverflowing();
|
|
7456
|
-
}
|
|
7460
|
+
};
|
|
7461
|
+
onMounted(() => {
|
|
7462
|
+
checkOverflow2();
|
|
7463
|
+
});
|
|
7457
7464
|
watch(
|
|
7458
7465
|
() => props.title,
|
|
7459
7466
|
() => {
|
|
@@ -7461,14 +7468,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
7461
7468
|
titleRef.value.classList.remove("plv-product-c-item__title--expanded");
|
|
7462
7469
|
}
|
|
7463
7470
|
nextTick$1(() => {
|
|
7464
|
-
|
|
7471
|
+
checkOverflow2();
|
|
7465
7472
|
});
|
|
7466
7473
|
}
|
|
7467
7474
|
);
|
|
7468
|
-
|
|
7469
|
-
checkTitleOverflow();
|
|
7470
|
-
});
|
|
7471
|
-
return { __sfc: true, props, titleRef, moreArrowVisible, handleExpand, isTitleOverflowing, checkTitleOverflow, ProductIconArrowDown };
|
|
7475
|
+
return { __sfc: true, props, titleRef, moreArrowVisible, handleExpand, isTitleOverflowing, checkOverflow: checkOverflow2, ProductIconArrowDown };
|
|
7472
7476
|
}
|
|
7473
7477
|
});
|
|
7474
7478
|
var _sfc_render$4 = function render8() {
|
|
@@ -8242,8 +8246,8 @@ console.log(
|
|
|
8242
8246
|
"%c@polyv/product-ui",
|
|
8243
8247
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
8244
8248
|
"[component: product-detail-popup]",
|
|
8245
|
-
"[version: 1.0.0-rc-20250612.
|
|
8246
|
-
"[buildTime: 2025-06-12
|
|
8249
|
+
"[version: 1.0.0-rc-20250612.4]",
|
|
8250
|
+
"[buildTime: 2025-06-12 09:58:29]"
|
|
8247
8251
|
);
|
|
8248
8252
|
export {
|
|
8249
8253
|
productDetailPopup as default
|