cleek 2.3.2 → 2.3.3

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/cleek.es.js CHANGED
@@ -11618,9 +11618,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11618
11618
  onMounted(() => {
11619
11619
  getCurrentInstance().ctx;
11620
11620
  $cleekOptions = functions.getCleekOptions(getCurrentInstance);
11621
- setTimeout(() => {
11622
- isMounted.value = true;
11623
- }, 3e3);
11621
+ isMounted.value = true;
11624
11622
  });
11625
11623
  return (_ctx, _cache) => {
11626
11624
  return openBlock(), createElementBlock("button", {
@@ -11649,7 +11647,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11649
11647
  };
11650
11648
  }
11651
11649
  });
11652
- var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-32d90b96"]]);
11650
+ var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-5fd48ae3"]]);
11653
11651
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
11654
11652
  const _hoisted_1$f = ["for"];
11655
11653
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -13636,7 +13634,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13636
13634
  setup(__props) {
13637
13635
  const props = __props;
13638
13636
  const altNeeded = ref(false);
13639
- let isMounted = ref(false);
13637
+ let $cleekOptions;
13638
+ const isMounted = ref(false);
13640
13639
  const isFullPath = computed$2(() => {
13641
13640
  return props.src.substring(0, 4) === "http";
13642
13641
  });
@@ -13699,15 +13698,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13699
13698
  }
13700
13699
  function getImg(src) {
13701
13700
  let path = "";
13702
- const $cleekOptions = functions.getCleekOptions(getCurrentInstance);
13703
- if ($cleekOptions) {
13704
- if ($cleekOptions.imgPath)
13705
- path = $cleekOptions.imgPath;
13701
+ if (isMounted.value) {
13702
+ if ($cleekOptions)
13703
+ path = $cleekOptions.img.basePath;
13706
13704
  }
13707
13705
  return `${path}${src}`;
13708
13706
  }
13709
13707
  onMounted(() => {
13710
13708
  getCurrentInstance().ctx;
13709
+ $cleekOptions = functions.getCleekOptions(getCurrentInstance);
13711
13710
  isMounted.value = true;
13712
13711
  });
13713
13712
  return (_ctx, _cache) => {
@@ -13726,7 +13725,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13726
13725
  };
13727
13726
  }
13728
13727
  });
13729
- var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-65d88644"]]);
13728
+ var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-b766b320"]]);
13730
13729
  var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
13731
13730
  const _withScopeId$1 = (n) => (pushScopeId("data-v-a5198d80"), n = n(), popScopeId(), n);
13732
13731
  const _hoisted_1$5 = ["onKeyup"];