qk-pc-ui 3.4.3 → 3.4.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/qk-pc-ui.mjs CHANGED
@@ -17155,7 +17155,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17155
17155
  isVisible: !1,
17156
17156
  picUrl: ""
17157
17157
  }), i = r, s = () => {
17158
- typeof t.value == "string" ? n.fileArray = t.value.split(a.splitSymbol).Select((c, h) => ({ name: `图${h}`, url: c })) : (n.fileArray = [], t.value.forEach((c, h) => n.fileArray.push({ name: `图${h}`, url: c })));
17158
+ typeof t.value == "string" ? n.fileArray = t.value.split(a.splitSymbol).filter((c) => c).Select((c, h) => ({ name: `图${h}`, url: c })) : (n.fileArray = [], t.value.forEach((c, h) => n.fileArray.push({ name: `图${h}`, url: c })));
17159
17159
  };
17160
17160
  watch(
17161
17161
  () => t.value,
@@ -17169,14 +17169,14 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17169
17169
  n.isVisible = !0, n.picUrl = c.url;
17170
17170
  }, o = (c, h) => {
17171
17171
  let _ = c.url, d = n.fileArray.filter((m) => m.url != _);
17172
- typeof t.value == "string" ? t.value = d.Select((m) => m.url).Join(a.splitSymbol) : t.value = d.Select((m) => m.url), i("change");
17172
+ typeof t.value == "string" ? t.value = d.Select((m) => m.url).join(a.splitSymbol) : t.value = d.Select((m) => m.url), i("change");
17173
17173
  }, f = (c, h, _) => {
17174
17174
  if (c.resultcode != "200")
17175
17175
  return ElMessage.error(L("文件上传失败") + ":" + c.resultcontent);
17176
17176
  if (n.fileArray.Exists((m) => m.url == c.data))
17177
17177
  return n.fileArray = n.fileArray.Where((m) => !m.response), ElMessage.error(L("文件已存在"));
17178
17178
  let d = n.fileArray.Where((m) => !m.response).Select((m) => m.url);
17179
- d.push(c.data), typeof t.value == "string" ? t.value = d.Join(a.splitSymbol) : t.value = d, i("change");
17179
+ d.push(c.data), typeof t.value == "string" ? t.value = d.join(a.splitSymbol) : t.value = d, i("change");
17180
17180
  };
17181
17181
  return (c, h) => (openBlock(), createElementBlock("div", null, [
17182
17182
  createVNode(unref(ElUpload), {
@@ -17216,7 +17216,7 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17216
17216
  }, 8, ["modelValue"])
17217
17217
  ]));
17218
17218
  }
17219
- }, MultipleUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b49cc515"]]), _hoisted_1$9 = { style: { height: "150px" } }, _sfc_main$e = {
17219
+ }, MultipleUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-630b5ba8"]]), _hoisted_1$9 = { style: { height: "150px" } }, _sfc_main$e = {
17220
17220
  __name: "index",
17221
17221
  props: /* @__PURE__ */ mergeModels({
17222
17222
  multiple: { type: Boolean, default: !1 },