slw 0.8.82 → 0.8.84
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 +36 -23
- package/lib/index.umd.cjs +10 -9
- 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_358e48ca_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-358e48ca"), 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$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$av = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4V = [
|
|
@@ -8534,7 +8534,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c00356bd_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"), 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"), $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"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce");
|
|
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"), $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"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce");
|
|
8538
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({
|
|
8539
8539
|
show: !1,
|
|
8540
8540
|
dataId: "",
|
|
@@ -8698,7 +8698,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c00356bd_lang = "", _withScop
|
|
|
8698
8698
|
}) : localStorage.setItem(
|
|
8699
8699
|
gridData.value.params._region_id + preTag.value,
|
|
8700
8700
|
JSON.stringify(Z)
|
|
8701
|
-
);
|
|
8701
|
+
), gridData.value.params.queryForm = XEUtils$1.clone(ne, !0);
|
|
8702
8702
|
const oe = axios.post(
|
|
8703
8703
|
"/window/data/" + gridData.value.params.datasourceCode,
|
|
8704
8704
|
ne
|
|
@@ -9181,18 +9181,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c00356bd_lang = "", _withScop
|
|
|
9181
9181
|
zIndex: 3e3
|
|
9182
9182
|
});
|
|
9183
9183
|
}, exportData = async () => {
|
|
9184
|
-
var Q;
|
|
9185
9184
|
if (exportButton.value) {
|
|
9186
|
-
const
|
|
9185
|
+
const Q = Object.assign(
|
|
9187
9186
|
{
|
|
9188
|
-
_button_id: exportButton.value._button_id
|
|
9189
|
-
_region_id: gridData.value.params._region_id
|
|
9187
|
+
_button_id: exportButton.value._button_id
|
|
9190
9188
|
},
|
|
9191
|
-
|
|
9192
|
-
getCurRegion().getProxyInfo().form
|
|
9189
|
+
gridData.value.params.queryForm
|
|
9193
9190
|
);
|
|
9194
|
-
gridData.value.params.parentRowId && (
|
|
9195
|
-
"/window/export?data=" + base64Encode(JSON.stringify(
|
|
9191
|
+
gridData.value.params.parentRowId && (Q[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), await axios.export(
|
|
9192
|
+
"/window/export?data=" + base64Encode(JSON.stringify(Q)),
|
|
9196
9193
|
{}
|
|
9197
9194
|
), exportButton.value.loading = !1;
|
|
9198
9195
|
} else
|
|
@@ -10062,7 +10059,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c00356bd_lang = "", _withScop
|
|
|
10062
10059
|
]);
|
|
10063
10060
|
};
|
|
10064
10061
|
}
|
|
10065
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10062
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-358e48ca"]]);
|
|
10066
10063
|
WindowGrid.name = "slw-window-grid";
|
|
10067
10064
|
WindowGrid.install = (Q) => {
|
|
10068
10065
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -38899,7 +38896,7 @@ var js = js$1.exports;
|
|
|
38899
38896
|
})(Q);
|
|
38900
38897
|
})(js$1);
|
|
38901
38898
|
var jsExports = js$1.exports;
|
|
38902
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38899
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_451f628f_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-451f628f"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38903
38900
|
key: 0,
|
|
38904
38901
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38905
38902
|
}, _hoisted_3$hS = ["onClick"], _hoisted_4$au = ["onClick"], _hoisted_5$4U = ["onClick"], _hoisted_6$1_ = ["onClick"], _hoisted_7$12 = ["onClick"], _sfc_main$5 = {
|
|
@@ -38915,7 +38912,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
38915
38912
|
"update:formConfig"
|
|
38916
38913
|
],
|
|
38917
38914
|
setup(__props, { expose: __expose, emit: emits }) {
|
|
38918
|
-
const props = __props, 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"), evalDefaultValue = inject("$evalDefaultValue");
|
|
38915
|
+
const props = __props, 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");
|
|
38919
38916
|
let regionMap = inject("$regionMap");
|
|
38920
38917
|
const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce");
|
|
38921
38918
|
let formConfig = useVModel(props, "formConfig", emits), gridData = ref(formConfig.value), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
|
|
@@ -38997,7 +38994,9 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
38997
38994
|
if (Object.keys(formConfig.value.editRules).length > 0) {
|
|
38998
38995
|
let H = Object.keys(formConfig.value.editRules);
|
|
38999
38996
|
for (let X = 0; X < H.length; X++) {
|
|
39000
|
-
let G = formConfig.value.editRules[H[X]], Z = formConfig.value.columns.filter(
|
|
38997
|
+
let G = formConfig.value.editRules[H[X]], Z = formConfig.value.columns.filter(
|
|
38998
|
+
(K) => K.field == H[X]
|
|
38999
|
+
)[0];
|
|
39001
39000
|
if (Z) {
|
|
39002
39001
|
let K = Z.editRender.props.displayLogic;
|
|
39003
39002
|
K ? displayLogic(K, { ...formData.value, ...assembleParentData() }) && (Q[H[X]] = G) : Q[H[X]] = G;
|
|
@@ -39817,7 +39816,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39817
39816
|
]);
|
|
39818
39817
|
};
|
|
39819
39818
|
}
|
|
39820
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39819
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-451f628f"]]);
|
|
39821
39820
|
WindowForm.name = "slw-window-form";
|
|
39822
39821
|
WindowForm.install = (Q) => {
|
|
39823
39822
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -40440,7 +40439,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40440
40439
|
_sfc_main$2.install = (Q) => {
|
|
40441
40440
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40442
40441
|
};
|
|
40443
|
-
const
|
|
40442
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_265e04f7_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-265e04f7"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
40444
40443
|
__name: "window-index",
|
|
40445
40444
|
props: {
|
|
40446
40445
|
windowId: {
|
|
@@ -41299,7 +41298,14 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e8e2a92d_lang = "", _withSco
|
|
|
41299
41298
|
}, getRegion = (Q) => {
|
|
41300
41299
|
let H = regionMap.value[Q + "-" + preTag.value];
|
|
41301
41300
|
return H || regionMap.value[Q];
|
|
41302
|
-
}
|
|
41301
|
+
};
|
|
41302
|
+
function focusInput(Q, H = !1) {
|
|
41303
|
+
let X = document.querySelector(`input[_field_id="${Q}"]`);
|
|
41304
|
+
X ? (X.focus(), H && X.select()) : setTimeout(() => {
|
|
41305
|
+
focusInput(Q, H);
|
|
41306
|
+
}, 3 * 1e3);
|
|
41307
|
+
}
|
|
41308
|
+
const activatedList = [], addOnActivatedFun = (Q) => {
|
|
41303
41309
|
activatedList.push(Q);
|
|
41304
41310
|
};
|
|
41305
41311
|
return onActivated(() => {
|
|
@@ -41317,7 +41323,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e8e2a92d_lang = "", _withSco
|
|
|
41317
41323
|
document.removeEventListener("keydown", ctrlSSave);
|
|
41318
41324
|
}), watch([() => props.windowId, () => props.queryParams], () => {
|
|
41319
41325
|
loadData(), settPageHeight();
|
|
41320
|
-
}), provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$addOnActivatedFun", addOnActivatedFun), provide("$debounce", debounce), (Q, H) => {
|
|
41326
|
+
}), provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$preViewCloseCallback", preViewCloseCallback), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$closePreModal", closePreModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), provide("$addOnActivatedFun", addOnActivatedFun), provide("$debounce", debounce), (Q, H) => {
|
|
41321
41327
|
const X = resolveComponent("el-tab-pane"), G = resolveComponent("el-tabs"), Z = resolveComponent("el-scrollbar"), K = resolveComponent("el-checkbox"), ee = resolveComponent("arrow-back"), te = resolveComponent("el-icon"), ne = resolveComponent("el-button"), re = resolveComponent("arrow-forward"), oe = resolveComponent("el-button-group"), ae = resolveComponent("save"), le = resolveComponent("close"), se = resolveComponent("el-space"), ce = resolveComponent("el-dialog"), de = resolveComponent("window-index", !0);
|
|
41322
41328
|
return openBlock(), createElementBlock("div", _hoisted_1$kR, [
|
|
41323
41329
|
(openBlock(), createBlock(unref(WindowLayout), {
|
|
@@ -41571,7 +41577,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e8e2a92d_lang = "", _withSco
|
|
|
41571
41577
|
]);
|
|
41572
41578
|
};
|
|
41573
41579
|
}
|
|
41574
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41580
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-265e04f7"]]);
|
|
41575
41581
|
WindowIndex.name = "slw-window-index";
|
|
41576
41582
|
WindowIndex.install = (Q) => {
|
|
41577
41583
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -107812,8 +107818,11 @@ function initVxeRenderer(Q, H, X) {
|
|
|
107812
107818
|
label: "title"
|
|
107813
107819
|
},
|
|
107814
107820
|
filterable: !0,
|
|
107821
|
+
clearable: !0,
|
|
107815
107822
|
treeDefaultExpandAll: !1,
|
|
107816
|
-
data: ce.treeData
|
|
107823
|
+
data: ce.treeData,
|
|
107824
|
+
disabled: ce.disabled,
|
|
107825
|
+
readonly: ce.readonly
|
|
107817
107826
|
}), null);
|
|
107818
107827
|
}, re = (ae, le) => {
|
|
107819
107828
|
const {
|
|
@@ -124382,12 +124391,16 @@ function reConsole() {
|
|
|
124382
124391
|
}
|
|
124383
124392
|
}
|
|
124384
124393
|
console.info(
|
|
124385
|
-
`%cSLW %cVer 0.8.
|
|
124386
|
-
%c
|
|
124394
|
+
`%cSLW %cVer 0.8.84%c
|
|
124395
|
+
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
124396
|
+
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/files/6`,
|
|
124387
124397
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
|
124388
124398
|
"color:#fff;font-size: 12px;background-color:#409EFF;padding:2px 4px;border-radius:3px;",
|
|
124389
124399
|
"color:#fff;font-size: 12px;",
|
|
124390
124400
|
"color:#409EFF;font-size: 12px;",
|
|
124401
|
+
"color:#fff;font-size: 12px;",
|
|
124402
|
+
"color:#fff;font-size: 12px;",
|
|
124403
|
+
"color:#409EFF;font-size: 12px;",
|
|
124391
124404
|
"color:#fff;font-size: 12px;"
|
|
124392
124405
|
);
|
|
124393
124406
|
const index = {
|