wave-ui 1.67.1 → 1.67.3

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.
@@ -3088,6 +3088,8 @@ const __vue2_script$w = {
3088
3088
  computed: {
3089
3089
  attrs() {
3090
3090
  const { class: classes, ...htmlAttrs } = this.$attrs;
3091
+ if (this.type === "file" && !this.inputFiles.length)
3092
+ htmlAttrs.value = null;
3091
3093
  return htmlAttrs;
3092
3094
  },
3093
3095
  listeners() {
@@ -3200,8 +3202,9 @@ const __vue2_script$w = {
3200
3202
  this.readFile(original, file);
3201
3203
  return file;
3202
3204
  }));
3203
- this.$emit("update:modelValue", this.inputFiles);
3204
- this.$emit("input", this.inputFiles);
3205
+ const filesPayload = this.multiple ? this.inputFiles : this.inputFiles[0];
3206
+ this.$emit("update:modelValue", filesPayload);
3207
+ this.$emit("input", filesPayload);
3205
3208
  },
3206
3209
  readFile(original, file) {
3207
3210
  const reader = new FileReader();
@@ -3230,8 +3233,10 @@ const __vue2_script$w = {
3230
3233
  watch: {
3231
3234
  value(value) {
3232
3235
  this.inputValue = value;
3233
- if (!value && value !== 0)
3236
+ if (!value && value !== 0) {
3234
3237
  this.isAutofilled = false;
3238
+ this.inputFiles = [];
3239
+ }
3235
3240
  }
3236
3241
  }
3237
3242
  };
@@ -6093,8 +6098,8 @@ const __vue2_script$e = {
6093
6098
  paginationConfig: {
6094
6099
  itemsPerPage: 0,
6095
6100
  itemsPerPageOptions: {},
6096
- start: 0,
6097
- end: 0,
6101
+ start: void 0,
6102
+ end: void 0,
6098
6103
  page: 1,
6099
6104
  total: 0
6100
6105
  }