qk-pc-ui 3.5.0 → 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 +30 -18
- package/dist/qk-pc-ui.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +8 -8
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,17 +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: () =>
|
|
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")
|
|
17074
|
-
|
|
17075
|
-
let
|
|
17076
|
-
|
|
17077
|
-
|
|
17078
|
-
|
|
17079
|
-
|
|
17080
|
-
|
|
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",
|
|
17079
|
+
{
|
|
17080
|
+
FileData: c.PicData,
|
|
17081
|
+
FileName: "头像.jpg",
|
|
17082
|
+
FileType: "jpg"
|
|
17083
|
+
},
|
|
17084
|
+
t.timeOut
|
|
17085
|
+
);
|
|
17086
|
+
n("update:modelValue", h), n("change");
|
|
17081
17087
|
}, "数据上传中");
|
|
17082
17088
|
} catch (c) {
|
|
17083
17089
|
let h = c.resultcontent || c.message;
|
|
@@ -17146,13 +17152,15 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17146
17152
|
])
|
|
17147
17153
|
]));
|
|
17148
17154
|
}
|
|
17149
|
-
}, OnePicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
17155
|
+
}, OnePicUpload = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-fd7cfea9"]]), _hoisted_1$a = ["src"], _sfc_main$f = {
|
|
17150
17156
|
__name: "MultipleUploadPic",
|
|
17151
17157
|
props: /* @__PURE__ */ mergeModels({
|
|
17152
17158
|
height: { type: String, default: "100px" },
|
|
17153
17159
|
isImage: { type: Boolean, default: !1 },
|
|
17154
17160
|
headPic: { type: Boolean, default: !1 },
|
|
17155
|
-
splitSymbol: { type: String, default: "|" }
|
|
17161
|
+
splitSymbol: { type: String, default: "|" },
|
|
17162
|
+
timeOut: { type: Number, default: 1e4 }
|
|
17163
|
+
// 10秒超时
|
|
17156
17164
|
}, {
|
|
17157
17165
|
modelValue: {},
|
|
17158
17166
|
modelModifiers: {}
|
|
@@ -17226,13 +17234,15 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17226
17234
|
}, 8, ["modelValue"])
|
|
17227
17235
|
]));
|
|
17228
17236
|
}
|
|
17229
|
-
}, MultipleUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
17237
|
+
}, MultipleUploadPic = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a11354bc"]]), _hoisted_1$9 = { style: { height: "150px" } }, _sfc_main$e = {
|
|
17230
17238
|
__name: "index",
|
|
17231
17239
|
props: /* @__PURE__ */ mergeModels({
|
|
17232
17240
|
multiple: { type: Boolean, default: !1 },
|
|
17233
17241
|
height: { type: String, default: "100px" },
|
|
17234
17242
|
isImage: { type: Boolean, default: !1 },
|
|
17235
|
-
headPic: { type: Boolean, default: !1 }
|
|
17243
|
+
headPic: { type: Boolean, default: !1 },
|
|
17244
|
+
timeOut: { type: Number, default: 3e4 }
|
|
17245
|
+
// 10秒超时
|
|
17236
17246
|
}, {
|
|
17237
17247
|
modelValue: {},
|
|
17238
17248
|
modelModifiers: {}
|
|
@@ -17247,15 +17257,17 @@ const _hoisted_1$c = { style: "width: 100%;height:100%;border:1px solid #ccc" },
|
|
|
17247
17257
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => r.value = i),
|
|
17248
17258
|
height: t.height,
|
|
17249
17259
|
isImage: t.isImage,
|
|
17250
|
-
headPic: t.headPic
|
|
17251
|
-
|
|
17260
|
+
headPic: t.headPic,
|
|
17261
|
+
timeOut: t.timeOut
|
|
17262
|
+
}, null, 8, ["modelValue", "height", "isImage", "headPic", "timeOut"])) : (openBlock(), createBlock(OnePicUpload, {
|
|
17252
17263
|
key: 1,
|
|
17253
17264
|
modelValue: r.value,
|
|
17254
17265
|
"onUpdate:modelValue": n[1] || (n[1] = (i) => r.value = i),
|
|
17255
17266
|
height: t.height,
|
|
17256
17267
|
isImage: t.isImage,
|
|
17257
|
-
headPic: t.headPic
|
|
17258
|
-
|
|
17268
|
+
headPic: t.headPic,
|
|
17269
|
+
timeOut: t.timeOut
|
|
17270
|
+
}, null, 8, ["modelValue", "height", "isImage", "headPic", "timeOut"]))
|
|
17259
17271
|
]));
|
|
17260
17272
|
}
|
|
17261
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 = {
|