slw 0.5.965 → 0.5.967
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 +380 -345
- package/lib/index.umd.cjs +9 -9
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8281,12 +8281,12 @@ assign$1(XEUtils, {
|
|
|
8281
8281
|
cookie
|
|
8282
8282
|
});
|
|
8283
8283
|
var xeUtils = XEUtils;
|
|
8284
|
-
const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils),
|
|
8284
|
+
const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_vue_vue_type_style_index_0_scoped_a0b2a487_lang = "", _export_sfc = (Q, H) => {
|
|
8285
8285
|
const G = Q.__vccOpts || Q;
|
|
8286
8286
|
for (const [X, Z] of H)
|
|
8287
8287
|
G[X] = Z;
|
|
8288
8288
|
return G;
|
|
8289
|
-
}, _withScopeId$2 = (Q) => (pushScopeId("data-v-
|
|
8289
|
+
}, _withScopeId$2 = (Q) => (pushScopeId("data-v-a0b2a487"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8290
8290
|
class: "slw-window-grid-container",
|
|
8291
8291
|
style: { height: "100%" }
|
|
8292
8292
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
@@ -8480,7 +8480,10 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
8480
8480
|
}
|
|
8481
8481
|
}), pe > ce && (ce = pe);
|
|
8482
8482
|
}), gridData.value.columns.forEach((he) => {
|
|
8483
|
-
he.colId == "_operation_" && he.title == "操作"
|
|
8483
|
+
if (he.colId == "_operation_" && he.title == "操作") {
|
|
8484
|
+
he.width = ce * 50;
|
|
8485
|
+
return;
|
|
8486
|
+
}
|
|
8484
8487
|
}), getCurRegion().loadColumn(gridData.value.columns), ae.data.data.length > rowIndex.value ? le = ae.data.data[rowIndex.value] : le = ae.data.data[0];
|
|
8485
8488
|
const de = getCurRegion();
|
|
8486
8489
|
if (de) {
|
|
@@ -9662,7 +9665,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowGrid_v
|
|
|
9662
9665
|
]);
|
|
9663
9666
|
};
|
|
9664
9667
|
}
|
|
9665
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
9668
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-a0b2a487"]]);
|
|
9666
9669
|
WindowGrid.name = "slw-window-grid";
|
|
9667
9670
|
WindowGrid.install = (Q) => {
|
|
9668
9671
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -29947,7 +29950,7 @@ function history(Q = {}) {
|
|
|
29947
29950
|
return [
|
|
29948
29951
|
historyField_,
|
|
29949
29952
|
historyConfig.of(Q),
|
|
29950
|
-
EditorView
|
|
29953
|
+
EditorView.domEventHandlers({
|
|
29951
29954
|
beforeinput(H, G) {
|
|
29952
29955
|
let X = H.inputType == "historyUndo" ? undo : H.inputType == "historyRedo" ? redo : null;
|
|
29953
29956
|
return X ? (H.preventDefault(), X(G)) : !1;
|
|
@@ -30142,7 +30145,7 @@ function cursorByChar(Q, H) {
|
|
|
30142
30145
|
return moveSel(Q, (G) => G.empty ? Q.moveByChar(G, H) : rangeEnd(G, H));
|
|
30143
30146
|
}
|
|
30144
30147
|
function ltrAtCursor(Q) {
|
|
30145
|
-
return Q.textDirectionAt(Q.state.selection.main.head) == Direction
|
|
30148
|
+
return Q.textDirectionAt(Q.state.selection.main.head) == Direction.LTR;
|
|
30146
30149
|
}
|
|
30147
30150
|
const cursorCharLeft = (Q) => cursorByChar(Q, !ltrAtCursor(Q)), cursorCharRight = (Q) => cursorByChar(Q, ltrAtCursor(Q)), cursorCharForward = (Q) => cursorByChar(Q, !0), cursorCharBackward = (Q) => cursorByChar(Q, !1);
|
|
30148
30151
|
function cursorByGroup(Q, H) {
|
|
@@ -30217,7 +30220,7 @@ const cursorLineUp = (Q) => cursorByLine(Q, !1), cursorLineDown = (Q) => cursorB
|
|
|
30217
30220
|
function pageInfo(Q) {
|
|
30218
30221
|
let H = Q.scrollDOM.clientHeight < Q.scrollDOM.scrollHeight - 2, G = 0, X = 0, Z;
|
|
30219
30222
|
if (H) {
|
|
30220
|
-
for (let K of Q.state.facet(EditorView
|
|
30223
|
+
for (let K of Q.state.facet(EditorView.scrollMargins)) {
|
|
30221
30224
|
let ee = K(Q);
|
|
30222
30225
|
ee != null && ee.top && (G = Math.max(ee == null ? void 0 : ee.top, G)), ee != null && ee.bottom && (X = Math.max(ee == null ? void 0 : ee.bottom, X));
|
|
30223
30226
|
}
|
|
@@ -30238,7 +30241,7 @@ function cursorByPage(Q, H) {
|
|
|
30238
30241
|
let K;
|
|
30239
30242
|
if (G.selfScroll) {
|
|
30240
30243
|
let ee = Q.coordsAtPos(X.selection.main.head), te = Q.scrollDOM.getBoundingClientRect(), ne = te.top + G.marginTop, re = te.bottom - G.marginBottom;
|
|
30241
|
-
ee && ee.top > ne && ee.bottom < re && (K = EditorView
|
|
30244
|
+
ee && ee.top > ne && ee.bottom < re && (K = EditorView.scrollIntoView(Z.main.head, { y: "start", yMargin: ee.top - ne }));
|
|
30242
30245
|
}
|
|
30243
30246
|
return Q.dispatch(setSel(X, Z), { effects: K }), !0;
|
|
30244
30247
|
}
|
|
@@ -30324,12 +30327,12 @@ function deleteBy(Q, H) {
|
|
|
30324
30327
|
return Z.changes.empty ? !1 : (Q.dispatch(X.update(Z, {
|
|
30325
30328
|
scrollIntoView: !0,
|
|
30326
30329
|
userEvent: G,
|
|
30327
|
-
effects: G == "delete.selection" ? EditorView
|
|
30330
|
+
effects: G == "delete.selection" ? EditorView.announce.of(X.phrase("Selection deleted")) : void 0
|
|
30328
30331
|
})), !0);
|
|
30329
30332
|
}
|
|
30330
30333
|
function skipAtomic(Q, H, G) {
|
|
30331
|
-
if (Q instanceof EditorView
|
|
30332
|
-
for (let X of Q.state.facet(EditorView
|
|
30334
|
+
if (Q instanceof EditorView)
|
|
30335
|
+
for (let X of Q.state.facet(EditorView.atomicRanges).map((Z) => Z(Q)))
|
|
30333
30336
|
X.between(H, H, (Z, K) => {
|
|
30334
30337
|
Z < H && K > H && (H = G ? K : Z);
|
|
30335
30338
|
});
|
|
@@ -30813,7 +30816,7 @@ function createLineDialog(Q) {
|
|
|
30813
30816
|
re && ne && (se = se * (ne == "-" ? -1 : 1) + te.number);
|
|
30814
30817
|
let ce = ee.doc.line(Math.max(1, Math.min(ee.doc.lines, se))), de = EditorSelection.cursor(ce.from + Math.max(0, Math.min(le, ce.length)));
|
|
30815
30818
|
Q.dispatch({
|
|
30816
|
-
effects: [dialogEffect.of(!1), EditorView
|
|
30819
|
+
effects: [dialogEffect.of(!1), EditorView.scrollIntoView(de.from, { y: "center" })],
|
|
30817
30820
|
selection: de
|
|
30818
30821
|
}), Q.focus();
|
|
30819
30822
|
}
|
|
@@ -30828,15 +30831,15 @@ const dialogEffect = /* @__PURE__ */ StateEffect.define(), dialogField = /* @__P
|
|
|
30828
30831
|
G.is(dialogEffect) && (Q = G.value);
|
|
30829
30832
|
return Q;
|
|
30830
30833
|
},
|
|
30831
|
-
provide: (Q) => showPanel
|
|
30834
|
+
provide: (Q) => showPanel.from(Q, (H) => H ? createLineDialog : null)
|
|
30832
30835
|
}), gotoLine = (Q) => {
|
|
30833
|
-
let H = getPanel
|
|
30836
|
+
let H = getPanel(Q, createLineDialog);
|
|
30834
30837
|
if (!H) {
|
|
30835
30838
|
let G = [dialogEffect.of(!0)];
|
|
30836
|
-
Q.state.field(dialogField, !1) == null && G.push(StateEffect.appendConfig.of([dialogField, baseTheme$1$1])), Q.dispatch({ effects: G }), H = getPanel
|
|
30839
|
+
Q.state.field(dialogField, !1) == null && G.push(StateEffect.appendConfig.of([dialogField, baseTheme$1$1])), Q.dispatch({ effects: G }), H = getPanel(Q, createLineDialog);
|
|
30837
30840
|
}
|
|
30838
30841
|
return H && H.dom.querySelector("input").select(), !0;
|
|
30839
|
-
}, baseTheme$1$1 = /* @__PURE__ */ EditorView
|
|
30842
|
+
}, baseTheme$1$1 = /* @__PURE__ */ EditorView.baseTheme({
|
|
30840
30843
|
".cm-panel.cm-gotoLine": {
|
|
30841
30844
|
padding: "2px 6px 4px",
|
|
30842
30845
|
"& label": { fontSize: "80%" }
|
|
@@ -30859,14 +30862,14 @@ function highlightSelectionMatches(Q) {
|
|
|
30859
30862
|
let H = [defaultTheme, matchHighlighter];
|
|
30860
30863
|
return Q && H.push(highlightConfig.of(Q)), H;
|
|
30861
30864
|
}
|
|
30862
|
-
const matchDeco = /* @__PURE__ */ Decoration
|
|
30865
|
+
const matchDeco = /* @__PURE__ */ Decoration.mark({ class: "cm-selectionMatch" }), mainMatchDeco = /* @__PURE__ */ Decoration.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
30863
30866
|
function insideWordBoundaries(Q, H, G, X) {
|
|
30864
30867
|
return (G == 0 || Q(H.sliceDoc(G - 1, G)) != CharCategory.Word) && (X == H.doc.length || Q(H.sliceDoc(X, X + 1)) != CharCategory.Word);
|
|
30865
30868
|
}
|
|
30866
30869
|
function insideWord(Q, H, G, X) {
|
|
30867
30870
|
return Q(H.sliceDoc(G, G + 1)) == CharCategory.Word && Q(H.sliceDoc(X - 1, X)) == CharCategory.Word;
|
|
30868
30871
|
}
|
|
30869
|
-
const matchHighlighter = /* @__PURE__ */ ViewPlugin
|
|
30872
|
+
const matchHighlighter = /* @__PURE__ */ ViewPlugin.fromClass(class {
|
|
30870
30873
|
constructor(Q) {
|
|
30871
30874
|
this.decorations = this.getDeco(Q);
|
|
30872
30875
|
}
|
|
@@ -30876,24 +30879,24 @@ const matchHighlighter = /* @__PURE__ */ ViewPlugin$1.fromClass(class {
|
|
|
30876
30879
|
getDeco(Q) {
|
|
30877
30880
|
let H = Q.state.facet(highlightConfig), { state: G } = Q, X = G.selection;
|
|
30878
30881
|
if (X.ranges.length > 1)
|
|
30879
|
-
return Decoration
|
|
30882
|
+
return Decoration.none;
|
|
30880
30883
|
let Z = X.main, K, ee = null;
|
|
30881
30884
|
if (Z.empty) {
|
|
30882
30885
|
if (!H.highlightWordAroundCursor)
|
|
30883
|
-
return Decoration
|
|
30886
|
+
return Decoration.none;
|
|
30884
30887
|
let ne = G.wordAt(Z.head);
|
|
30885
30888
|
if (!ne)
|
|
30886
|
-
return Decoration
|
|
30889
|
+
return Decoration.none;
|
|
30887
30890
|
ee = G.charCategorizer(Z.head), K = G.sliceDoc(ne.from, ne.to);
|
|
30888
30891
|
} else {
|
|
30889
30892
|
let ne = Z.to - Z.from;
|
|
30890
30893
|
if (ne < H.minSelectionLength || ne > 200)
|
|
30891
|
-
return Decoration
|
|
30894
|
+
return Decoration.none;
|
|
30892
30895
|
if (H.wholeWords) {
|
|
30893
30896
|
if (K = G.sliceDoc(Z.from, Z.to), ee = G.charCategorizer(Z.head), !(insideWordBoundaries(ee, G, Z.from, Z.to) && insideWord(ee, G, Z.from, Z.to)))
|
|
30894
|
-
return Decoration
|
|
30897
|
+
return Decoration.none;
|
|
30895
30898
|
} else if (K = G.sliceDoc(Z.from, Z.to).trim(), !K)
|
|
30896
|
-
return Decoration
|
|
30899
|
+
return Decoration.none;
|
|
30897
30900
|
}
|
|
30898
30901
|
let te = [];
|
|
30899
30902
|
for (let ne of Q.visibleRanges) {
|
|
@@ -30901,14 +30904,14 @@ const matchHighlighter = /* @__PURE__ */ ViewPlugin$1.fromClass(class {
|
|
|
30901
30904
|
for (; !re.next().done; ) {
|
|
30902
30905
|
let { from: oe, to: ae } = re.value;
|
|
30903
30906
|
if ((!ee || insideWordBoundaries(ee, G, oe, ae)) && (Z.empty && oe <= Z.from && ae >= Z.to ? te.push(mainMatchDeco.range(oe, ae)) : (oe >= Z.to || ae <= Z.from) && te.push(matchDeco.range(oe, ae)), te.length > H.maxMatches))
|
|
30904
|
-
return Decoration
|
|
30907
|
+
return Decoration.none;
|
|
30905
30908
|
}
|
|
30906
30909
|
}
|
|
30907
|
-
return Decoration
|
|
30910
|
+
return Decoration.set(te);
|
|
30908
30911
|
}
|
|
30909
30912
|
}, {
|
|
30910
30913
|
decorations: (Q) => Q.decorations
|
|
30911
|
-
}), defaultTheme = /* @__PURE__ */ EditorView
|
|
30914
|
+
}), defaultTheme = /* @__PURE__ */ EditorView.baseTheme({
|
|
30912
30915
|
".cm-selectionMatch": { backgroundColor: "#99ff7780" },
|
|
30913
30916
|
".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
|
|
30914
30917
|
}), selectWord = ({ state: Q, dispatch: H }) => {
|
|
@@ -30943,7 +30946,7 @@ const selectNextOccurrence = ({ state: Q, dispatch: H }) => {
|
|
|
30943
30946
|
let Z = findNextOccurrence(Q, X);
|
|
30944
30947
|
return Z ? (H(Q.update({
|
|
30945
30948
|
selection: Q.selection.addRange(EditorSelection.range(Z.from, Z.to), !1),
|
|
30946
|
-
effects: EditorView
|
|
30949
|
+
effects: EditorView.scrollIntoView(Z.to)
|
|
30947
30950
|
})), !0) : !1;
|
|
30948
30951
|
}, searchConfigFacet = /* @__PURE__ */ Facet.define({
|
|
30949
30952
|
combine(Q) {
|
|
@@ -30954,7 +30957,7 @@ const selectNextOccurrence = ({ state: Q, dispatch: H }) => {
|
|
|
30954
30957
|
regexp: !1,
|
|
30955
30958
|
wholeWord: !1,
|
|
30956
30959
|
createPanel: (H) => new SearchPanel(H),
|
|
30957
|
-
scrollToMatch: (H) => EditorView
|
|
30960
|
+
scrollToMatch: (H) => EditorView.scrollIntoView(H)
|
|
30958
30961
|
});
|
|
30959
30962
|
}
|
|
30960
30963
|
});
|
|
@@ -31119,7 +31122,7 @@ const setSearchQuery = /* @__PURE__ */ StateEffect.define(), togglePanel$1 = /*
|
|
|
31119
31122
|
G.is(setSearchQuery) ? Q = new SearchState(G.value.create(), Q.panel) : G.is(togglePanel$1) && (Q = new SearchState(Q.query, G.value ? createSearchPanel : null));
|
|
31120
31123
|
return Q;
|
|
31121
31124
|
},
|
|
31122
|
-
provide: (Q) => showPanel
|
|
31125
|
+
provide: (Q) => showPanel.from(Q, (H) => H.panel)
|
|
31123
31126
|
});
|
|
31124
31127
|
function getSearchQuery(Q) {
|
|
31125
31128
|
let H = Q.field(searchState, !1);
|
|
@@ -31134,7 +31137,7 @@ class SearchState {
|
|
|
31134
31137
|
this.query = H, this.panel = G;
|
|
31135
31138
|
}
|
|
31136
31139
|
}
|
|
31137
|
-
const matchMark = /* @__PURE__ */ Decoration
|
|
31140
|
+
const matchMark = /* @__PURE__ */ Decoration.mark({ class: "cm-searchMatch" }), selectedMatchMark = /* @__PURE__ */ Decoration.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), searchHighlighter = /* @__PURE__ */ ViewPlugin.fromClass(class {
|
|
31138
31141
|
constructor(Q) {
|
|
31139
31142
|
this.view = Q, this.decorations = this.highlight(Q.state.field(searchState));
|
|
31140
31143
|
}
|
|
@@ -31144,7 +31147,7 @@ const matchMark = /* @__PURE__ */ Decoration$1.mark({ class: "cm-searchMatch" })
|
|
|
31144
31147
|
}
|
|
31145
31148
|
highlight({ query: Q, panel: H }) {
|
|
31146
31149
|
if (!H || !Q.spec.valid)
|
|
31147
|
-
return Decoration
|
|
31150
|
+
return Decoration.none;
|
|
31148
31151
|
let { view: G } = this, X = new RangeSetBuilder();
|
|
31149
31152
|
for (let Z = 0, K = G.visibleRanges, ee = K.length; Z < ee; Z++) {
|
|
31150
31153
|
let { from: te, to: ne } = K[Z];
|
|
@@ -31214,7 +31217,7 @@ const findNext = /* @__PURE__ */ searchCommand((Q, { query: H }) => {
|
|
|
31214
31217
|
if (!K)
|
|
31215
31218
|
return !1;
|
|
31216
31219
|
let ee = [], te, ne, re = [];
|
|
31217
|
-
if (K.from == X && K.to == Z && (ne = G.toText(H.getReplacement(K)), ee.push({ from: K.from, to: K.to, insert: ne }), K = H.nextMatch(G, K.from, K.to), re.push(EditorView
|
|
31220
|
+
if (K.from == X && K.to == Z && (ne = G.toText(H.getReplacement(K)), ee.push({ from: K.from, to: K.to, insert: ne }), K = H.nextMatch(G, K.from, K.to), re.push(EditorView.announce.of(G.phrase("replaced match on line $", G.doc.lineAt(X).number) + "."))), K) {
|
|
31218
31221
|
let oe = ee.length == 0 || ee[0].from >= K.to ? 0 : K.to - K.from - ne.length;
|
|
31219
31222
|
te = EditorSelection.single(K.from - oe, K.to - oe), re.push(announceMatch(Q, K)), re.push(G.facet(searchConfigFacet).scrollToMatch(te.main, Q));
|
|
31220
31223
|
}
|
|
@@ -31236,7 +31239,7 @@ const findNext = /* @__PURE__ */ searchCommand((Q, { query: H }) => {
|
|
|
31236
31239
|
let X = Q.state.phrase("replaced $ matches", G.length) + ".";
|
|
31237
31240
|
return Q.dispatch({
|
|
31238
31241
|
changes: G,
|
|
31239
|
-
effects: EditorView
|
|
31242
|
+
effects: EditorView.announce.of(X),
|
|
31240
31243
|
userEvent: "input.replace.all"
|
|
31241
31244
|
}), !0;
|
|
31242
31245
|
});
|
|
@@ -31258,7 +31261,7 @@ function defaultQuery(Q, H) {
|
|
|
31258
31261
|
});
|
|
31259
31262
|
}
|
|
31260
31263
|
function getSearchInput(Q) {
|
|
31261
|
-
let H = getPanel
|
|
31264
|
+
let H = getPanel(Q, createSearchPanel);
|
|
31262
31265
|
return H && H.dom.querySelector("[main-field]");
|
|
31263
31266
|
}
|
|
31264
31267
|
function selectSearchInput(Q) {
|
|
@@ -31283,7 +31286,7 @@ const openSearchPanel = (Q) => {
|
|
|
31283
31286
|
let H = Q.state.field(searchState, !1);
|
|
31284
31287
|
if (!H || !H.panel)
|
|
31285
31288
|
return !1;
|
|
31286
|
-
let G = getPanel
|
|
31289
|
+
let G = getPanel(Q, createSearchPanel);
|
|
31287
31290
|
return G && G.dom.contains(Q.root.activeElement) && Q.focus(), Q.dispatch({ effects: togglePanel$1.of(!1) }), !0;
|
|
31288
31291
|
}, searchKeymap = [
|
|
31289
31292
|
{ key: "Mod-f", run: openSearchPanel, scope: "editor search-panel" },
|
|
@@ -31372,7 +31375,7 @@ class SearchPanel {
|
|
|
31372
31375
|
H.eq(this.query) || (this.query = H, this.view.dispatch({ effects: setSearchQuery.of(H) }));
|
|
31373
31376
|
}
|
|
31374
31377
|
keydown(H) {
|
|
31375
|
-
runScopeHandlers
|
|
31378
|
+
runScopeHandlers(this.view, H, "search-panel") ? H.preventDefault() : H.keyCode == 13 && H.target == this.searchField ? (H.preventDefault(), (H.shiftKey ? findPrevious : findNext)(this.view)) : H.keyCode == 13 && H.target == this.replaceField && (H.preventDefault(), replaceNext(this.view));
|
|
31376
31379
|
}
|
|
31377
31380
|
update(H) {
|
|
31378
31381
|
for (let G of H.transactions)
|
|
@@ -31412,9 +31415,9 @@ function announceMatch(Q, { from: H, to: G }) {
|
|
|
31412
31415
|
break;
|
|
31413
31416
|
}
|
|
31414
31417
|
}
|
|
31415
|
-
return EditorView
|
|
31418
|
+
return EditorView.announce.of(`${Q.state.phrase("current match")}. ${te} ${Q.state.phrase("on line")} ${X.number}.`);
|
|
31416
31419
|
}
|
|
31417
|
-
const baseTheme$2 = /* @__PURE__ */ EditorView
|
|
31420
|
+
const baseTheme$2 = /* @__PURE__ */ EditorView.baseTheme({
|
|
31418
31421
|
".cm-panel.cm-search": {
|
|
31419
31422
|
padding: "2px 6px 4px",
|
|
31420
31423
|
position: "relative",
|
|
@@ -37175,6 +37178,11 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37175
37178
|
let G = Q.data[Q.property];
|
|
37176
37179
|
evalEvent(Q.item.itemRender.props.clickFunction, G, Q.field);
|
|
37177
37180
|
}
|
|
37181
|
+
}, onScanIconClick = (Q) => {
|
|
37182
|
+
if (Q.itemRender.props.clickFunction) {
|
|
37183
|
+
let H = formData.value[Q.field];
|
|
37184
|
+
evalEvent(Q.itemRender.props.clickFunction, H, Q.field);
|
|
37185
|
+
}
|
|
37178
37186
|
}, success = (Q, H) => {
|
|
37179
37187
|
$vxeMessage({
|
|
37180
37188
|
content: Q,
|
|
@@ -37209,18 +37217,18 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37209
37217
|
);
|
|
37210
37218
|
for (let [G, X] of H.entries())
|
|
37211
37219
|
if (X.visible && X.displayForm) {
|
|
37212
|
-
X.
|
|
37220
|
+
X.fwidth = X.fwidth ? X.fwidth : 12;
|
|
37213
37221
|
let Z = H[G - 1];
|
|
37214
|
-
Number(X.
|
|
37222
|
+
Number(X.fwidth) > 24 ? (X.aLine = !0, X.residue = 0) : (X.aLine = !1, X.residue = 24 - Number(X.fwidth), Z && (Z.aLine || Z.residue - Number(X.fwidth) < 0) || G == 0 ? X.residue = 24 - Number(X.fwidth) : Z.residue - Number(X.fwidth) >= 0 && (X.residue = Z.residue - Number(X.fwidth))), (X.itemRender.props.newLine === !0 || X.itemRender.props.newLine === "Y") && (Z.fwidth = Number(Z.fwidth) + Number(Z.residue), Z.residue = 0, X.residue = 24 - Number(X.fwidth));
|
|
37215
37223
|
}
|
|
37216
37224
|
}, throwFunction = (Q) => {
|
|
37217
37225
|
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, G) => setValue(H, G);
|
|
37218
37226
|
};
|
|
37219
37227
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
|
|
37220
|
-
const G = resolveComponent("vxe-form-item"),
|
|
37228
|
+
const G = resolveComponent("el-input"), X = resolveComponent("vxe-form-item"), Z = resolveComponent("el-icon"), K = resolveComponent("el-button"), ee = resolveComponent("vxe-form");
|
|
37221
37229
|
return openBlock(), createElementBlock("div", _hoisted_1$kV, [
|
|
37222
37230
|
unref(formConfig).params.showTitle && unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", _hoisted_2$kR, toDisplayString(unref($T)(unref(formConfig).params.windowTitle)), 1)) : createCommentVNode("", !0),
|
|
37223
|
-
createVNode(
|
|
37231
|
+
createVNode(ee, {
|
|
37224
37232
|
ref_key: "form",
|
|
37225
37233
|
ref: form,
|
|
37226
37234
|
data: unref(formData),
|
|
@@ -37231,82 +37239,100 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
|
|
|
37231
37239
|
class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
|
|
37232
37240
|
}, {
|
|
37233
37241
|
default: withCtx(() => [
|
|
37234
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (
|
|
37235
|
-
key:
|
|
37242
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (te) => (openBlock(), createElementBlock(Fragment, {
|
|
37243
|
+
key: te.title
|
|
37236
37244
|
}, [
|
|
37237
|
-
|
|
37245
|
+
te.colType !== "showInGrid" ? (openBlock(), createBlock(X, {
|
|
37238
37246
|
key: 0,
|
|
37239
|
-
field:
|
|
37240
|
-
title: unref($T)(
|
|
37247
|
+
field: te.field,
|
|
37248
|
+
title: unref($T)(te.title),
|
|
37241
37249
|
"title-overflow": "tooltip",
|
|
37242
|
-
span: computeSpan.value(
|
|
37243
|
-
"item-render":
|
|
37244
|
-
"title-prefix":
|
|
37245
|
-
visible:
|
|
37246
|
-
style: normalizeStyle(
|
|
37247
|
-
"visible-method":
|
|
37250
|
+
span: computeSpan.value(te),
|
|
37251
|
+
"item-render": te.itemRender,
|
|
37252
|
+
"title-prefix": te.titlePrefix,
|
|
37253
|
+
visible: te.displayForm,
|
|
37254
|
+
style: normalizeStyle(te.style),
|
|
37255
|
+
"visible-method": te.editRender.props.displayLogic ? displayLogicEvent : null
|
|
37248
37256
|
}, createSlots({ _: 2 }, [
|
|
37249
|
-
|
|
37257
|
+
te.dataType === "EDITOR" ? {
|
|
37250
37258
|
name: "default",
|
|
37251
37259
|
fn: withCtx(() => [
|
|
37252
37260
|
createVNode(unref(T$1), {
|
|
37253
37261
|
ref_for: !0,
|
|
37254
37262
|
ref_key: "localEditor",
|
|
37255
37263
|
ref: localEditor,
|
|
37256
|
-
modelValue: unref(formData)[
|
|
37257
|
-
"onUpdate:modelValue": (
|
|
37264
|
+
modelValue: unref(formData)[te.field],
|
|
37265
|
+
"onUpdate:modelValue": (ne) => unref(formData)[te.field] = ne,
|
|
37258
37266
|
extensions: [
|
|
37259
|
-
getCodeLanguagePlugin(
|
|
37267
|
+
getCodeLanguagePlugin(te.language),
|
|
37260
37268
|
unref(EditorView$1).lineWrapping
|
|
37261
37269
|
],
|
|
37262
37270
|
"auto-destroy": ""
|
|
37263
37271
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions"])
|
|
37264
37272
|
]),
|
|
37265
37273
|
key: "0"
|
|
37274
|
+
} : te.dataType === "STRING" && te.canScan === !0 ? {
|
|
37275
|
+
name: "default",
|
|
37276
|
+
fn: withCtx(() => [
|
|
37277
|
+
createVNode(G, {
|
|
37278
|
+
modelValue: unref(formData)[te.field],
|
|
37279
|
+
"onUpdate:modelValue": (ne) => unref(formData)[te.field] = ne
|
|
37280
|
+
}, {
|
|
37281
|
+
suffix: withCtx(() => [
|
|
37282
|
+
createElementVNode("i", {
|
|
37283
|
+
class: "iconfont icon-scan1",
|
|
37284
|
+
onClick: (ne) => onScanIconClick(te),
|
|
37285
|
+
style: { cursor: "pointer" }
|
|
37286
|
+
}, null, 8, ["onClick"])
|
|
37287
|
+
]),
|
|
37288
|
+
_: 2
|
|
37289
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
37290
|
+
]),
|
|
37291
|
+
key: "1"
|
|
37266
37292
|
} : void 0,
|
|
37267
|
-
|
|
37293
|
+
te.dataType === "TABLE" && (te.title === unref($T)("数据源") || te.title === unref($T)("数据选项")) ? {
|
|
37268
37294
|
name: "title",
|
|
37269
37295
|
fn: withCtx(() => [
|
|
37270
37296
|
createElementVNode("a", {
|
|
37271
|
-
onClick: (
|
|
37272
|
-
type:
|
|
37273
|
-
params: { name: unref(formData)["_" +
|
|
37297
|
+
onClick: (ne) => linkToMenu({
|
|
37298
|
+
type: te.title === unref($T)("数据源") ? "dataSource" : "selector",
|
|
37299
|
+
params: { name: unref(formData)["_" + te.field + "_NAME"] }
|
|
37274
37300
|
}),
|
|
37275
37301
|
href: "javascript: void(0)"
|
|
37276
|
-
}, toDisplayString(unref($T)(
|
|
37302
|
+
}, toDisplayString(unref($T)(te.title)), 9, _hoisted_3$hS)
|
|
37277
37303
|
]),
|
|
37278
|
-
key: "
|
|
37304
|
+
key: "2"
|
|
37279
37305
|
} : void 0
|
|
37280
37306
|
]), 1032, ["field", "title", "span", "item-render", "title-prefix", "visible", "style", "visible-method"])) : createCommentVNode("", !0)
|
|
37281
37307
|
], 64))), 128)),
|
|
37282
|
-
unref(formConfig).type === "FORM" && buttons.value.length > 0 ? (openBlock(), createBlock(
|
|
37308
|
+
unref(formConfig).type === "FORM" && buttons.value.length > 0 ? (openBlock(), createBlock(X, {
|
|
37283
37309
|
key: 0,
|
|
37284
37310
|
align: "center",
|
|
37285
37311
|
span: "24"
|
|
37286
37312
|
}, {
|
|
37287
37313
|
default: withCtx(() => [
|
|
37288
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
37289
|
-
key:
|
|
37314
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (te) => (openBlock(), createBlock(K, {
|
|
37315
|
+
key: te.id,
|
|
37290
37316
|
"auto-insert-space": "",
|
|
37291
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
37317
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + te.css),
|
|
37292
37318
|
type: "primary",
|
|
37293
|
-
loading:
|
|
37294
|
-
onClick: (
|
|
37319
|
+
loading: te.loading,
|
|
37320
|
+
onClick: (ne) => btnClickFun(te)
|
|
37295
37321
|
}, createSlots({
|
|
37296
37322
|
default: withCtx(() => [
|
|
37297
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
37323
|
+
createTextVNode(" " + toDisplayString(unref($T)(te.name)), 1)
|
|
37298
37324
|
]),
|
|
37299
37325
|
_: 2
|
|
37300
37326
|
}, [
|
|
37301
|
-
|
|
37327
|
+
te.iconComponent ? {
|
|
37302
37328
|
name: "icon",
|
|
37303
37329
|
fn: withCtx(() => [
|
|
37304
|
-
createVNode(
|
|
37330
|
+
createVNode(Z, {
|
|
37305
37331
|
size: "15",
|
|
37306
37332
|
style: { verticalAlign: "middle" }
|
|
37307
37333
|
}, {
|
|
37308
37334
|
default: withCtx(() => [
|
|
37309
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
37335
|
+
(openBlock(), createBlock(resolveDynamicComponent(te.iconComponent)))
|
|
37310
37336
|
]),
|
|
37311
37337
|
_: 2
|
|
37312
37338
|
}, 1024)
|
|
@@ -37951,7 +37977,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
37951
37977
|
_sfc_main$2.install = (Q) => {
|
|
37952
37978
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
37953
37979
|
};
|
|
37954
|
-
const
|
|
37980
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_603c6d9e_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-603c6d9e"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
37955
37981
|
__name: "window-index",
|
|
37956
37982
|
props: {
|
|
37957
37983
|
windowId: {
|
|
@@ -38394,7 +38420,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38394
38420
|
}
|
|
38395
38421
|
let ee = Z.buttons, te = !1, ne = !1;
|
|
38396
38422
|
Z.showTitle && X.toolbarConfig.buttons.push({
|
|
38397
|
-
name: Z.name,
|
|
38423
|
+
name: $T(Z.name),
|
|
38398
38424
|
buttonRender: { name: "toolBarTitle" }
|
|
38399
38425
|
});
|
|
38400
38426
|
let re = 0;
|
|
@@ -38556,7 +38582,12 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38556
38582
|
sortable: oe[se].allowSort,
|
|
38557
38583
|
events: pe,
|
|
38558
38584
|
colType: "showInForm",
|
|
38559
|
-
fwidth: oe[se].width
|
|
38585
|
+
fwidth: oe[se].width,
|
|
38586
|
+
// 表单项宽度
|
|
38587
|
+
width: oe[se].gridWidth,
|
|
38588
|
+
// 表格列宽
|
|
38589
|
+
canScan: oe[se].canScan
|
|
38590
|
+
// 支持扫码
|
|
38560
38591
|
};
|
|
38561
38592
|
switch (oe[se].format && (fe.formatter = formatter, fe.type = "html"), fe.id = oe[se].id, oe[se].dataType) {
|
|
38562
38593
|
case "ID":
|
|
@@ -38644,7 +38675,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38644
38675
|
options: ue.options,
|
|
38645
38676
|
events: fe.events
|
|
38646
38677
|
};
|
|
38647
|
-
ue.events = fe.events, fe.editRender = ue, fe.itemRender = me,
|
|
38678
|
+
ue.events = fe.events, fe.editRender = ue, fe.itemRender = me, fe.minWidth = 100, oe[se].comments && (fe.titlePrefix = {
|
|
38648
38679
|
content: oe[se].comments,
|
|
38649
38680
|
enterable: !0
|
|
38650
38681
|
}), ae.push(fe), oe[se].notNull && (le[ce] || (le[ce] = []), le[ce].push({
|
|
@@ -38764,7 +38795,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38764
38795
|
}, 3 * 1e3);
|
|
38765
38796
|
}
|
|
38766
38797
|
return 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), (Q, H) => {
|
|
38767
|
-
const G = resolveComponent("el-
|
|
38798
|
+
const G = resolveComponent("el-space"), X = resolveComponent("el-tab-pane"), Z = resolveComponent("el-tabs"), K = resolveComponent("el-scrollbar"), ee = resolveComponent("el-checkbox"), te = resolveComponent("arrow-back"), ne = resolveComponent("el-icon"), re = resolveComponent("el-button"), oe = resolveComponent("arrow-forward"), ae = resolveComponent("el-button-group"), le = resolveComponent("save"), se = resolveComponent("close"), ce = resolveComponent("el-dialog"), de = resolveComponent("window-index", !0);
|
|
38768
38799
|
return openBlock(), createElementBlock("div", _hoisted_1$kR, [
|
|
38769
38800
|
(openBlock(), createBlock(unref(WindowLayout), {
|
|
38770
38801
|
ref_key: "layout",
|
|
@@ -38800,68 +38831,15 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38800
38831
|
"before-close": beforeHideMethod
|
|
38801
38832
|
}, createSlots({
|
|
38802
38833
|
header: withCtx(() => [
|
|
38803
|
-
createVNode(
|
|
38834
|
+
createVNode(G, null, {
|
|
38804
38835
|
default: withCtx(() => [
|
|
38805
|
-
createElementVNode("span", null, toDisplayString(unref($T)(unref(formConfig).windowTitle)), 1)
|
|
38806
|
-
unref(formConfig).openType === "edit" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
38807
|
-
createVNode(G, {
|
|
38808
|
-
modelValue: unref(isAutoSave),
|
|
38809
|
-
"onUpdate:modelValue": H[1] || (H[1] = (he) => isRef(isAutoSave) ? isAutoSave.value = he : isAutoSave = he),
|
|
38810
|
-
style: { "margin-left": "30px" },
|
|
38811
|
-
label: unref($T)("自动保存")
|
|
38812
|
-
}, null, 8, ["modelValue", "label"]),
|
|
38813
|
-
createVNode(te, null, {
|
|
38814
|
-
default: withCtx(() => [
|
|
38815
|
-
createVNode(K, {
|
|
38816
|
-
size: "small",
|
|
38817
|
-
"auto-insert-space": !0,
|
|
38818
|
-
onClick: withModifiers(editPreData, ["stop"]),
|
|
38819
|
-
onDblclick: H[2] || (H[2] = withModifiers(() => {
|
|
38820
|
-
}, ["stop"]))
|
|
38821
|
-
}, {
|
|
38822
|
-
icon: withCtx(() => [
|
|
38823
|
-
createVNode(Z, {
|
|
38824
|
-
size: "15",
|
|
38825
|
-
style: { verticalAlign: "middle" }
|
|
38826
|
-
}, {
|
|
38827
|
-
default: withCtx(() => [
|
|
38828
|
-
createVNode(X)
|
|
38829
|
-
]),
|
|
38830
|
-
_: 1
|
|
38831
|
-
})
|
|
38832
|
-
]),
|
|
38833
|
-
_: 1
|
|
38834
|
-
}, 8, ["onClick"]),
|
|
38835
|
-
createVNode(K, {
|
|
38836
|
-
size: "small",
|
|
38837
|
-
"auto-insert-space": !0,
|
|
38838
|
-
onClick: withModifiers(editAfterData, ["stop"]),
|
|
38839
|
-
onDblclick: H[3] || (H[3] = withModifiers(() => {
|
|
38840
|
-
}, ["stop"]))
|
|
38841
|
-
}, {
|
|
38842
|
-
icon: withCtx(() => [
|
|
38843
|
-
createVNode(Z, {
|
|
38844
|
-
size: "15",
|
|
38845
|
-
style: { verticalAlign: "middle" }
|
|
38846
|
-
}, {
|
|
38847
|
-
default: withCtx(() => [
|
|
38848
|
-
createVNode(ee)
|
|
38849
|
-
]),
|
|
38850
|
-
_: 1
|
|
38851
|
-
})
|
|
38852
|
-
]),
|
|
38853
|
-
_: 1
|
|
38854
|
-
}, 8, ["onClick"])
|
|
38855
|
-
]),
|
|
38856
|
-
_: 1
|
|
38857
|
-
})
|
|
38858
|
-
], 64)) : createCommentVNode("", !0)
|
|
38836
|
+
createElementVNode("span", null, toDisplayString(unref($T)(unref(formConfig).windowTitle)), 1)
|
|
38859
38837
|
]),
|
|
38860
38838
|
_: 1
|
|
38861
38839
|
})
|
|
38862
38840
|
]),
|
|
38863
38841
|
default: withCtx(() => [
|
|
38864
|
-
createVNode(
|
|
38842
|
+
createVNode(K, {
|
|
38865
38843
|
height: getOffsetHeight(),
|
|
38866
38844
|
always: "",
|
|
38867
38845
|
"align-center": "",
|
|
@@ -38873,18 +38851,18 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38873
38851
|
default: withCtx(() => [
|
|
38874
38852
|
(openBlock(), createBlock(unref(_sfc_main$5), {
|
|
38875
38853
|
"form-config": unref(formConfig),
|
|
38876
|
-
"onUpdate:formConfig": H[
|
|
38854
|
+
"onUpdate:formConfig": H[1] || (H[1] = (he) => isRef(formConfig) ? formConfig.value = he : formConfig = he),
|
|
38877
38855
|
ref_key: "xForm",
|
|
38878
38856
|
ref: xForm,
|
|
38879
38857
|
key: unref(formConfig).formData[unref(formConfig).rowId],
|
|
38880
38858
|
onSaveLoadingChange: saveLoadingChange,
|
|
38881
|
-
onGridReload: H[
|
|
38859
|
+
onGridReload: H[2] || (H[2] = () => unref(formConfig)._reload())
|
|
38882
38860
|
}, null, 8, ["form-config"])),
|
|
38883
38861
|
unref(formConfig).params.addChildData && unref(formConfig).childForm ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
38884
38862
|
createElementVNode("p", _hoisted_2$kQ, toDisplayString(unref($T)("[新增] 关联子表数据")), 1),
|
|
38885
|
-
createVNode(
|
|
38863
|
+
createVNode(Z, { class: "child-tab" }, {
|
|
38886
38864
|
default: withCtx(() => [
|
|
38887
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(formConfig).childForm), (he, ue) => (openBlock(), createBlock(
|
|
38865
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(formConfig).childForm), (he, ue) => (openBlock(), createBlock(X, {
|
|
38888
38866
|
class: "child-tab-pane",
|
|
38889
38867
|
key: he.id,
|
|
38890
38868
|
tab: unref($T)(he.name),
|
|
@@ -38913,9 +38891,64 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38913
38891
|
unref(formConfig).openType === "edit" || unref(formConfig).openType === "new" ? {
|
|
38914
38892
|
name: "footer",
|
|
38915
38893
|
fn: withCtx(() => [
|
|
38916
|
-
createVNode(
|
|
38894
|
+
createVNode(G, null, {
|
|
38917
38895
|
default: withCtx(() => [
|
|
38918
|
-
|
|
38896
|
+
unref(formConfig).openType === "edit" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
38897
|
+
createVNode(ee, {
|
|
38898
|
+
modelValue: unref(isAutoSave),
|
|
38899
|
+
"onUpdate:modelValue": H[3] || (H[3] = (he) => isRef(isAutoSave) ? isAutoSave.value = he : isAutoSave = he),
|
|
38900
|
+
style: { "margin-left": "30px" },
|
|
38901
|
+
label: unref($T)("自动保存")
|
|
38902
|
+
}, null, 8, ["modelValue", "label"]),
|
|
38903
|
+
createVNode(ae, null, {
|
|
38904
|
+
default: withCtx(() => [
|
|
38905
|
+
createVNode(re, {
|
|
38906
|
+
title: "前一个",
|
|
38907
|
+
size: "default",
|
|
38908
|
+
"auto-insert-space": !0,
|
|
38909
|
+
onClick: withModifiers(editPreData, ["stop"]),
|
|
38910
|
+
onDblclick: H[4] || (H[4] = withModifiers(() => {
|
|
38911
|
+
}, ["stop"]))
|
|
38912
|
+
}, {
|
|
38913
|
+
icon: withCtx(() => [
|
|
38914
|
+
createVNode(ne, {
|
|
38915
|
+
size: "15",
|
|
38916
|
+
style: { verticalAlign: "middle" }
|
|
38917
|
+
}, {
|
|
38918
|
+
default: withCtx(() => [
|
|
38919
|
+
createVNode(te)
|
|
38920
|
+
]),
|
|
38921
|
+
_: 1
|
|
38922
|
+
})
|
|
38923
|
+
]),
|
|
38924
|
+
_: 1
|
|
38925
|
+
}, 8, ["onClick"]),
|
|
38926
|
+
createVNode(re, {
|
|
38927
|
+
title: "后一个",
|
|
38928
|
+
size: "default",
|
|
38929
|
+
"auto-insert-space": !0,
|
|
38930
|
+
onClick: withModifiers(editAfterData, ["stop"]),
|
|
38931
|
+
onDblclick: H[5] || (H[5] = withModifiers(() => {
|
|
38932
|
+
}, ["stop"]))
|
|
38933
|
+
}, {
|
|
38934
|
+
icon: withCtx(() => [
|
|
38935
|
+
createVNode(ne, {
|
|
38936
|
+
size: "15",
|
|
38937
|
+
style: { verticalAlign: "middle" }
|
|
38938
|
+
}, {
|
|
38939
|
+
default: withCtx(() => [
|
|
38940
|
+
createVNode(oe)
|
|
38941
|
+
]),
|
|
38942
|
+
_: 1
|
|
38943
|
+
})
|
|
38944
|
+
]),
|
|
38945
|
+
_: 1
|
|
38946
|
+
}, 8, ["onClick"])
|
|
38947
|
+
]),
|
|
38948
|
+
_: 1
|
|
38949
|
+
})
|
|
38950
|
+
], 64)) : createCommentVNode("", !0),
|
|
38951
|
+
createVNode(re, {
|
|
38919
38952
|
htmlType: "submit",
|
|
38920
38953
|
type: "primary",
|
|
38921
38954
|
"auto-insert-space": !0,
|
|
@@ -38923,7 +38956,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38923
38956
|
onClick: saveData
|
|
38924
38957
|
}, {
|
|
38925
38958
|
icon: withCtx(() => [
|
|
38926
|
-
createVNode(
|
|
38959
|
+
createVNode(ne, {
|
|
38927
38960
|
size: "15",
|
|
38928
38961
|
style: { verticalAlign: "middle" }
|
|
38929
38962
|
}, {
|
|
@@ -38938,12 +38971,12 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
38938
38971
|
]),
|
|
38939
38972
|
_: 1
|
|
38940
38973
|
}, 8, ["loading"]),
|
|
38941
|
-
createVNode(
|
|
38974
|
+
createVNode(re, {
|
|
38942
38975
|
"auto-insert-space": !0,
|
|
38943
38976
|
onClick: closeEditWin
|
|
38944
38977
|
}, {
|
|
38945
38978
|
icon: withCtx(() => [
|
|
38946
|
-
createVNode(
|
|
38979
|
+
createVNode(ne, {
|
|
38947
38980
|
size: "15",
|
|
38948
38981
|
style: { verticalAlign: "middle" }
|
|
38949
38982
|
}, {
|
|
@@ -39006,7 +39039,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
39006
39039
|
unref(preViewFooterShow) ? {
|
|
39007
39040
|
name: "footer",
|
|
39008
39041
|
fn: withCtx(() => [
|
|
39009
|
-
createVNode(
|
|
39042
|
+
createVNode(re, {
|
|
39010
39043
|
nativeType: "submit",
|
|
39011
39044
|
type: "primary",
|
|
39012
39045
|
onClick: preViewSubmit
|
|
@@ -39016,7 +39049,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
39016
39049
|
]),
|
|
39017
39050
|
_: 1
|
|
39018
39051
|
}),
|
|
39019
|
-
createVNode(
|
|
39052
|
+
createVNode(re, { onClick: closePreModal }, {
|
|
39020
39053
|
default: withCtx(() => [
|
|
39021
39054
|
createTextVNode(toDisplayString(unref($T)("取消")), 1)
|
|
39022
39055
|
]),
|
|
@@ -39038,7 +39071,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withSco
|
|
|
39038
39071
|
]);
|
|
39039
39072
|
};
|
|
39040
39073
|
}
|
|
39041
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
39074
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-603c6d9e"]]);
|
|
39042
39075
|
WindowIndex.name = "slw-window-index";
|
|
39043
39076
|
WindowIndex.install = (Q) => {
|
|
39044
39077
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -105156,144 +105189,144 @@ const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports), decry
|
|
|
105156
105189
|
function _isSlot(Q) {
|
|
105157
105190
|
return typeof Q == "function" || Object.prototype.toString.call(Q) === "[object Object]" && !isVNode(Q);
|
|
105158
105191
|
}
|
|
105159
|
-
function initVxeRenderer(Q, H) {
|
|
105160
|
-
const
|
|
105192
|
+
function initVxeRenderer(Q, H, G) {
|
|
105193
|
+
const X = (oe, ae) => {
|
|
105161
105194
|
const {
|
|
105162
|
-
attrs:
|
|
105163
|
-
props:
|
|
105164
|
-
events:
|
|
105165
|
-
} =
|
|
105166
|
-
button:
|
|
105167
|
-
} =
|
|
105168
|
-
delete
|
|
105169
|
-
const
|
|
105195
|
+
attrs: le,
|
|
105196
|
+
props: se,
|
|
105197
|
+
events: ce
|
|
105198
|
+
} = oe, {
|
|
105199
|
+
button: de
|
|
105200
|
+
} = ae, he = se.iconComponent;
|
|
105201
|
+
delete se.icon;
|
|
105202
|
+
const ue = (de == null ? void 0 : de.name) || se.content, pe = " " + (/^[\u4e00-\u9fa5]{2}$/.test(ue) ? ue.split("").join(" ") : ue);
|
|
105170
105203
|
return createVNode(resolveComponent("vxe-button"), mergeProps$1({
|
|
105171
|
-
...
|
|
105172
|
-
...
|
|
105204
|
+
...le,
|
|
105205
|
+
...se
|
|
105173
105206
|
}, {
|
|
105174
|
-
onClick: () =>
|
|
105207
|
+
onClick: () => ce == null ? void 0 : ce.click(de)
|
|
105175
105208
|
}), {
|
|
105176
105209
|
default: () => createVNode("span", {
|
|
105177
105210
|
style: {
|
|
105178
105211
|
verticalAlign: "middle"
|
|
105179
105212
|
}
|
|
105180
|
-
}, [
|
|
105181
|
-
icon: () =>
|
|
105213
|
+
}, [G(pe)]),
|
|
105214
|
+
icon: () => he && [h$2(resolveComponent("Icon"), {
|
|
105182
105215
|
size: 15,
|
|
105183
105216
|
style: {
|
|
105184
105217
|
verticalAlign: "middle"
|
|
105185
105218
|
}
|
|
105186
|
-
}, () => h$2(resolveComponent(
|
|
105219
|
+
}, () => h$2(resolveComponent(he)))]
|
|
105187
105220
|
});
|
|
105188
|
-
},
|
|
105221
|
+
}, Z = (oe, ae) => {
|
|
105189
105222
|
const {
|
|
105190
|
-
attrs:
|
|
105191
|
-
props:
|
|
105192
|
-
events:
|
|
105193
|
-
} =
|
|
105194
|
-
button:
|
|
105195
|
-
} =
|
|
105196
|
-
return delete
|
|
105197
|
-
...
|
|
105198
|
-
...
|
|
105223
|
+
attrs: le,
|
|
105224
|
+
props: se,
|
|
105225
|
+
events: ce
|
|
105226
|
+
} = oe, {
|
|
105227
|
+
button: de
|
|
105228
|
+
} = ae, he = se.iconComponent;
|
|
105229
|
+
return delete se.icon, createVNode(resolveComponent("a-button"), mergeProps$1({
|
|
105230
|
+
...le,
|
|
105231
|
+
...se
|
|
105199
105232
|
}, {
|
|
105200
|
-
onClick: () =>
|
|
105233
|
+
onClick: () => ce == null ? void 0 : ce.click(de)
|
|
105201
105234
|
}), {
|
|
105202
|
-
default: () => (
|
|
105203
|
-
icon: () =>
|
|
105235
|
+
default: () => (de == null ? void 0 : de.name) || se.content,
|
|
105236
|
+
icon: () => he && h$2(resolveComponent("AIcon"), {
|
|
105204
105237
|
size: 15,
|
|
105205
105238
|
viewBox: "",
|
|
105206
|
-
component: h$2(resolveComponent(
|
|
105239
|
+
component: h$2(resolveComponent(he), {
|
|
105207
105240
|
width: 15
|
|
105208
105241
|
})
|
|
105209
105242
|
})
|
|
105210
105243
|
});
|
|
105211
|
-
},
|
|
105244
|
+
}, K = (oe, ae) => {
|
|
105212
105245
|
const {
|
|
105213
|
-
attrs:
|
|
105214
|
-
props:
|
|
105215
|
-
events:
|
|
105216
|
-
} =
|
|
105217
|
-
button:
|
|
105218
|
-
} =
|
|
105219
|
-
delete
|
|
105220
|
-
const
|
|
105221
|
-
default: () => (
|
|
105246
|
+
attrs: le,
|
|
105247
|
+
props: se,
|
|
105248
|
+
events: ce
|
|
105249
|
+
} = oe, {
|
|
105250
|
+
button: de
|
|
105251
|
+
} = ae, he = se.iconComponent;
|
|
105252
|
+
delete se.icon;
|
|
105253
|
+
const ue = {
|
|
105254
|
+
default: () => G((de == null ? void 0 : de.name) || se.content)
|
|
105222
105255
|
};
|
|
105223
|
-
return
|
|
105256
|
+
return he && (ue.icon = () => he && h$2(resolveComponent("ElIcon"), {
|
|
105224
105257
|
size: 15
|
|
105225
|
-
}, () => h$2(resolveComponent(
|
|
105226
|
-
...
|
|
105227
|
-
...
|
|
105258
|
+
}, () => h$2(resolveComponent(he)))), createVNode(resolveComponent("el-button"), mergeProps$1({
|
|
105259
|
+
...le,
|
|
105260
|
+
...se
|
|
105228
105261
|
}, {
|
|
105229
|
-
onClick: () =>
|
|
105230
|
-
}), _isSlot(
|
|
105231
|
-
default: () => [
|
|
105262
|
+
onClick: () => ce == null ? void 0 : ce.click(de)
|
|
105263
|
+
}), _isSlot(ue) ? ue : {
|
|
105264
|
+
default: () => [ue]
|
|
105232
105265
|
});
|
|
105233
|
-
},
|
|
105266
|
+
}, ee = (oe, ae) => {
|
|
105234
105267
|
const {
|
|
105235
|
-
data:
|
|
105236
|
-
field:
|
|
105237
|
-
} =
|
|
105238
|
-
props:
|
|
105239
|
-
attrs:
|
|
105240
|
-
} =
|
|
105241
|
-
return
|
|
105242
|
-
modelValue: [
|
|
105268
|
+
data: le,
|
|
105269
|
+
field: se
|
|
105270
|
+
} = ae, {
|
|
105271
|
+
props: ce,
|
|
105272
|
+
attrs: de
|
|
105273
|
+
} = oe;
|
|
105274
|
+
return ce.startPlaceholder = ce.placeholder, ce.endPlaceholder = ce.placeholder, createVNode(resolveComponent("el-date-picker"), mergeProps$1({
|
|
105275
|
+
modelValue: [le[se], le["end_" + se]]
|
|
105243
105276
|
}, {
|
|
105244
|
-
...
|
|
105245
|
-
...
|
|
105277
|
+
...de,
|
|
105278
|
+
...ce
|
|
105246
105279
|
}, {
|
|
105247
|
-
"onUpdate:modelValue": (
|
|
105248
|
-
var
|
|
105249
|
-
(
|
|
105280
|
+
"onUpdate:modelValue": (he) => {
|
|
105281
|
+
var ue, pe, fe, me;
|
|
105282
|
+
(he == null ? void 0 : he.length) === 2 ? (le[se] = he[0], le["end_" + se] = he[1]) : (le[se] = void 0, le["end_" + se] = void 0), (me = (pe = (ue = ae == null ? void 0 : ae.item) == null ? void 0 : ue.itemRender) == null ? void 0 : (fe = pe.events).change) == null || me.call(fe);
|
|
105250
105283
|
}
|
|
105251
105284
|
}), null);
|
|
105252
|
-
},
|
|
105285
|
+
}, te = (oe, ae, le) => {
|
|
105253
105286
|
const {
|
|
105254
|
-
props:
|
|
105255
|
-
attrs:
|
|
105256
|
-
} =
|
|
105287
|
+
props: se,
|
|
105288
|
+
attrs: ce
|
|
105289
|
+
} = oe;
|
|
105257
105290
|
return createVNode(resolveComponent("el-color-picker"), mergeProps$1({
|
|
105258
|
-
modelValue:
|
|
105259
|
-
"onUpdate:modelValue": (
|
|
105260
|
-
}, {
|
|
105261
|
-
...se,
|
|
105262
|
-
...le
|
|
105263
|
-
}), null);
|
|
105264
|
-
}, te = (re, oe, ae) => {
|
|
105265
|
-
const {
|
|
105266
|
-
props: le,
|
|
105267
|
-
attrs: se
|
|
105268
|
-
} = re;
|
|
105269
|
-
return le.props = {
|
|
105270
|
-
label: "title"
|
|
105271
|
-
}, le.data = le.treeData, createVNode(resolveComponent("el-tree-select"), mergeProps$1({
|
|
105272
|
-
modelValue: oe[ae],
|
|
105273
|
-
"onUpdate:modelValue": (ce) => oe[ae] = ce
|
|
105291
|
+
modelValue: ae[le],
|
|
105292
|
+
"onUpdate:modelValue": (de) => ae[le] = de
|
|
105274
105293
|
}, {
|
|
105275
|
-
...
|
|
105276
|
-
...
|
|
105294
|
+
...ce,
|
|
105295
|
+
...se
|
|
105277
105296
|
}), null);
|
|
105278
|
-
}, ne = (
|
|
105297
|
+
}, ne = (oe, ae, le) => {
|
|
105279
105298
|
const {
|
|
105280
|
-
data: ae,
|
|
105281
|
-
field: le
|
|
105282
|
-
} = oe, {
|
|
105283
105299
|
props: se,
|
|
105284
105300
|
attrs: ce
|
|
105285
|
-
} =
|
|
105286
|
-
return
|
|
105301
|
+
} = oe;
|
|
105302
|
+
return se.props = {
|
|
105303
|
+
label: "title"
|
|
105304
|
+
}, se.data = se.treeData, createVNode(resolveComponent("el-tree-select"), mergeProps$1({
|
|
105287
105305
|
modelValue: ae[le],
|
|
105288
105306
|
"onUpdate:modelValue": (de) => ae[le] = de
|
|
105289
|
-
},
|
|
105307
|
+
}, {
|
|
105308
|
+
...ce,
|
|
105309
|
+
...se
|
|
105310
|
+
}), null);
|
|
105311
|
+
}, re = (oe, ae) => {
|
|
105312
|
+
const {
|
|
105313
|
+
data: le,
|
|
105314
|
+
field: se
|
|
105315
|
+
} = ae, {
|
|
105316
|
+
props: ce,
|
|
105317
|
+
attrs: de
|
|
105318
|
+
} = oe;
|
|
105319
|
+
return console.log(ce, de), [createVNode("div", de, [createVNode(resolveComponent("vxe-input"), mergeProps$1({
|
|
105320
|
+
modelValue: le[se],
|
|
105321
|
+
"onUpdate:modelValue": (he) => le[se] = he
|
|
105322
|
+
}, ce, {
|
|
105290
105323
|
style: {
|
|
105291
105324
|
width: "48%"
|
|
105292
105325
|
}
|
|
105293
105326
|
}), null), createVNode("span", null, [createTextVNode("-")]), createVNode(resolveComponent("vxe-input"), mergeProps$1({
|
|
105294
|
-
modelValue:
|
|
105295
|
-
"onUpdate:modelValue": (
|
|
105296
|
-
},
|
|
105327
|
+
modelValue: le["end_" + se],
|
|
105328
|
+
"onUpdate:modelValue": (he) => le["end_" + se] = he
|
|
105329
|
+
}, ce, {
|
|
105297
105330
|
style: {
|
|
105298
105331
|
width: "48%"
|
|
105299
105332
|
}
|
|
@@ -105301,111 +105334,111 @@ function initVxeRenderer(Q, H) {
|
|
|
105301
105334
|
};
|
|
105302
105335
|
Q.renderer.mixin({
|
|
105303
105336
|
VxeDateTimeRange: {
|
|
105304
|
-
renderItemContent(
|
|
105305
|
-
return
|
|
105337
|
+
renderItemContent(oe, ae) {
|
|
105338
|
+
return re(oe, ae);
|
|
105306
105339
|
}
|
|
105307
105340
|
},
|
|
105308
105341
|
VxeDateRange: {
|
|
105309
|
-
renderItemContent(
|
|
105310
|
-
return
|
|
105342
|
+
renderItemContent(oe, ae) {
|
|
105343
|
+
return re(oe, ae);
|
|
105311
105344
|
}
|
|
105312
105345
|
},
|
|
105313
105346
|
// 自定义表单渲染器(查询栏中时间范围)
|
|
105314
105347
|
// 自定义工具栏标题
|
|
105315
105348
|
toolBarTitle: {
|
|
105316
|
-
renderToolbarButton(
|
|
105349
|
+
renderToolbarButton(oe, ae) {
|
|
105317
105350
|
const {
|
|
105318
|
-
button:
|
|
105319
|
-
} =
|
|
105351
|
+
button: le
|
|
105352
|
+
} = ae;
|
|
105320
105353
|
return [createVNode("span", {
|
|
105321
105354
|
style: "font-size:18px; font-weight:bold"
|
|
105322
|
-
}, [
|
|
105355
|
+
}, [G(le.name)])];
|
|
105323
105356
|
}
|
|
105324
105357
|
},
|
|
105325
105358
|
unitInput: {
|
|
105326
105359
|
// 项内容模板
|
|
105327
|
-
renderItemContent(
|
|
105360
|
+
renderItemContent(oe, ae) {
|
|
105328
105361
|
const {
|
|
105329
|
-
data:
|
|
105330
|
-
field:
|
|
105331
|
-
} =
|
|
105362
|
+
data: le,
|
|
105363
|
+
field: se
|
|
105364
|
+
} = ae, ce = oe.props || {};
|
|
105332
105365
|
return [createVNode(resolveComponent("vxe-input"), mergeProps$1({
|
|
105333
|
-
modelValue:
|
|
105334
|
-
"onUpdate:modelValue": (
|
|
105335
|
-
},
|
|
105366
|
+
modelValue: le[se],
|
|
105367
|
+
"onUpdate:modelValue": (de) => le[se] = de
|
|
105368
|
+
}, ce, {
|
|
105336
105369
|
style: "width:80%"
|
|
105337
105370
|
}), {
|
|
105338
105371
|
default: () => [createTextVNode("~")]
|
|
105339
|
-
}), createVNode("span", null, [
|
|
105372
|
+
}), createVNode("span", null, [G(ce.unitName)])];
|
|
105340
105373
|
}
|
|
105341
105374
|
},
|
|
105342
105375
|
...H.isAntd() ? {
|
|
105343
105376
|
AButtons: {
|
|
105344
|
-
renderItemContent(
|
|
105377
|
+
renderItemContent(oe, ae) {
|
|
105345
105378
|
const {
|
|
105346
|
-
children:
|
|
105347
|
-
} =
|
|
105348
|
-
if (
|
|
105349
|
-
const
|
|
105350
|
-
return [h$2(resolveComponent(H.getComponentName("$space")), () =>
|
|
105379
|
+
children: le
|
|
105380
|
+
} = oe;
|
|
105381
|
+
if (le) {
|
|
105382
|
+
const se = le.map((ce) => Z(ce, ae));
|
|
105383
|
+
return [h$2(resolveComponent(H.getComponentName("$space")), () => se)];
|
|
105351
105384
|
}
|
|
105352
105385
|
return [];
|
|
105353
105386
|
}
|
|
105354
105387
|
},
|
|
105355
105388
|
AButton: {
|
|
105356
|
-
renderDefault(
|
|
105357
|
-
return
|
|
105389
|
+
renderDefault(oe, ae) {
|
|
105390
|
+
return Z(oe, ae);
|
|
105358
105391
|
},
|
|
105359
|
-
renderToolbarButton(
|
|
105360
|
-
return
|
|
105392
|
+
renderToolbarButton(oe, ae) {
|
|
105393
|
+
return Z(oe, ae);
|
|
105361
105394
|
},
|
|
105362
|
-
renderCell(
|
|
105363
|
-
return
|
|
105395
|
+
renderCell(oe, ae) {
|
|
105396
|
+
return Z(oe, ae);
|
|
105364
105397
|
}
|
|
105365
105398
|
},
|
|
105366
105399
|
ARangePicker: {
|
|
105367
|
-
renderItemContent(
|
|
105400
|
+
renderItemContent(oe, ae) {
|
|
105368
105401
|
const {
|
|
105369
|
-
data:
|
|
105370
|
-
field:
|
|
105371
|
-
} =
|
|
105372
|
-
props:
|
|
105373
|
-
attrs:
|
|
105374
|
-
} =
|
|
105375
|
-
return Array.isArray(
|
|
105376
|
-
value: [
|
|
105402
|
+
data: le,
|
|
105403
|
+
field: se
|
|
105404
|
+
} = ae, {
|
|
105405
|
+
props: ce,
|
|
105406
|
+
attrs: de
|
|
105407
|
+
} = oe;
|
|
105408
|
+
return Array.isArray(ce.placeholder) || (ce.placeholder = [ce.placeholder, ce.placeholder]), ce.showTime ? ce.valueFormat = H.getDateTimeFormatter() : ce.valueFormat = H.getDateFormatter(), createVNode(resolveComponent("a-range-picker"), mergeProps$1({
|
|
105409
|
+
value: [le[se], le["end_" + se]]
|
|
105377
105410
|
}, {
|
|
105378
|
-
...
|
|
105379
|
-
...
|
|
105411
|
+
...de,
|
|
105412
|
+
...ce
|
|
105380
105413
|
}, {
|
|
105381
|
-
"onUpdate:value": (
|
|
105382
|
-
var
|
|
105383
|
-
console.log(
|
|
105414
|
+
"onUpdate:value": (he) => {
|
|
105415
|
+
var ue, pe, fe, me;
|
|
105416
|
+
console.log(he), (he == null ? void 0 : he.length) === 2 ? (le[se] = he[0], le["end_" + se] = he[1]) : (le[se] = void 0, le["end_" + se] = void 0), (me = (fe = (pe = (ue = ae == null ? void 0 : ae.item) == null ? void 0 : ue.itemRender) == null ? void 0 : pe.events) == null ? void 0 : fe.change) == null || me.call(fe);
|
|
105384
105417
|
}
|
|
105385
105418
|
}), null);
|
|
105386
105419
|
}
|
|
105387
105420
|
},
|
|
105388
105421
|
ADatePicker: {
|
|
105389
|
-
renderDefault(
|
|
105390
|
-
return
|
|
105422
|
+
renderDefault(oe, ae) {
|
|
105423
|
+
return ae.row[ae.column.field];
|
|
105391
105424
|
},
|
|
105392
|
-
renderCell(
|
|
105393
|
-
return
|
|
105425
|
+
renderCell(oe, ae) {
|
|
105426
|
+
return ae.row[ae.column.field];
|
|
105394
105427
|
},
|
|
105395
|
-
renderItemContent(
|
|
105428
|
+
renderItemContent(oe, ae) {
|
|
105396
105429
|
const {
|
|
105397
|
-
data:
|
|
105398
|
-
field:
|
|
105399
|
-
} =
|
|
105400
|
-
props:
|
|
105401
|
-
attrs:
|
|
105402
|
-
} =
|
|
105403
|
-
return
|
|
105404
|
-
value:
|
|
105405
|
-
"onUpdate:value": (
|
|
105430
|
+
data: le,
|
|
105431
|
+
field: se
|
|
105432
|
+
} = ae, {
|
|
105433
|
+
props: ce,
|
|
105434
|
+
attrs: de
|
|
105435
|
+
} = oe;
|
|
105436
|
+
return ce.showTime ? ce.valueFormat = H.getDateTimeFormatter() : ce.valueFormat = H.getDateFormatter(), createVNode(resolveComponent("a-date-picker"), mergeProps$1({
|
|
105437
|
+
value: le[se],
|
|
105438
|
+
"onUpdate:value": (he) => le[se] = he
|
|
105406
105439
|
}, {
|
|
105407
|
-
...
|
|
105408
|
-
...
|
|
105440
|
+
...de,
|
|
105441
|
+
...ce
|
|
105409
105442
|
}, {
|
|
105410
105443
|
style: {
|
|
105411
105444
|
width: "100%"
|
|
@@ -105416,68 +105449,68 @@ function initVxeRenderer(Q, H) {
|
|
|
105416
105449
|
} : {},
|
|
105417
105450
|
...H.isElementPlus() ? {
|
|
105418
105451
|
ElButton: {
|
|
105419
|
-
renderToolbarButton(
|
|
105420
|
-
return
|
|
105452
|
+
renderToolbarButton(oe, ae) {
|
|
105453
|
+
return K(oe, ae);
|
|
105421
105454
|
}
|
|
105422
105455
|
},
|
|
105423
105456
|
ElButtons: {
|
|
105424
|
-
renderItemContent(
|
|
105457
|
+
renderItemContent(oe, ae) {
|
|
105425
105458
|
const {
|
|
105426
|
-
children:
|
|
105427
|
-
} =
|
|
105428
|
-
return
|
|
105459
|
+
children: le
|
|
105460
|
+
} = oe;
|
|
105461
|
+
return le ? le.map((se) => K(se, ae)) : [];
|
|
105429
105462
|
}
|
|
105430
105463
|
},
|
|
105431
105464
|
ElDateRangePicker: {
|
|
105432
|
-
renderItemContent(
|
|
105433
|
-
return
|
|
105465
|
+
renderItemContent(oe, ae) {
|
|
105466
|
+
return ee(oe, ae);
|
|
105434
105467
|
}
|
|
105435
105468
|
},
|
|
105436
105469
|
ElDateTimeRangePicker: {
|
|
105437
|
-
renderItemContent(
|
|
105438
|
-
return
|
|
105470
|
+
renderItemContent(oe, ae) {
|
|
105471
|
+
return ee(oe, ae);
|
|
105439
105472
|
}
|
|
105440
105473
|
},
|
|
105441
105474
|
ElDatePicker: {
|
|
105442
|
-
renderCell(
|
|
105443
|
-
return
|
|
105475
|
+
renderCell(oe, ae) {
|
|
105476
|
+
return ae.row[ae.column.field];
|
|
105444
105477
|
}
|
|
105445
105478
|
},
|
|
105446
105479
|
ElColorPicker: {
|
|
105447
|
-
renderItemContent(
|
|
105448
|
-
return
|
|
105480
|
+
renderItemContent(oe, ae) {
|
|
105481
|
+
return te(oe, ae.data, ae.field);
|
|
105449
105482
|
},
|
|
105450
|
-
renderEdit(
|
|
105451
|
-
return
|
|
105483
|
+
renderEdit(oe, ae) {
|
|
105484
|
+
return te(oe, ae.row, ae.column.field);
|
|
105452
105485
|
},
|
|
105453
|
-
renderCell(
|
|
105454
|
-
return
|
|
105486
|
+
renderCell(oe, ae) {
|
|
105487
|
+
return ae.row[ae.column.field];
|
|
105455
105488
|
}
|
|
105456
105489
|
},
|
|
105457
105490
|
ElTreeSelect: {
|
|
105458
|
-
renderItemContent(
|
|
105459
|
-
return
|
|
105491
|
+
renderItemContent(oe, ae) {
|
|
105492
|
+
return ne(oe, ae.data, ae.field);
|
|
105460
105493
|
},
|
|
105461
|
-
renderEdit(
|
|
105462
|
-
return
|
|
105494
|
+
renderEdit(oe, ae) {
|
|
105495
|
+
return ne(oe, ae.row, ae.column.field);
|
|
105463
105496
|
},
|
|
105464
|
-
renderCell(
|
|
105465
|
-
return
|
|
105497
|
+
renderCell(oe, ae) {
|
|
105498
|
+
return ae.row[ae.column.field];
|
|
105466
105499
|
}
|
|
105467
105500
|
}
|
|
105468
105501
|
} : {},
|
|
105469
105502
|
...H.isDefault() ? {
|
|
105470
105503
|
$buttons: {
|
|
105471
|
-
renderItemContent(
|
|
105504
|
+
renderItemContent(oe, ae) {
|
|
105472
105505
|
const {
|
|
105473
|
-
children:
|
|
105474
|
-
} =
|
|
105475
|
-
return
|
|
105506
|
+
children: le
|
|
105507
|
+
} = oe;
|
|
105508
|
+
return le ? le.map((se) => X(se, ae)) : [];
|
|
105476
105509
|
}
|
|
105477
105510
|
},
|
|
105478
105511
|
VxeButton: {
|
|
105479
|
-
renderToolbarButton(
|
|
105480
|
-
return
|
|
105512
|
+
renderToolbarButton(oe, ae) {
|
|
105513
|
+
return X(oe, ae);
|
|
105481
105514
|
}
|
|
105482
105515
|
}
|
|
105483
105516
|
} : {}
|
|
@@ -121748,29 +121781,31 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
121748
121781
|
componentsPath: "/src/view",
|
|
121749
121782
|
customI18n: !1
|
|
121750
121783
|
}) => {
|
|
121751
|
-
var
|
|
121752
|
-
components.forEach((
|
|
121753
|
-
Q.use(
|
|
121754
|
-
}), (
|
|
121755
|
-
Q.use(
|
|
121756
|
-
}), (
|
|
121757
|
-
VXETableExport.use(
|
|
121784
|
+
var Z, K;
|
|
121785
|
+
components.forEach((ee) => {
|
|
121786
|
+
Q.use(ee);
|
|
121787
|
+
}), (Z = H == null ? void 0 : H.uis) != null && Z.length && H.uis.forEach((ee) => {
|
|
121788
|
+
Q.use(ee);
|
|
121789
|
+
}), (K = H == null ? void 0 : H.plugins) != null && K.length && H.plugins.forEach((ee) => {
|
|
121790
|
+
VXETableExport.use(ee);
|
|
121758
121791
|
});
|
|
121759
121792
|
const G = new ComponentMapping((H == null ? void 0 : H.ui) || "Default");
|
|
121760
|
-
Q.component(Icon$2.name, Icon$2), Q.component("AIcon", Icon$1), G.isDefault() && (Q.component(Tabs.name, Tabs), Q.component(TabPane.name, TabPane), Q.component(Upload.name, Upload), Q.component(TreeSelect$1.name, TreeSelect$1)), Object.keys(icons).forEach((
|
|
121761
|
-
Q.component(
|
|
121762
|
-
}), Q.config.globalProperties.axios = (H == null ? void 0 : H.axios) || axios
|
|
121763
|
-
|
|
121764
|
-
|
|
121765
|
-
|
|
121766
|
-
|
|
121767
|
-
|
|
121793
|
+
Q.component(Icon$2.name, Icon$2), Q.component("AIcon", Icon$1), G.isDefault() && (Q.component(Tabs.name, Tabs), Q.component(TabPane.name, TabPane), Q.component(Upload.name, Upload), Q.component(TreeSelect$1.name, TreeSelect$1)), Object.keys(icons).forEach((ee) => {
|
|
121794
|
+
Q.component(ee, icons[ee]);
|
|
121795
|
+
}), Q.config.globalProperties.axios = (H == null ? void 0 : H.axios) || axios;
|
|
121796
|
+
let X = null;
|
|
121797
|
+
H.customI18n ? (X = H.customI18n, Q.provide("$t", X), VXETableExport.setup({
|
|
121798
|
+
i18n: (ee, te) => H.customI18n(ee, te),
|
|
121799
|
+
translate(ee, te) {
|
|
121800
|
+
return H.customI18n(ee, te);
|
|
121801
|
+
}
|
|
121802
|
+
})) : (X = (ee) => ee, Q.provide("$t", X)), Q.use(VXETableExport), Q.provide("$componentMapping", G), Q.provide("$axios", Q.config.globalProperties.axios), Q.provide("$qs", qs), Q.provide(
|
|
121768
121803
|
"$crypto",
|
|
121769
121804
|
(H == null ? void 0 : H.crypto) || {
|
|
121770
121805
|
encrypt,
|
|
121771
121806
|
decrypt
|
|
121772
121807
|
}
|
|
121773
|
-
), Q.provide("$base64Encode", (
|
|
121808
|
+
), Q.provide("$base64Encode", (ee) => window.btoa(unescape(encodeURIComponent(ee)))), Q.provide("$base64Decode", (ee) => window.atob(escape(decodeURIComponent(ee)))), Q.provide(
|
|
121774
121809
|
"$httpHeaders",
|
|
121775
121810
|
(H == null ? void 0 : H.httpHeaders) || (() => ({
|
|
121776
121811
|
TOKEN: localStorage.getItem("login-token"),
|
|
@@ -121779,7 +121814,7 @@ const VXETableExport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
121779
121814
|
), Q.provide("$components", H == null ? void 0 : H.components), Q.provide("$componentsPath", (H == null ? void 0 : H.componentsPath) || "/src/view"), Q.provide(
|
|
121780
121815
|
"$message",
|
|
121781
121816
|
Q.config.globalProperties.$message || VXETableExport.modal.message
|
|
121782
|
-
), Q.provide("$modal", VXETableExport.modal), Q.provide("$vxeMessage", VXETableExport.modal.message), Q.provide("$vxeConfirm", VXETableExport.modal.confirm), Q.provide("$vxeOpen", VXETableExport.modal.open), Q.provide("$vxeReadFile", VXETableExport.readFile), initVxeRenderer(VXETableExport, G), initVxeFormater(VXETableExport), initVxeConfig(VXETableExport);
|
|
121817
|
+
), Q.provide("$modal", VXETableExport.modal), Q.provide("$vxeMessage", VXETableExport.modal.message), Q.provide("$vxeConfirm", VXETableExport.modal.confirm), Q.provide("$vxeOpen", VXETableExport.modal.open), Q.provide("$vxeReadFile", VXETableExport.readFile), initVxeRenderer(VXETableExport, G, X), initVxeFormater(VXETableExport), initVxeConfig(VXETableExport);
|
|
121783
121818
|
};
|
|
121784
121819
|
function reConsole() {
|
|
121785
121820
|
if (console !== null) {
|