@factoringplus/pl-components-pack-v3 0.4.56 → 0.4.57

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.
@@ -37060,17 +37060,17 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign(__default__$2, {
37060
37060
  "on-file-size-exceeded",
37061
37061
  "on-file-empty",
37062
37062
  "on-file-not-limit",
37063
- "on-change"
37063
+ "on-change",
37064
+ "update:modelValue"
37064
37065
  ],
37065
37066
  setup(__props, { emit: emit2 }) {
37066
37067
  const props = __props;
37067
- ref(false);
37068
- const fileList = ref(props.modelValue);
37069
- const el = ref(null);
37070
- const { modelValue, limit } = toRefs(props);
37071
- watch(modelValue, (newValue) => {
37072
- fileList.value = newValue;
37068
+ const fileList = computed$1({
37069
+ get: () => props.modelValue,
37070
+ set: (val) => emit2("update:modelValue", val)
37073
37071
  });
37072
+ const el = ref(null);
37073
+ const { limit } = toRefs(props);
37074
37074
  const upload2 = (file, fileList2) => {
37075
37075
  if (!fileList2.length) {
37076
37076
  emit2("on-files-not-attached", file, fileList2);
@@ -37103,6 +37103,7 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign(__default__$2, {
37103
37103
  return;
37104
37104
  }
37105
37105
  emit2("on-change", file, fileList2);
37106
+ emit2("update:modelValue", fileList2);
37106
37107
  };
37107
37108
  return (_ctx, _cache) => {
37108
37109
  const _component_el_upload = ElUpload;
@@ -37115,7 +37116,7 @@ const _sfc_main$o = /* @__PURE__ */ Object.assign(__default__$2, {
37115
37116
  "auto-upload": false,
37116
37117
  "on-change": upload2,
37117
37118
  class: "pl-upload-plus"
37118
- }, _ctx.$attrs, { "file-list": fileList.value }), {
37119
+ }, _ctx.$attrs, { "file-list": unref(fileList) }), {
37119
37120
  file: withCtx(({ file }) => [
37120
37121
  renderSlot(_ctx.$slots, "file", { file })
37121
37122
  ]),