super-page-runtime 2.3.18-tmp2 → 2.3.18-tmp3
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/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +49 -48
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -12
- package/dist/es/components/runtime/utils/charts/chart-util.js +58 -56
- package/dist/es/components/runtime/utils/events/event-util.js +111 -111
- package/dist/es/components/runtime/utils/events/print-label.js +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +524 -512
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +82 -79
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +86 -85
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -22
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -38
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +90 -87
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -38
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +49 -49
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +6 -6
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +171 -170
- package/dist/es/style.css +76 -76
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isMobileBrowser as e, isPromise as n } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { getAdditionalParamMap as t, standardEvents as
|
|
2
|
+
import { getAdditionalParamMap as t, standardEvents as o, judgeDataNumber as i, dealAfterOperate as r } from "./standard-event.js";
|
|
3
3
|
import { validateDataModelFunc as u } from "./validator-util.js";
|
|
4
4
|
import { getComponentRef as c, getComponentRefByCode as l } from "../global-refs.js";
|
|
5
5
|
import { ElMessage as a } from "element-plus";
|
|
@@ -32,7 +32,7 @@ function x(e2, n2) {
|
|
|
32
32
|
for (const t3 in n3) {
|
|
33
33
|
j(n3[t3], e3);
|
|
34
34
|
}
|
|
35
|
-
}(n2, t2), n2.customEvents = t2;
|
|
35
|
+
}(n2, t2), console.log("initPage customEvents", t2), n2.customEvents = t2;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
function k(e2, n2) {
|
|
@@ -70,154 +70,154 @@ function O(e2) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function h(e2, n2, t2,
|
|
74
|
-
return w(e2, n2, t2,
|
|
73
|
+
function h(e2, n2, t2, o2, i2) {
|
|
74
|
+
return w(e2, n2, t2, o2, true, i2, false);
|
|
75
75
|
}
|
|
76
|
-
function E(e2, n2, t2,
|
|
76
|
+
function E(e2, n2, t2, o2, i2) {
|
|
77
77
|
var _a, _b;
|
|
78
|
-
if (
|
|
78
|
+
if (o2 && "change" === o2) {
|
|
79
79
|
const e3 = n2.subTableWatchProps;
|
|
80
80
|
if (e3) for (const n3 in e3) {
|
|
81
|
-
const
|
|
82
|
-
|
|
81
|
+
const o3 = e3[n3], i3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
|
|
82
|
+
o3 && o3.indexOf(i3) >= 0 && g.$emit("_refreshSubTable_" + n3, { propName: i3 });
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
return w(e2, n2, t2,
|
|
85
|
+
return w(e2, n2, t2, o2, true, i2, true);
|
|
86
86
|
}
|
|
87
|
-
function y(e2, n2, t2,
|
|
88
|
-
return E(e2, n2, t2, "afterInit",
|
|
87
|
+
function y(e2, n2, t2, o2) {
|
|
88
|
+
return E(e2, n2, t2, "afterInit", o2);
|
|
89
89
|
}
|
|
90
|
-
function N(e2, n2, t2,
|
|
91
|
-
return w(e2, n2, t2,
|
|
90
|
+
function N(e2, n2, t2, o2, i2) {
|
|
91
|
+
return w(e2, n2, t2, o2, false, i2, false);
|
|
92
92
|
}
|
|
93
|
-
function w(e2, t2,
|
|
94
|
-
const a2 =
|
|
93
|
+
function w(e2, t2, o2, r2, u2, c2, l2) {
|
|
94
|
+
const a2 = o2 && o2.runtime && o2.runtime.events ? o2.runtime.events : [];
|
|
95
95
|
let s2;
|
|
96
96
|
if (l2 || !function(e3) {
|
|
97
97
|
return e3 && S.indexOf(e3) >= 0;
|
|
98
98
|
}(r2)) {
|
|
99
99
|
if (s2 = B(t2, a2, r2), u2) {
|
|
100
|
-
return H(t2,
|
|
100
|
+
return H(t2, o2, s2, R(t2, o2, e2, c2));
|
|
101
101
|
}
|
|
102
102
|
return s2;
|
|
103
103
|
}
|
|
104
|
-
!function(e3, t3,
|
|
105
|
-
const r3 =
|
|
104
|
+
!function(e3, t3, o3) {
|
|
105
|
+
const r3 = i(t3, o3.ids);
|
|
106
106
|
if (!r3) return;
|
|
107
|
-
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
108
|
-
Q(
|
|
109
|
-
if (true ===
|
|
107
|
+
if (void 0 !== e3.canClick && false === e3.canClick) return void console.log("不能重复点击");
|
|
108
|
+
Q(o3).then((i2) => {
|
|
109
|
+
if (true === i2.canExecute) {
|
|
110
110
|
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
111
|
-
const
|
|
111
|
+
const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = B(e3, i3, "beforeValidateForm");
|
|
112
112
|
let u3;
|
|
113
|
-
if (r4 && (u3 = H(e3, t3, r4,
|
|
113
|
+
if (r4 && (u3 = H(e3, t3, r4, o3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
|
|
114
114
|
n(u3) ? u3.then((n2) => {
|
|
115
|
-
n2 && true === n2 ? T(e3, t3,
|
|
115
|
+
n2 && true === n2 ? T(e3, t3, o3) : e3.canClick = true;
|
|
116
116
|
}).catch((n2) => {
|
|
117
|
-
e3.canClick = true;
|
|
118
|
-
}) : T(e3, t3,
|
|
117
|
+
console.log(n2), e3.canClick = true;
|
|
118
|
+
}) : T(e3, t3, o3);
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
|
-
}(t2,
|
|
121
|
+
}(t2, o2, U(e2, t2, o2, c2));
|
|
122
122
|
}
|
|
123
123
|
const S = ["click", "suffixClick", "prefixClick", "menuClick"];
|
|
124
124
|
function P(e2, n2) {
|
|
125
125
|
return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
|
|
126
126
|
}
|
|
127
|
-
function R(e2, n2, t2,
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
130
|
-
return null != t2 && (
|
|
127
|
+
function R(e2, n2, t2, o2) {
|
|
128
|
+
const i2 = {};
|
|
129
|
+
if (o2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
130
|
+
return null != t2 && (i2._value = t2), e2 && (i2.pageContext = e2), n2 && (i2.configureObj = n2), i2;
|
|
131
131
|
}
|
|
132
|
-
function T(e2, t2,
|
|
133
|
-
const
|
|
132
|
+
function T(e2, t2, o2) {
|
|
133
|
+
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
134
134
|
let r2 = true;
|
|
135
|
-
(
|
|
136
|
-
const c2 = z(e2,
|
|
135
|
+
console.log("doValidateForm---eventParams=", o2), (o2 == null ? void 0 : o2.skipValidate) && (r2 = false);
|
|
136
|
+
const c2 = z(e2, i2, "click");
|
|
137
137
|
if (c2) {
|
|
138
138
|
const e3 = function(e4, n2) {
|
|
139
139
|
return e4 && v.includes(n2.eventName);
|
|
140
140
|
}(c2.isStandard, c2.event);
|
|
141
141
|
e3 && (r2 = false);
|
|
142
142
|
}
|
|
143
|
-
u(e2, t2, r2).then((
|
|
144
|
-
if (!
|
|
145
|
-
const r3 = D(e2, t2,
|
|
143
|
+
u(e2, t2, r2).then((i3) => {
|
|
144
|
+
if (!i3) return void (e2.canClick = true);
|
|
145
|
+
const r3 = D(e2, t2, o2);
|
|
146
146
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
147
|
-
n2 ? A(e2, t2, c2,
|
|
147
|
+
n2 ? A(e2, t2, c2, o2) : e2.canClick = true;
|
|
148
148
|
}).catch((n2) => {
|
|
149
149
|
console.error(n2), e2.canClick = true;
|
|
150
|
-
}) : A(e2, t2, c2,
|
|
150
|
+
}) : A(e2, t2, c2, o2) : e2.canClick = true;
|
|
151
151
|
}).catch((n2) => {
|
|
152
152
|
console.error(n2), e2.canClick = true;
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
function F(e2, n2, t2,
|
|
156
|
-
const r2 = U(e2, n2, t2,
|
|
157
|
-
A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [],
|
|
155
|
+
function F(e2, n2, t2, o2, i2) {
|
|
156
|
+
const r2 = U(e2, n2, t2, i2);
|
|
157
|
+
A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
|
|
158
158
|
}
|
|
159
|
-
function U(e2, n2, t2,
|
|
160
|
-
const
|
|
159
|
+
function U(e2, n2, t2, o2) {
|
|
160
|
+
const i2 = n2.code, r2 = n2.version, u2 = P(n2, t2);
|
|
161
161
|
if (u2) {
|
|
162
162
|
const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
|
|
163
|
-
|
|
164
|
-
_(n2) && (
|
|
163
|
+
o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = f(i2, r2, u2);
|
|
164
|
+
_(n2) && (o2.selections = t3, o2.id = l2 && l2.length > 0 ? l2[0] : null, o2.ids = l2);
|
|
165
165
|
const a2 = e3 ? e3.getTableConfigure() : null;
|
|
166
|
-
|
|
166
|
+
o2.tableConfigure = a2;
|
|
167
167
|
}
|
|
168
|
-
return R(n2, t2, e2,
|
|
168
|
+
return R(n2, t2, e2, o2);
|
|
169
169
|
}
|
|
170
170
|
function D(e2, n2, t2) {
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
return
|
|
171
|
+
const o2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
172
|
+
let i2;
|
|
173
|
+
return o2 && (i2 = H(e2, n2, o2, null, t2)), void 0 === i2 || i2;
|
|
174
174
|
}
|
|
175
175
|
function L(e2, n2, t2) {
|
|
176
|
-
const
|
|
177
|
-
g.$emit(
|
|
176
|
+
const o2 = e2.code + "_";
|
|
177
|
+
g.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
|
|
178
178
|
}
|
|
179
179
|
function _(e2, n2) {
|
|
180
180
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
181
181
|
}
|
|
182
|
-
function V(e2, t2,
|
|
183
|
-
const
|
|
182
|
+
function V(e2, t2, o2) {
|
|
183
|
+
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, i2, "afterClick");
|
|
184
184
|
if (r2) {
|
|
185
|
-
const
|
|
186
|
-
n(
|
|
185
|
+
const i3 = H(e2, t2, r2, null, o2);
|
|
186
|
+
n(i3) ? i3.finally(() => {
|
|
187
187
|
e2.canClick = true;
|
|
188
188
|
}) : e2.canClick = true;
|
|
189
189
|
} else e2.canClick = true;
|
|
190
190
|
}
|
|
191
|
-
function q(e2, n2, t2,
|
|
192
|
-
|
|
191
|
+
function q(e2, n2, t2, o2, i2, u2) {
|
|
192
|
+
o2 ? (e2.result = i2, e2.canClick = true) : r(e2, n2, i2, "", u2);
|
|
193
193
|
const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
194
194
|
c2 && H(e2, n2, c2, t2);
|
|
195
195
|
}
|
|
196
|
-
function A(e2, t2,
|
|
196
|
+
function A(e2, t2, o2, i2) {
|
|
197
197
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
198
198
|
if (u2 && u2 instanceof Array) {
|
|
199
199
|
const n2 = function(e3) {
|
|
200
200
|
let n3 = e3 ? e3.row : null;
|
|
201
201
|
n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
|
|
202
202
|
return n3;
|
|
203
|
-
}(
|
|
203
|
+
}(i2), o3 = d(e2, t2, u2, n2);
|
|
204
204
|
let c2, l2 = false;
|
|
205
|
-
|
|
205
|
+
o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = m(t2), r2.props.linkPage = u2);
|
|
206
206
|
}
|
|
207
|
-
u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2,
|
|
208
|
-
const r3 =
|
|
207
|
+
u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2, i2)) : function(e3, t3, o3, i3) {
|
|
208
|
+
const r3 = o3, u3 = _(e3);
|
|
209
209
|
if (r3) {
|
|
210
|
-
const
|
|
210
|
+
const o4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = H(e3, t3, o4, i3);
|
|
211
211
|
if (function(e4, n2) {
|
|
212
212
|
return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName || "saveQueryCharts" === n2.eventName || "addTransactor" === n2.eventName || "removeTransactor" === n2.eventName);
|
|
213
213
|
}(c2, l2)) return void (e3.canClick = true);
|
|
214
214
|
n(a2) ? a2.then((n2) => {
|
|
215
|
-
n2 ? q(e3, t3,
|
|
215
|
+
n2 ? q(e3, t3, i3, c2, n2, u3) : e3.canClick = true;
|
|
216
216
|
}).catch((n2) => {
|
|
217
217
|
console.error(n2), e3.canClick = true;
|
|
218
|
-
}) : q(e3, t3,
|
|
219
|
-
} else q(e3, t3,
|
|
220
|
-
}(e2, t2,
|
|
218
|
+
}) : q(e3, t3, i3, c2, a2, u3);
|
|
219
|
+
} else q(e3, t3, i3, false, null, u3);
|
|
220
|
+
}(e2, t2, o2, i2);
|
|
221
221
|
}
|
|
222
222
|
function I(e2, n2) {
|
|
223
223
|
const t2 = e2.customEvents;
|
|
@@ -228,10 +228,10 @@ function I(e2, n2) {
|
|
|
228
228
|
}
|
|
229
229
|
function B(e2, n2, t2) {
|
|
230
230
|
if (n2 && t2) {
|
|
231
|
-
const
|
|
232
|
-
if (
|
|
233
|
-
const n3 =
|
|
234
|
-
return n3.isStandard ?
|
|
231
|
+
const i2 = n2.filter((e3) => e3.name === t2);
|
|
232
|
+
if (i2 && i2.length > 0) {
|
|
233
|
+
const n3 = i2[0];
|
|
234
|
+
return n3.isStandard ? o[n3.eventName] : I(e2, n3);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -245,38 +245,38 @@ function $(e2, n2) {
|
|
|
245
245
|
}
|
|
246
246
|
function z(e2, n2, t2) {
|
|
247
247
|
if (n2 && t2) {
|
|
248
|
-
const
|
|
249
|
-
if (
|
|
250
|
-
const n3 =
|
|
251
|
-
return n3.isStandard ? { func:
|
|
248
|
+
const i2 = n2.filter((e3) => e3.name === t2);
|
|
249
|
+
if (i2 && i2.length > 0) {
|
|
250
|
+
const n3 = i2[0];
|
|
251
|
+
return n3.isStandard ? { func: o[n3.eventName], isStandard: true, event: n3 } : { func: I(e2, n3), isStandard: false, event: n3 };
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
function H(e2, n2, t2,
|
|
255
|
+
function H(e2, n2, t2, o2, i2) {
|
|
256
256
|
if (t2) {
|
|
257
|
-
if (
|
|
258
|
-
return t2.apply(t2, [
|
|
257
|
+
if (o2 || (o2 = { pageContext: e2, configureObj: n2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
|
|
258
|
+
return t2.apply(t2, [o2]);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
function Q(e2) {
|
|
262
|
-
const n2 = e2.pageContext,
|
|
262
|
+
const n2 = e2.pageContext, o2 = e2.configureObj, i2 = _(n2);
|
|
263
263
|
let r2 = [];
|
|
264
|
-
if (
|
|
264
|
+
if (i2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
265
265
|
else {
|
|
266
266
|
const e3 = n2.entity.data;
|
|
267
267
|
r2.push(e3);
|
|
268
268
|
}
|
|
269
|
-
const u2 =
|
|
270
|
-
return new Promise((e3,
|
|
269
|
+
const u2 = o2.props.base.condition;
|
|
270
|
+
return new Promise((e3, o3) => {
|
|
271
271
|
if (null == u2 || "" === u2 || null == r2 || 0 === r2.length) e3({ canExecute: true });
|
|
272
272
|
else {
|
|
273
|
-
const
|
|
273
|
+
const o4 = n2.entity.context, i3 = t(n2), c2 = true, l2 = n2.tableName;
|
|
274
274
|
let f2, m2, g2 = true;
|
|
275
275
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
276
276
|
const t2 = r2[e4];
|
|
277
277
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
278
278
|
const r3 = u2[e5], a2 = r3.toolTips, p2 = r3.conditionList;
|
|
279
|
-
if (!s(p2, t2,
|
|
279
|
+
if (!s(p2, t2, i3, o4, c2, l2, null, n2)) {
|
|
280
280
|
g2 = false, f2 = a2, m2 = t2;
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
@@ -286,33 +286,33 @@ function Q(e2) {
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
-
function W(e2, n2, t2,
|
|
290
|
-
var
|
|
291
|
-
n2 && (G("loadBeforeSend", N(null, (
|
|
289
|
+
function W(e2, n2, t2, o2) {
|
|
290
|
+
var i2;
|
|
291
|
+
n2 && (G("loadBeforeSend", N(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "beforeListLoad", i2), e2), G("beforeRequest", function(e3) {
|
|
292
292
|
return N(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
293
|
-
}({ pageContext: t2, configureObj:
|
|
293
|
+
}({ pageContext: t2, configureObj: o2 }), e2), G("gridDataLoaded", function(e3) {
|
|
294
294
|
return N(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
295
|
-
}({ pageContext: t2, configureObj:
|
|
295
|
+
}({ pageContext: t2, configureObj: o2 }), e2), G("gridComplete", function(e3) {
|
|
296
296
|
return N(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
|
|
297
|
-
}({ pageContext: t2, configureObj:
|
|
297
|
+
}({ pageContext: t2, configureObj: o2 }), e2), G("resizeHeight", function(e3) {
|
|
298
298
|
return N(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
|
|
299
|
-
}({ pageContext: t2, configureObj:
|
|
299
|
+
}({ pageContext: t2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), G("beforeInsertRow", function(e3) {
|
|
300
300
|
return N(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
|
|
301
|
-
}({ pageContext: t2, configureObj:
|
|
301
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("afterInsertRow", function(e3) {
|
|
302
302
|
return N(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
|
|
303
|
-
}({ pageContext: t2, configureObj:
|
|
303
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeDelete", function(e3) {
|
|
304
304
|
return N(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
|
|
305
|
-
}({ pageContext: t2, configureObj:
|
|
305
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("afterDelete", function(e3) {
|
|
306
306
|
return N(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
|
|
307
|
-
}({ pageContext: t2, configureObj:
|
|
307
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeEdit", function(e3) {
|
|
308
308
|
return N(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
|
|
309
|
-
}({ pageContext: t2, configureObj:
|
|
309
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeRestore", function(e3) {
|
|
310
310
|
return N(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
|
|
311
|
-
}({ pageContext: t2, configureObj:
|
|
311
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeRestoreValidate", function(e3) {
|
|
312
312
|
return N(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
|
|
313
|
-
}({ pageContext: t2, configureObj:
|
|
313
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), function(e3, n3, t3) {
|
|
314
314
|
n3 && (t3[e3] = n3);
|
|
315
|
-
}("filterDataEvent", N(null, t2,
|
|
315
|
+
}("filterDataEvent", N(null, t2, o2, "filter-data", { pageContext: t2, configureObj: o2 }), e2));
|
|
316
316
|
}
|
|
317
317
|
function G(e2, n2, t2) {
|
|
318
318
|
n2 && (t2[e2] = n2);
|
|
@@ -344,7 +344,7 @@ function ne(e2, n2, t2) {
|
|
|
344
344
|
function te(e2) {
|
|
345
345
|
return N(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function oe(n2) {
|
|
348
348
|
let t2 = true;
|
|
349
349
|
if (!e()) {
|
|
350
350
|
const e2 = n2 && n2.events ? n2.events : [];
|
|
@@ -355,19 +355,19 @@ function ie(n2) {
|
|
|
355
355
|
}
|
|
356
356
|
return t2;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
return H(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption:
|
|
358
|
+
function ie(e2, n2, t2, o2, i2) {
|
|
359
|
+
return H(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
|
|
360
360
|
}
|
|
361
361
|
function re(n2, t2) {
|
|
362
|
-
let
|
|
362
|
+
let o2 = true;
|
|
363
363
|
if (e()) {
|
|
364
364
|
const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
|
|
365
365
|
if (e2) {
|
|
366
|
-
const n3 = e2.isStandard, t3 = e2.event,
|
|
367
|
-
n3 &&
|
|
366
|
+
const n3 = e2.isStandard, t3 = e2.event, i2 = navigator ? navigator.userAgent : null;
|
|
367
|
+
n3 && i2 && (i2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (o2 = false) : C.includes(t3.eventName) && (o2 = false));
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
return
|
|
370
|
+
return o2;
|
|
371
371
|
}
|
|
372
372
|
export {
|
|
373
373
|
j as appendDefaultMethods,
|
|
@@ -389,12 +389,12 @@ export {
|
|
|
389
389
|
J as gridSelectRecord,
|
|
390
390
|
M as gridSelectionChange,
|
|
391
391
|
y as handleAfterInitEvent,
|
|
392
|
-
|
|
392
|
+
ie as handleChartEvent,
|
|
393
393
|
h as handleEvent,
|
|
394
394
|
E as handleFormEvent,
|
|
395
395
|
ne as headerClick,
|
|
396
396
|
x as initPageEvents,
|
|
397
|
-
|
|
397
|
+
oe as isShowComponent,
|
|
398
398
|
re as isShowMobileEvent,
|
|
399
399
|
O as removeCustomFuncFromWindow,
|
|
400
400
|
Z as rowClick,
|
|
@@ -10,6 +10,7 @@ function a(n2, a2) {
|
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
12
|
const i = new t.PrintTemplate({ template: a3 }), l = { callback: () => {
|
|
13
|
+
console.log("浏览器打印窗口已打开");
|
|
13
14
|
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
|
|
14
15
|
a3.panels[0].printElements.forEach((e3) => {
|
|
15
16
|
if ("datetime" === e3.options.dataType && e3.options.field) {
|