slw 0.5.927 → 0.5.941
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 +450 -273
- package/lib/index.umd.cjs +8 -8
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $o = Object.defineProperty;
|
|
2
2
|
var xo = (Q, H, X) => H in Q ? $o(Q, H, { enumerable: !0, configurable: !0, writable: !0, value: X }) : Q[H] = X;
|
|
3
3
|
var mo = (Q, H, X) => (xo(Q, typeof H != "symbol" ? H + "" : H, X), X);
|
|
4
|
-
import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$2, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, createElementVNode, resolveComponent, openBlock, createElementBlock,
|
|
4
|
+
import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive, defineComponent, shallowReactive, h as h$2, Fragment, TransitionGroup, onUpdated, markRaw, isReadonly, onBeforeUpdate, pushScopeId, popScopeId, createElementVNode, resolveComponent, openBlock, createElementBlock, createVNode, mergeProps as mergeProps$1, withCtx, renderList, createBlock, resolveDynamicComponent, createSlots, toDisplayString as toDisplayString$1, createCommentVNode, normalizeProps, guardReactiveProps, createTextVNode, toRaw, normalizeClass, normalizeStyle, renderSlot, withModifiers, isVNode as isVNode$1, Comment, Text as Text$2, Transition, Teleport, render as render$1, cloneVNode, withDirectives, resolveDirective, vShow, camelize as camelize$1, createStaticVNode, createApp, onActivated, onDeactivated } from "vue";
|
|
5
5
|
var isVue2 = !1, isVue3 = !0, Vue2 = void 0;
|
|
6
6
|
function install$2() {
|
|
7
7
|
}
|
|
@@ -5938,15 +5938,18 @@ function useWindowSize(Q = {}) {
|
|
|
5938
5938
|
}
|
|
5939
5939
|
return { width: ee, height: te };
|
|
5940
5940
|
}
|
|
5941
|
-
const
|
|
5941
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_8c016723_lang = "", _export_sfc = (Q, H) => {
|
|
5942
5942
|
const X = Q.__vccOpts || Q;
|
|
5943
5943
|
for (const [G, Z] of H)
|
|
5944
5944
|
X[G] = Z;
|
|
5945
5945
|
return X;
|
|
5946
|
-
}, _withScopeId$2 = (Q) => (pushScopeId("data-v-
|
|
5946
|
+
}, _withScopeId$2 = (Q) => (pushScopeId("data-v-8c016723"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
5947
|
+
class: "slw-window-grid-container",
|
|
5948
|
+
style: { height: "100%" }
|
|
5949
|
+
}, _hoisted_2$kR = {
|
|
5947
5950
|
key: 0,
|
|
5948
5951
|
style: { verticalAlign: "middle" }
|
|
5949
|
-
},
|
|
5952
|
+
}, _hoisted_3$hT = { style: { padding: "20px 0" } }, _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("p", null, "点击或拖文件到此处上传", -1)), _sfc_main$6 = {
|
|
5950
5953
|
__name: "window-grid",
|
|
5951
5954
|
props: {
|
|
5952
5955
|
gridData: {
|
|
@@ -5967,9 +5970,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
5967
5970
|
format: [],
|
|
5968
5971
|
multiple: !0
|
|
5969
5972
|
});
|
|
5970
|
-
let
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
+
let bodyMenus = ref([
|
|
5974
|
+
[
|
|
5975
|
+
{ code: "expand", name: "展开节点", disabled: !1 },
|
|
5976
|
+
{ code: "contract", name: "收缩节点", disabled: !1 }
|
|
5977
|
+
]
|
|
5978
|
+
]), editBtn = ref(null), exportButton = ref(null), uploadData = ref({}), queryTimeout = ref(null), formSelectMap = ref({}), isEditGridInitData = ref(!1);
|
|
5979
|
+
const addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), preTag = computed(() => gridData.value.params.preTag || ""), showButtons = (Q) => gridData.value.toolbarConfig.buttons.filter(
|
|
5980
|
+
(H) => H.showInGrid && (gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || H.btnShowInGrid[Q])
|
|
5973
5981
|
), componentMapping = inject("$componentMapping"), $Modal = inject("$modal"), $modal = $Modal, $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), $Message = ref({
|
|
5974
5982
|
success(Q) {
|
|
5975
5983
|
success(Q);
|
|
@@ -6027,7 +6035,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6027
6035
|
const evalDefaultValue = inject("$evalDefaultValue"), operationButton = (Q) => ({
|
|
6028
6036
|
size: "small",
|
|
6029
6037
|
type: Q.viewType,
|
|
6030
|
-
style: { ...Q.css, marginLeft: "0px" },
|
|
6038
|
+
style: { ...Q.css, marginLeft: "0px", padding: "5px" },
|
|
6031
6039
|
icon: Q.icon,
|
|
6032
6040
|
text: !0,
|
|
6033
6041
|
iconComponent: Q.iconComponent,
|
|
@@ -6039,6 +6047,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6039
6047
|
gridData.value.params.parentRegionId === H && (Q ? preTag.value === Q.preTag && (gridData.value.params.parentRowId = Q.rowId, gridData.value.params.parentRowIdValue = Q.rowIdValue, Q.hasData ? (gridData.value.params.parentData = Q, reload()) : (gridData.value.params.parentData = null, gridData.value.params.queryParams = null, getCurRegion().loadData([]))) : (gridData.value.params.parentRowId = null, gridData.value.params.parentRowIdValue = null, getCurRegion().loadData([])));
|
|
6040
6048
|
}, gridReload = (Q, H) => {
|
|
6041
6049
|
gridData.value.params._region_id === Q && (H != null && (rowIndex.value = H), getCurRegion().commitProxy("reload"));
|
|
6050
|
+
}, setSubtableSearchParams = (Q) => {
|
|
6051
|
+
gridData.value.params.subtableSearchExParams = Q;
|
|
6042
6052
|
}, searchData = (Q) => {
|
|
6043
6053
|
gridData.value.proxyConfig = {
|
|
6044
6054
|
seq: !0,
|
|
@@ -6056,44 +6066,53 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6056
6066
|
},
|
|
6057
6067
|
ajax: {
|
|
6058
6068
|
query: ({ page: H, sorts: X, filters: G, form: Z }, K) => {
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
}),
|
|
6068
|
-
const
|
|
6069
|
-
|
|
6070
|
-
})
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6069
|
+
Object.entries(Z).forEach(([ae, le]) => {
|
|
6070
|
+
le == null && (Z[ae] = null);
|
|
6071
|
+
});
|
|
6072
|
+
let ee = getParentRegion(), te = null;
|
|
6073
|
+
ee && (te = ee.params.subtableSearchExParams);
|
|
6074
|
+
const ne = Object.assign({}, Z, K, te), re = X[0];
|
|
6075
|
+
re && (ne.$_sort_column = re.property, ne.$_sort_type = re.order), G.forEach(({ property: ae, values: le }) => {
|
|
6076
|
+
ne[ae.toUpperCase()] = le.join(",");
|
|
6077
|
+
}), ne.page = H.currentPage, ne.limit = H.pageSize, ne._region_id = gridData.value.params._region_id, gridData.value.params.parentRowId && (ne[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), gridData.value.params.queryParams && Object.keys(gridData.value.params.queryParams).forEach((ae) => {
|
|
6078
|
+
const le = ae.toLowerCase();
|
|
6079
|
+
ne.hasOwnProperty(le) && (Z[le] = gridData.value.params.queryParams[ae], ne[le] = gridData.value.params.queryParams[ae]);
|
|
6080
|
+
}), Object.keys(ne).forEach((ae) => {
|
|
6081
|
+
ne[ae] instanceof Object && (ne[ae] = Object.values(ne[ae]).join());
|
|
6082
|
+
}), Q ? Object.keys(Q).forEach((ae) => {
|
|
6083
|
+
const le = ae.toLowerCase();
|
|
6084
|
+
ne.hasOwnProperty(le) && (ne[le] = Q[ae]);
|
|
6085
|
+
}) : localStorage.setItem(gridData.value.params._region_id + preTag.value, JSON.stringify(Z));
|
|
6086
|
+
const oe = axios.post("/window/data/" + gridData.value.params.datasourceCode, ne);
|
|
6087
|
+
return oe.then((ae) => {
|
|
6088
|
+
if (ae && ae.data && ae.data.result) {
|
|
6089
|
+
let le = {};
|
|
6090
|
+
if (ae.data.data && ae.data.data.length > 0) {
|
|
6091
|
+
let se = !1;
|
|
6092
|
+
ae.data.data.forEach((ue, he) => {
|
|
6093
|
+
gridData.value.toolbarConfig.buttons.forEach((de) => {
|
|
6094
|
+
if (typeof de.type < "u") {
|
|
6095
|
+
de.btnLoad[he] = !1;
|
|
6096
|
+
const pe = de.displayLogic ? displayLogic(de.displayLogic, { ...ue, ...assembleParentData(gridData.value.params.parentData) }) : !0, fe = de.showInGrid && pe, me = !de.showInGrid && pe;
|
|
6097
|
+
de.btnShowInGrid[he] = fe, de.btnShow[he] = me, se = se || fe;
|
|
6083
6098
|
}
|
|
6084
6099
|
});
|
|
6085
|
-
}),
|
|
6086
|
-
const
|
|
6087
|
-
|
|
6100
|
+
}), ae.data.data.length > rowIndex.value ? le = ae.data.data[rowIndex.value] : le = ae.data.data[0];
|
|
6101
|
+
const ce = getCurRegion();
|
|
6102
|
+
if (ce) {
|
|
6103
|
+
const ue = ce.getColumnById("_operation_");
|
|
6104
|
+
ue && se && ce.showColumn(ue);
|
|
6105
|
+
}
|
|
6106
|
+
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(le);
|
|
6088
6107
|
}
|
|
6089
|
-
rowClickCommon(
|
|
6108
|
+
rowClickCommon(le, rowIndex.value);
|
|
6090
6109
|
}
|
|
6091
|
-
}),
|
|
6110
|
+
}), oe;
|
|
6092
6111
|
}
|
|
6093
6112
|
}
|
|
6094
6113
|
}, gridData.value.params.parentRegionId && (gridData.value.proxyConfig.autoLoad = !1);
|
|
6095
6114
|
}, rowClick = (Q) => {
|
|
6096
|
-
gridData.value.type === "TREE" ? rowClickCommon(Q.row, Q.rowIndex) : (Q.rowIndex !== rowIndex.value && rowClickCommon(Q.row, Q.rowIndex), rowIndex.value = Q.rowIndex);
|
|
6115
|
+
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);
|
|
6097
6116
|
}, callGridClickEvents = inject("$callGridClickEvents"), rowClickCommon = (Q, H) => {
|
|
6098
6117
|
const X = {
|
|
6099
6118
|
rowId: gridData.value.rowId,
|
|
@@ -6103,15 +6122,23 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6103
6122
|
hasData: !(typeof Q > "u" || Object.keys(Q).length === 0),
|
|
6104
6123
|
...Q
|
|
6105
6124
|
}, G = Object.assign({}, X);
|
|
6106
|
-
delete G._region_id,
|
|
6125
|
+
delete G._region_id, gridData.value.params.parentData = getParentData(), emitButtonDisplayLogic({ ...Q, ...assembleParentData(gridData.value.params.parentData) }, H), rowIndex.value = H, X.hasData && (evalEvent(gridData.value.params.formEvents.rowClickFunction, Q), getCurRegion().setCurrentRow(Q)), callGridClickEvents(G, gridData.value.params._region_id);
|
|
6107
6126
|
}, emitButtonDisplayLogic = (Q, H) => {
|
|
6108
6127
|
gridData.value.toolbarConfig.buttons.forEach((X) => {
|
|
6109
|
-
X.displayLogic && (X.
|
|
6128
|
+
X.displayLogic && (X.btnShowInGrid[H] = X.showInGrid && displayLogic(X.displayLogic, Q), X.btnShow[H] = !X.showInGrid && X.showInGrid);
|
|
6110
6129
|
});
|
|
6111
6130
|
}, onRowDbClick = (Q) => {
|
|
6112
6131
|
gridData.value.type !== "EDIT_GRID" && commonEditData(Q.row, Q.rowIndex);
|
|
6113
6132
|
}, toolBarButtonClick = async (Q, H, X) => {
|
|
6114
|
-
Q.hasOwnProperty("button") && (Q = Q.button)
|
|
6133
|
+
if (Q.hasOwnProperty("button") && (Q = Q.button), gridData.value.type == "TREE_STRUCTURE") {
|
|
6134
|
+
if (Q.type == "OPEN") {
|
|
6135
|
+
getCurRegion().setAllTreeExpand(!0);
|
|
6136
|
+
return;
|
|
6137
|
+
} else if (Q.type == "CLOSE") {
|
|
6138
|
+
getCurRegion().clearTreeExpand();
|
|
6139
|
+
return;
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6115
6142
|
let G;
|
|
6116
6143
|
if (typeof H > "u" && Q.type !== "EXPORT" && (H = getSelectRecord() || getCheckedData(), G = getCheckedData(), gridData.value.type !== "EDIT_GRID" && Q.type !== "NEW" && Q.type !== "IMPORT" && Q.code.toUpperCase() !== "ROLLBACK" && Q.type !== "EVENT")) {
|
|
6117
6144
|
if (!H || H.length === 0) {
|
|
@@ -6372,37 +6399,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6372
6399
|
G.data.result && G.data.data && (X.editRender.props.treeData = G.data.data);
|
|
6373
6400
|
});
|
|
6374
6401
|
else if (X.remoteSearch) {
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
if (Z.data.result && Z.data.data) {
|
|
6382
|
-
X.editRender.options = Z.data.data.map((ee) => Object.assign({
|
|
6383
|
-
value: ee.VALUE,
|
|
6384
|
-
label: ee.NAME
|
|
6385
|
-
}, ee));
|
|
6386
|
-
const K = {};
|
|
6387
|
-
X.editRender.options.forEach((ee) => {
|
|
6388
|
-
K[ee.VALUE] = ee;
|
|
6389
|
-
}), axios.post("/window/selector", $qs.stringify({
|
|
6390
|
-
...Q,
|
|
6391
|
-
_field_id: X.id,
|
|
6392
|
-
_select_id: X.selectorId
|
|
6393
|
-
})).then((ee) => {
|
|
6394
|
-
if (ee.data.result && ee.data.data) {
|
|
6395
|
-
const te = Object.assign([], X.editRender.options);
|
|
6396
|
-
ee.data.data.map((ne) => {
|
|
6397
|
-
K.hasOwnProperty(ne.VALUE) || (te.push(Object.assign({
|
|
6398
|
-
value: ne.VALUE,
|
|
6399
|
-
label: ne.NAME
|
|
6400
|
-
}, ne)), K[ne.VALUE] = ne);
|
|
6401
|
-
}), X.editRender.options = te;
|
|
6402
|
-
}
|
|
6403
|
-
});
|
|
6404
|
-
}
|
|
6402
|
+
componentMapping.isElementPlus() ? X.editRender.props.remoteMethod = async (Z) => {
|
|
6403
|
+
Z && (X.editRender.props.loading = !0, X.editRender.options = await remoteMethod(Z, X.id, X.selectorId), X.editRender.props.loading = !1);
|
|
6404
|
+
} : componentMapping.isAntd() && (X.editRender.events.change = async (Z) => {
|
|
6405
|
+
Z && (X.editRender.options = await remoteMethod(Z, X.id, X.selectorId));
|
|
6406
|
+
}, X.editRender.events.search = async (Z) => {
|
|
6407
|
+
Z && (X.editRender.options = await remoteMethod(Z, X.id, X.selectorId));
|
|
6405
6408
|
});
|
|
6409
|
+
let G = Q["_" + X.field + "_NAME"];
|
|
6410
|
+
Q[X.field] && G && (X.editRender.options = await remoteMethod(G, X.id, X.selectorId));
|
|
6406
6411
|
} else
|
|
6407
6412
|
typeof X.selectorId < "u" && await axios.post("/window/selector", $qs.stringify({
|
|
6408
6413
|
...Q,
|
|
@@ -6429,8 +6434,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6429
6434
|
break;
|
|
6430
6435
|
}
|
|
6431
6436
|
}
|
|
6432
|
-
|
|
6433
|
-
|
|
6437
|
+
evalEvent(Q.column.editRender.props.changeFunction, H, K);
|
|
6438
|
+
} else
|
|
6439
|
+
evalEvent(Q.column.editRender.props.changeFunction, H, G, Z);
|
|
6434
6440
|
}, success = (Q, H) => {
|
|
6435
6441
|
$vxeMessage({
|
|
6436
6442
|
content: Q,
|
|
@@ -6443,6 +6449,45 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6443
6449
|
status: "error",
|
|
6444
6450
|
zIndex: 3e3
|
|
6445
6451
|
});
|
|
6452
|
+
}, visibleMethod = ({ row: Q, type: H }) => {
|
|
6453
|
+
let X = getCurRegion();
|
|
6454
|
+
return H === "body" && bodyMenus.value.forEach((G) => {
|
|
6455
|
+
G.forEach((Z) => {
|
|
6456
|
+
if (["expand", "contract"].includes(Z.code))
|
|
6457
|
+
if (Q._CHILDS && Q._CHILDS.length > 0) {
|
|
6458
|
+
let K = X.isTreeExpandByRow(Q);
|
|
6459
|
+
Z.disabled = ["expand"].includes(Z.code) ? K : !K;
|
|
6460
|
+
} else
|
|
6461
|
+
Z.disabled = !0;
|
|
6462
|
+
});
|
|
6463
|
+
}), !0;
|
|
6464
|
+
}, contextMenuClickEvent = ({ menu: Q, row: H, column: X }) => {
|
|
6465
|
+
let G = getCurRegion();
|
|
6466
|
+
switch (Q.code) {
|
|
6467
|
+
case "expand":
|
|
6468
|
+
G.setTreeExpand(H, !0);
|
|
6469
|
+
break;
|
|
6470
|
+
case "contract":
|
|
6471
|
+
G.setTreeExpand(H, !1);
|
|
6472
|
+
break;
|
|
6473
|
+
}
|
|
6474
|
+
}, onEnter = (Q, H) => {
|
|
6475
|
+
if (H.key === "Enter" && Q.column.editRender.props.enterFunction) {
|
|
6476
|
+
let X = Q.row[Q.column.field];
|
|
6477
|
+
evalEvent(Q.column.editRender.props.enterFunction, X, Q.column.field, Q.row);
|
|
6478
|
+
}
|
|
6479
|
+
}, remoteMethod = async (Q, H, X) => {
|
|
6480
|
+
let G = [], Z = await axios.post("/window/selector", $qs.stringify({
|
|
6481
|
+
$_f_value: Q,
|
|
6482
|
+
_region_id: gridData.value.params._region_id,
|
|
6483
|
+
_field_id: H,
|
|
6484
|
+
_select_id: X
|
|
6485
|
+
}));
|
|
6486
|
+
if (Z.data.result && Z.data.data)
|
|
6487
|
+
return G = Z.data.data.map((K) => Object.assign({
|
|
6488
|
+
value: K.VALUE,
|
|
6489
|
+
label: K.NAME
|
|
6490
|
+
}, K)), G;
|
|
6446
6491
|
};
|
|
6447
6492
|
onMounted(() => {
|
|
6448
6493
|
evalEvent(gridData.value.params.formEvents.dataInit), gridData.value.toolbarConfig.buttons.forEach((Q) => {
|
|
@@ -6463,7 +6508,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6463
6508
|
});
|
|
6464
6509
|
}), gridData.value.formConfig.items.forEach((Q) => {
|
|
6465
6510
|
var H;
|
|
6466
|
-
if (Q.itemRender && Q.itemRender.events && Q.itemRender.events.hasOwnProperty("change") && (Q.itemRender.events.change = search), Q.
|
|
6511
|
+
if (Q.itemRender && Q.itemRender.events && Q.itemRender.events.hasOwnProperty("change") && (Q.itemRender.events.change = search), Q.remoteSearch ? (componentMapping.isElementPlus() ? Q.itemRender.props.remoteMethod = async (X) => {
|
|
6512
|
+
X && (Q.itemRender.props.loading = !0, Q.itemRender.options = await remoteMethod(X, Q.querys.id, Q.querys.selectorId), Q.itemRender.props.loading = !1);
|
|
6513
|
+
} : componentMapping.isAntd() && (Q.itemRender.events.change = async (X) => {
|
|
6514
|
+
X && (Q.itemRender.options = await remoteMethod(X, Q.querys.id, Q.querys.selectorId));
|
|
6515
|
+
}, Q.itemRender.events.search = async (X) => {
|
|
6516
|
+
X && (Q.itemRender.options = await remoteMethod(X, Q.querys.id, Q.querys.selectorId));
|
|
6517
|
+
}), Q.itemRender.defaultValue && remoteMethod(Q.itemRender.defaultValue, Q.querys.id, Q.querys.selectorId).then((X) => {
|
|
6518
|
+
Q.itemRender.options = X;
|
|
6519
|
+
})) : Q.querys && axios.post("/window/selector", $qs.stringify({
|
|
6467
6520
|
_region_id: gridData.value.params._region_id,
|
|
6468
6521
|
_field_id: Q.querys.id,
|
|
6469
6522
|
_select_id: Q.querys.selectorId
|
|
@@ -6483,8 +6536,18 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6483
6536
|
};
|
|
6484
6537
|
}
|
|
6485
6538
|
}), gridData.value.columns.forEach((Q) => {
|
|
6486
|
-
Q.hasOwnProperty("field") && !Q.hasOwnProperty("treeNode") && (Q.events.change = onFieldChange, Q.events["on-change"] = onFieldChange), Q.itemRender && Q.itemRender.props._select_id && (formSelectMap.value[Q.id] = Q);
|
|
6487
|
-
}), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun)
|
|
6539
|
+
Q.hasOwnProperty("field") && !Q.hasOwnProperty("treeNode") && (Q.events.change = onFieldChange, Q.events["on-change"] = onFieldChange, Q.events.keyup = onEnter), Q.itemRender && Q.itemRender.props._select_id && (formSelectMap.value[Q.id] = Q);
|
|
6540
|
+
}), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = { body: { options: bodyMenus.value }, visibleMethod }), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
|
|
6541
|
+
closeModal && closeModal();
|
|
6542
|
+
}, curRegion.value.closePreModal = () => {
|
|
6543
|
+
closePreModal && closePreModal();
|
|
6544
|
+
}, curRegion.value.reload = () => {
|
|
6545
|
+
reload && reload();
|
|
6546
|
+
}, curRegion.value.search = (Q) => {
|
|
6547
|
+
search(Q);
|
|
6548
|
+
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
6549
|
+
setChecked(Q);
|
|
6550
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow();
|
|
6488
6551
|
}), onUnmounted(() => {
|
|
6489
6552
|
gridData.value.params.parentRegionId;
|
|
6490
6553
|
});
|
|
@@ -6493,18 +6556,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6493
6556
|
};
|
|
6494
6557
|
return __expose({ gridReload, reload }), (Q, H) => {
|
|
6495
6558
|
const X = resolveComponent("vxe-grid"), G = resolveComponent("cloud-upload"), Z = resolveComponent("download-outline");
|
|
6496
|
-
return openBlock(), createElementBlock("div",
|
|
6497
|
-
class: "slw-window-grid-container",
|
|
6498
|
-
style: normalizeStyle({ height: unref(gridData).params.curHeight + "px" })
|
|
6499
|
-
}, [
|
|
6559
|
+
return openBlock(), createElementBlock("div", _hoisted_1$kW, [
|
|
6500
6560
|
createVNode(X, mergeProps$1({
|
|
6501
6561
|
ref_key: "curRegion",
|
|
6502
6562
|
ref: curRegion,
|
|
6503
6563
|
"keep-source": ""
|
|
6504
6564
|
}, unref(gridData), {
|
|
6505
|
-
onFormReset,
|
|
6506
6565
|
onCellClick: rowClick,
|
|
6507
|
-
onCellDblclick: onRowDbClick
|
|
6566
|
+
onCellDblclick: onRowDbClick,
|
|
6567
|
+
onMenuClick: contextMenuClickEvent
|
|
6508
6568
|
}), {
|
|
6509
6569
|
operation: withCtx(({ row: K, rowIndex: ee }) => [
|
|
6510
6570
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(showButtons(ee), (te) => (openBlock(), createBlock(resolveDynamicComponent(unref(componentMapping).getComponentName("$button")), mergeProps$1({
|
|
@@ -6513,7 +6573,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6513
6573
|
onClick: (ne) => toolBarButtonClick(te, K, ee)
|
|
6514
6574
|
}), createSlots({
|
|
6515
6575
|
default: withCtx(() => [
|
|
6516
|
-
!te.iconComponent || typeof te.iconComponent > "u" ? (openBlock(), createElementBlock("span",
|
|
6576
|
+
!te.iconComponent || typeof te.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_2$kR, toDisplayString$1(te.name), 1)) : createCommentVNode("", !0)
|
|
6517
6577
|
]),
|
|
6518
6578
|
_: 2
|
|
6519
6579
|
}, [
|
|
@@ -6589,9 +6649,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6589
6649
|
"on-success": importSuccess
|
|
6590
6650
|
}, {
|
|
6591
6651
|
default: withCtx(() => [
|
|
6592
|
-
createElementVNode("div",
|
|
6652
|
+
createElementVNode("div", _hoisted_3$hT, [
|
|
6593
6653
|
createVNode(G, { width: 50 }),
|
|
6594
|
-
|
|
6654
|
+
_hoisted_4$au
|
|
6595
6655
|
])
|
|
6596
6656
|
]),
|
|
6597
6657
|
_: 1
|
|
@@ -6619,10 +6679,10 @@ const windowGrid_vue_vue_type_style_index_0_scoped_c44f732f_lang = "", _export_s
|
|
|
6619
6679
|
"mask-closable": "",
|
|
6620
6680
|
"esc-closable": ""
|
|
6621
6681
|
}, null, 40, ["modelValue", "visible"]))
|
|
6622
|
-
]
|
|
6682
|
+
]);
|
|
6623
6683
|
};
|
|
6624
6684
|
}
|
|
6625
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
6685
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-8c016723"]]);
|
|
6626
6686
|
WindowGrid.name = "slw-window-grid";
|
|
6627
6687
|
WindowGrid.install = (Q) => {
|
|
6628
6688
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -28953,10 +29013,7 @@ assign$2(XEUtils, {
|
|
|
28953
29013
|
cookie
|
|
28954
29014
|
});
|
|
28955
29015
|
var xeUtils = XEUtils;
|
|
28956
|
-
const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = {
|
|
28957
|
-
style: { paddingLeft: "10px", height: "100%" },
|
|
28958
|
-
class: "slw-window-form"
|
|
28959
|
-
}, _hoisted_2$kQ = {
|
|
29016
|
+
const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kQ = {
|
|
28960
29017
|
key: 0,
|
|
28961
29018
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
28962
29019
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -29037,7 +29094,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29037
29094
|
}
|
|
29038
29095
|
return Q;
|
|
29039
29096
|
}), buttons = computed(() => formConfig.value.toolbarConfig.buttons.filter(
|
|
29040
|
-
(Q) => typeof Q.code < "u"
|
|
29097
|
+
(Q) => typeof Q.code < "u" && Q.type != "EDIT" && Q.type != "DELETE" && Q.type != "NEW"
|
|
29041
29098
|
)), formSelectMap = computed(() => {
|
|
29042
29099
|
let Q = {};
|
|
29043
29100
|
return formConfig.value.columns.forEach((H) => {
|
|
@@ -29048,7 +29105,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29048
29105
|
return formConfig.value.columns.forEach((H) => {
|
|
29049
29106
|
H.editRender && H.editRender.props.readonlyLogic && (Q[H.field] = H);
|
|
29050
29107
|
}), Q;
|
|
29051
|
-
});
|
|
29108
|
+
}), subQueryFields = computed(() => formConfig.value.columns.filter((Q) => Q.dataType === "SQL"));
|
|
29052
29109
|
onMounted(() => {
|
|
29053
29110
|
if (formConfig.value.params.linkUrl)
|
|
29054
29111
|
return;
|
|
@@ -29068,7 +29125,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29068
29125
|
if (X.colType !== "showInGrid") {
|
|
29069
29126
|
if ((te = (ee = X == null ? void 0 : X.editRender) == null ? void 0 : ee.props) != null && te.newLine && G > 0) {
|
|
29070
29127
|
let re = Z[G - 1];
|
|
29071
|
-
re.span =
|
|
29128
|
+
re.span = 24 - H % 24;
|
|
29072
29129
|
}
|
|
29073
29130
|
let ne = parseInt(X.fwidth);
|
|
29074
29131
|
["EDITOR", "TEXT"].includes(X.dataType) ? K = 24 : ne ? ne > 12 ? K = ne > 400 ? 24 : 12 : K = ne : K = 12, H += K;
|
|
@@ -29076,7 +29133,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29076
29133
|
X.span = K, X.hasOwnProperty("field") && !X.hasOwnProperty("treeNode") && (X.events.change = onFieldChange, X.hasOwnProperty("search") && (X.events.search = remoteSearch), X.events.keyup = onEnter);
|
|
29077
29134
|
}), formData.value._region_id = formConfig.value.params._region_id, evalEvent(formConfig.value.params.formEvents.dataInit), 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.columns.map((X) => {
|
|
29078
29135
|
X.hasOwnProperty("field") && !X.hasOwnProperty("treeNode") && (fieldColumnMap.value[X.field] = X);
|
|
29079
|
-
}), !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, evalEvent(formConfig.value.params.formEvents.regionInit), nextTick(() => {
|
|
29136
|
+
}), !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), evalEvent(formConfig.value.params.formEvents.regionInit), nextTick(() => {
|
|
29080
29137
|
formDataClone.value = XEUtils$1.clone(toRaw(formData.value), !0);
|
|
29081
29138
|
}), formLoading.value = !1);
|
|
29082
29139
|
}), onUnmounted(() => {
|
|
@@ -29095,7 +29152,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29095
29152
|
let G = X.toLowerCase();
|
|
29096
29153
|
H.hasOwnProperty(G) && (H[G] = formConfig.value.params.queryParams[X]);
|
|
29097
29154
|
}), axios.post("/window/data/" + formConfig.value.params.datasourceCode, H).then((X) => {
|
|
29098
|
-
if (X.data.result && X.data.data) {
|
|
29155
|
+
if (X && X.data && X.data.result && X.data.data) {
|
|
29099
29156
|
X.data.data[0] && (formData.value = {
|
|
29100
29157
|
...formData.value,
|
|
29101
29158
|
...X.data.data[0]
|
|
@@ -29112,9 +29169,9 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29112
29169
|
}, rowClickEmitFun = (Q, H) => {
|
|
29113
29170
|
formConfig.value.params.parentRegionId === H && (Q ? preTag.value === Q.preTag && (formConfig.value.params.parentRowId = Q.rowId, formConfig.value.params.parentRowIdValue = Q.rowIdValue) : (formConfig.value.params.parentRowId = null, formConfig.value.params.parentRowIdValue = null), searchData());
|
|
29114
29171
|
}, displayLogicEvent = (Q) => displayLogic(Q.item.itemRender.props.displayLogic, { ...Q.data, ...assembleParentData() }), form = ref(), submitData = (Q) => {
|
|
29115
|
-
form.value.validate((H) => {
|
|
29172
|
+
form.value.validate(async (H) => {
|
|
29116
29173
|
if (typeof H > "u") {
|
|
29117
|
-
let X = evalEvent(formConfig.value.params.formEvents.beginSubmit, formData.value);
|
|
29174
|
+
let X = await evalEvent(formConfig.value.params.formEvents.beginSubmit, formData.value);
|
|
29118
29175
|
if (typeof X < "u" && X === !1) {
|
|
29119
29176
|
emits("saveLoadingChange", !1);
|
|
29120
29177
|
return;
|
|
@@ -29191,60 +29248,77 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29191
29248
|
}
|
|
29192
29249
|
});
|
|
29193
29250
|
}
|
|
29194
|
-
Object.keys(formSelectMap.value)
|
|
29251
|
+
for (const G of Object.keys(formSelectMap.value)) {
|
|
29195
29252
|
let Z = formSelectMap.value[G];
|
|
29196
|
-
if (Z.
|
|
29197
|
-
|
|
29198
|
-
|
|
29199
|
-
|
|
29200
|
-
|
|
29201
|
-
|
|
29202
|
-
|
|
29203
|
-
|
|
29204
|
-
|
|
29205
|
-
|
|
29206
|
-
|
|
29207
|
-
|
|
29208
|
-
|
|
29209
|
-
|
|
29210
|
-
|
|
29211
|
-
|
|
29212
|
-
|
|
29213
|
-
|
|
29214
|
-
|
|
29215
|
-
|
|
29216
|
-
let
|
|
29217
|
-
Z.
|
|
29218
|
-
te[ne.VALUE] = ne;
|
|
29219
|
-
}), axios.post("/window/selector", $qs.stringify({
|
|
29220
|
-
...Q,
|
|
29221
|
-
_field_id: Z.id,
|
|
29222
|
-
_select_id: Z.selectorId
|
|
29223
|
-
})).then((ne) => {
|
|
29224
|
-
if (ne.data.result && ne.data.data) {
|
|
29225
|
-
let re = Object.assign([], Z.itemRender.options);
|
|
29226
|
-
ne.data.data.map((oe) => {
|
|
29227
|
-
te.hasOwnProperty(oe.VALUE) || (re.push(Object.assign({
|
|
29228
|
-
value: oe.VALUE,
|
|
29229
|
-
label: oe.NAME
|
|
29230
|
-
}, oe)), te[oe.VALUE] = oe);
|
|
29231
|
-
}), Z.itemRender.options = re, formConfig.value.openType === "new" && Z.visible && !Q[Z.field] && re.length > 0 && (Q[Z.field] = re[0].VALUE), Z.itemRender.props.loading = !1;
|
|
29232
|
-
}
|
|
29233
|
-
});
|
|
29253
|
+
if (Z.displayForm) {
|
|
29254
|
+
if (Z.dataType === "TREE")
|
|
29255
|
+
axios.post("/window/selector", $qs.stringify({
|
|
29256
|
+
...Q,
|
|
29257
|
+
_field_id: Z.id,
|
|
29258
|
+
_select_id: Z.selectorId
|
|
29259
|
+
})).then((K) => {
|
|
29260
|
+
K.data.result && K.data.data && (Z.itemRender.props.treeData = K.data.data);
|
|
29261
|
+
});
|
|
29262
|
+
else if (Z.remoteSearch) {
|
|
29263
|
+
Z.itemRender.options = [], componentMapping.isElementPlus() ? Z.itemRender.props.remoteMethod = async (ee) => {
|
|
29264
|
+
ee && (Z.itemRender.props.loading = !0, Z.itemRender.options = await remoteMethod(ee, Z.id, Z.selectorId), Z.itemRender.props.loading = !1);
|
|
29265
|
+
} : componentMapping.isAntd() && (Z.itemRender.events.change = async (ee) => {
|
|
29266
|
+
ee && (Z.itemRender.options = await remoteMethod(ee, Z.id, Z.selectorId));
|
|
29267
|
+
}, Z.itemRender.events.search = async (ee) => {
|
|
29268
|
+
ee && (Z.itemRender.options = await remoteMethod(ee, Z.id, Z.selectorId));
|
|
29269
|
+
});
|
|
29270
|
+
let K = Q["_" + Z.field + "_NAME"];
|
|
29271
|
+
if (Q[Z.field] && K) {
|
|
29272
|
+
Z.itemRender.options = await remoteMethod(K, Z.id, Z.selectorId);
|
|
29273
|
+
let ee = Z.itemRender.options;
|
|
29274
|
+
formConfig.value.openType === "new" && Z.visible && !Q[Z.field] && ee.length > 0 && (Q[Z.field] = ee[0].VALUE);
|
|
29234
29275
|
}
|
|
29235
|
-
})
|
|
29236
|
-
|
|
29237
|
-
|
|
29238
|
-
|
|
29239
|
-
|
|
29240
|
-
|
|
29241
|
-
|
|
29242
|
-
|
|
29243
|
-
|
|
29244
|
-
|
|
29245
|
-
|
|
29246
|
-
|
|
29247
|
-
|
|
29276
|
+
} else if (typeof Z.selectorId < "u")
|
|
29277
|
+
Z.itemRender.props.loading = !0, axios.post("/window/selector", $qs.stringify({
|
|
29278
|
+
...Q,
|
|
29279
|
+
_field_id: Z.id,
|
|
29280
|
+
_select_id: Z.selectorId
|
|
29281
|
+
})).then((K) => {
|
|
29282
|
+
if (K.data.result && K.data.data) {
|
|
29283
|
+
if (Z.itemRender.options = K.data.data.map((ee) => Object.assign({
|
|
29284
|
+
value: ee.VALUE,
|
|
29285
|
+
label: ee.NAME
|
|
29286
|
+
}, ee)), formConfig.value.openType === "new" && Z.visible && !Q[Z.field] && K.data.data.length > 0) {
|
|
29287
|
+
Q[Z.field] = K.data.data[0].VALUE;
|
|
29288
|
+
let ee = {
|
|
29289
|
+
data: Q,
|
|
29290
|
+
item: Z,
|
|
29291
|
+
property: Z.field
|
|
29292
|
+
};
|
|
29293
|
+
onFieldChange(ee);
|
|
29294
|
+
}
|
|
29295
|
+
Z.itemRender.props.loading = !1;
|
|
29296
|
+
}
|
|
29297
|
+
});
|
|
29298
|
+
else if (formConfig.value.openType === "new" && Z.visible && Z.editRender.options && Z.editRender.options.length > 0 && !Q[Z.field]) {
|
|
29299
|
+
Q[Z.field] = Z.editRender.options[0].VALUE;
|
|
29300
|
+
let K = {
|
|
29301
|
+
data: Q,
|
|
29302
|
+
item: Z,
|
|
29303
|
+
property: Z.field
|
|
29304
|
+
};
|
|
29305
|
+
onFieldChange(K);
|
|
29306
|
+
}
|
|
29307
|
+
}
|
|
29308
|
+
}
|
|
29309
|
+
readonlyLogic();
|
|
29310
|
+
}, remoteMethod = async (Q, H, X) => {
|
|
29311
|
+
let G = [], Z = await axios.post("/window/selector", $qs.stringify({
|
|
29312
|
+
$_f_value: Q,
|
|
29313
|
+
_region_id: formConfig.value.params._region_id,
|
|
29314
|
+
_field_id: H,
|
|
29315
|
+
_select_id: X
|
|
29316
|
+
}));
|
|
29317
|
+
if (Z.data.result && Z.data.data)
|
|
29318
|
+
return G = Z.data.data.map((K) => Object.assign({
|
|
29319
|
+
value: K.VALUE,
|
|
29320
|
+
label: K.NAME
|
|
29321
|
+
}, K)), G;
|
|
29248
29322
|
}, readonlyLogic = () => {
|
|
29249
29323
|
if (Object.keys(readOnlyColumnMap.value).length > 0) {
|
|
29250
29324
|
let Q = Object.keys(readOnlyColumnMap.value);
|
|
@@ -29285,6 +29359,19 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29285
29359
|
label: te.NAME
|
|
29286
29360
|
}, te)), formData.value[formSelectMap.value[K._field_id].field] = null));
|
|
29287
29361
|
});
|
|
29362
|
+
}), subQueryFields.value.forEach((Z) => {
|
|
29363
|
+
getSubQueryData(Q.data._region_id, Z.id, Z.field);
|
|
29364
|
+
});
|
|
29365
|
+
}, getSubQueryData = (Q, H, X) => {
|
|
29366
|
+
let G = {
|
|
29367
|
+
...formData.value,
|
|
29368
|
+
_region_id: Q,
|
|
29369
|
+
_field_id: H
|
|
29370
|
+
};
|
|
29371
|
+
return Object.keys(G).forEach((Z) => {
|
|
29372
|
+
typeof G[Z] > "u" && (G[Z] = "");
|
|
29373
|
+
}), delete G._button_id, delete G._select_id, axios.post("window/getSubQueryValue", G).then((Z) => {
|
|
29374
|
+
Z.data.result && (formData.value[X] = Z.data.value);
|
|
29288
29375
|
});
|
|
29289
29376
|
}, remoteSearch = (Q, H) => {
|
|
29290
29377
|
H && (clearTimeout(queryTimeout.value), queryTimeout.value = setTimeout(function() {
|
|
@@ -29342,6 +29429,8 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29342
29429
|
break;
|
|
29343
29430
|
}
|
|
29344
29431
|
return X;
|
|
29432
|
+
}, throwFunction = (Q) => {
|
|
29433
|
+
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X);
|
|
29345
29434
|
};
|
|
29346
29435
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
|
|
29347
29436
|
const X = resolveComponent("vxe-form-item"), G = resolveComponent("vxe-form");
|
|
@@ -29354,7 +29443,8 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29354
29443
|
rules: editRules.value,
|
|
29355
29444
|
loading: unref(formLoading),
|
|
29356
29445
|
"title-align": "right",
|
|
29357
|
-
"title-width": "120"
|
|
29446
|
+
"title-width": "120",
|
|
29447
|
+
class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
|
|
29358
29448
|
}, {
|
|
29359
29449
|
default: withCtx(() => [
|
|
29360
29450
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (Z) => (openBlock(), createElementBlock(Fragment, {
|
|
@@ -29442,7 +29532,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
29442
29532
|
})) : createCommentVNode("", !0)
|
|
29443
29533
|
]),
|
|
29444
29534
|
_: 1
|
|
29445
|
-
}, 8, ["data", "rules", "loading"])
|
|
29535
|
+
}, 8, ["data", "rules", "loading", "class"])
|
|
29446
29536
|
]);
|
|
29447
29537
|
};
|
|
29448
29538
|
}
|
|
@@ -29787,7 +29877,7 @@ function P$1(Q, H, X, G, Z, K) {
|
|
|
29787
29877
|
renderSlot(Q.$slots, "default")
|
|
29788
29878
|
], 4);
|
|
29789
29879
|
}
|
|
29790
|
-
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "",
|
|
29880
|
+
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_1adcf389_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-1adcf389"), Q = Q(), popScopeId(), Q), _hoisted_1$kU = { class: "slw-window-layout-container" }, _sfc_main$4 = {
|
|
29791
29881
|
__name: "window-layout",
|
|
29792
29882
|
props: {
|
|
29793
29883
|
layoutData: {
|
|
@@ -29802,9 +29892,14 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
29802
29892
|
const te = useDebounceFn((se) => {
|
|
29803
29893
|
ne(se);
|
|
29804
29894
|
}, 100), ne = (se) => {
|
|
29805
|
-
if (se
|
|
29806
|
-
|
|
29807
|
-
|
|
29895
|
+
if (se) {
|
|
29896
|
+
if (K.value.splitRate = se[0].size / 100, K.value.mode === "vertical" && K.value.child && K.value.child.length === 2 && K.value.child[0].gridData) {
|
|
29897
|
+
let ce = K.value.child[0].gridData.params.curHeight - K.value.height * K.value.splitRate;
|
|
29898
|
+
K.value.child[0].gridData.params.curHeight = K.value.height * K.value.splitRate, K.value.child[0].height = K.value.child[0].gridData.params.curHeight, Number(K.value.child[0].gridData.params.curHeight) !== Number(ee.value) && re(K.value.child[1], ce), ee.value = Number(K.value.child[0].gridData.params.curHeight);
|
|
29899
|
+
}
|
|
29900
|
+
K.value.mode === "horizontal" && K.value.child.forEach((ce, ue) => {
|
|
29901
|
+
ce.gridData.params.singleRow = !1, ce.gridData.type == "FORM" && se[ue].size <= se[ue].min + 5 && (ce.gridData.params.singleRow = !0);
|
|
29902
|
+
});
|
|
29808
29903
|
}
|
|
29809
29904
|
}, re = (se, ce) => {
|
|
29810
29905
|
if (se.gridData)
|
|
@@ -29829,13 +29924,14 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
29829
29924
|
class: "default-theme",
|
|
29830
29925
|
horizontal: unref(K).mode !== "horizontal",
|
|
29831
29926
|
"push-other-panes": !1,
|
|
29832
|
-
style:
|
|
29927
|
+
style: { backgroundColor: "#fff" },
|
|
29833
29928
|
onResize: unref(te)
|
|
29834
29929
|
}, {
|
|
29835
29930
|
default: withCtx(() => [
|
|
29836
29931
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(K).child, (he, de) => (openBlock(), createBlock(unref(g$1), {
|
|
29837
29932
|
key: he.id,
|
|
29838
|
-
size: he.splitRate * 100
|
|
29933
|
+
size: he.splitRate * 100,
|
|
29934
|
+
"min-size": he.gridData && he.gridData.type === "FORM" ? 20 : 0
|
|
29839
29935
|
}, {
|
|
29840
29936
|
default: withCtx(() => [
|
|
29841
29937
|
he.mode === "tab" ? (openBlock(), createBlock(resolveDynamicComponent(unref(Z).getComponentName("$tabs")), {
|
|
@@ -29867,10 +29963,10 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
29867
29963
|
}, null, 8, ["layout-data", "onUpdate:layoutData"])) : createCommentVNode("", !0)
|
|
29868
29964
|
]),
|
|
29869
29965
|
_: 2
|
|
29870
|
-
}, 1032, ["size"]))), 128))
|
|
29966
|
+
}, 1032, ["size", "min-size"]))), 128))
|
|
29871
29967
|
]),
|
|
29872
29968
|
_: 1
|
|
29873
|
-
}, 8, ["horizontal", "
|
|
29969
|
+
}, 8, ["horizontal", "onResize"])) : createCommentVNode("", !0),
|
|
29874
29970
|
unref(K).child && unref(K).child.length > 0 && unref(K).mode === "tab" ? (openBlock(), createBlock(resolveDynamicComponent(unref(Z).getComponentName("$tabs")), {
|
|
29875
29971
|
key: unref(K).id
|
|
29876
29972
|
}, {
|
|
@@ -29894,7 +29990,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
29894
29990
|
_: 1
|
|
29895
29991
|
})) : createCommentVNode("", !0),
|
|
29896
29992
|
unref(K).gridData && (!unref(K).child || unref(K).child.length === 0) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
29897
|
-
unref(K).gridData.type === "GRID" || unref(K).gridData.type === "EDIT_GRID" || unref(K).gridData.type === "TREE" ? (openBlock(), createBlock(unref(WindowGrid), {
|
|
29993
|
+
unref(K).gridData.type === "GRID" || unref(K).gridData.type === "EDIT_GRID" || unref(K).gridData.type === "TREE" || unref(K).gridData.type === "TREE_STRUCTURE" ? (openBlock(), createBlock(unref(WindowGrid), {
|
|
29898
29994
|
key: 0,
|
|
29899
29995
|
ref_key: "xGrid",
|
|
29900
29996
|
ref: oe,
|
|
@@ -29917,7 +30013,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
29917
30013
|
]);
|
|
29918
30014
|
};
|
|
29919
30015
|
}
|
|
29920
|
-
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
30016
|
+
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1adcf389"]]);
|
|
29921
30017
|
WindowLayout.name = "slw-window-layout";
|
|
29922
30018
|
WindowLayout.install = (Q) => {
|
|
29923
30019
|
Q.component(WindowLayout.name, WindowLayout);
|
|
@@ -29934,35 +30030,40 @@ const _hoisted_1$kT = ["src"], _sfc_main$3 = {
|
|
|
29934
30030
|
require: !0
|
|
29935
30031
|
}
|
|
29936
30032
|
},
|
|
29937
|
-
|
|
29938
|
-
|
|
29939
|
-
|
|
29940
|
-
|
|
29941
|
-
|
|
30033
|
+
emits: ["close"],
|
|
30034
|
+
setup(Q, { emit: H }) {
|
|
30035
|
+
const X = Q, G = inject("$componentMapping"), Z = inject("$base64Encode"), K = inject("$base64Decode");
|
|
30036
|
+
let ee = ref(!1), te = shallowRef(), ne = ref(!1), re = ref(1e3), oe = ref({}), ae = ref(500), le = ref(400), se = ref();
|
|
30037
|
+
const ce = inject("$components"), ue = inject("$componentsPath"), he = () => {
|
|
30038
|
+
ee.value = !1;
|
|
29942
30039
|
};
|
|
29943
|
-
|
|
29944
|
-
|
|
29945
|
-
}, { deep: !0 })
|
|
30040
|
+
watch(() => X.actionData, async (pe) => {
|
|
30041
|
+
pe.type === "show" ? (ee.value = !0, pe.params && typeof pe.params.width < "u" && (ae.value = pe.params.width), pe.params && typeof pe.params.height < "u" && (le.value = pe.params.height), pe.params && typeof pe.params.fullscreen < "u" && (ne.value = pe.params.fullscreen), pe.params && typeof pe.params.zIndex < "u" && (re.value = pe.params.zIndex), oe.value = XEUtils$1.clone(toRaw(pe.params), !0), pe.showComponent && (te.value = (await ce[`${ue}/${pe.showComponent}`]()).default)) : ee.value = !1;
|
|
30042
|
+
}, { deep: !0 });
|
|
30043
|
+
function de() {
|
|
30044
|
+
H("close");
|
|
30045
|
+
}
|
|
30046
|
+
return (pe, fe) => (openBlock(), createBlock(resolveDynamicComponent(unref(G).getComponentName("$modal")), {
|
|
29946
30047
|
ref_key: "selfModal",
|
|
29947
|
-
ref:
|
|
29948
|
-
width: unref(
|
|
29949
|
-
height: unref(
|
|
29950
|
-
modelValue: unref(
|
|
29951
|
-
"onUpdate:modelValue":
|
|
29952
|
-
visible: unref(
|
|
29953
|
-
"onUpdate:visible":
|
|
29954
|
-
fullscreen: unref(
|
|
29955
|
-
"z-index": unref(
|
|
30048
|
+
ref: se,
|
|
30049
|
+
width: unref(ae),
|
|
30050
|
+
height: unref(le),
|
|
30051
|
+
modelValue: unref(ee),
|
|
30052
|
+
"onUpdate:modelValue": fe[0] || (fe[0] = (me) => isRef(ee) ? ee.value = me : ee = me),
|
|
30053
|
+
visible: unref(ee),
|
|
30054
|
+
"onUpdate:visible": fe[1] || (fe[1] = (me) => isRef(ee) ? ee.value = me : ee = me),
|
|
30055
|
+
fullscreen: unref(ne),
|
|
30056
|
+
"z-index": unref(re),
|
|
29956
30057
|
draggable: "",
|
|
29957
30058
|
footer: null,
|
|
29958
30059
|
"append-to-body": "",
|
|
29959
30060
|
transfer: "",
|
|
29960
30061
|
resize: "",
|
|
29961
|
-
"
|
|
30062
|
+
"close-on-press-escape": "",
|
|
29962
30063
|
"destroy-on-close": "",
|
|
29963
|
-
|
|
29964
|
-
|
|
29965
|
-
|
|
30064
|
+
onShow: fe[2] || (fe[2] = (me) => unref(ne) ? unref(se).maximize() : null),
|
|
30065
|
+
title: Q.title,
|
|
30066
|
+
onClosed: de
|
|
29966
30067
|
}, {
|
|
29967
30068
|
default: withCtx(() => [
|
|
29968
30069
|
Q.actionData.showComponent && Q.actionData.showComponent.indexOf("http") !== -1 ? (openBlock(), createElementBlock("iframe", {
|
|
@@ -29973,10 +30074,10 @@ const _hoisted_1$kT = ["src"], _sfc_main$3 = {
|
|
|
29973
30074
|
height: "100%",
|
|
29974
30075
|
scrolling: "auto",
|
|
29975
30076
|
style: { "background-color": "#fff" }
|
|
29976
|
-
}, null, 8, _hoisted_1$kT)) : (openBlock(), createBlock(resolveDynamicComponent(unref(
|
|
30077
|
+
}, null, 8, _hoisted_1$kT)) : (openBlock(), createBlock(resolveDynamicComponent(unref(te)), {
|
|
29977
30078
|
key: 1,
|
|
29978
|
-
componentData: unref(
|
|
29979
|
-
onClose:
|
|
30079
|
+
componentData: unref(oe),
|
|
30080
|
+
onClose: he
|
|
29980
30081
|
}, null, 40, ["componentData"]))
|
|
29981
30082
|
]),
|
|
29982
30083
|
_: 1
|
|
@@ -30049,7 +30150,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
30049
30150
|
_sfc_main$2.install = (Q) => {
|
|
30050
30151
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
30051
30152
|
};
|
|
30052
|
-
const
|
|
30153
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_d3b476fb_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-d3b476fb"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _sfc_main$1 = {
|
|
30053
30154
|
__name: "window-index",
|
|
30054
30155
|
props: {
|
|
30055
30156
|
windowId: {
|
|
@@ -30058,6 +30159,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30058
30159
|
},
|
|
30059
30160
|
queryParams: {
|
|
30060
30161
|
type: Object
|
|
30162
|
+
},
|
|
30163
|
+
height: {
|
|
30164
|
+
type: Object
|
|
30061
30165
|
}
|
|
30062
30166
|
},
|
|
30063
30167
|
emits: [
|
|
@@ -30088,7 +30192,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30088
30192
|
gridClickEvents.value.forEach((X) => X(Q, H));
|
|
30089
30193
|
};
|
|
30090
30194
|
provide("$callGridClickEvents", callGridClickEvents);
|
|
30091
|
-
const $Modal = inject("$modal"), $modal = $Modal, $Message = inject("$message"), $message = $Message, $qs = inject("$qs"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $crypto = inject("$crypto"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), getOffsetHeight = () => window.document.body.offsetHeight, evalEvent = (curEvent, ...eventParams) => {
|
|
30195
|
+
const $Modal = inject("$modal"), $modal = $Modal, $Message = inject("$message"), $message = $Message, $qs = inject("$qs"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $crypto = inject("$crypto"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), getOffsetHeight = () => window.document.body.offsetHeight * 0.6 + "px", evalEvent = (curEvent, ...eventParams) => {
|
|
30092
30196
|
if (curEvent) {
|
|
30093
30197
|
if (typeof curEvent == "function")
|
|
30094
30198
|
return curEvent(...eventParams);
|
|
@@ -30177,32 +30281,32 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30177
30281
|
}, joinRoot = async (Q, H, X, G, Z) => {
|
|
30178
30282
|
let K = [];
|
|
30179
30283
|
if (Q = parentLayoutIdLayoutMap.value[H], Q) {
|
|
30180
|
-
let ee = {};
|
|
30181
|
-
for (let
|
|
30182
|
-
Z === "TAB" ? ee[
|
|
30183
|
-
for (let
|
|
30184
|
-
|
|
30185
|
-
let
|
|
30186
|
-
getParentRegion(Q[
|
|
30187
|
-
Q[
|
|
30188
|
-
|
|
30189
|
-
),
|
|
30284
|
+
let ee = {}, te = 1;
|
|
30285
|
+
for (let ne = 0; ne < Q.length; ne++)
|
|
30286
|
+
Z === "TAB" ? ee[ne] = 1 : X === "V" ? Q[ne].height && ne != Q.length - 1 ? (ee[ne] = (Q[ne].height / G).toFixed(2), te = te - ee[ne]) : ne == Q.length - 1 ? ee[ne] = te : (ee[ne] = te / (Q.length - Object.keys(ee).length), te = te - ee[ne]) : ee[ne] = 1 / Q.length;
|
|
30287
|
+
for (let ne = 0; ne < Q.length; ne++) {
|
|
30288
|
+
X === "H" && ne === 0 && Q[ne].width && Q[ne].width / 12 < 1 && (ee = computeSplitRate(ee, ne, Q[ne].width / 12));
|
|
30289
|
+
let re = ee[ne], ae = G - 60, le = parentLayoutIdLayoutMap.value[H].length, se = X === "H" ? G : X === "V" ? Q.length === 1 || le === 1 ? G : Q[ne].height ? Q[ne].height : G * re : ae, ce = await joinFieldInfo(
|
|
30290
|
+
getParentRegion(Q[ne].id),
|
|
30291
|
+
Q[ne].id,
|
|
30292
|
+
se
|
|
30293
|
+
), ue = await joinRoot(
|
|
30190
30294
|
Q,
|
|
30191
|
-
Q[
|
|
30192
|
-
Q[
|
|
30193
|
-
|
|
30194
|
-
Q[
|
|
30195
|
-
|
|
30295
|
+
Q[ne].id,
|
|
30296
|
+
Q[ne].position,
|
|
30297
|
+
se,
|
|
30298
|
+
Q[ne].position,
|
|
30299
|
+
re
|
|
30196
30300
|
);
|
|
30197
30301
|
K.push({
|
|
30198
|
-
id: Q[
|
|
30199
|
-
name: Q[
|
|
30200
|
-
splitRate:
|
|
30201
|
-
layout: Q[
|
|
30202
|
-
mode: Q[
|
|
30203
|
-
child:
|
|
30204
|
-
gridData:
|
|
30205
|
-
height:
|
|
30302
|
+
id: Q[ne].id,
|
|
30303
|
+
name: Q[ne].name,
|
|
30304
|
+
splitRate: re,
|
|
30305
|
+
layout: Q[ne].position,
|
|
30306
|
+
mode: Q[ne].position === "H" ? "horizontal" : Q[ne].position === "V" ? "vertical" : "tab",
|
|
30307
|
+
child: ue,
|
|
30308
|
+
gridData: ce,
|
|
30309
|
+
height: se
|
|
30206
30310
|
});
|
|
30207
30311
|
}
|
|
30208
30312
|
}
|
|
@@ -30353,10 +30457,11 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30353
30457
|
let ae = `${$componentsPath}/${Z.linkUrl}`, le = await $components[ae]();
|
|
30354
30458
|
G.params.linkComponentView = le.default, console.info(G.params.linkComponentView, "gridData.params.linkComponentView");
|
|
30355
30459
|
}
|
|
30356
|
-
queryParams.value && (G.params.queryParams = Object.assign({}, queryParams.value), G.params.parentData = Object.assign({}, queryParams.value)
|
|
30460
|
+
queryParams.value && (G.params.queryParams = Object.assign({}, queryParams.value), G.params.parentData = Object.assign({}, queryParams.value)), [void 0, null].includes(Z.pageSize) || (Z.pageSize === 0 && (G.pagerConfig.enabled = !1), G.pagerConfig.pageSize = Z.pageSize), G.type === "EDIT_GRID" && (G.editConfig.trigger = "click", G.editConfig.mode = "cell", G.editConfig.enabled = !0, G.toolbarConfig.refresh = !1);
|
|
30357
30461
|
let K = Z.querys;
|
|
30358
30462
|
if (K) {
|
|
30359
30463
|
let ae = !0, le = localStorage.getItem(Z.id + preTag.value);
|
|
30464
|
+
le = JSON.parse(le);
|
|
30360
30465
|
for (let se = 0; se < K.length; se++) {
|
|
30361
30466
|
let ce = K[se].defaultValue, ue = le ? le[K[se].columnName] : null;
|
|
30362
30467
|
ce = evalDefaultValue(
|
|
@@ -30373,7 +30478,8 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30373
30478
|
placeholder: "请输入" + K[se].name,
|
|
30374
30479
|
[componentMapping.getClearablePropName()]: !0,
|
|
30375
30480
|
size: "default",
|
|
30376
|
-
[componentMapping.getSelectSearchPropName()]: !0
|
|
30481
|
+
[componentMapping.getSelectSearchPropName()]: !0,
|
|
30482
|
+
newLine: K[se].newLine
|
|
30377
30483
|
},
|
|
30378
30484
|
defaultValue: ue || ce,
|
|
30379
30485
|
events: {
|
|
@@ -30400,7 +30506,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30400
30506
|
));
|
|
30401
30507
|
break;
|
|
30402
30508
|
case "TABLE":
|
|
30403
|
-
he.itemRender.name = componentMapping.getComponentName("$select"), he.itemRender.attrs.style = "width: 100%;min-width: 120px;max-width:100%", he.itemRender.props[componentMapping.getSelectSearchPropName()] = !0, he.querys = K[se]
|
|
30509
|
+
he.itemRender.name = componentMapping.getComponentName("$select"), he.itemRender.attrs.style = "width: 100%;min-width: 120px;max-width:100%", he.itemRender.props[componentMapping.getSelectSearchPropName()] = !0, he.querys = K[se], K[se].remoteSearch && (he.remoteSearch = K[se].remoteSearch, he.itemRender.props.loading = !1, he.itemRender.props[componentMapping.getSelectSearchPropName()] = !0, he.itemRender.props = {
|
|
30510
|
+
...he.itemRender.props,
|
|
30511
|
+
...componentMapping.getSelectRemoteSearchPropName()
|
|
30512
|
+
});
|
|
30404
30513
|
break;
|
|
30405
30514
|
case "BOOL":
|
|
30406
30515
|
he.itemRender.name = componentMapping.getComponentName("$switch");
|
|
@@ -30508,6 +30617,41 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30508
30617
|
let se = ee[ae].type.toLowerCase();
|
|
30509
30618
|
se.indexOf("delete") > -1 ? (le.iconComponent = "TrashOutline", le.viewType = "danger", ee[ae].css, G.params.delete_button_id = ee[ae].id, G.params.delRequestPath = ee[ae].requestPath, G.params.deleteBtn = le) : se.indexOf("new") > -1 ? (le.iconComponent = "Add", le.viewType = "primary", ee[ae].css, ee[ae].showInGrid = !1, G.params.new_button_id = ee[ae].id, G.params.newRequestPath = ee[ae].requestPath, G.params.newWidth = ee[ae].openWidth, G.params.newHeight = ee[ae].openHeight) : se.indexOf("edit") > -1 ? (le.iconComponent = "Pencil", le.viewType = "success", ee[ae].css, G.params.edit_button_id = ee[ae].id, G.params.editRequestPath = ee[ae].requestPath, G.params.isEdit = !0, G.params.editWidth = ee[ae].openWidth, G.params.editHeight = ee[ae].openHeight) : se === "export" ? le.iconComponent = "CloudDownload" : se === "import" ? (le.code = "import_", le.iconComponent = "CloudUpload", le.viewType = "info") : se === "pic_upload" ? (le.iconComponent = "Image", le.viewType = "info") : le.viewType = "primary", G.toolbarConfig.buttons.push(le);
|
|
30510
30619
|
}
|
|
30620
|
+
if (Z.type === "TREE_STRUCTURE") {
|
|
30621
|
+
let ae = [
|
|
30622
|
+
{
|
|
30623
|
+
code: "open",
|
|
30624
|
+
css: "",
|
|
30625
|
+
iconComponent: "",
|
|
30626
|
+
btnLoad: {},
|
|
30627
|
+
btnShowInGrid: {},
|
|
30628
|
+
btnShow: {},
|
|
30629
|
+
icon: null,
|
|
30630
|
+
loading: !1,
|
|
30631
|
+
name: "展开所有",
|
|
30632
|
+
showInGrid: !1,
|
|
30633
|
+
type: "OPEN",
|
|
30634
|
+
viewType: "primary",
|
|
30635
|
+
visible: !0
|
|
30636
|
+
},
|
|
30637
|
+
{
|
|
30638
|
+
code: "close",
|
|
30639
|
+
css: "",
|
|
30640
|
+
iconComponent: "",
|
|
30641
|
+
btnLoad: {},
|
|
30642
|
+
btnShowInGrid: {},
|
|
30643
|
+
btnShow: {},
|
|
30644
|
+
icon: null,
|
|
30645
|
+
loading: !1,
|
|
30646
|
+
name: "关闭所有",
|
|
30647
|
+
showInGrid: !1,
|
|
30648
|
+
type: "CLOSE",
|
|
30649
|
+
viewType: "primary",
|
|
30650
|
+
visible: !0
|
|
30651
|
+
}
|
|
30652
|
+
];
|
|
30653
|
+
G.toolbarConfig.buttons = G.toolbarConfig.buttons.concat(ae);
|
|
30654
|
+
}
|
|
30511
30655
|
let oe = Z.fields;
|
|
30512
30656
|
if (oe) {
|
|
30513
30657
|
let ae = [];
|
|
@@ -30516,14 +30660,14 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30516
30660
|
type: "seq",
|
|
30517
30661
|
width: 45,
|
|
30518
30662
|
colType: "showInGrid"
|
|
30519
|
-
}), Z.type === "TREE") {
|
|
30663
|
+
}), Z.type === "TREE" || Z.type === "TREE_STRUCTURE") {
|
|
30520
30664
|
let se = {
|
|
30521
30665
|
fixed: "left",
|
|
30522
30666
|
width: 180,
|
|
30523
30667
|
colType: "showInGrid",
|
|
30524
30668
|
treeNode: !0
|
|
30525
30669
|
};
|
|
30526
|
-
ne && (se.type = "checkbox"), ae.push(se);
|
|
30670
|
+
ne && (se.type = "checkbox"), Z.type === "TREE_STRUCTURE" && (se.type = "checkbox", delete se.width), ae.push(se);
|
|
30527
30671
|
} else
|
|
30528
30672
|
ne && ae.push({
|
|
30529
30673
|
fixed: "left",
|
|
@@ -30566,7 +30710,8 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30566
30710
|
newLine: oe[se].newLine,
|
|
30567
30711
|
_field_id: oe[se].id,
|
|
30568
30712
|
_select_id: oe[se].selectorId,
|
|
30569
|
-
name: ce
|
|
30713
|
+
name: ce,
|
|
30714
|
+
notNull: oe[se].notNull
|
|
30570
30715
|
},
|
|
30571
30716
|
attrs: {}
|
|
30572
30717
|
};
|
|
@@ -30612,7 +30757,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30612
30757
|
};
|
|
30613
30758
|
break;
|
|
30614
30759
|
case "TABLE":
|
|
30615
|
-
fe.style = "width: 100%;min-width: 80px;", de.props.disabled = oe[se].readOnly, fe.selectorId = oe[se].selectorId, fe.formatter = ({ row: ve, column: _e }) => ve["_" + _e.property + "_NAME"], de.name = componentMapping.getComponentName("$select"), de.props[componentMapping.getSelectSearchPropName()] = !0, oe[se].remoteSearch && (
|
|
30760
|
+
fe.style = "width: 100%;min-width: 80px;", de.props.disabled = oe[se].readOnly, fe.selectorId = oe[se].selectorId, fe.formatter = ({ row: ve, column: _e }) => ve["_" + _e.property + "_NAME"], de.name = componentMapping.getComponentName("$select"), de.props[componentMapping.getSelectSearchPropName()] = !0, oe[se].remoteSearch && (de.props.loading = !1, de.props[componentMapping.getSelectSearchPropName()] = !0, de.props = {
|
|
30761
|
+
...de.props,
|
|
30762
|
+
...componentMapping.getSelectRemoteSearchPropName()
|
|
30616
30763
|
}), de.props.dropdownStyle = {
|
|
30617
30764
|
"z-index": 5e3
|
|
30618
30765
|
};
|
|
@@ -30653,7 +30800,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30653
30800
|
de.name = componentMapping.getComponentName("$time"), de.props = {
|
|
30654
30801
|
...de.props,
|
|
30655
30802
|
...componentMapping.getTimePickerProps()
|
|
30656
|
-
};
|
|
30803
|
+
}, fe.formatter = ({ cellValue: ve, row: _e, column: ge }) => ve;
|
|
30657
30804
|
break;
|
|
30658
30805
|
case "TEXT":
|
|
30659
30806
|
de.name = componentMapping.getComponentName("$textarea"), de.props.type = "textarea";
|
|
@@ -30678,16 +30825,21 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30678
30825
|
message: ue + "不能为空!"
|
|
30679
30826
|
}));
|
|
30680
30827
|
}
|
|
30681
|
-
Z.type === "TREE"
|
|
30682
|
-
|
|
30683
|
-
|
|
30684
|
-
|
|
30685
|
-
|
|
30686
|
-
|
|
30687
|
-
|
|
30688
|
-
|
|
30689
|
-
|
|
30690
|
-
|
|
30828
|
+
if (Z.type === "TREE" || Z.type === "TREE_STRUCTURE") {
|
|
30829
|
+
G.stripe = !1, G.treeConfig = {
|
|
30830
|
+
children: "_CHILDS",
|
|
30831
|
+
accordion: !0,
|
|
30832
|
+
line: !0,
|
|
30833
|
+
iconOpen: "vxe-icon--caret-right rotate45",
|
|
30834
|
+
iconClose: "vxe-icon--caret-right"
|
|
30835
|
+
};
|
|
30836
|
+
let se = oe.filter((ce) => ce.displayGrid);
|
|
30837
|
+
G.checkboxConfig = {
|
|
30838
|
+
labelField: se[0].code.toUpperCase(),
|
|
30839
|
+
expandAll: !0
|
|
30840
|
+
}, ae[0].title = se[0].name, ae[0].hasOwnProperty("type") || (ae[0].field = se[0].code.toUpperCase()), Z.type === "TREE_STRUCTURE" && (G.showHeader = !1, G.treeConfig.iconOpen = "vxe-icon-square-minus", G.treeConfig.iconClose = "vxe-icon-square-plus", G.toolbarConfig.custom = !1, G.treeConfig.accordion = !1, ae = ae.map((ce) => (ce.field !== void 0 && (ce.visible = !1), ce)));
|
|
30841
|
+
}
|
|
30842
|
+
G.columns = ae, G.editRules = le;
|
|
30691
30843
|
}
|
|
30692
30844
|
return G;
|
|
30693
30845
|
}
|
|
@@ -30750,26 +30902,27 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30750
30902
|
isAutoSave.value && saveData(!1), --formConfig.value.rowIndex < 0 && (formConfig.value.rowIndex = formConfig.value.tableData.length - 1), formConfig.value.formData = formConfig.value.tableData[formConfig.value.rowIndex];
|
|
30751
30903
|
}, editAfterData = () => {
|
|
30752
30904
|
isAutoSave.value && saveData(!1), ++formConfig.value.rowIndex >= formConfig.value.tableData.length && (formConfig.value.rowIndex = 0), formConfig.value.formData = formConfig.value.tableData[formConfig.value.rowIndex];
|
|
30905
|
+
}, settPageHeight = () => {
|
|
30906
|
+
props.height ? props.height.indexOf("%") > 0 ? layoutHeight.value = document.documentElement.clientHeight / 100 * parseInt(props.height) : layoutHeight.value = parseInt(props.height) : layoutHeight.value = document.documentElement.clientHeight;
|
|
30753
30907
|
};
|
|
30754
30908
|
onMounted(() => {
|
|
30755
|
-
loadData(),
|
|
30909
|
+
loadData(), settPageHeight(), document.addEventListener("keydown", ctrlSSave);
|
|
30756
30910
|
}), onUnmounted(() => {
|
|
30757
30911
|
document.removeEventListener("keydown", ctrlSSave);
|
|
30758
30912
|
}), watch([() => props.windowId, () => props.queryParams], () => {
|
|
30759
|
-
loadData(),
|
|
30913
|
+
loadData(), settPageHeight();
|
|
30760
30914
|
});
|
|
30761
30915
|
const getRegion = (Q) => {
|
|
30762
30916
|
let H = regionMap.value[Q + "-" + preTag.value];
|
|
30763
30917
|
return H || regionMap.value[Q];
|
|
30764
30918
|
};
|
|
30765
30919
|
function focusInput(Q, H = !1) {
|
|
30766
|
-
console.log(Q, H);
|
|
30767
30920
|
let X = document.querySelector(`input[_field_id="${Q}"]`);
|
|
30768
30921
|
X ? (X.focus(), H && X.select()) : setTimeout(() => {
|
|
30769
30922
|
focusInput(Q, H);
|
|
30770
30923
|
}, 3 * 1e3);
|
|
30771
30924
|
}
|
|
30772
|
-
return provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), provide("$openModal", openModal), provide("$closeModal", closeModal), provide("$rowDbClick", openEditWin), provide("$regionMap", regionMap), provide("$getRegion", getRegion), provide("$hiprint", hiprint), provide("$serverPrint", serverPrint), provide("$focusInput", focusInput), (Q, H) => {
|
|
30925
|
+
return provide("$showPreView", showPreView), provide("$showPreViewClose", showPreViewClose), 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), (Q, H) => {
|
|
30773
30926
|
const X = resolveComponent("arrow-back"), G = resolveComponent("arrow-forward"), Z = resolveComponent("save"), K = resolveComponent("close"), ee = resolveComponent("window-index", !0);
|
|
30774
30927
|
return openBlock(), createElementBlock("div", _hoisted_1$kR, [
|
|
30775
30928
|
(openBlock(), createBlock(unref(WindowLayout), {
|
|
@@ -30862,11 +31015,11 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30862
31015
|
]),
|
|
30863
31016
|
default: withCtx(() => [
|
|
30864
31017
|
(openBlock(), createBlock(resolveDynamicComponent(unref(componentMapping).getComponentName("$container")), {
|
|
30865
|
-
height: getOffsetHeight()
|
|
31018
|
+
height: getOffsetHeight(),
|
|
30866
31019
|
always: "",
|
|
30867
31020
|
"align-center": "",
|
|
30868
31021
|
style: normalizeStyle({
|
|
30869
|
-
height: getOffsetHeight()
|
|
31022
|
+
height: getOffsetHeight(),
|
|
30870
31023
|
"overflow-y": "auto"
|
|
30871
31024
|
})
|
|
30872
31025
|
}, {
|
|
@@ -30936,6 +31089,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30936
31089
|
(openBlock(), createBlock(resolveDynamicComponent(unref(componentMapping).getComponentName("$modal")), {
|
|
30937
31090
|
ref_key: "preViewxModal",
|
|
30938
31091
|
ref: preViewxModal,
|
|
31092
|
+
class: "preViewx-modal",
|
|
30939
31093
|
modelValue: unref(preViewShow),
|
|
30940
31094
|
"onUpdate:modelValue": H[9] || (H[9] = (te) => isRef(preViewShow) ? preViewShow.value = te : preViewShow = te),
|
|
30941
31095
|
visible: unref(preViewShow),
|
|
@@ -30945,55 +31099,63 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
30945
31099
|
zIndex: 1e3,
|
|
30946
31100
|
title: unref(preWindowName),
|
|
30947
31101
|
width: unref(preViewWidth) ? unref(preViewWidth) : "88%",
|
|
30948
|
-
height: unref(preViewHeight) ? unref(preViewHeight) : "80%",
|
|
30949
31102
|
draggable: "",
|
|
30950
31103
|
resize: !unref(preViewWidth),
|
|
31104
|
+
"lock-scroll": "",
|
|
30951
31105
|
"esc-closable": "",
|
|
31106
|
+
"align-center": "",
|
|
30952
31107
|
"destroy-on-close": "",
|
|
30953
31108
|
destroyOnClose: "",
|
|
30954
31109
|
loading: unref(preViewLoading),
|
|
30955
31110
|
"show-footer": unref(preViewFooterShow),
|
|
30956
31111
|
"show-zoom": !unref(preViewWidth),
|
|
30957
31112
|
onZoom: zoomModal
|
|
30958
|
-
}, {
|
|
31113
|
+
}, createSlots({
|
|
30959
31114
|
default: withCtx(() => [
|
|
30960
31115
|
(openBlock(), createBlock(ee, {
|
|
30961
31116
|
"window-id": unref(preWindowId),
|
|
30962
31117
|
"query-params": unref(preQueryParams),
|
|
30963
31118
|
"onUpdate:queryParams": H[7] || (H[7] = (te) => isRef(preQueryParams) ? preQueryParams.value = te : preQueryParams = te),
|
|
30964
31119
|
key: unref(preWindowId),
|
|
31120
|
+
height: unref(preViewHeight) ? unref(preViewHeight) : "80%",
|
|
30965
31121
|
onOnLoadSuccess: preViewLoadSuccess
|
|
30966
|
-
}, null, 8, ["window-id", "query-params"]))
|
|
31122
|
+
}, null, 8, ["window-id", "query-params", "height"]))
|
|
30967
31123
|
]),
|
|
30968
|
-
|
|
30969
|
-
|
|
30970
|
-
|
|
30971
|
-
|
|
30972
|
-
|
|
30973
|
-
|
|
30974
|
-
|
|
30975
|
-
|
|
30976
|
-
|
|
30977
|
-
|
|
30978
|
-
|
|
30979
|
-
|
|
30980
|
-
|
|
30981
|
-
|
|
30982
|
-
|
|
30983
|
-
|
|
30984
|
-
|
|
30985
|
-
|
|
30986
|
-
|
|
30987
|
-
|
|
30988
|
-
]),
|
|
30989
|
-
|
|
30990
|
-
|
|
30991
|
-
|
|
30992
|
-
|
|
30993
|
-
|
|
31124
|
+
_: 2
|
|
31125
|
+
}, [
|
|
31126
|
+
unref(preViewFooterShow) ? {
|
|
31127
|
+
name: "footer",
|
|
31128
|
+
fn: withCtx(() => [
|
|
31129
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(componentMapping).getComponentName("$button")), mergeProps$1(
|
|
31130
|
+
{
|
|
31131
|
+
visible: unref(preViewSubmitFun),
|
|
31132
|
+
"onUpdate:visible": H[8] || (H[8] = (te) => isRef(preViewSubmitFun) ? preViewSubmitFun.value = te : preViewSubmitFun = te)
|
|
31133
|
+
},
|
|
31134
|
+
unref(componentMapping).getButtonProps({
|
|
31135
|
+
htmlType: "submit",
|
|
31136
|
+
type: "primary"
|
|
31137
|
+
}),
|
|
31138
|
+
{ onClick: preViewSubmit }
|
|
31139
|
+
), {
|
|
31140
|
+
default: withCtx(() => [
|
|
31141
|
+
createTextVNode("提交 ")
|
|
31142
|
+
]),
|
|
31143
|
+
_: 1
|
|
31144
|
+
}, 16, ["visible"])),
|
|
31145
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(componentMapping).getComponentName("$button")), { onClick: closePreModal }, {
|
|
31146
|
+
default: withCtx(() => [
|
|
31147
|
+
createTextVNode("取消")
|
|
31148
|
+
]),
|
|
31149
|
+
_: 1
|
|
31150
|
+
}))
|
|
31151
|
+
]),
|
|
31152
|
+
key: "0"
|
|
31153
|
+
} : void 0
|
|
31154
|
+
]), 1064, ["modelValue", "visible", "title", "width", "resize", "loading", "show-footer", "show-zoom"])),
|
|
30994
31155
|
createVNode(unref(_sfc_main$3), {
|
|
30995
31156
|
actionData: unref(componentModalData),
|
|
30996
|
-
title: unref(componentModalTitle)
|
|
31157
|
+
title: unref(componentModalTitle),
|
|
31158
|
+
onClose: closeModal
|
|
30997
31159
|
}, null, 8, ["actionData", "title"]),
|
|
30998
31160
|
createVNode(unref(_sfc_main$2), {
|
|
30999
31161
|
actionData: unref(preModalData),
|
|
@@ -31002,7 +31164,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_f66cfc5a_lang = "", _withSco
|
|
|
31002
31164
|
]);
|
|
31003
31165
|
};
|
|
31004
31166
|
}
|
|
31005
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
31167
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d3b476fb"]]);
|
|
31006
31168
|
WindowIndex.name = "slw-window-index";
|
|
31007
31169
|
WindowIndex.install = (Q) => {
|
|
31008
31170
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -36114,10 +36276,10 @@ var SiderCollapsedKey = Symbol("siderCollapsed"), SiderHookProviderKey = Symbol(
|
|
|
36114
36276
|
}, H;
|
|
36115
36277
|
}()
|
|
36116
36278
|
);
|
|
36117
|
-
}(), isBrowser = typeof window < "u" && typeof document < "u" && window.document === document, global$1 = function() {
|
|
36279
|
+
}(), isBrowser = typeof window < "u" && typeof document < "u" && window.document === document, global$1$1 = function() {
|
|
36118
36280
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
36119
36281
|
}(), requestAnimationFrame$1 = function() {
|
|
36120
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(global$1) : function(Q) {
|
|
36282
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(global$1$1) : function(Q) {
|
|
36121
36283
|
return setTimeout(function() {
|
|
36122
36284
|
return Q(Date.now());
|
|
36123
36285
|
}, 1e3 / 60);
|
|
@@ -36195,7 +36357,7 @@ var REFRESH_DELAY = 20, transitionKeys = ["top", "right", "bottom", "left", "wid
|
|
|
36195
36357
|
return Q;
|
|
36196
36358
|
}, getWindowOf = function(Q) {
|
|
36197
36359
|
var H = Q && Q.ownerDocument && Q.ownerDocument.defaultView;
|
|
36198
|
-
return H || global$1;
|
|
36360
|
+
return H || global$1$1;
|
|
36199
36361
|
}, emptyRect = createRectInit(0, 0, 0, 0);
|
|
36200
36362
|
function toFloat(Q) {
|
|
36201
36363
|
return parseFloat(Q) || 0;
|
|
@@ -36353,7 +36515,7 @@ var ResizeObservation = (
|
|
|
36353
36515
|
};
|
|
36354
36516
|
});
|
|
36355
36517
|
var index$i = function() {
|
|
36356
|
-
return typeof global$1.ResizeObserver < "u" ? global$1.ResizeObserver : ResizeObserver$2;
|
|
36518
|
+
return typeof global$1$1.ResizeObserver < "u" ? global$1$1.ResizeObserver : ResizeObserver$2;
|
|
36357
36519
|
}();
|
|
36358
36520
|
const ResizeObserver$1 = defineComponent({
|
|
36359
36521
|
compatConfig: {
|
|
@@ -92994,6 +93156,7 @@ class ComponentMapping {
|
|
|
92994
93156
|
},
|
|
92995
93157
|
selectProps: {
|
|
92996
93158
|
filterable: "filterable",
|
|
93159
|
+
remote: "remote",
|
|
92997
93160
|
multiple: "multiple"
|
|
92998
93161
|
},
|
|
92999
93162
|
modalSlotNames: {
|
|
@@ -93058,6 +93221,10 @@ class ComponentMapping {
|
|
|
93058
93221
|
},
|
|
93059
93222
|
selectProps: {
|
|
93060
93223
|
filterable: "showSearch",
|
|
93224
|
+
defaultActiveFirstOption: "defaultActiveFirstOption",
|
|
93225
|
+
// 是否默认高亮第一个选项
|
|
93226
|
+
filterOption: "filterOption",
|
|
93227
|
+
// 是否根据输入项进行筛选
|
|
93061
93228
|
multiple: "multiple"
|
|
93062
93229
|
},
|
|
93063
93230
|
modalSlotNames: {
|
|
@@ -93099,6 +93266,16 @@ class ComponentMapping {
|
|
|
93099
93266
|
const H = this.getCurrentUI(), X = H.switchValueProps.checkedValue, G = H.switchValueProps.unCheckedValue;
|
|
93100
93267
|
return { [X]: "Y", [G]: "N" };
|
|
93101
93268
|
}
|
|
93269
|
+
// 远程搜索
|
|
93270
|
+
getSelectRemoteSearchPropName() {
|
|
93271
|
+
const H = this.getCurrentUI();
|
|
93272
|
+
if (this.isElementPlus())
|
|
93273
|
+
return { [H.selectProps.remote]: !0 };
|
|
93274
|
+
if (this.isAntd()) {
|
|
93275
|
+
const X = H.selectProps.defaultActiveFirstOption, G = H.selectProps.filterOption;
|
|
93276
|
+
return { [X]: !1, [G]: !1 };
|
|
93277
|
+
}
|
|
93278
|
+
}
|
|
93102
93279
|
getSelectSearchPropName() {
|
|
93103
93280
|
return this.getCurrentUI().selectProps.filterable;
|
|
93104
93281
|
}
|
|
@@ -93131,7 +93308,7 @@ class ComponentMapping {
|
|
|
93131
93308
|
}
|
|
93132
93309
|
getTimePickerProps() {
|
|
93133
93310
|
const H = {};
|
|
93134
|
-
return H[this.getCurrentUI().datePikerProps.type] = "time", H;
|
|
93311
|
+
return H[this.getCurrentUI().datePikerProps.type] = "time", H.format = "HH:mm:ss", H.valueFormat = "HH:mm:ss", H;
|
|
93135
93312
|
}
|
|
93136
93313
|
getDateTimeRangePickerProps() {
|
|
93137
93314
|
const H = {};
|
|
@@ -93145,7 +93322,7 @@ class ComponentMapping {
|
|
|
93145
93322
|
}
|
|
93146
93323
|
getTimeRangePickerProps() {
|
|
93147
93324
|
const H = {};
|
|
93148
|
-
return H[this.getCurrentUI().datePikerProps.type] = "time", H.isRange = !0, H;
|
|
93325
|
+
return H[this.getCurrentUI().datePikerProps.type] = "time", H.isRange = !0, H.format = "HH:mm:ss", H.valueFormat = "HH:mm:ss", H;
|
|
93149
93326
|
}
|
|
93150
93327
|
}
|
|
93151
93328
|
const componentMapping = { ComponentMapping };
|
|
@@ -113535,7 +113712,7 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
113535
113712
|
t,
|
|
113536
113713
|
use,
|
|
113537
113714
|
v
|
|
113538
|
-
}, Symbol.toStringTag, { value: "Module" })), style = "";
|
|
113715
|
+
}, Symbol.toStringTag, { value: "Module" })), style = "", global$1 = "";
|
|
113539
113716
|
/*!
|
|
113540
113717
|
* shared v9.2.2
|
|
113541
113718
|
* (c) 2022 kazuya kawaguchi
|