@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-detail.es.js
CHANGED
|
@@ -6365,24 +6365,31 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6365
6365
|
}
|
|
6366
6366
|
function isTitleOverflowing() {
|
|
6367
6367
|
const titleEl = titleRef.value;
|
|
6368
|
-
if (!titleEl)
|
|
6368
|
+
if (!titleEl || !titleEl.parentElement) {
|
|
6369
|
+
return false;
|
|
6370
|
+
}
|
|
6371
|
+
const originalRect = titleEl.getBoundingClientRect();
|
|
6369
6372
|
const clone = titleEl.cloneNode(true);
|
|
6370
|
-
const computedStyle = window.getComputedStyle(titleEl);
|
|
6371
|
-
clone.style.font = computedStyle.font;
|
|
6372
|
-
clone.style.lineHeight = computedStyle.lineHeight;
|
|
6373
|
-
clone.style.display = "block";
|
|
6374
|
-
clone.style.width = titleEl.clientWidth + "px";
|
|
6375
|
-
clone.style.visibility = "hidden";
|
|
6376
6373
|
clone.style.position = "absolute";
|
|
6374
|
+
clone.style.top = "-9999px";
|
|
6375
|
+
clone.style.left = "-9999px";
|
|
6376
|
+
clone.style.visibility = "hidden";
|
|
6377
|
+
clone.style.width = `${originalRect.width}px`;
|
|
6378
|
+
clone.style.boxSizing = "border-box";
|
|
6377
6379
|
clone.style.whiteSpace = "normal";
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6380
|
+
clone.style.webkitLineClamp = "unset";
|
|
6381
|
+
clone.style.display = "block";
|
|
6382
|
+
titleEl.parentElement.appendChild(clone);
|
|
6383
|
+
const cloneHeight = clone.getBoundingClientRect().height;
|
|
6384
|
+
titleEl.parentElement.removeChild(clone);
|
|
6385
|
+
return cloneHeight > originalRect.height + 1;
|
|
6382
6386
|
}
|
|
6383
|
-
|
|
6387
|
+
const checkOverflow2 = () => {
|
|
6384
6388
|
moreArrowVisible.value = isTitleOverflowing();
|
|
6385
|
-
}
|
|
6389
|
+
};
|
|
6390
|
+
onMounted(() => {
|
|
6391
|
+
checkOverflow2();
|
|
6392
|
+
});
|
|
6386
6393
|
watch(
|
|
6387
6394
|
() => props.title,
|
|
6388
6395
|
() => {
|
|
@@ -6390,14 +6397,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
6390
6397
|
titleRef.value.classList.remove("plv-product-c-item__title--expanded");
|
|
6391
6398
|
}
|
|
6392
6399
|
nextTick$1(() => {
|
|
6393
|
-
|
|
6400
|
+
checkOverflow2();
|
|
6394
6401
|
});
|
|
6395
6402
|
}
|
|
6396
6403
|
);
|
|
6397
|
-
|
|
6398
|
-
checkTitleOverflow();
|
|
6399
|
-
});
|
|
6400
|
-
return { __sfc: true, props, titleRef, moreArrowVisible, handleExpand, isTitleOverflowing, checkTitleOverflow, ProductIconArrowDown };
|
|
6404
|
+
return { __sfc: true, props, titleRef, moreArrowVisible, handleExpand, isTitleOverflowing, checkOverflow: checkOverflow2, ProductIconArrowDown };
|
|
6401
6405
|
}
|
|
6402
6406
|
});
|
|
6403
6407
|
var _sfc_render$3 = function render7() {
|
|
@@ -8074,8 +8078,8 @@ console.log(
|
|
|
8074
8078
|
"%c@polyv/product-ui",
|
|
8075
8079
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
8076
8080
|
"[component: product-detail]",
|
|
8077
|
-
"[version: 1.0.0-rc-20250612.
|
|
8078
|
-
"[buildTime: 2025-06-12
|
|
8081
|
+
"[version: 1.0.0-rc-20250612.4]",
|
|
8082
|
+
"[buildTime: 2025-06-12 09:58:25]"
|
|
8079
8083
|
);
|
|
8080
8084
|
export {
|
|
8081
8085
|
productDetail as default
|