lew-ui 2.7.69 → 2.7.70

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/index.js CHANGED
@@ -14850,9 +14850,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14850
14850
  });
14851
14851
  const showClearButton = computed(() => {
14852
14852
  if (props.multiple) {
14853
- return props.clearable && (modelValue.value || []).length > 0 && !props.readonly && !props.loading;
14853
+ return props.clearable && Array.isArray(modelValue.value) && modelValue.value.length > 0 && !props.readonly && !props.loading;
14854
14854
  } else {
14855
- return props.clearable && modelValue.value && !props.readonly && !props.loading;
14855
+ if (Array.isArray(modelValue.value) && modelValue.value.length === 0) {
14856
+ return false;
14857
+ }
14858
+ return props.clearable && !!modelValue.value && !props.readonly && !props.loading;
14856
14859
  }
14857
14860
  });
14858
14861
  const hasSelectedItems = computed(() => {
@@ -15016,7 +15019,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
15016
15019
  };
15017
15020
  }
15018
15021
  });
15019
- const CommonInput = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-51b98d83"]]);
15022
+ const CommonInput = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-92080308"]]);
15020
15023
  function vue3h(ele, props, children) {
15021
15024
  const { attrs, on, ...rest } = props;
15022
15025
  let event = {};