cleek 2.3.17 → 2.3.18

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
@@ -16662,7 +16662,6 @@ tippy$1.setDefaultProps({
16662
16662
  var tippy = "";
16663
16663
  var ckTooltip_vue_vue_type_style_index_0_scoped_true_lang = "";
16664
16664
  const _hoisted_1 = {
16665
- key: 0,
16666
16665
  class: "ck-tooltip",
16667
16666
  tabindex: "0"
16668
16667
  };
@@ -16672,26 +16671,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16672
16671
  },
16673
16672
  setup(__props) {
16674
16673
  const props = __props;
16675
- watch(() => props.text, (val) => {
16674
+ let context;
16675
+ watch(() => props.text, (newValue, oldValue) => {
16676
16676
  setText();
16677
16677
  });
16678
- function setText() {
16679
- const context = getCurrentInstance().ctx;
16678
+ const setText = () => {
16680
16679
  tippy$1(context.$el, {
16681
16680
  content: context.text
16682
16681
  });
16683
- }
16682
+ };
16684
16683
  onMounted(() => {
16684
+ context = getCurrentInstance().ctx;
16685
+ if (!props.text)
16686
+ return;
16685
16687
  setText();
16686
16688
  });
16687
16689
  return (_ctx, _cache) => {
16688
- return __props.text ? (openBlock(), createElementBlock("div", _hoisted_1, [
16690
+ return openBlock(), createElementBlock("div", _hoisted_1, [
16689
16691
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
16690
- ])) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true);
16692
+ ]);
16691
16693
  };
16692
16694
  }
16693
16695
  });
16694
- var ckTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7c33bc7a"]]);
16696
+ var ckTooltip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0ef5192d"]]);
16695
16697
  var events = {
16696
16698
  OPEN_MODAL: "OPEN_MODAL",
16697
16699
  CLOSE_MODAL: "CLOSE_MODAL",