@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.es.js
CHANGED
|
@@ -2931,24 +2931,31 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2931
2931
|
}
|
|
2932
2932
|
function isTitleOverflowing() {
|
|
2933
2933
|
const titleEl = titleRef.value;
|
|
2934
|
-
if (!titleEl)
|
|
2934
|
+
if (!titleEl || !titleEl.parentElement) {
|
|
2935
|
+
return false;
|
|
2936
|
+
}
|
|
2937
|
+
const originalRect = titleEl.getBoundingClientRect();
|
|
2935
2938
|
const clone = titleEl.cloneNode(true);
|
|
2936
|
-
const computedStyle = window.getComputedStyle(titleEl);
|
|
2937
|
-
clone.style.font = computedStyle.font;
|
|
2938
|
-
clone.style.lineHeight = computedStyle.lineHeight;
|
|
2939
|
-
clone.style.display = "block";
|
|
2940
|
-
clone.style.width = titleEl.clientWidth + "px";
|
|
2941
|
-
clone.style.visibility = "hidden";
|
|
2942
2939
|
clone.style.position = "absolute";
|
|
2940
|
+
clone.style.top = "-9999px";
|
|
2941
|
+
clone.style.left = "-9999px";
|
|
2942
|
+
clone.style.visibility = "hidden";
|
|
2943
|
+
clone.style.width = `${originalRect.width}px`;
|
|
2944
|
+
clone.style.boxSizing = "border-box";
|
|
2943
2945
|
clone.style.whiteSpace = "normal";
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2946
|
+
clone.style.webkitLineClamp = "unset";
|
|
2947
|
+
clone.style.display = "block";
|
|
2948
|
+
titleEl.parentElement.appendChild(clone);
|
|
2949
|
+
const cloneHeight = clone.getBoundingClientRect().height;
|
|
2950
|
+
titleEl.parentElement.removeChild(clone);
|
|
2951
|
+
return cloneHeight > originalRect.height + 1;
|
|
2948
2952
|
}
|
|
2949
|
-
|
|
2953
|
+
const checkOverflow = () => {
|
|
2950
2954
|
moreArrowVisible.value = isTitleOverflowing();
|
|
2951
|
-
}
|
|
2955
|
+
};
|
|
2956
|
+
onMounted(() => {
|
|
2957
|
+
checkOverflow();
|
|
2958
|
+
});
|
|
2952
2959
|
watch(
|
|
2953
2960
|
() => props.title,
|
|
2954
2961
|
() => {
|
|
@@ -2956,14 +2963,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2956
2963
|
titleRef.value.classList.remove("plv-product-c-item__title--expanded");
|
|
2957
2964
|
}
|
|
2958
2965
|
nextTick(() => {
|
|
2959
|
-
|
|
2966
|
+
checkOverflow();
|
|
2960
2967
|
});
|
|
2961
2968
|
}
|
|
2962
2969
|
);
|
|
2963
|
-
|
|
2964
|
-
checkTitleOverflow();
|
|
2965
|
-
});
|
|
2966
|
-
return { __sfc: true, props, titleRef, moreArrowVisible, handleExpand, isTitleOverflowing, checkTitleOverflow, ProductIconArrowDown };
|
|
2970
|
+
return { __sfc: true, props, titleRef, moreArrowVisible, handleExpand, isTitleOverflowing, checkOverflow, ProductIconArrowDown };
|
|
2967
2971
|
}
|
|
2968
2972
|
});
|
|
2969
2973
|
var _sfc_render$6 = function render5() {
|
|
@@ -5181,8 +5185,8 @@ console.log(
|
|
|
5181
5185
|
"%c@polyv/product-ui",
|
|
5182
5186
|
"background:#409EFF;padding: 2px 6px;border-radius: 3px;color: #fff",
|
|
5183
5187
|
"[component: product-list]",
|
|
5184
|
-
"[version: 1.0.0-rc-20250612.
|
|
5185
|
-
"[buildTime: 2025-06-12
|
|
5188
|
+
"[version: 1.0.0-rc-20250612.4]",
|
|
5189
|
+
"[buildTime: 2025-06-12 09:58:14]"
|
|
5186
5190
|
);
|
|
5187
5191
|
export {
|
|
5188
5192
|
productList as default
|