slw 0.9.42 → 0.9.43
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.
|
@@ -8296,12 +8296,12 @@ function useWindowSize$1(Q = {}) {
|
|
|
8296
8296
|
}
|
|
8297
8297
|
return { width: ee, height: te };
|
|
8298
8298
|
}
|
|
8299
|
-
const
|
|
8299
|
+
const pictureUpload_vue_vue_type_style_index_0_scoped_c0fb6e20_lang = "", _export_sfc = (Q, H) => {
|
|
8300
8300
|
const G = Q.__vccOpts || Q;
|
|
8301
8301
|
for (const [X, Z] of H)
|
|
8302
8302
|
G[X] = Z;
|
|
8303
8303
|
return G;
|
|
8304
|
-
}, _withScopeId$9 = (Q) => (pushScopeId("data-v-
|
|
8304
|
+
}, _withScopeId$9 = (Q) => (pushScopeId("data-v-c0fb6e20"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = { class: "upload-list-box" }, _hoisted_2$kZ = {
|
|
8305
8305
|
key: 0,
|
|
8306
8306
|
class: "thumbnail"
|
|
8307
8307
|
}, _hoisted_3$hZ = { class: "el-upload-list__item-actions" }, _hoisted_4$az = ["onClick"], _hoisted_5$4Z = {
|
|
@@ -8391,7 +8391,7 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
|
|
|
8391
8391
|
});
|
|
8392
8392
|
}, ge = (_e, xe) => {
|
|
8393
8393
|
let $e = new XMLHttpRequest();
|
|
8394
|
-
$e.responseType = "blob", $e.open("get", xe, !0), $e.setRequestHeader("saToken", X().saToken), $e.onreadystatechange = (ke) => {
|
|
8394
|
+
$e.responseType = "blob", $e.open("get", xe, !0), $e.setRequestHeader("saToken", X().saToken), $e.setRequestHeader("TOKEN", X().TOKEN), $e.onreadystatechange = (ke) => {
|
|
8395
8395
|
$e.readyState == XMLHttpRequest.DONE && $e.status == 200 && (_e.src = URL.createObjectURL($e.response), _e.onload = () => {
|
|
8396
8396
|
URL.revokeObjectURL(_e.src);
|
|
8397
8397
|
});
|
|
@@ -8482,7 +8482,7 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
|
|
|
8482
8482
|
type: "card",
|
|
8483
8483
|
autoplay: !1,
|
|
8484
8484
|
"indicator-position": "outside",
|
|
8485
|
-
height: "
|
|
8485
|
+
height: "45vh"
|
|
8486
8486
|
}, {
|
|
8487
8487
|
default: withCtx(() => [
|
|
8488
8488
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(ae), (De) => (openBlock(), createBlock(Ee, {
|
|
@@ -8492,7 +8492,7 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
|
|
|
8492
8492
|
createElementVNode("img", {
|
|
8493
8493
|
ref_for: !0,
|
|
8494
8494
|
ref: (Ve) => ue(Ve, De.id),
|
|
8495
|
-
style: { "max-height": "100%" },
|
|
8495
|
+
style: { "max-height": "100%", "max-width": "100%" },
|
|
8496
8496
|
alt: "Preview Image"
|
|
8497
8497
|
}, null, 512),
|
|
8498
8498
|
G.uploadConfig.openType != "view" ? (openBlock(), createElementBlock("span", _hoisted_5$4Z, [
|
|
@@ -8520,7 +8520,7 @@ const pictureUpload_vue_vue_type_style_index_0_scoped_dddba6c9_lang = "", _expor
|
|
|
8520
8520
|
], 64);
|
|
8521
8521
|
};
|
|
8522
8522
|
}
|
|
8523
|
-
}, PictureUpload = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
8523
|
+
}, PictureUpload = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-c0fb6e20"]]);
|
|
8524
8524
|
PictureUpload.name = "slw-picture-upload";
|
|
8525
8525
|
PictureUpload.install = (Q) => {
|
|
8526
8526
|
Q.component(PictureUpload.name, PictureUpload);
|
|
@@ -42488,7 +42488,7 @@ var js = js$1.exports;
|
|
|
42488
42488
|
})(Q);
|
|
42489
42489
|
})(js$1);
|
|
42490
42490
|
var jsExports = js$1.exports;
|
|
42491
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
42491
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_1164daf8_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-1164daf8"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
|
|
42492
42492
|
key: 0,
|
|
42493
42493
|
class: "form-header-box"
|
|
42494
42494
|
}, _hoisted_3$hX = {
|
|
@@ -42522,7 +42522,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42522
42522
|
// 是否拥有 图片上传 的按钮
|
|
42523
42523
|
openType: "",
|
|
42524
42524
|
fileList: []
|
|
42525
|
-
}),
|
|
42525
|
+
}), fieldPreviewMap = ref({}), editorFocusField = ref("");
|
|
42526
42526
|
const localEditorViews = shallowRef({}), handleReady = (Q, H) => {
|
|
42527
42527
|
localEditorViews[Q] = H.view;
|
|
42528
42528
|
}, $Message = ref({
|
|
@@ -42674,7 +42674,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42674
42674
|
for (const Z in formConfig.value.columns)
|
|
42675
42675
|
formConfig.value.columns[Z].type !== "seq" && formConfig.value.columns[Z].type !== "checkbox" && (formData.value[formConfig.value.columns[Z].field] = "");
|
|
42676
42676
|
uploadConfig.value.dataId = formData.value[formConfig.value.rowId], uploadConfig.value.regionId = formConfig.value.params._region_id, uploadConfig.value.isHavePicUploadBtn = formConfig.value.params.isHavePicUploadBtn, uploadConfig.value.openType = formConfig.value.openType, computeNewLine(formConfig.value), formConfig.value.columns.forEach((Z, K, ee) => {
|
|
42677
|
-
Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (Z.events.change = onFieldChange, Z.hasOwnProperty("search") && (Z.events.search = remoteSearch), Z.events.keyup = onFieldEnter, Z.events.click = onFieldClick), (Z == null ? void 0 : Z.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0);
|
|
42677
|
+
Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (Z.events.change = onFieldChange, Z.hasOwnProperty("search") && (Z.events.search = remoteSearch), Z.events.keyup = onFieldEnter, Z.events.click = onFieldClick), (Z == null ? void 0 : Z.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[Z.field] = []);
|
|
42678
42678
|
}), formData.value._region_id = formConfig.value.params._region_id, await evalEvent(formConfig.value.params.formEvents.dataInit), await formInitData(formData.value, formConfig.value.params._region_id, Q), form.value.params = formConfig.value.params, formConfig.value.params.queryParams && Object.keys(formConfig.value.params.queryParams).length > 0 && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((Z) => {
|
|
42679
42679
|
Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (fieldColumnMap.value[Z.field] = Z);
|
|
42680
42680
|
}), !formConfig.value.params.linkUrl && (formConfig.value.type === "FORM" ? (regionMap.value[formConfig.value.params.code + "-" + preTag.value] = form.value, regionMap.value[formConfig.value.params.code] = form.value) : regionMap.value["Edit-" + formConfig.value.params.code + "-" + preTag.value] = form.value, throwFunction(form.value), await evalEvent(formConfig.value.params.formEvents.regionInit), nextTick(() => {
|
|
@@ -43156,7 +43156,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43156
43156
|
);
|
|
43157
43157
|
return Q.data.result && Q.data.list.length > 0 ? (uploadConfig.value.fileList = Q.data.list, !0) : (formLoading.value = !1, !1);
|
|
43158
43158
|
}, updatePictureDataId = (Q) => {
|
|
43159
|
-
let H = filePreviewList.
|
|
43159
|
+
let H = filePreviewList.map((G) => G.id).toString();
|
|
43160
43160
|
axios.post(`/dataFile/update/${Q}`, { fileIds: H }).then((G) => {
|
|
43161
43161
|
var X;
|
|
43162
43162
|
(X = G == null ? void 0 : G.data) != null && X.result || $message.error(G.msg);
|
|
@@ -43413,9 +43413,9 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43413
43413
|
fn: withCtx(() => [
|
|
43414
43414
|
createVNode(unref(PictureUpload), {
|
|
43415
43415
|
uploadConfig: unref(uploadConfig),
|
|
43416
|
-
filePreviewList: unref(
|
|
43417
|
-
"onUpdate:filePreviewList":
|
|
43418
|
-
}, null, 8, ["uploadConfig", "filePreviewList"])
|
|
43416
|
+
filePreviewList: unref(fieldPreviewMap)[ne.field],
|
|
43417
|
+
"onUpdate:filePreviewList": (re) => unref(fieldPreviewMap)[ne.field] = re
|
|
43418
|
+
}, null, 8, ["uploadConfig", "filePreviewList", "onUpdate:filePreviewList"])
|
|
43419
43419
|
]),
|
|
43420
43420
|
key: "3"
|
|
43421
43421
|
} : void 0
|
|
@@ -43466,7 +43466,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43466
43466
|
ref: "pictureUploadModal",
|
|
43467
43467
|
width: "20%",
|
|
43468
43468
|
modelValue: unref(uploadConfig).show,
|
|
43469
|
-
"onUpdate:modelValue": H[
|
|
43469
|
+
"onUpdate:modelValue": H[0] || (H[0] = (ne) => unref(uploadConfig).show = ne),
|
|
43470
43470
|
"z-index": 1e3,
|
|
43471
43471
|
draggable: "",
|
|
43472
43472
|
"append-to-body": "",
|
|
@@ -43475,18 +43475,14 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43475
43475
|
title: unref($T)("图片上传")
|
|
43476
43476
|
}, {
|
|
43477
43477
|
default: withCtx(() => [
|
|
43478
|
-
createVNode(unref(PictureUpload), {
|
|
43479
|
-
uploadConfig: unref(uploadConfig),
|
|
43480
|
-
filePreviewList: unref(filePreviewList),
|
|
43481
|
-
"onUpdate:filePreviewList": H[1] || (H[1] = (ne) => isRef(filePreviewList) ? filePreviewList.value = ne : filePreviewList = ne)
|
|
43482
|
-
}, null, 8, ["uploadConfig", "filePreviewList"])
|
|
43478
|
+
createVNode(unref(PictureUpload), { uploadConfig: unref(uploadConfig) }, null, 8, ["uploadConfig"])
|
|
43483
43479
|
]),
|
|
43484
43480
|
_: 1
|
|
43485
43481
|
}, 8, ["modelValue", "title"])
|
|
43486
43482
|
]);
|
|
43487
43483
|
};
|
|
43488
43484
|
}
|
|
43489
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
43485
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-1164daf8"]]);
|
|
43490
43486
|
WindowForm.name = "slw-window-form";
|
|
43491
43487
|
WindowForm.install = (Q) => {
|
|
43492
43488
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -59254,7 +59250,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59254
59250
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59255
59251
|
setup(Q, { emit: H }) {
|
|
59256
59252
|
const G = Q, X = defineAsyncComponent(
|
|
59257
|
-
() => import("./index-
|
|
59253
|
+
() => import("./index-68c84576.js")
|
|
59258
59254
|
);
|
|
59259
59255
|
let Z = useVModel(G, "type", H), K = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref(0), re = ref(null);
|
|
59260
59256
|
re.value = createDesigner();
|
|
@@ -144252,7 +144248,7 @@ function reConsole() {
|
|
|
144252
144248
|
}
|
|
144253
144249
|
}
|
|
144254
144250
|
console.info(
|
|
144255
|
-
`%cSLW %cVer 0.9.
|
|
144251
|
+
`%cSLW %cVer 0.9.43%c
|
|
144256
144252
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
144257
144253
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
144258
144254
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
|
|
2
|
-
import { _ as x, d as S, a as L, u as N } from "./index-
|
|
2
|
+
import { _ as x, d as S, a as L, u as N } from "./index-27327428.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
package/lib/index.js
CHANGED