@atooyu/uxto-ui 1.1.41 → 1.1.43
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/dist/index.js +13 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -40
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +43 -41
- package/package.json +1 -1
- package/src/components/u-link/u-link.vue +4 -1
- package/src/components/u-tabbar/u-tabbar.vue +3 -0
- package/src/components/u-tooltip/u-tooltip.vue +12 -38
package/dist/index.mjs
CHANGED
|
@@ -3814,29 +3814,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3814
3814
|
}
|
|
3815
3815
|
};
|
|
3816
3816
|
const adjustPlacement = () => {
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
actualPlacement.value = "top";
|
|
3826
|
-
} else {
|
|
3827
|
-
actualPlacement.value = props.placement;
|
|
3828
|
-
}
|
|
3817
|
+
const systemInfo = uni.getSystemInfoSync();
|
|
3818
|
+
const windowHeight = systemInfo.windowHeight;
|
|
3819
|
+
const spaceAbove = triggerRect.top;
|
|
3820
|
+
const spaceBelow = windowHeight - triggerRect.bottom;
|
|
3821
|
+
if (props.placement === "top" && spaceAbove < 50) {
|
|
3822
|
+
actualPlacement.value = "bottom";
|
|
3823
|
+
} else if (props.placement === "bottom" && spaceBelow < 50) {
|
|
3824
|
+
actualPlacement.value = "top";
|
|
3829
3825
|
} else {
|
|
3830
|
-
|
|
3831
|
-
const spaceAbove = triggerRect.top;
|
|
3832
|
-
const spaceBelow = windowHeight - triggerRect.bottom;
|
|
3833
|
-
if (props.placement === "top" && spaceAbove < 50) {
|
|
3834
|
-
actualPlacement.value = "bottom";
|
|
3835
|
-
} else if (props.placement === "bottom" && spaceBelow < 50) {
|
|
3836
|
-
actualPlacement.value = "top";
|
|
3837
|
-
} else {
|
|
3838
|
-
actualPlacement.value = props.placement;
|
|
3839
|
-
}
|
|
3826
|
+
actualPlacement.value = props.placement;
|
|
3840
3827
|
}
|
|
3841
3828
|
};
|
|
3842
3829
|
const handleActionClick = (action, index) => {
|
|
@@ -3844,24 +3831,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3844
3831
|
emit("select", action, index);
|
|
3845
3832
|
hide();
|
|
3846
3833
|
};
|
|
3847
|
-
const handleClickOutside = (event) => {
|
|
3848
|
-
if (visible.value) {
|
|
3849
|
-
hide();
|
|
3850
|
-
}
|
|
3851
|
-
};
|
|
3852
3834
|
onMounted(() => {
|
|
3853
|
-
if (isUniApp) ;
|
|
3854
|
-
else {
|
|
3855
|
-
document.addEventListener("click", handleClickOutside);
|
|
3856
|
-
document.addEventListener("touchstart", handleClickOutside);
|
|
3857
|
-
}
|
|
3858
3835
|
});
|
|
3859
3836
|
onUnmounted(() => {
|
|
3860
|
-
if (isUniApp) ;
|
|
3861
|
-
else {
|
|
3862
|
-
document.removeEventListener("click", handleClickOutside);
|
|
3863
|
-
document.removeEventListener("touchstart", handleClickOutside);
|
|
3864
|
-
}
|
|
3865
3837
|
if (hideTimer) {
|
|
3866
3838
|
clearTimeout(hideTimer);
|
|
3867
3839
|
}
|
|
@@ -3915,7 +3887,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3915
3887
|
};
|
|
3916
3888
|
}
|
|
3917
3889
|
});
|
|
3918
|
-
const uTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
3890
|
+
const uTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-0985db7a"]]);
|
|
3919
3891
|
const _hoisted_1$c = ["src"];
|
|
3920
3892
|
const _hoisted_2$9 = {
|
|
3921
3893
|
key: 1,
|
|
@@ -4867,6 +4839,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4867
4839
|
if (props.disabled) return;
|
|
4868
4840
|
if (props.href) {
|
|
4869
4841
|
window.open(props.href, "_blank");
|
|
4842
|
+
uni.navigateTo({ url: `/pages/webview/index?url=${encodeURIComponent(props.href)}` });
|
|
4870
4843
|
}
|
|
4871
4844
|
emit("click");
|
|
4872
4845
|
};
|
|
@@ -4883,7 +4856,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
4883
4856
|
};
|
|
4884
4857
|
}
|
|
4885
4858
|
});
|
|
4886
|
-
const uLink = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
4859
|
+
const uLink = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-30210bda"]]);
|
|
4887
4860
|
const _hoisted_1$2 = { class: "u-read-more" };
|
|
4888
4861
|
const _hoisted_2$2 = { class: "u-read-more__toggle-text" };
|
|
4889
4862
|
const _hoisted_3$2 = { class: "u-read-more__toggle-icon" };
|
|
@@ -5034,7 +5007,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
5034
5007
|
};
|
|
5035
5008
|
}
|
|
5036
5009
|
});
|
|
5037
|
-
const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
5010
|
+
const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-9b76f6cf"]]);
|
|
5038
5011
|
const __default__$1 = {
|
|
5039
5012
|
options: {
|
|
5040
5013
|
virtualHost: true,
|