cleek 2.4.79 → 2.4.81
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 +14 -20
- package/dist/cleek.umd.js +2 -2
- package/dist/style.css +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,
|
|
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";
|
|
33
33
|
function getDevtoolsGlobalHook() {
|
|
34
34
|
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
35
35
|
}
|
|
@@ -24118,22 +24118,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24118
24118
|
});
|
|
24119
24119
|
var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-a8333ef4"]]);
|
|
24120
24120
|
function useWindowWidth() {
|
|
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
|
-
});
|
|
24134
|
-
return {
|
|
24135
|
-
windowWidth
|
|
24136
|
-
};
|
|
24137
24121
|
}
|
|
24138
24122
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
24139
24123
|
const _hoisted_1$j = ["title", "aria-label", "disabled"];
|
|
@@ -26299,6 +26283,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
26299
26283
|
color: null,
|
|
26300
26284
|
textColor: null,
|
|
26301
26285
|
align: null,
|
|
26286
|
+
nowrap: { type: Boolean },
|
|
26302
26287
|
icon: null,
|
|
26303
26288
|
iconRight: null,
|
|
26304
26289
|
iconPack: null
|
|
@@ -26310,14 +26295,23 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
26310
26295
|
const defaultSize = "s";
|
|
26311
26296
|
const computedClass = computed$2(() => {
|
|
26312
26297
|
const list = [];
|
|
26298
|
+
if (!props.color || hooks8.isColorTemplateVariable(props.color)) {
|
|
26299
|
+
list.push(`ck-component__bg-color--${props.color || defaultColor}`);
|
|
26300
|
+
}
|
|
26313
26301
|
list.push(`size-${props.size || defaultSize}`);
|
|
26314
|
-
list.push(`ck-component__bg-color--${props.color || defaultColor}`);
|
|
26315
26302
|
if (props.align)
|
|
26316
26303
|
list.push(`align--${props.align}`);
|
|
26304
|
+
if (props.nowrap)
|
|
26305
|
+
list.push(`ck-chip--${props.nowrap}`);
|
|
26317
26306
|
return list;
|
|
26318
26307
|
});
|
|
26319
26308
|
const computedStyle = computed$2(() => {
|
|
26320
|
-
|
|
26309
|
+
const list = [];
|
|
26310
|
+
if (props.color && !hooks8.isColorTemplateVariable(props.color)) {
|
|
26311
|
+
list.push({ backgroundColor: props.color });
|
|
26312
|
+
list.push({ color: props.textColor || "white" });
|
|
26313
|
+
}
|
|
26314
|
+
return list;
|
|
26321
26315
|
});
|
|
26322
26316
|
return (_ctx, _cache) => {
|
|
26323
26317
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26345,7 +26339,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
26345
26339
|
};
|
|
26346
26340
|
}
|
|
26347
26341
|
});
|
|
26348
|
-
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
26342
|
+
var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-03892d67"]]);
|
|
26349
26343
|
var ckDiv_vue_vue_type_style_index_0_lang = "";
|
|
26350
26344
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
26351
26345
|
props: {
|