cleek 2.7.3 → 2.7.5

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
@@ -90409,21 +90409,19 @@ const _sfc_main$7 = defineComponent$2({
90409
90409
  const valueIsDefault = computed$3(() => {
90410
90410
  if (logicClearValue.value !== "auto")
90411
90411
  return value.value === logicClearValue.value;
90412
- switch (typeof props.modelValue) {
90413
- case "number":
90414
- return props.modelValue === 0;
90415
- case "string":
90416
- return props.modelValue === "";
90417
- case "object":
90418
- if (!props.modelValue)
90419
- return null;
90420
- if (props.modelValue.constructor === Array) {
90421
- return props.modelValue.length === 0;
90422
- }
90423
- return Object.keys(props.modelValue).length === 0;
90424
- default:
90425
- return props.modelValue === null;
90426
- }
90412
+ const currentValue = props.modelValue;
90413
+ if (typeof currentValue === "number")
90414
+ return currentValue === 0;
90415
+ if (typeof currentValue === "string")
90416
+ return currentValue === "";
90417
+ if (typeof currentValue === "object") {
90418
+ if (!currentValue)
90419
+ return currentValue === null;
90420
+ if (Array.isArray(currentValue))
90421
+ return currentValue.length === 0;
90422
+ return Object.keys(currentValue).length === 0;
90423
+ }
90424
+ return currentValue === null;
90427
90425
  });
90428
90426
  const isPlaceholderVisible = computed$3(() => {
90429
90427
  if (!props.placeholder)
@@ -90520,7 +90518,7 @@ const _sfc_main$7 = defineComponent$2({
90520
90518
  };
90521
90519
  }
90522
90520
  });
90523
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-67c25d6a"]]);
90521
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-2d01c17a"]]);
90524
90522
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
90525
90523
  const _hoisted_1$6 = {
90526
90524
  key: 0,