cleek 2.3.0 → 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
@@ -11580,8 +11580,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11580
11580
  const realButtonType = computed$2(() => {
11581
11581
  if (props.type)
11582
11582
  return props.type;
11583
- if (!isMounted.value && $cleekOptions)
11584
- return $cleekOptions.button.type;
11583
+ if (isMounted.value) {
11584
+ console.log("$cleekOptions", $cleekOptions);
11585
+ if ($cleekOptions)
11586
+ return $cleekOptions.button.type;
11587
+ }
11585
11588
  return defaultButtonType;
11586
11589
  });
11587
11590
  const computedClass = computed$2(() => {
@@ -11615,9 +11618,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11615
11618
  onMounted(() => {
11616
11619
  getCurrentInstance().ctx;
11617
11620
  $cleekOptions = functions.getCleekOptions(getCurrentInstance);
11618
- setTimeout(() => {
11619
- isMounted.value = true;
11620
- }, 3e3);
11621
+ isMounted.value = true;
11621
11622
  });
11622
11623
  return (_ctx, _cache) => {
11623
11624
  return openBlock(), createElementBlock("button", {
@@ -11646,7 +11647,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11646
11647
  };
11647
11648
  }
11648
11649
  });
11649
- var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-73fd023c"]]);
11650
+ var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-5fd48ae3"]]);
11650
11651
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
11651
11652
  const _hoisted_1$f = ["for"];
11652
11653
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -13633,7 +13634,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13633
13634
  setup(__props) {
13634
13635
  const props = __props;
13635
13636
  const altNeeded = ref(false);
13636
- let isMounted = ref(false);
13637
+ let $cleekOptions;
13638
+ const isMounted = ref(false);
13637
13639
  const isFullPath = computed$2(() => {
13638
13640
  return props.src.substring(0, 4) === "http";
13639
13641
  });
@@ -13696,15 +13698,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13696
13698
  }
13697
13699
  function getImg(src) {
13698
13700
  let path = "";
13699
- const $cleekOptions = functions.getCleekOptions(getCurrentInstance);
13700
- if ($cleekOptions) {
13701
- if ($cleekOptions.imgPath)
13702
- path = $cleekOptions.imgPath;
13701
+ if (isMounted.value) {
13702
+ if ($cleekOptions)
13703
+ path = $cleekOptions.img.basePath;
13703
13704
  }
13704
13705
  return `${path}${src}`;
13705
13706
  }
13706
13707
  onMounted(() => {
13707
13708
  getCurrentInstance().ctx;
13709
+ $cleekOptions = functions.getCleekOptions(getCurrentInstance);
13708
13710
  isMounted.value = true;
13709
13711
  });
13710
13712
  return (_ctx, _cache) => {
@@ -13723,7 +13725,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13723
13725
  };
13724
13726
  }
13725
13727
  });
13726
- 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"]]);
13727
13729
  var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
13728
13730
  const _withScopeId$1 = (n) => (pushScopeId("data-v-a5198d80"), n = n(), popScopeId(), n);
13729
13731
  const _hoisted_1$5 = ["onKeyup"];