cleek 2.6.26 → 2.6.29
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 -12
- package/dist/cleek.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -89886,7 +89886,7 @@ const _sfc_main$6 = defineComponent$2({
|
|
|
89886
89886
|
});
|
|
89887
89887
|
var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-64161f5d"]]);
|
|
89888
89888
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
89889
|
-
const _withScopeId$1 = (n2) => (pushScopeId$2("data-v-
|
|
89889
|
+
const _withScopeId$1 = (n2) => (pushScopeId$2("data-v-8b3f3d3e"), n2 = n2(), popScopeId$2(), n2);
|
|
89890
89890
|
const _hoisted_1$5 = ["checked", "disabled"];
|
|
89891
89891
|
const _hoisted_2$4 = { class: "ck-switch__slider-container" };
|
|
89892
89892
|
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|
|
@@ -89910,16 +89910,21 @@ const _sfc_main$5 = defineComponent$2({
|
|
|
89910
89910
|
emits: ["update:modelValue"],
|
|
89911
89911
|
setup(__props, { emit: emits }) {
|
|
89912
89912
|
const props = __props;
|
|
89913
|
+
const checkedValue = ref$1(false);
|
|
89913
89914
|
const value = computed$3({
|
|
89914
89915
|
get() {
|
|
89915
89916
|
return props.modelValue;
|
|
89916
89917
|
},
|
|
89917
89918
|
set(val) {
|
|
89918
|
-
console.log("test");
|
|
89919
|
-
console.trace();
|
|
89920
89919
|
emits("update:modelValue", val);
|
|
89921
89920
|
}
|
|
89922
89921
|
});
|
|
89922
|
+
watch$1(
|
|
89923
|
+
() => value.value,
|
|
89924
|
+
(val) => {
|
|
89925
|
+
checkedValue.value = val;
|
|
89926
|
+
}
|
|
89927
|
+
);
|
|
89923
89928
|
const computedClass = computed$3(() => {
|
|
89924
89929
|
const list = [];
|
|
89925
89930
|
if (props.squared)
|
|
@@ -89944,11 +89949,8 @@ const _sfc_main$5 = defineComponent$2({
|
|
|
89944
89949
|
return list;
|
|
89945
89950
|
});
|
|
89946
89951
|
function onTrigger(e4) {
|
|
89947
|
-
|
|
89948
|
-
|
|
89949
|
-
e4.preventDefault();
|
|
89950
|
-
e4.stopPropagation();
|
|
89951
|
-
}
|
|
89952
|
+
if (!props.preventAutoUpdate)
|
|
89953
|
+
value.value = !value.value;
|
|
89952
89954
|
}
|
|
89953
89955
|
return (_ctx, _cache) => {
|
|
89954
89956
|
return openBlock$2(), createElementBlock$2("label", mergeProps$2({ class: "ck-switch" }, computedAttributes.value, {
|
|
@@ -89959,11 +89961,11 @@ const _sfc_main$5 = defineComponent$2({
|
|
|
89959
89961
|
createElementVNode("input", {
|
|
89960
89962
|
class: "ck-switch__input",
|
|
89961
89963
|
type: "checkbox",
|
|
89962
|
-
checked:
|
|
89964
|
+
checked: checkedValue.value,
|
|
89963
89965
|
"aria-hidden": "true",
|
|
89964
89966
|
disabled: _ctx.disabled,
|
|
89965
|
-
|
|
89966
|
-
}, null,
|
|
89967
|
+
onChange: _cache[0] || (_cache[0] = ($event) => onTrigger())
|
|
89968
|
+
}, null, 40, _hoisted_1$5),
|
|
89967
89969
|
createElementVNode("div", _hoisted_2$4, [
|
|
89968
89970
|
_hoisted_3$2,
|
|
89969
89971
|
_ctx.icon && value.value ? (openBlock$2(), createBlock$2(CkIcon, {
|
|
@@ -89986,7 +89988,7 @@ const _sfc_main$5 = defineComponent$2({
|
|
|
89986
89988
|
};
|
|
89987
89989
|
}
|
|
89988
89990
|
});
|
|
89989
|
-
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
89991
|
+
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-8b3f3d3e"]]);
|
|
89990
89992
|
var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
89991
89993
|
const _hoisted_1$4 = { class: "ck-switch-options__container-exterior" };
|
|
89992
89994
|
const _hoisted_2$3 = ["onClick"];
|