@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
package/product-list-popup.es.js
CHANGED
|
@@ -3986,24 +3986,31 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3986
3986
|
}
|
|
3987
3987
|
function isTitleOverflowing() {
|
|
3988
3988
|
const titleEl = titleRef.value;
|
|
3989
|
-
if (!titleEl)
|
|
3989
|
+
if (!titleEl || !titleEl.parentElement) {
|
|
3990
|
+
return false;
|
|
3991
|
+
}
|
|
3992
|
+
const originalRect = titleEl.getBoundingClientRect();
|
|
3990
3993
|
const clone = titleEl.cloneNode(true);
|
|
3991
|
-
const computedStyle = window.getComputedStyle(titleEl);
|
|
3992
|
-
clone.style.font = computedStyle.font;
|
|
3993
|
-
clone.style.lineHeight = computedStyle.lineHeight;
|
|
3994
|
-
clone.style.display = "block";
|
|
3995
|
-
clone.style.width = titleEl.clientWidth + "px";
|
|
3996
|
-
clone.style.visibility = "hidden";
|
|
3997
3994
|
clone.style.position = "absolute";
|
|
3995
|
+
clone.style.top = "-9999px";
|
|
3996
|
+
clone.style.left = "-9999px";
|
|
3997
|
+
clone.style.visibility = "hidden";
|
|
3998
|
+
clone.style.width = `${originalRect.width}px`;
|
|
3999
|
+
clone.style.boxSizing = "border-box";
|
|
3998
4000
|
clone.style.whiteSpace = "normal";
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4001
|
+
clone.style.webkitLineClamp = "unset";
|
|
4002
|
+
clone.style.display = "block";
|
|
4003
|
+
titleEl.parentElement.appendChild(clone);
|
|
4004
|
+
const cloneHeight = clone.getBoundingClientRect().height;
|
|
4005
|
+
titleEl.parentElement.removeChild(clone);
|
|
4006
|
+
return cloneHeight > originalRect.height + 1;
|
|
4003
4007
|
}
|
|
4004
|
-
|
|
4008
|
+
const checkOverflow = () => {
|
|
4005
4009
|
moreArrowVisible.value = isTitleOverflowing();
|
|
4006
|
-
}
|
|
4010
|
+
};
|
|
4011
|
+
onMounted(() => {
|
|
4012
|
+
checkOverflow();
|
|
4013
|
+
});
|
|
4007
4014
|
watch(
|
|
4008
4015
|
() => props.title,
|
|
4009
4016
|
() => {
|
|
@@ -4011,14 +4018,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
4011
4018
|
titleRef.value.classList.remove("plv-product-c-item__title--expanded");
|
|
4012
4019
|
}
|
|
4013
4020
|
nextTick(() => {
|
|
4014
|
-
|
|
4021
|
+
checkOverflow();
|
|
4015
4022
|
});
|
|
4016
4023
|
}
|
|
4017
4024
|
);
|
|
4018
|
-
|
|
4019
|
-
checkTitleOverflow();
|
|
4020
|
-
});
|
|
4021
|
-
return { __sfc: true, props, titleRef, moreArrowVisible, handleExpand, isTitleOverflowing, checkTitleOverflow, ProductIconArrowDown };
|
|
4025
|
+
return { __sfc: true, props, titleRef, moreArrowVisible, handleExpand, isTitleOverflowing, checkOverflow, ProductIconArrowDown };
|
|
4022
4026
|
}
|
|
4023
4027
|
});
|
|
4024
4028
|
var _sfc_render$7 = function render6() {
|
|
@@ -5294,8 +5298,8 @@ console.log(
|
|
|
5294
5298
|
"%c@polyv/product-ui",
|
|
5295
5299
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
5296
5300
|
"[component: product-list-popup]",
|
|
5297
|
-
"[version: 1.0.0-rc-20250612.
|
|
5298
|
-
"[buildTime: 2025-06-12
|
|
5301
|
+
"[version: 1.0.0-rc-20250612.4]",
|
|
5302
|
+
"[buildTime: 2025-06-12 09:58:21]"
|
|
5299
5303
|
);
|
|
5300
5304
|
export {
|
|
5301
5305
|
productListPopup as default
|