@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.es.js CHANGED
@@ -3702,18 +3702,19 @@ const _sfc_main$c = defineComponent({
3702
3702
  const style2 = usePickComponentStyle(props2);
3703
3703
  const emitEvent = useEmitEvent(props2);
3704
3704
  const click = emitEvent("click", () => {
3705
+ const url = unref(myHref);
3705
3706
  if (props2.target === "event") {
3706
3707
  window.parent.postMessage({
3707
3708
  type: "openPage",
3708
- url: unref(myHref)
3709
+ url
3709
3710
  }, "*");
3710
3711
  }
3711
3712
  });
3712
3713
  const myText = computed(() => useVariablesInText(props2.text));
3713
- const myHref = computed(() => useVariablesInText(props2.href));
3714
+ const myHref = computed(() => useVariablesInText(props2.href) || null);
3714
3715
  const myTarget = computed(() => {
3715
3716
  const target = props2.target;
3716
- if (target === "event") {
3717
+ if (target === "event" || unref(myHref) == null) {
3717
3718
  return void 0;
3718
3719
  } else {
3719
3720
  const map = {