@ecan-bi/datav 1.0.67 → 1.0.68

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.umd.js CHANGED
@@ -3708,18 +3708,19 @@
3708
3708
  const style2 = usePickComponentStyle(props2);
3709
3709
  const emitEvent = useEmitEvent(props2);
3710
3710
  const click = emitEvent("click", () => {
3711
+ const url = vue.unref(myHref);
3711
3712
  if (props2.target === "event") {
3712
3713
  window.parent.postMessage({
3713
3714
  type: "openPage",
3714
- url: vue.unref(myHref)
3715
+ url
3715
3716
  }, "*");
3716
3717
  }
3717
3718
  });
3718
3719
  const myText = vue.computed(() => useVariablesInText(props2.text));
3719
- const myHref = vue.computed(() => useVariablesInText(props2.href));
3720
+ const myHref = vue.computed(() => useVariablesInText(props2.href) || null);
3720
3721
  const myTarget = vue.computed(() => {
3721
3722
  const target = props2.target;
3722
- if (target === "event") {
3723
+ if (target === "event" || vue.unref(myHref) == null) {
3723
3724
  return void 0;
3724
3725
  } else {
3725
3726
  const map = {