slw 1.0.0-beta.14 → 1.0.0-beta.14.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.
|
@@ -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-d3b7e0d8.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -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_5f4ec841_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-5f4ec841"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
|
|
8529
8529
|
class: "slw-window-grid-container",
|
|
8530
8530
|
style: { height: "100%" }
|
|
8531
8531
|
}, _hoisted_2$kZ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hZ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$az = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Z = [
|
|
@@ -8576,12 +8576,18 @@ const windowGrid_vue_vue_type_style_index_0_scoped_472f466c_lang = "", _withScop
|
|
|
8576
8576
|
let X = gridData.value.formConfig.items.filter((G) => G.folding).map((G) => G.field);
|
|
8577
8577
|
if (X.length > 0) {
|
|
8578
8578
|
let G = !1;
|
|
8579
|
-
|
|
8580
|
-
if (
|
|
8579
|
+
for (let K of X)
|
|
8580
|
+
if (form[K] instanceof Array)
|
|
8581
|
+
if (form[K].length > 0) {
|
|
8582
|
+
G = !0;
|
|
8583
|
+
break;
|
|
8584
|
+
} else
|
|
8585
|
+
continue;
|
|
8586
|
+
else if (form[K]) {
|
|
8581
8587
|
G = !0;
|
|
8582
|
-
|
|
8588
|
+
break;
|
|
8583
8589
|
}
|
|
8584
|
-
|
|
8590
|
+
G && (Q += " form-folding");
|
|
8585
8591
|
}
|
|
8586
8592
|
}
|
|
8587
8593
|
return Q;
|
|
@@ -9217,13 +9223,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_472f466c_lang = "", _withScop
|
|
|
9217
9223
|
var Q;
|
|
9218
9224
|
for (let H in queryFormData.value)
|
|
9219
9225
|
queryFormData.value[H] = null;
|
|
9220
|
-
(Q = getCurRegion()) == null || Q.commitProxy("reload");
|
|
9226
|
+
clearCheckedReserveData(), (Q = getCurRegion()) == null || Q.commitProxy("reload");
|
|
9221
9227
|
}, getCheckedData = () => {
|
|
9222
9228
|
const Q = getCurRegion();
|
|
9223
9229
|
return Q ? Q.getCheckboxRecords() : null;
|
|
9224
9230
|
}, getCheckedReserveData = () => {
|
|
9225
9231
|
const Q = getCurRegion();
|
|
9226
9232
|
return Q ? Q.getCheckboxRecords().concat(Q.getCheckboxReserveRecords()) : null;
|
|
9233
|
+
}, clearCheckedReserveData = () => {
|
|
9234
|
+
getCurRegion().clearCheckboxReserve(), checkedGridOptions.value && (checkedGridOptions.value.data = []);
|
|
9227
9235
|
}, headerCheckboxChange = ({ checked: Q, row: H, rowIndex: X }) => {
|
|
9228
9236
|
let G = getCheckedReserveData();
|
|
9229
9237
|
if (G.length > 0)
|
|
@@ -9281,15 +9289,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_472f466c_lang = "", _withScop
|
|
|
9281
9289
|
getCurRegion().remove(Q);
|
|
9282
9290
|
}, exportCurrentData = async () => {
|
|
9283
9291
|
exportButton.value ? getCurRegion().exportData() : $message.error($T("您没有导出数据权限!"));
|
|
9284
|
-
}, exportData = async () => {
|
|
9292
|
+
}, exportData = async (Q) => {
|
|
9285
9293
|
if (exportButton.value) {
|
|
9286
|
-
const
|
|
9287
|
-
|
|
9288
|
-
_button_id: exportButton.value._button_id
|
|
9289
|
-
},
|
|
9290
|
-
gridData.value.params.queryFormData
|
|
9291
|
-
);
|
|
9292
|
-
gridData.value.params.parentRowId && (Q[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), await axios.export("/window/export?data=" + base64Encode(JSON.stringify(Q)), {}), exportButton.value.loading = !1;
|
|
9294
|
+
const H = Object.assign({ _button_id: exportButton.value._button_id }, gridData.value.params.queryFormData);
|
|
9295
|
+
gridData.value.params.parentRowId && (H[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), Q && (H._file_name = Q), await axios.export("/window/export?data=" + base64Encode(JSON.stringify(H)), {}), exportButton.value.loading = !1;
|
|
9293
9296
|
} else
|
|
9294
9297
|
$message.error($T("您没有导出数据权限!"));
|
|
9295
9298
|
}, search = (Q) => {
|
|
@@ -10017,7 +10020,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_472f466c_lang = "", _withScop
|
|
|
10017
10020
|
search(Q);
|
|
10018
10021
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getCheckedReserveData = () => getCheckedReserveData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
10019
10022
|
setChecked(Q);
|
|
10020
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.getRegion = (Q) => getRegion(Q), curRegion.value.removeRow = (Q) => removeRow(Q), 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, X, G) => setRowCellColor(Q, H, X, G), curRegion.value.setFormSelectOption = (Q, H, X) => setFormSelectOption(Q, H, X), 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), curRegion.value.setQueryFieldChangeFun = (Q, H) => setQueryFieldChangeFun(Q, H), curRegion.value.setQueryFormItemDisplay = (Q, H) => setQueryFormItemDisplay(Q, H), curRegion.value.setQueryFormItemProperty = (Q, H, X) => setQueryFormItemProperty(Q, H, X), curRegion.value.setCheckMethod = (Q) => setCheckMethod(Q), curRegion.value.setButtonDisplay = (Q, H) => setButtonDisplay(Q, H), curRegion.value.addColumn = (Q) => addColumn(Q);
|
|
10023
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.getRegion = (Q) => getRegion(Q), curRegion.value.removeRow = (Q) => removeRow(Q), 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, X, G) => setRowCellColor(Q, H, X, G), curRegion.value.setFormSelectOption = (Q, H, X) => setFormSelectOption(Q, H, X), 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), curRegion.value.setQueryFieldChangeFun = (Q, H) => setQueryFieldChangeFun(Q, H), curRegion.value.setQueryFormItemDisplay = (Q, H) => setQueryFormItemDisplay(Q, H), curRegion.value.setQueryFormItemProperty = (Q, H, X) => setQueryFormItemProperty(Q, H, X), curRegion.value.setCheckMethod = (Q) => setCheckMethod(Q), curRegion.value.setButtonDisplay = (Q, H) => setButtonDisplay(Q, H), curRegion.value.addColumn = (Q) => addColumn(Q), curRegion.value.resetGrid = () => resetGrid(), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData();
|
|
10021
10024
|
}), onUnmounted(() => {
|
|
10022
10025
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
10023
10026
|
}), __expose({ gridReload, reload }), (Q, H) => {
|
|
@@ -10085,18 +10088,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_472f466c_lang = "", _withScop
|
|
|
10085
10088
|
} : void 0
|
|
10086
10089
|
]), 1032, ["iconComponent", "style", "onClick"]))), 128))
|
|
10087
10090
|
]),
|
|
10088
|
-
top: withCtx(() =>
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10091
|
+
top: withCtx(() => {
|
|
10092
|
+
var ue;
|
|
10093
|
+
return [
|
|
10094
|
+
createElementVNode("div", {
|
|
10095
|
+
class: "table_top_wrapper",
|
|
10096
|
+
id: "table_top_" + unref(gridData).params.code
|
|
10097
|
+
}, [
|
|
10098
|
+
(ue = unref(gridData).params.slotsVuePath) != null && ue.table_top ? (openBlock(), createBlock(resolveDynamicComponent(unref(tableTopComponent)), {
|
|
10099
|
+
key: 0,
|
|
10100
|
+
ref_key: "tableTop",
|
|
10101
|
+
ref: tableTop
|
|
10102
|
+
}, null, 512)) : createCommentVNode("", !0)
|
|
10103
|
+
], 8, _hoisted_7$14)
|
|
10104
|
+
];
|
|
10105
|
+
}),
|
|
10100
10106
|
form: withCtx(() => [
|
|
10101
10107
|
createElementVNode("div", _hoisted_8$H, [
|
|
10102
10108
|
createVNode(te, {
|
|
@@ -10199,18 +10205,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_472f466c_lang = "", _withScop
|
|
|
10199
10205
|
_: 1
|
|
10200
10206
|
}, 8, ["collapseNode"])) : createCommentVNode("", !0),
|
|
10201
10207
|
createVNode(ee, { span: "24" }, {
|
|
10202
|
-
default: withCtx(() =>
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10208
|
+
default: withCtx(() => {
|
|
10209
|
+
var ue;
|
|
10210
|
+
return [
|
|
10211
|
+
createElementVNode("div", {
|
|
10212
|
+
class: "other_item",
|
|
10213
|
+
id: "other_item_" + unref(gridData).params.code
|
|
10214
|
+
}, [
|
|
10215
|
+
(ue = unref(gridData).params.slotsVuePath) != null && ue.other_item ? (openBlock(), createBlock(resolveDynamicComponent(unref(otherItemComponent)), {
|
|
10216
|
+
key: 0,
|
|
10217
|
+
ref_key: "otherItem",
|
|
10218
|
+
ref: otherItem
|
|
10219
|
+
}, null, 512)) : createCommentVNode("", !0)
|
|
10220
|
+
], 8, _hoisted_14$1)
|
|
10221
|
+
];
|
|
10222
|
+
}),
|
|
10214
10223
|
_: 1
|
|
10215
10224
|
})
|
|
10216
10225
|
]),
|
|
@@ -10351,7 +10360,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_472f466c_lang = "", _withScop
|
|
|
10351
10360
|
]);
|
|
10352
10361
|
};
|
|
10353
10362
|
}
|
|
10354
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
10363
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-5f4ec841"]]);
|
|
10355
10364
|
WindowGrid.name = "slw-window-grid";
|
|
10356
10365
|
WindowGrid.install = (Q) => {
|
|
10357
10366
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -59399,7 +59408,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59399
59408
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59400
59409
|
setup(Q, { emit: H }) {
|
|
59401
59410
|
const X = Q, G = defineAsyncComponent(
|
|
59402
|
-
() => import("./index-
|
|
59411
|
+
() => import("./index-c91fc1bc.js")
|
|
59403
59412
|
);
|
|
59404
59413
|
let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref(0), oe = ref(null);
|
|
59405
59414
|
oe.value = createDesigner();
|
|
@@ -165899,7 +165908,7 @@ function reConsole() {
|
|
|
165899
165908
|
}
|
|
165900
165909
|
}
|
|
165901
165910
|
console.info(
|
|
165902
|
-
`%cSLW %cVer 1.0.0-beta.14%c
|
|
165911
|
+
`%cSLW %cVer 1.0.0-beta.14.2%c
|
|
165903
165912
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
165904
165913
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
165905
165914
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED