@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 CHANGED
@@ -3816,29 +3816,16 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
3816
3816
  }
3817
3817
  };
3818
3818
  const adjustPlacement = () => {
3819
- if (isUniApp) {
3820
- const systemInfo = uni.getSystemInfoSync();
3821
- const windowHeight = systemInfo.windowHeight;
3822
- const spaceAbove = triggerRect.top;
3823
- const spaceBelow = windowHeight - triggerRect.bottom;
3824
- if (props.placement === "top" && spaceAbove < 50) {
3825
- actualPlacement.value = "bottom";
3826
- } else if (props.placement === "bottom" && spaceBelow < 50) {
3827
- actualPlacement.value = "top";
3828
- } else {
3829
- actualPlacement.value = props.placement;
3830
- }
3819
+ const systemInfo = uni.getSystemInfoSync();
3820
+ const windowHeight = systemInfo.windowHeight;
3821
+ const spaceAbove = triggerRect.top;
3822
+ const spaceBelow = windowHeight - triggerRect.bottom;
3823
+ if (props.placement === "top" && spaceAbove < 50) {
3824
+ actualPlacement.value = "bottom";
3825
+ } else if (props.placement === "bottom" && spaceBelow < 50) {
3826
+ actualPlacement.value = "top";
3831
3827
  } else {
3832
- const windowHeight = window.innerHeight;
3833
- const spaceAbove = triggerRect.top;
3834
- const spaceBelow = windowHeight - triggerRect.bottom;
3835
- if (props.placement === "top" && spaceAbove < 50) {
3836
- actualPlacement.value = "bottom";
3837
- } else if (props.placement === "bottom" && spaceBelow < 50) {
3838
- actualPlacement.value = "top";
3839
- } else {
3840
- actualPlacement.value = props.placement;
3841
- }
3828
+ actualPlacement.value = props.placement;
3842
3829
  }
3843
3830
  };
3844
3831
  const handleActionClick = (action, index) => {
@@ -3846,24 +3833,9 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
3846
3833
  emit("select", action, index);
3847
3834
  hide();
3848
3835
  };
3849
- const handleClickOutside = (event) => {
3850
- if (visible.value) {
3851
- hide();
3852
- }
3853
- };
3854
3836
  vue.onMounted(() => {
3855
- if (isUniApp) ;
3856
- else {
3857
- document.addEventListener("click", handleClickOutside);
3858
- document.addEventListener("touchstart", handleClickOutside);
3859
- }
3860
3837
  });
3861
3838
  vue.onUnmounted(() => {
3862
- if (isUniApp) ;
3863
- else {
3864
- document.removeEventListener("click", handleClickOutside);
3865
- document.removeEventListener("touchstart", handleClickOutside);
3866
- }
3867
3839
  if (hideTimer) {
3868
3840
  clearTimeout(hideTimer);
3869
3841
  }
@@ -3917,7 +3889,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
3917
3889
  };
3918
3890
  }
3919
3891
  });
3920
- const uTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-dd1bff02"]]);
3892
+ const uTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-0985db7a"]]);
3921
3893
  const _hoisted_1$c = ["src"];
3922
3894
  const _hoisted_2$9 = {
3923
3895
  key: 1,
@@ -4869,6 +4841,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
4869
4841
  if (props.disabled) return;
4870
4842
  if (props.href) {
4871
4843
  window.open(props.href, "_blank");
4844
+ uni.navigateTo({ url: `/pages/webview/index?url=${encodeURIComponent(props.href)}` });
4872
4845
  }
4873
4846
  emit("click");
4874
4847
  };
@@ -4885,7 +4858,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
4885
4858
  };
4886
4859
  }
4887
4860
  });
4888
- const uLink = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f60d6c27"]]);
4861
+ const uLink = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-30210bda"]]);
4889
4862
  const _hoisted_1$2 = { class: "u-read-more" };
4890
4863
  const _hoisted_2$2 = { class: "u-read-more__toggle-text" };
4891
4864
  const _hoisted_3$2 = { class: "u-read-more__toggle-icon" };
@@ -5036,7 +5009,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
5036
5009
  };
5037
5010
  }
5038
5011
  });
5039
- const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-a344a18d"]]);
5012
+ const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-9b76f6cf"]]);
5040
5013
  const __default__$1 = {
5041
5014
  options: {
5042
5015
  virtualHost: true,