qk-pc-ui 3.5.1 → 3.5.2

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
@@ -17059,7 +17059,9 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17059
17059
  props: /* @__PURE__ */ mergeModels({
17060
17060
  height: { type: String, default: "100px" },
17061
17061
  isImage: { type: Boolean, default: !1 },
17062
- headPic: { type: Boolean, default: !1 }
17062
+ headPic: { type: Boolean, default: !1 },
17063
+ timeOut: { type: Number, default: 3e4 }
17064
+ // 30秒超时
17063
17065
  }, {
17064
17066
  modelValue: {},
17065
17067
  modelModifiers: {}
@@ -17067,21 +17069,21 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17067
17069
  emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
17068
17070
  setup(e, { emit: r }) {
17069
17071
  const t = e, a = useModel(e, "modelValue"), n = r, i = computed({
17070
- get: () => t.headPic ? "http://npic.ip239.com/ApiHandler.ashx?Action=UploadHeadPic" : "http://npic.ip239.com/ApiHandler.ashx?Action=UploadFile"
17072
+ get: () => "http://npic.ip239.com/ApiHandler.ashx?Action=" + (t.headPic ? "UploadHeadPic" : "UploadFile")
17071
17073
  }), s = async () => {
17072
17074
  try {
17073
- let c = await AjaxCallWeb("http://localhost:18008/AForge/TakePictures"), h = "http://npic.ip239.com/Api/UploadFileBase64";
17074
- t.headPic && (h = "http://npic.ip239.com/Api/UploadHeadPicBase64"), SafeCall$1(async () => {
17075
- let _ = await AjaxCallWeb(
17076
- h,
17075
+ let c = await AjaxCallWeb("http://localhost:18008/AForge/TakePictures");
17076
+ SafeCall$1(async () => {
17077
+ let h = await AjaxCallWeb(
17078
+ "http://npic.ip239.com/Api/UploadHeadPicBase64",
17077
17079
  {
17078
17080
  FileData: c.PicData,
17079
17081
  FileName: "头像.jpg",
17080
17082
  FileType: "jpg"
17081
17083
  },
17082
- 5e3
17084
+ t.timeOut
17083
17085
  );
17084
- n("update:modelValue", _), n("change");
17086
+ n("update:modelValue", h), n("change");
17085
17087
  }, "数据上传中");
17086
17088
  } catch (c) {
17087
17089
  let h = c.resultcontent || c.message;
@@ -17150,13 +17152,15 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17150
17152
  ])
17151
17153
  ]));
17152
17154
  }
17153
- }, OnePicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-fc20fc96"]]), _hoisted_1$a = ["src"], _sfc_main$f = {
17155
+ }, OnePicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-fd7cfea9"]]), _hoisted_1$a = ["src"], _sfc_main$f = {
17154
17156
  __name: "MultipleUploadPic",
17155
17157
  props: /* @__PURE__ */ mergeModels({
17156
17158
  height: { type: String, default: "100px" },
17157
17159
  isImage: { type: Boolean, default: !1 },
17158
17160
  headPic: { type: Boolean, default: !1 },
17159
- splitSymbol: { type: String, default: "|" }
17161
+ splitSymbol: { type: String, default: "|" },
17162
+ timeOut: { type: Number, default: 1e4 }
17163
+ // 10秒超时
17160
17164
  }, {
17161
17165
  modelValue: {},
17162
17166
  modelModifiers: {}
@@ -17230,13 +17234,15 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17230
17234
  }, 8, ["modelValue"])
17231
17235
  ]));
17232
17236
  }
17233
- }, MultipleUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-630b5ba8"]]), _hoisted_1$9 = { style: { height: "150px" } }, _sfc_main$e = {
17237
+ }, MultipleUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a11354bc"]]), _hoisted_1$9 = { style: { height: "150px" } }, _sfc_main$e = {
17234
17238
  __name: "index",
17235
17239
  props: /* @__PURE__ */ mergeModels({
17236
17240
  multiple: { type: Boolean, default: !1 },
17237
17241
  height: { type: String, default: "100px" },
17238
17242
  isImage: { type: Boolean, default: !1 },
17239
- headPic: { type: Boolean, default: !1 }
17243
+ headPic: { type: Boolean, default: !1 },
17244
+ timeOut: { type: Number, default: 3e4 }
17245
+ // 10秒超时
17240
17246
  }, {
17241
17247
  modelValue: {},
17242
17248
  modelModifiers: {}
@@ -17251,15 +17257,17 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
17251
17257
  "onUpdate:modelValue": n[0] || (n[0] = (i) => r.value = i),
17252
17258
  height: t.height,
17253
17259
  isImage: t.isImage,
17254
- headPic: t.headPic
17255
- }, null, 8, ["modelValue", "height", "isImage", "headPic"])) : (openBlock(), createBlock(OnePicUpload, {
17260
+ headPic: t.headPic,
17261
+ timeOut: t.timeOut
17262
+ }, null, 8, ["modelValue", "height", "isImage", "headPic", "timeOut"])) : (openBlock(), createBlock(OnePicUpload, {
17256
17263
  key: 1,
17257
17264
  modelValue: r.value,
17258
17265
  "onUpdate:modelValue": n[1] || (n[1] = (i) => r.value = i),
17259
17266
  height: t.height,
17260
17267
  isImage: t.isImage,
17261
- headPic: t.headPic
17262
- }, null, 8, ["modelValue", "height", "isImage", "headPic"]))
17268
+ headPic: t.headPic,
17269
+ timeOut: t.timeOut
17270
+ }, null, 8, ["modelValue", "height", "isImage", "headPic", "timeOut"]))
17263
17271
  ]));
17264
17272
  }
17265
17273
  }, _hoisted_1$8 = { style: { height: "680px" } }, _hoisted_2$5 = { style: { "text-align": "center", padding: "20px 0", "font-size": "20px" } }, _hoisted_3$4 = { style: { "text-align": "center" } }, _hoisted_4$4 = {