slw 0.9.43 → 0.9.44
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.
|
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8525
8525
|
PictureUpload.install = (Q) => {
|
|
8526
8526
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8527
8527
|
};
|
|
8528
|
-
const
|
|
8528
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_f53c04dc_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-f53c04dc"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
|
|
8529
8529
|
class: "slw-window-grid-container",
|
|
8530
8530
|
style: { height: "100%" }
|
|
8531
8531
|
}, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
|
|
@@ -9019,6 +9019,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8b22b7ee_lang = "", _withScop
|
|
|
9019
9019
|
break;
|
|
9020
9020
|
case "IMPORT":
|
|
9021
9021
|
isImport.value = !0, importBtnId.value = Q._button_id, uploadData.value = {
|
|
9022
|
+
rowId: getSelectRecord()[gridData.value.rowId],
|
|
9022
9023
|
_region_id: gridData.value.params._region_id,
|
|
9023
9024
|
_button_id: importBtnId.value
|
|
9024
9025
|
}, gridData.value.params.parentRowId && (uploadData.value[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue);
|
|
@@ -9858,10 +9859,13 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8b22b7ee_lang = "", _withScop
|
|
|
9858
9859
|
G.params.newDownTemplateUrl = H;
|
|
9859
9860
|
}, beforeExcelUpload = async (Q) => {
|
|
9860
9861
|
let H = getCurRegion();
|
|
9861
|
-
return H.params.beforeUploadFn ? await H.params.beforeUploadFn() : !0;
|
|
9862
|
+
return H.params.addUploadData && (uploadData.value = Object.assign(uploadData.value, H.params.addUploadData)), H.params.beforeUploadFn ? await H.params.beforeUploadFn() : !0;
|
|
9862
9863
|
}, setBeforeUploadFn = (Q) => {
|
|
9863
9864
|
let H = getCurRegion();
|
|
9864
9865
|
H.params.beforeUploadFn = Q;
|
|
9866
|
+
}, setUploadData = (Q) => {
|
|
9867
|
+
let H = getCurRegion();
|
|
9868
|
+
H.params.addUploadData = Object.assign({}, Q);
|
|
9865
9869
|
}, editGridFunList = [];
|
|
9866
9870
|
let oldInsertRecords = null;
|
|
9867
9871
|
const addEditGridDataChangeFun = (Q) => {
|
|
@@ -10002,7 +10006,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8b22b7ee_lang = "", _withScop
|
|
|
10002
10006
|
search(Q);
|
|
10003
10007
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
10004
10008
|
setChecked(Q);
|
|
10005
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, G, X) => setRowCellColor(Q, H, G, X), curRegion.value.setFormSelectOption = (Q, H, G) => setFormSelectOption(Q, H, G), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H);
|
|
10009
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, G, X) => setRowCellColor(Q, H, G, X), curRegion.value.setFormSelectOption = (Q, H, G) => setFormSelectOption(Q, H, G), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H), curRegion.value.setUploadData = (Q) => setUploadData(Q);
|
|
10006
10010
|
}), onUnmounted(() => {
|
|
10007
10011
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
10008
10012
|
}), __expose({ gridReload, reload }), (Q, H) => {
|
|
@@ -10174,7 +10178,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_8b22b7ee_lang = "", _withScop
|
|
|
10174
10178
|
]);
|
|
10175
10179
|
};
|
|
10176
10180
|
}
|
|
10177
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10181
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f53c04dc"]]);
|
|
10178
10182
|
WindowGrid.name = "slw-window-grid";
|
|
10179
10183
|
WindowGrid.install = (Q) => {
|
|
10180
10184
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -42488,7 +42492,7 @@ var js = js$1.exports;
|
|
|
42488
42492
|
})(Q);
|
|
42489
42493
|
})(js$1);
|
|
42490
42494
|
var jsExports = js$1.exports;
|
|
42491
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
42495
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_d4d8ec11_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-d4d8ec11"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
|
|
42492
42496
|
key: 0,
|
|
42493
42497
|
class: "form-header-box"
|
|
42494
42498
|
}, _hoisted_3$hX = {
|
|
@@ -43156,8 +43160,12 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43156
43160
|
);
|
|
43157
43161
|
return Q.data.result && Q.data.list.length > 0 ? (uploadConfig.value.fileList = Q.data.list, !0) : (formLoading.value = !1, !1);
|
|
43158
43162
|
}, updatePictureDataId = (Q) => {
|
|
43159
|
-
let H =
|
|
43160
|
-
|
|
43163
|
+
let H = [];
|
|
43164
|
+
Object.values(fieldPreviewMap.value).forEach((G) => {
|
|
43165
|
+
G.forEach((X) => {
|
|
43166
|
+
H.push(X.id);
|
|
43167
|
+
});
|
|
43168
|
+
}), axios.post(`/dataFile/update/${Q}`, { fileIds: H.toString() }).then((G) => {
|
|
43161
43169
|
var X;
|
|
43162
43170
|
(X = G == null ? void 0 : G.data) != null && X.result || $message.error(G.msg);
|
|
43163
43171
|
});
|
|
@@ -43482,7 +43490,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43482
43490
|
]);
|
|
43483
43491
|
};
|
|
43484
43492
|
}
|
|
43485
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
43493
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-d4d8ec11"]]);
|
|
43486
43494
|
WindowForm.name = "slw-window-form";
|
|
43487
43495
|
WindowForm.install = (Q) => {
|
|
43488
43496
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -59250,7 +59258,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59250
59258
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59251
59259
|
setup(Q, { emit: H }) {
|
|
59252
59260
|
const G = Q, X = defineAsyncComponent(
|
|
59253
|
-
() => import("./index-
|
|
59261
|
+
() => import("./index-f68fbf0e.js")
|
|
59254
59262
|
);
|
|
59255
59263
|
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);
|
|
59256
59264
|
re.value = createDesigner();
|
|
@@ -144248,7 +144256,7 @@ function reConsole() {
|
|
|
144248
144256
|
}
|
|
144249
144257
|
}
|
|
144250
144258
|
console.info(
|
|
144251
|
-
`%cSLW %cVer 0.9.
|
|
144259
|
+
`%cSLW %cVer 0.9.44%c
|
|
144252
144260
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
144253
144261
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
144254
144262
|
"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-3776a8b7.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
package/lib/index.js
CHANGED