slw 0.5.977 → 0.5.979
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/lib/index.js +23 -50
- package/lib/index.umd.cjs +6 -6
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8511,7 +8511,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8511
8511
|
PictureUpload.install = (Q) => {
|
|
8512
8512
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8513
8513
|
};
|
|
8514
|
-
const
|
|
8514
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_898d08b1_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-898d08b1"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8515
8515
|
class: "slw-window-grid-container",
|
|
8516
8516
|
style: { height: "100%" }
|
|
8517
8517
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
@@ -8534,10 +8534,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
|
|
|
8534
8534
|
},
|
|
8535
8535
|
emits: ["update:gridData", "jumpDesign"],
|
|
8536
8536
|
setup(__props, { expose: __expose, emit }) {
|
|
8537
|
-
const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t");
|
|
8538
|
-
let gridData = useVModel(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref("")
|
|
8539
|
-
const httpHeaders = inject("$httpHeaders");
|
|
8540
|
-
let uploadConfig = ref({
|
|
8537
|
+
const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), componentMapping = inject("$componentMapping"), $Modal = inject("$modal"), $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessagePrompt = inject("$ElMessagePrompt");
|
|
8538
|
+
let gridData = useVModel(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
|
|
8541
8539
|
show: !1,
|
|
8542
8540
|
dataId: "",
|
|
8543
8541
|
regionId: "",
|
|
@@ -8550,16 +8548,16 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
|
|
|
8550
8548
|
{ code: "contract", name: $T("收缩节点"), disabled: !1 }
|
|
8551
8549
|
]
|
|
8552
8550
|
]), editBtn = ref(null), exportButton = ref(null), uploadData = ref({}), queryTimeout = ref(null), formSelectMap = ref({}), isEditGridInitData = ref(!1);
|
|
8553
|
-
const
|
|
8551
|
+
const preTag = computed(() => gridData.value.params.preTag || ""), showButtons = (Q) => gridData.value.toolbarConfig.buttons.filter(
|
|
8554
8552
|
(H) => H.showInGrid && (gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || H.btnShowInGrid[Q])
|
|
8555
|
-
),
|
|
8553
|
+
), $modal = $Modal, $Message = ref({
|
|
8556
8554
|
success(Q) {
|
|
8557
8555
|
success(Q);
|
|
8558
8556
|
},
|
|
8559
8557
|
error(Q) {
|
|
8560
8558
|
error(Q);
|
|
8561
8559
|
}
|
|
8562
|
-
}), $message = $Message.value,
|
|
8560
|
+
}), $message = $Message.value, showModal = (Q, H, G) => {
|
|
8563
8561
|
openModal(Q, H, G);
|
|
8564
8562
|
}, evalEvent = (curEvent, ...eventParams) => {
|
|
8565
8563
|
if (curEvent) {
|
|
@@ -8611,7 +8609,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
|
|
|
8611
8609
|
G !== void 0 && (Q.data[H] = void 0);
|
|
8612
8610
|
}), getCurRegion().commitProxy("reload");
|
|
8613
8611
|
}
|
|
8614
|
-
const
|
|
8612
|
+
const operationButton = (Q) => ({
|
|
8615
8613
|
size: "small",
|
|
8616
8614
|
type: Q.viewType,
|
|
8617
8615
|
style: { ...Q.css, marginLeft: "0px", padding: "5px" },
|
|
@@ -8735,7 +8733,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
|
|
|
8735
8733
|
}, gridData.value.params.parentRegionId && (gridData.value.proxyConfig.autoLoad = !1);
|
|
8736
8734
|
}, rowClick = (Q) => {
|
|
8737
8735
|
gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? rowClickCommon(Q.row, Q.rowIndex) : (Q.rowIndex !== rowIndex.value && rowClickCommon(Q.row, Q.rowIndex), rowIndex.value = Q.rowIndex);
|
|
8738
|
-
},
|
|
8736
|
+
}, rowClickCommon = (Q, H) => {
|
|
8739
8737
|
const G = {
|
|
8740
8738
|
rowId: gridData.value.rowId,
|
|
8741
8739
|
// eslint-disable-next-line no-prototype-builtins
|
|
@@ -9766,7 +9764,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
|
|
|
9766
9764
|
setChecked(Q);
|
|
9767
9765
|
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = () => setCheckboxRowColor();
|
|
9768
9766
|
}), onUnmounted(() => {
|
|
9769
|
-
|
|
9767
|
+
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
9770
9768
|
});
|
|
9771
9769
|
const setValue = (Q, H) => {
|
|
9772
9770
|
gridData.value.formConfig.formData[Q.toUpperCase()] = H;
|
|
@@ -9923,7 +9921,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c639123d_lang = "", _withScop
|
|
|
9923
9921
|
]);
|
|
9924
9922
|
};
|
|
9925
9923
|
}
|
|
9926
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
9924
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-898d08b1"]]);
|
|
9927
9925
|
WindowGrid.name = "slw-window-grid";
|
|
9928
9926
|
WindowGrid.install = (Q) => {
|
|
9929
9927
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -36973,11 +36971,11 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36973
36971
|
"update:formConfig"
|
|
36974
36972
|
],
|
|
36975
36973
|
setup(__props, { expose: __expose, emit: emits }) {
|
|
36976
|
-
const props = __props, componentMapping = inject("$componentMapping");
|
|
36977
|
-
let
|
|
36978
|
-
const
|
|
36979
|
-
let formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
|
|
36980
|
-
const
|
|
36974
|
+
const props = __props, componentMapping = inject("$componentMapping"), axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), evalDefaultValue = inject("$evalDefaultValue");
|
|
36975
|
+
let regionMap = inject("$regionMap");
|
|
36976
|
+
const ElMessagePrompt = inject("$ElMessagePrompt");
|
|
36977
|
+
let formConfig = useVModel(props, "formConfig", emits), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
|
|
36978
|
+
const $modal = $Modal;
|
|
36981
36979
|
let uploadConfig = ref({
|
|
36982
36980
|
show: !1,
|
|
36983
36981
|
dataId: "",
|
|
@@ -36996,7 +36994,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
36996
36994
|
error(Q) {
|
|
36997
36995
|
error(Q);
|
|
36998
36996
|
}
|
|
36999
|
-
}), $message = $Message.value,
|
|
36997
|
+
}), $message = $Message.value, showModal = (Q, H, G) => {
|
|
37000
36998
|
openModal(Q, H, G);
|
|
37001
36999
|
}, getCodeLanguagePlugin = (Q) => ({
|
|
37002
37000
|
javascript: javascript(),
|
|
@@ -37045,7 +37043,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37045
37043
|
result = !1;
|
|
37046
37044
|
}
|
|
37047
37045
|
return result;
|
|
37048
|
-
},
|
|
37046
|
+
}, preTag = computed(() => formConfig.value.params.preTag || ""), editRules = computed(() => {
|
|
37049
37047
|
let Q = {};
|
|
37050
37048
|
if (Object.keys(formConfig.value.editRules).length > 0) {
|
|
37051
37049
|
let H = Object.keys(formConfig.value.editRules);
|
|
@@ -37083,37 +37081,14 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37083
37081
|
} else
|
|
37084
37082
|
for (const H in formConfig.value.columns)
|
|
37085
37083
|
formConfig.value.columns[H].type !== "seq" && formConfig.value.columns[H].type !== "checkbox" && (formData.value[formConfig.value.columns[H].field] = "");
|
|
37086
|
-
|
|
37084
|
+
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((H, G, X) => {
|
|
37087
37085
|
H.hasOwnProperty("field") && !H.hasOwnProperty("treeNode") && (H.events.change = onFieldChange, H.hasOwnProperty("search") && (H.events.search = remoteSearch), H.events.keyup = onFieldEnter, H.events.click = onFieldClick), (H == null ? void 0 : H.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0);
|
|
37088
|
-
}),
|
|
37089
|
-
let H = {
|
|
37090
|
-
name: "ElImg",
|
|
37091
|
-
props: {},
|
|
37092
|
-
attrs: {},
|
|
37093
|
-
options: [],
|
|
37094
|
-
events: {}
|
|
37095
|
-
}, G = {
|
|
37096
|
-
colType: "showInForm",
|
|
37097
|
-
dataType: "IMG",
|
|
37098
|
-
displayForm: !0,
|
|
37099
|
-
field: "img",
|
|
37100
|
-
events: {},
|
|
37101
|
-
itemRender: H,
|
|
37102
|
-
editRender: H,
|
|
37103
|
-
minWidth: 100,
|
|
37104
|
-
title: "图片",
|
|
37105
|
-
visible: !0,
|
|
37106
|
-
width: 200
|
|
37107
|
-
};
|
|
37108
|
-
formConfig.value.columns.push(G);
|
|
37109
|
-
}
|
|
37110
|
-
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), formConfig.value.params.parentRegionId, formConfig.value.params.queryParams && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((H) => {
|
|
37086
|
+
}), 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), formConfig.value.params.queryParams && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((H) => {
|
|
37111
37087
|
H.hasOwnProperty("field") && !H.hasOwnProperty("treeNode") && (fieldColumnMap.value[H.field] = H);
|
|
37112
37088
|
}), !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(() => {
|
|
37113
37089
|
formDataClone.value = XEUtils$1.clone(toRaw(formData.value), !0);
|
|
37114
37090
|
}), formLoading.value = !1);
|
|
37115
37091
|
}), onUnmounted(() => {
|
|
37116
|
-
formConfig.value.params.linkUrl || (formConfig.value.type, formConfig.value.params.parentRegionId);
|
|
37117
37092
|
});
|
|
37118
37093
|
const search = (Q) => {
|
|
37119
37094
|
searchData(Q);
|
|
@@ -37164,7 +37139,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37164
37139
|
content: Z.data.msg,
|
|
37165
37140
|
status: Z.data.result ? "success" : "error",
|
|
37166
37141
|
zIndex: 3e3
|
|
37167
|
-
}), Z.data.result && (uploadConfig.value.isHaveImgField && updatePictureDataId(Z.data.id), evalEvent(
|
|
37142
|
+
}), Z.data.result && (uploadConfig.value.isHaveImgField && !uploadConfig.value.dataId && updatePictureDataId(Z.data.id), evalEvent(
|
|
37168
37143
|
formConfig.value.params.formEvents.afterSubmit,
|
|
37169
37144
|
formData.value,
|
|
37170
37145
|
Z.data
|
|
@@ -37222,9 +37197,7 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37222
37197
|
}), Q;
|
|
37223
37198
|
}, getValue = (Q) => formData.value[Q.toUpperCase()], setFieldValue = (Q, H) => {
|
|
37224
37199
|
formData.value[Q.toUpperCase()] = H;
|
|
37225
|
-
}
|
|
37226
|
-
let regionMap = inject("$regionMap");
|
|
37227
|
-
const getParentRegion = () => {
|
|
37200
|
+
}, getParentRegion = () => {
|
|
37228
37201
|
let Q = regionMap.value[formConfig.value.params.parentCode + "-" + preTag.value];
|
|
37229
37202
|
return Q || regionMap.value[formConfig.value.params.parentCode];
|
|
37230
37203
|
}, getParentData = () => {
|
|
@@ -122181,7 +122154,7 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
122181
122154
|
), Q.provide("$components", H == null ? void 0 : H.components), Q.provide("$componentsPath", (H == null ? void 0 : H.componentsPath) || "/src/view"), Q.provide(
|
|
122182
122155
|
"$message",
|
|
122183
122156
|
Q.config.globalProperties.$message || VXETableExport.modal.message
|
|
122184
|
-
), Q.provide("$modal", VXETableExport.modal), Q.provide("$vxeMessage", VXETableExport.modal.message), Q.provide("$vxeConfirm", VXETableExport.modal.confirm), Q.provide("$vxeOpen", VXETableExport.modal.open), Q.provide("$vxeReadFile", VXETableExport.readFile), initVxeRenderer(VXETableExport, G, X), initVxeFormater(VXETableExport), initVxeConfig(VXETableExport);
|
|
122157
|
+
), Q.provide("$modal", VXETableExport.modal), Q.provide("$vxeMessage", VXETableExport.modal.message), Q.provide("$vxeConfirm", VXETableExport.modal.confirm), Q.provide("$vxeOpen", VXETableExport.modal.open), Q.provide("$vxeReadFile", VXETableExport.readFile), Q.provide("$ElMessagePrompt", Q.config.globalProperties.$prompt), initVxeRenderer(VXETableExport, G, X), initVxeFormater(VXETableExport), initVxeConfig(VXETableExport);
|
|
122185
122158
|
};
|
|
122186
122159
|
function reConsole() {
|
|
122187
122160
|
if (console !== null) {
|
|
@@ -122201,7 +122174,7 @@ function reConsole() {
|
|
|
122201
122174
|
}
|
|
122202
122175
|
}
|
|
122203
122176
|
console.info(
|
|
122204
|
-
"%cSLW %cVer 0.5.
|
|
122177
|
+
"%cSLW %cVer 0.5.978",
|
|
122205
122178
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
122206
122179
|
"color:#999;font-size: 12px"
|
|
122207
122180
|
);
|