cleek 2.4.86 → 2.4.87
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 +13 -1
- package/dist/cleek.umd.js +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -29,7 +29,7 @@ var __objRest = (source2, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, resolveDirective, unref as unref$1, createTextVNode, withDirectives, onMounted, getCurrentInstance, isRef as isRef$1, vModelText, vModelDynamic, renderList, withModifiers, Teleport, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
|
|
32
|
+
import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, resolveDirective, unref as unref$1, createTextVNode, withDirectives, onMounted, getCurrentInstance, onBeforeUnmount, isRef as isRef$1, vModelText, vModelDynamic, renderList, withModifiers, Teleport, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
|
|
33
33
|
function getDevtoolsGlobalHook() {
|
|
34
34
|
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
35
35
|
}
|
|
@@ -24119,6 +24119,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24119
24119
|
var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-a8333ef4"]]);
|
|
24120
24120
|
function useWindowWidth() {
|
|
24121
24121
|
const windowWidth = ref(0);
|
|
24122
|
+
function handleWindowResize(event) {
|
|
24123
|
+
windowWidth.value = event.currentTarget.innerWidth;
|
|
24124
|
+
}
|
|
24125
|
+
onMounted(() => {
|
|
24126
|
+
nextTick$1(() => {
|
|
24127
|
+
window.addEventListener("resize", handleWindowResize);
|
|
24128
|
+
});
|
|
24129
|
+
windowWidth.value = window.innerWidth;
|
|
24130
|
+
});
|
|
24131
|
+
onBeforeUnmount(() => {
|
|
24132
|
+
window.removeEventListener("resize", handleWindowResize);
|
|
24133
|
+
});
|
|
24122
24134
|
return {
|
|
24123
24135
|
windowWidth
|
|
24124
24136
|
};
|