@guodun/antdv 1.7.5 → 1.7.6
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/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.mjs +45 -37
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.mjs +266 -264
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.d.ts +1 -0
- package/package.json +3 -3
package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.mjs
CHANGED
|
@@ -5,15 +5,15 @@ import re from "./ContractTemplateRendererField.mjs";
|
|
|
5
5
|
import ie from "./ContractTemplateRendererHeader.mjs";
|
|
6
6
|
import ae from "./ContractTemplateRendererPage.mjs";
|
|
7
7
|
import oe from "./ContractTemplateRendererValidation.mjs";
|
|
8
|
-
import { Fragment as se, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as ce, createTextVNode as le, createVNode as m, defineComponent as h, mergeProps as ue, nextTick as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { useElementSize as
|
|
11
|
-
import { LeftOutlined as
|
|
8
|
+
import { Fragment as se, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as ce, createTextVNode as le, createVNode as m, defineComponent as h, mergeProps as ue, nextTick as g, normalizeClass as de, onBeforeUnmount as fe, openBlock as _, ref as v, renderList as pe, renderSlot as me, toDisplayString as y, unref as b, watch as x, withCtx as S } from "vue";
|
|
9
|
+
import { Button as he, Empty as C, Input as ge, Modal as _e, Progress as ve, Segmented as ye, Tooltip as be } from "ant-design-vue";
|
|
10
|
+
import { useElementSize as xe } from "@vueuse/core";
|
|
11
|
+
import { LeftOutlined as Se, RightOutlined as Ce, SearchOutlined as we } from "@ant-design/icons-vue";
|
|
12
12
|
//#region src/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var Te = {
|
|
14
14
|
key: 2,
|
|
15
15
|
class: "gd-contract-template-renderer__empty"
|
|
16
|
-
},
|
|
16
|
+
}, Ee = ["data-highlighted-variable-key"], De = { class: "gd-contract-template-renderer__pages" }, Oe = ["aria-label", "aria-expanded"], ke = { class: "gd-contract-template-renderer__panel-clip" }, Ae = { class: "gd-contract-template-renderer__panel" }, je = { class: "gd-contract-template-renderer__panel-head" }, Me = { class: "gd-contract-template-renderer__panel-head-row" }, Ne = { class: "gd-contract-template-renderer__panel-head-actions" }, Pe = { class: "gd-contract-template-renderer__field-group-head" }, Fe = { class: "gd-contract-template-renderer__field-group-items" }, Ie = ["data-field-key"], Le = .5, Re = 1.5, w = .1, ze = 3e3, Be = /* @__PURE__ */ h({
|
|
17
17
|
name: "ContractTemplateSingleRenderer",
|
|
18
18
|
__name: "ContractTemplateSingleRenderer",
|
|
19
19
|
props: {
|
|
@@ -87,8 +87,8 @@ var Ee = {
|
|
|
87
87
|
"update:zoom",
|
|
88
88
|
"control-warning"
|
|
89
89
|
],
|
|
90
|
-
setup(h, { expose:
|
|
91
|
-
let
|
|
90
|
+
setup(h, { expose: Be, emit: Ve }) {
|
|
91
|
+
let T = h, E = Ve, He = [
|
|
92
92
|
{
|
|
93
93
|
label: "全部",
|
|
94
94
|
value: "all"
|
|
@@ -101,9 +101,9 @@ var Ee = {
|
|
|
101
101
|
label: "有错误",
|
|
102
102
|
value: "error"
|
|
103
103
|
}
|
|
104
|
-
],
|
|
105
|
-
let e = { ...
|
|
106
|
-
return
|
|
104
|
+
], Ue = v(), D = v(), We = v(), O = v(c(T.template, T.values)), Ge = v({ ...O.value }), k = v(!1), A = v([]), j = v(!1), M = v(!1), N = v(""), P = v(""), F = v(""), Ke = v(0), I = v(Zt(T.zoom)), L = v(""), R = v("all"), z = v(!1), qe = v(/* @__PURE__ */ new Map()), B = /* @__PURE__ */ new Map(), Je = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), { width: Xe } = xe(D), Ze = l(() => T.readonly || T.disabled), H = l(() => te(T.template)), Qe = l(() => k.value ? A.value : H.value), U = l(() => (Array.isArray(T.template?.variables) ? T.template.variables : []).filter((t) => !!t?.key && e(t.type ?? "text"))), $e = l(() => {
|
|
105
|
+
let e = { ...O.value };
|
|
106
|
+
return U.value.forEach((t) => {
|
|
107
107
|
let n = jt(t);
|
|
108
108
|
if (n?.toDisplayText) try {
|
|
109
109
|
e[t.key] = n.toDisplayText(e[t.key], {
|
|
@@ -112,27 +112,27 @@ var Ee = {
|
|
|
112
112
|
});
|
|
113
113
|
} catch {}
|
|
114
114
|
}), e;
|
|
115
|
-
}),
|
|
115
|
+
}), et = l(() => U.value.filter((e) => s(O.value[e.key])).length), tt = l(() => {
|
|
116
116
|
let e = /* @__PURE__ */ new Map();
|
|
117
|
-
return
|
|
117
|
+
return Qe.value.forEach((t) => {
|
|
118
118
|
t.variableKey && e.set(t.variableKey, [...e.get(t.variableKey) ?? [], t]);
|
|
119
119
|
}), e;
|
|
120
|
-
}),
|
|
121
|
-
let e =
|
|
122
|
-
return o(
|
|
123
|
-
readonly:
|
|
124
|
-
disabled:
|
|
120
|
+
}), W = l(() => {
|
|
121
|
+
let e = T.interactionMode === "panel";
|
|
122
|
+
return o(T.template, e ? $e.value : Ge.value, {
|
|
123
|
+
readonly: T.readonly,
|
|
124
|
+
disabled: T.disabled,
|
|
125
125
|
mode: e ? "display" : "control"
|
|
126
126
|
});
|
|
127
|
-
}),
|
|
128
|
-
let e = /* @__PURE__ */ new Map(), t = new Set(
|
|
129
|
-
return
|
|
127
|
+
}), nt = l(() => {
|
|
128
|
+
let e = /* @__PURE__ */ new Map(), t = new Set(U.value.map((e) => e.key));
|
|
129
|
+
return W.value.forEach((n) => {
|
|
130
130
|
Gt(n.contentHtml).forEach((r) => {
|
|
131
131
|
t.has(r) && !e.has(r) && e.set(r, n.id);
|
|
132
132
|
});
|
|
133
133
|
}), e;
|
|
134
|
-
}),
|
|
135
|
-
let e =
|
|
134
|
+
}), rt = l(() => U.value.filter(Bt)), it = l(() => {
|
|
135
|
+
let e = W.value.map((e, t) => ({
|
|
136
136
|
id: `page:${e.id}`,
|
|
137
137
|
pageId: e.id,
|
|
138
138
|
title: `第 ${t + 1} 页${e.title ? ` · ${e.title}` : ""}`,
|
|
@@ -144,8 +144,8 @@ var Ee = {
|
|
|
144
144
|
allVariables: [],
|
|
145
145
|
variables: []
|
|
146
146
|
};
|
|
147
|
-
return
|
|
148
|
-
let r = t.get(
|
|
147
|
+
return U.value.forEach((e) => {
|
|
148
|
+
let r = t.get(nt.value.get(e.key) ?? "") ?? n;
|
|
149
149
|
r.allVariables.push(e), Bt(e) && r.variables.push(e);
|
|
150
150
|
}), [...e, n].filter((e) => e.variables.length > 0).map((e) => ({
|
|
151
151
|
id: e.id,
|
|
@@ -153,174 +153,174 @@ var Ee = {
|
|
|
153
153
|
totalCount: e.allVariables.length,
|
|
154
154
|
variables: e.variables
|
|
155
155
|
}));
|
|
156
|
-
}),
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
}), at = l(() => W.value.length > 0), ot = l(() => U.value.filter((e) => !s(O.value[e.key])).length), st = l(() => U.value.filter((e) => e.required && s(O.value[e.key])).length), ct = l(() => U.value.length ? Math.round(ot.value / U.value.length * 100) : 0), lt = l(() => k.value && A.value.length === 0), ut = l(() => k.value ? lt.value ? "校验通过,模板与填写值均符合规则" : `发现 ${A.value.length} 个模板或填写问题` : H.value.length ? `模板存在 ${H.value.length} 个问题,已安全降级展示` : ""), dt = l(() => k.value ? Qe.value.length > 0 || M.value : H.value.length > 0);
|
|
157
|
+
x(() => T.template, (e) => {
|
|
158
|
+
G(c(e, T.values), !1), St();
|
|
159
159
|
let t = Array.isArray(e?.pages) ? e.pages.map((e) => e?.id) : [];
|
|
160
|
-
t.includes(
|
|
161
|
-
}, { deep: !0 }),
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
160
|
+
t.includes(F.value) || (F.value = t.find(Boolean) ?? ""), P.value && !U.value.some((e) => e.key === P.value) && Et();
|
|
161
|
+
}, { deep: !0 }), x(() => [
|
|
162
|
+
T.template?.variables,
|
|
163
|
+
T.optionResolver,
|
|
164
|
+
T.requester,
|
|
165
|
+
T.allowedRemoteOrigins,
|
|
166
|
+
T.remoteRequestTimeoutMs,
|
|
167
|
+
T.remoteOptionsCacheTtlMs
|
|
168
168
|
], () => {
|
|
169
169
|
Nt();
|
|
170
170
|
}, {
|
|
171
171
|
deep: !0,
|
|
172
172
|
immediate: !0
|
|
173
|
-
}),
|
|
174
|
-
let t = c(
|
|
175
|
-
Qt(t,
|
|
176
|
-
}, { deep: !0 }),
|
|
177
|
-
e === "inline" && (
|
|
178
|
-
}),
|
|
179
|
-
e || (
|
|
180
|
-
}),
|
|
181
|
-
!
|
|
173
|
+
}), x(() => T.values, (e) => {
|
|
174
|
+
let t = c(T.template, e);
|
|
175
|
+
Qt(t, O.value) || (G(t, !1, { refreshInlineHtml: T.interactionMode !== "inline" }), St());
|
|
176
|
+
}, { deep: !0 }), x(() => T.interactionMode, (e) => {
|
|
177
|
+
e === "inline" && (Ge.value = { ...O.value });
|
|
178
|
+
}), x(() => T.collapsiblePanel, (e) => {
|
|
179
|
+
e || (z.value = !1);
|
|
180
|
+
}), x(() => T.zoom, (e) => I.value = Zt(e)), x(W, (e) => {
|
|
181
|
+
!F.value && e.length && (F.value = e[0].id);
|
|
182
182
|
}, { immediate: !0 });
|
|
183
|
-
function
|
|
184
|
-
|
|
183
|
+
function G(e, t = !0, n = {}) {
|
|
184
|
+
O.value = { ...e }, n.refreshInlineHtml !== !1 && (Ge.value = { ...e }), t && (E("update:values", { ...O.value }), E("change", { ...O.value }));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
!e ||
|
|
188
|
-
...
|
|
186
|
+
function K(e, t) {
|
|
187
|
+
!e || Ze.value || (G({
|
|
188
|
+
...O.value,
|
|
189
189
|
[e]: t
|
|
190
|
-
}, !0, { refreshInlineHtml:
|
|
190
|
+
}, !0, { refreshInlineHtml: T.interactionMode !== "inline" }), k.value && vt());
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
if (
|
|
192
|
+
function ft(e) {
|
|
193
|
+
if (T.interactionMode !== "inline") return;
|
|
194
194
|
let t = e.target;
|
|
195
195
|
if (!(t instanceof HTMLInputElement) && !(t instanceof HTMLTextAreaElement)) return;
|
|
196
196
|
let n = t.dataset.key || "";
|
|
197
|
-
n && (t instanceof HTMLInputElement && t.type === "checkbox" ?
|
|
197
|
+
n && (t instanceof HTMLInputElement && t.type === "checkbox" ? K(n, t.checked) : t instanceof HTMLInputElement && t.type === "number" ? K(n, t.value === "" ? void 0 : t.valueAsNumber) : K(n, t.value));
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function pt(e) {
|
|
200
200
|
let t = e.target;
|
|
201
201
|
if (!(t instanceof Element)) return;
|
|
202
202
|
let n = t.closest("[data-render-page-id]");
|
|
203
|
-
n?.dataset.renderPageId && (
|
|
203
|
+
n?.dataset.renderPageId && (F.value = n.dataset.renderPageId);
|
|
204
204
|
let r = t.closest("[data-contract-render-wrapper], [data-contract-render-control]")?.dataset.key || "";
|
|
205
|
-
r &&
|
|
205
|
+
r && X(r);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
let t =
|
|
209
|
-
if (!(!t || !n || !Gt(t.contentHtml).has(e.key)) && !(e.kind === "input" &&
|
|
210
|
-
if (
|
|
211
|
-
|
|
207
|
+
function mt(e) {
|
|
208
|
+
let t = W.value.find((t) => t.id === e.pageId), n = U.value.some((t) => t.key === e.key);
|
|
209
|
+
if (!(!t || !n || !Gt(t.contentHtml).has(e.key)) && !(e.kind === "input" && T.interactionMode !== "inline")) {
|
|
210
|
+
if (F.value = e.pageId, e.kind === "input") {
|
|
211
|
+
K(e.key, e.value);
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
X(e.key);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function ht(e) {
|
|
218
218
|
if (e.key !== "Enter" && e.key !== " ") return;
|
|
219
219
|
let t = e.target;
|
|
220
|
-
!(t instanceof HTMLElement) || !t.dataset.key || (e.preventDefault(),
|
|
220
|
+
!(t instanceof HTMLElement) || !t.dataset.key || (e.preventDefault(), X(t.dataset.key));
|
|
221
|
+
}
|
|
222
|
+
function gt() {
|
|
223
|
+
return { ...O.value };
|
|
221
224
|
}
|
|
222
|
-
function _t() {
|
|
223
|
-
|
|
225
|
+
function _t(e) {
|
|
226
|
+
G(c(T.template, e));
|
|
224
227
|
}
|
|
225
|
-
function vt(
|
|
226
|
-
|
|
228
|
+
function vt() {
|
|
229
|
+
let e = ne(T.template, O.value);
|
|
230
|
+
return Ct(e), E("validate", e), e;
|
|
227
231
|
}
|
|
228
232
|
function yt() {
|
|
229
|
-
let e =
|
|
230
|
-
|
|
233
|
+
let e = ee(T.template, O.value, T.validateOnSubmit);
|
|
234
|
+
if ((T.validateOnSubmit || e.length) && (Ct(e), E("validate", e)), e.length) return Ot(e[0]), !1;
|
|
235
|
+
let t = gt();
|
|
236
|
+
return E("submit", t), t;
|
|
231
237
|
}
|
|
232
238
|
function bt() {
|
|
233
|
-
|
|
234
|
-
if ((w.validateOnSubmit || e.length) && (wt(e), T("validate", e)), e.length) return kt(e[0]), !1;
|
|
235
|
-
let t = _t();
|
|
236
|
-
return T("submit", t), t;
|
|
239
|
+
return G(a(T.template)), St(), gt();
|
|
237
240
|
}
|
|
238
241
|
function xt() {
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
function St() {
|
|
242
|
-
Qe.value || ve.confirm({
|
|
242
|
+
Ze.value || _e.confirm({
|
|
243
243
|
title: "重置填写内容?",
|
|
244
244
|
content: "将恢复模板中的默认值,当前未提交的填写内容会被覆盖。",
|
|
245
245
|
okText: "确认重置",
|
|
246
246
|
cancelText: "取消",
|
|
247
|
-
onOk: () =>
|
|
247
|
+
onOk: () => bt()
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
|
|
250
|
+
function St() {
|
|
251
|
+
k.value = !1, A.value = [], j.value = !1, M.value = !1, J();
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
if (
|
|
255
|
-
|
|
253
|
+
function Ct(e) {
|
|
254
|
+
if (A.value = e, k.value = !0, j.value = !1, e.length) {
|
|
255
|
+
M.value = !1, J();
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
wt();
|
|
259
259
|
}
|
|
260
|
-
let
|
|
261
|
-
function
|
|
262
|
-
|
|
260
|
+
let q;
|
|
261
|
+
function J() {
|
|
262
|
+
q &&= (clearTimeout(q), void 0);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
},
|
|
264
|
+
function wt() {
|
|
265
|
+
J(), M.value = !0, q = setTimeout(() => {
|
|
266
|
+
M.value = !1, q = void 0;
|
|
267
|
+
}, ze);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
|
|
269
|
+
function Y(e) {
|
|
270
|
+
X(e, !0);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
|
|
272
|
+
function Tt(e) {
|
|
273
|
+
T.interactionMode === "panel" && (z.value &&= !1, U.value.some((t) => t.key === e) && !rt.value.some((t) => t.key === e) && Vt());
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function X(e, t = !1) {
|
|
276
276
|
if (!e) return;
|
|
277
|
-
|
|
278
|
-
let n =
|
|
279
|
-
n && (
|
|
280
|
-
|
|
281
|
-
let r = n ?
|
|
277
|
+
Tt(e), P.value = e, N.value = e;
|
|
278
|
+
let n = nt.value.get(e);
|
|
279
|
+
n && (F.value = n), t && (Ke.value += 1), g(() => {
|
|
280
|
+
Dt(e);
|
|
281
|
+
let r = n ? D.value?.querySelector(`[data-render-page-id="${$(n)}"]`) : void 0;
|
|
282
282
|
t && r?.scrollIntoView({
|
|
283
283
|
behavior: "smooth",
|
|
284
284
|
block: "center",
|
|
285
285
|
inline: "center"
|
|
286
|
-
}),
|
|
286
|
+
}), T.interactionMode === "panel" && We.value?.querySelector(`[data-field-key="${$(e)}"]`)?.scrollIntoView({
|
|
287
287
|
behavior: "smooth",
|
|
288
288
|
block: "nearest"
|
|
289
289
|
});
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
|
|
292
|
+
function Et() {
|
|
293
|
+
P.value = "", N.value = "", Dt("");
|
|
294
|
+
}
|
|
295
|
+
function Dt(e) {
|
|
296
|
+
D.value?.querySelectorAll("[data-contract-render-wrapper], [data-contract-render-control]").forEach((t) => t.classList.toggle("is-active", !!e && t.dataset.key === e));
|
|
294
297
|
}
|
|
295
298
|
function Ot(e) {
|
|
296
|
-
|
|
299
|
+
e.variableKey ? (Y(e.variableKey), T.interactionMode === "panel" && g(() => Ut(e.variableKey))) : e.pageId && Xt(e.pageId);
|
|
297
300
|
}
|
|
298
301
|
function kt(e) {
|
|
299
|
-
|
|
302
|
+
return tt.value.get(e) ?? [];
|
|
300
303
|
}
|
|
301
304
|
function At(e) {
|
|
302
|
-
return
|
|
303
|
-
}
|
|
304
|
-
function X(e) {
|
|
305
|
-
return Je.value.get(e.key) ?? {
|
|
305
|
+
return qe.value.get(e.key) ?? {
|
|
306
306
|
options: e.options ?? [],
|
|
307
307
|
loading: !1
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
310
|
function jt(e) {
|
|
311
311
|
let t = e.componentKey || e.type || "";
|
|
312
|
-
return t ?
|
|
312
|
+
return t ? T.controlRegistry?.[t] : void 0;
|
|
313
313
|
}
|
|
314
314
|
function Z(e, t) {
|
|
315
|
-
let n = new Map(
|
|
316
|
-
n.set(e, t),
|
|
315
|
+
let n = new Map(qe.value);
|
|
316
|
+
n.set(e, t), qe.value = n;
|
|
317
317
|
}
|
|
318
318
|
function Mt(e) {
|
|
319
|
-
|
|
319
|
+
E("control-warning", e);
|
|
320
320
|
}
|
|
321
321
|
async function Nt() {
|
|
322
|
-
|
|
323
|
-
let e = Array.isArray(
|
|
322
|
+
B.forEach((e) => e.abort()), B.clear(), Je.clear(), Ye.clear();
|
|
323
|
+
let e = Array.isArray(T.template?.variables) ? T.template.variables : [];
|
|
324
324
|
await Promise.all(e.map(async (e) => {
|
|
325
325
|
if (!e?.key) return;
|
|
326
326
|
let t = Array.isArray(e.options) ? e.options.map((e) => ({ ...e })) : [];
|
|
@@ -329,7 +329,7 @@ var Ee = {
|
|
|
329
329
|
loading: !1
|
|
330
330
|
}), e.type === "custom" && !jt(e)) {
|
|
331
331
|
let t = e.componentKey || "", n = `${e.key}:${t}`;
|
|
332
|
-
|
|
332
|
+
Ye.has(n) || (Ye.add(n), Mt({
|
|
333
333
|
code: "CONTROL_COMPONENT_MISSING",
|
|
334
334
|
variableKey: e.key,
|
|
335
335
|
componentKey: t,
|
|
@@ -342,29 +342,29 @@ var Ee = {
|
|
|
342
342
|
let r = e.dataSource;
|
|
343
343
|
if (!r) return;
|
|
344
344
|
let i = new AbortController();
|
|
345
|
-
|
|
345
|
+
B.set(e.key, i), Z(e.key, {
|
|
346
346
|
options: n,
|
|
347
347
|
loading: !0
|
|
348
348
|
});
|
|
349
|
-
let a = Ft(e), o = Date.now(), s =
|
|
349
|
+
let a = Ft(e), o = Date.now(), s = Je.get(a);
|
|
350
350
|
if (s && s.expiresAt > o) {
|
|
351
351
|
Z(e.key, {
|
|
352
352
|
options: s.options,
|
|
353
353
|
loading: !1
|
|
354
|
-
}),
|
|
354
|
+
}), B.delete(e.key);
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
357
|
let c = "CONTROL_OPTIONS_LOAD_FAILED";
|
|
358
358
|
try {
|
|
359
|
-
r.kind === "url" && !t(r.url,
|
|
360
|
-
let o =
|
|
361
|
-
o || (o = It(e, r, c, i),
|
|
362
|
-
|
|
359
|
+
r.kind === "url" && !t(r.url, T.allowedRemoteOrigins) && (c = "CONTROL_REMOTE_URL_BLOCKED");
|
|
360
|
+
let o = V.get(a);
|
|
361
|
+
o || (o = It(e, r, c, i), V.set(a, o), o.finally(() => {
|
|
362
|
+
V.get(a) === o && V.delete(a);
|
|
363
363
|
}).catch(() => void 0));
|
|
364
364
|
let s = await o;
|
|
365
365
|
if (i.signal.aborted) return;
|
|
366
|
-
let ee = Math.max(0, Number(
|
|
367
|
-
ee > 0 &&
|
|
366
|
+
let ee = Math.max(0, Number(T.remoteOptionsCacheTtlMs) || 0);
|
|
367
|
+
ee > 0 && Je.set(a, {
|
|
368
368
|
options: s,
|
|
369
369
|
expiresAt: Date.now() + ee
|
|
370
370
|
}), Z(e.key, {
|
|
@@ -386,7 +386,7 @@ var Ee = {
|
|
|
386
386
|
cause: t
|
|
387
387
|
});
|
|
388
388
|
} finally {
|
|
389
|
-
|
|
389
|
+
B.get(e.key) === i && B.delete(e.key);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
function Ft(e) {
|
|
@@ -399,18 +399,18 @@ var Ee = {
|
|
|
399
399
|
async function It(e, r, a, o) {
|
|
400
400
|
let s;
|
|
401
401
|
if (r.kind === "resolver") {
|
|
402
|
-
if (!
|
|
403
|
-
s = await
|
|
402
|
+
if (!T.optionResolver) throw Error(`缺少 resolver ${r.resolverKey} 的宿主实现`);
|
|
403
|
+
s = await T.optionResolver({
|
|
404
404
|
resolverKey: r.resolverKey,
|
|
405
405
|
params: r.params,
|
|
406
406
|
variable: e,
|
|
407
407
|
signal: o.signal
|
|
408
408
|
});
|
|
409
409
|
} else {
|
|
410
|
-
if (!t(r.url,
|
|
411
|
-
if (!
|
|
412
|
-
let n = i(r.timeoutMs,
|
|
413
|
-
s = await Lt(
|
|
410
|
+
if (!t(r.url, T.allowedRemoteOrigins)) throw Error(`远程地址未在 allowlist 中:${r.url}`);
|
|
411
|
+
if (!T.requester) throw Error("缺少宿主 requester,组件库不会直接发起网络请求");
|
|
412
|
+
let n = i(r.timeoutMs, T.remoteRequestTimeoutMs);
|
|
413
|
+
s = await Lt(T.requester({
|
|
414
414
|
url: r.url,
|
|
415
415
|
method: r.method || "GET",
|
|
416
416
|
params: r.params,
|
|
@@ -435,48 +435,48 @@ var Ee = {
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
function Rt(e) {
|
|
438
|
-
let t =
|
|
438
|
+
let t = At(e);
|
|
439
439
|
return {
|
|
440
440
|
variable: e,
|
|
441
|
-
value:
|
|
442
|
-
errors:
|
|
443
|
-
active:
|
|
444
|
-
readonly:
|
|
445
|
-
disabled:
|
|
441
|
+
value: O.value[e.key],
|
|
442
|
+
errors: kt(e.key),
|
|
443
|
+
active: P.value === e.key,
|
|
444
|
+
readonly: T.readonly,
|
|
445
|
+
disabled: T.disabled,
|
|
446
446
|
options: t.options,
|
|
447
447
|
loading: t.loading,
|
|
448
448
|
loadError: t.error,
|
|
449
|
-
updateValue: (t) =>
|
|
450
|
-
focusVariable: () =>
|
|
449
|
+
updateValue: (t) => K(e.key, t),
|
|
450
|
+
focusVariable: () => Y(e.key)
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
453
|
function zt() {
|
|
454
|
-
let e =
|
|
454
|
+
let e = U.value;
|
|
455
455
|
if (!e.length) return;
|
|
456
|
-
let t = e.findIndex((e) => e.key ===
|
|
456
|
+
let t = e.findIndex((e) => e.key === P.value), n = t < 0 ? 0 : t + 1;
|
|
457
457
|
for (let t = 0; t < e.length; t += 1) {
|
|
458
458
|
let r = e[(n + t) % e.length];
|
|
459
|
-
if (s(
|
|
460
|
-
|
|
459
|
+
if (s(O.value[r.key])) {
|
|
460
|
+
Y(r.key);
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
function Bt(e) {
|
|
466
|
-
let t =
|
|
467
|
-
return !t || e.key.toLocaleLowerCase().includes(t) || (e.label ?? "").toLocaleLowerCase().includes(t) ?
|
|
466
|
+
let t = L.value.trim().toLocaleLowerCase();
|
|
467
|
+
return !t || e.key.toLocaleLowerCase().includes(t) || (e.label ?? "").toLocaleLowerCase().includes(t) ? R.value === "unfilled" ? s(O.value[e.key]) : R.value === "error" ? kt(e.key).length > 0 : !0 : !1;
|
|
468
468
|
}
|
|
469
469
|
function Vt() {
|
|
470
|
-
|
|
470
|
+
L.value = "", R.value = "all";
|
|
471
471
|
}
|
|
472
472
|
function Ht(e, t) {
|
|
473
|
-
let n =
|
|
473
|
+
let n = rt.value;
|
|
474
474
|
if (!n.length) return;
|
|
475
475
|
let r = n.findIndex((t) => t.key === e), i = n[r < 0 ? 0 : (r + t + n.length) % n.length]?.key;
|
|
476
|
-
i && (
|
|
476
|
+
i && (Y(i), g(() => Ut(i)));
|
|
477
477
|
}
|
|
478
478
|
function Ut(e) {
|
|
479
|
-
(
|
|
479
|
+
(We.value?.querySelector(`[data-field-key="${$(e)}"]`))?.querySelector("input:not([disabled]), textarea:not([disabled]), button:not([disabled])")?.focus();
|
|
480
480
|
}
|
|
481
481
|
function Wt(e) {
|
|
482
482
|
if (e.key !== "Enter" || e.target instanceof HTMLTextAreaElement) return;
|
|
@@ -499,25 +499,25 @@ var Ee = {
|
|
|
499
499
|
return t;
|
|
500
500
|
}
|
|
501
501
|
function Kt() {
|
|
502
|
-
!
|
|
502
|
+
!T.collapsiblePanel || T.interactionMode !== "panel" || (z.value = !z.value);
|
|
503
503
|
}
|
|
504
504
|
function Q(e) {
|
|
505
505
|
let t = Zt(e);
|
|
506
|
-
return
|
|
506
|
+
return I.value = t, E("update:zoom", t), t;
|
|
507
507
|
}
|
|
508
508
|
function qt() {
|
|
509
509
|
return Q(1);
|
|
510
510
|
}
|
|
511
511
|
function Jt() {
|
|
512
|
-
return
|
|
512
|
+
return I.value;
|
|
513
513
|
}
|
|
514
514
|
function Yt() {
|
|
515
|
-
let e = Math.max(...
|
|
516
|
-
return Q(Math.max(0,
|
|
515
|
+
let e = Math.max(...W.value.map((e) => e.width), 1);
|
|
516
|
+
return Q(Math.max(0, Xe.value - 48) / e);
|
|
517
517
|
}
|
|
518
518
|
function Xt(e) {
|
|
519
|
-
e && (
|
|
520
|
-
|
|
519
|
+
e && (F.value = e, g(() => {
|
|
520
|
+
D.value?.querySelector(`[data-render-page-id="${$(e)}"]`)?.scrollIntoView({
|
|
521
521
|
behavior: "smooth",
|
|
522
522
|
block: "start",
|
|
523
523
|
inline: "center"
|
|
@@ -526,7 +526,7 @@ var Ee = {
|
|
|
526
526
|
}
|
|
527
527
|
function Zt(e) {
|
|
528
528
|
let t = Number(e);
|
|
529
|
-
return Number.isFinite(t) ? Math.min(
|
|
529
|
+
return Number.isFinite(t) ? Math.min(Re, Math.max(Le, Math.round(t * 100) / 100)) : 1;
|
|
530
530
|
}
|
|
531
531
|
function $(e) {
|
|
532
532
|
return e.replaceAll("\\", "\\\\").replaceAll("\"", "\\\"");
|
|
@@ -536,7 +536,7 @@ var Ee = {
|
|
|
536
536
|
return Array.from(n).every((n) => e[n] === t[n]);
|
|
537
537
|
}
|
|
538
538
|
function $t(e) {
|
|
539
|
-
!(e.ctrlKey || e.metaKey) || !
|
|
539
|
+
!(e.ctrlKey || e.metaKey) || !at.value || (e.preventDefault(), Q(e.deltaY > 0 ? I.value - w : I.value + w));
|
|
540
540
|
}
|
|
541
541
|
let en;
|
|
542
542
|
function tn() {
|
|
@@ -545,76 +545,78 @@ var Ee = {
|
|
|
545
545
|
function nn(e) {
|
|
546
546
|
tn(), e && (e.addEventListener("wheel", $t, { passive: !1 }), en = e);
|
|
547
547
|
}
|
|
548
|
-
return
|
|
548
|
+
return x(D, (e) => {
|
|
549
549
|
nn(e);
|
|
550
|
-
}, { immediate: !0 }),
|
|
551
|
-
tn(),
|
|
552
|
-
}),
|
|
553
|
-
showValidation:
|
|
550
|
+
}, { immediate: !0 }), fe(() => {
|
|
551
|
+
tn(), J(), B.forEach((e) => e.abort()), B.clear();
|
|
552
|
+
}), Be({
|
|
553
|
+
showValidation: Ct,
|
|
554
554
|
focusError: (e) => {
|
|
555
|
-
|
|
555
|
+
Ot(e), e.variableKey && g(() => Ut(e.variableKey));
|
|
556
556
|
},
|
|
557
|
-
getValues:
|
|
558
|
-
setValues:
|
|
559
|
-
validate:
|
|
560
|
-
submit:
|
|
561
|
-
resetValues:
|
|
562
|
-
scrollToVariable:
|
|
557
|
+
getValues: gt,
|
|
558
|
+
setValues: _t,
|
|
559
|
+
validate: vt,
|
|
560
|
+
submit: yt,
|
|
561
|
+
resetValues: bt,
|
|
562
|
+
scrollToVariable: Y,
|
|
563
563
|
setZoom: Q,
|
|
564
564
|
resetZoom: qt,
|
|
565
565
|
getZoom: Jt,
|
|
566
566
|
fitWidth: Yt,
|
|
567
567
|
scrollToPage: Xt
|
|
568
|
-
}), (e, t) => (
|
|
568
|
+
}), (e, t) => (_(), f("section", {
|
|
569
569
|
ref_key: "rendererElement",
|
|
570
|
-
ref:
|
|
571
|
-
class:
|
|
570
|
+
ref: Ue,
|
|
571
|
+
class: de(["gd-contract-template-renderer", {
|
|
572
572
|
"is-disabled": h.disabled,
|
|
573
573
|
"is-readonly": h.readonly,
|
|
574
574
|
"is-panel": h.interactionMode === "panel",
|
|
575
575
|
"is-inline": h.interactionMode === "inline"
|
|
576
576
|
}]),
|
|
577
|
-
onClick:
|
|
578
|
-
onKeydown:
|
|
579
|
-
onInput:
|
|
580
|
-
onChange:
|
|
577
|
+
onClick: pt,
|
|
578
|
+
onKeydown: ht,
|
|
579
|
+
onInput: ft,
|
|
580
|
+
onChange: ft
|
|
581
581
|
}, [
|
|
582
|
-
|
|
583
|
-
|
|
582
|
+
me(e.$slots, "fileBar"),
|
|
583
|
+
at.value ? (_(), u(ie, {
|
|
584
584
|
key: 0,
|
|
585
585
|
title: h.title,
|
|
586
|
-
"filled-count":
|
|
587
|
-
"total-count":
|
|
588
|
-
"
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
"
|
|
593
|
-
"
|
|
586
|
+
"filled-count": ot.value,
|
|
587
|
+
"total-count": U.value.length,
|
|
588
|
+
"progress-percent": ct.value,
|
|
589
|
+
"required-missing-count": st.value,
|
|
590
|
+
zoom: I.value,
|
|
591
|
+
pages: W.value,
|
|
592
|
+
"active-page-id": F.value,
|
|
593
|
+
"min-zoom": Le,
|
|
594
|
+
"max-zoom": Re,
|
|
594
595
|
"show-toolbar": h.showToolbar,
|
|
595
596
|
"show-validate-button": h.showValidateButton,
|
|
596
597
|
"show-reset-button": h.showResetButton,
|
|
597
598
|
"show-submit-button": h.showSubmitButton,
|
|
598
599
|
"show-panel-toggle": h.interactionMode === "panel" && h.collapsiblePanel,
|
|
599
|
-
"panel-collapsed":
|
|
600
|
+
"panel-collapsed": z.value,
|
|
600
601
|
readonly: h.readonly,
|
|
601
602
|
disabled: h.disabled,
|
|
602
|
-
onZoomIn: t[0] ||= (e) => Q(
|
|
603
|
-
onZoomOut: t[1] ||= (e) => Q(
|
|
603
|
+
onZoomIn: t[0] ||= (e) => Q(I.value + w),
|
|
604
|
+
onZoomOut: t[1] ||= (e) => Q(I.value - w),
|
|
604
605
|
onResetZoom: qt,
|
|
605
606
|
onFitWidth: Yt,
|
|
606
607
|
onSelectPage: Xt,
|
|
607
|
-
onValidate:
|
|
608
|
-
onReset:
|
|
609
|
-
onSubmit:
|
|
608
|
+
onValidate: vt,
|
|
609
|
+
onReset: xt,
|
|
610
|
+
onSubmit: yt,
|
|
610
611
|
onTogglePanel: Kt
|
|
611
612
|
}, {
|
|
612
|
-
extra:
|
|
613
|
+
extra: S(() => [me(e.$slots, "headerExtra")]),
|
|
613
614
|
_: 3
|
|
614
615
|
}, 8, [
|
|
615
616
|
"title",
|
|
616
617
|
"filled-count",
|
|
617
618
|
"total-count",
|
|
619
|
+
"progress-percent",
|
|
618
620
|
"required-missing-count",
|
|
619
621
|
"zoom",
|
|
620
622
|
"pages",
|
|
@@ -628,39 +630,39 @@ var Ee = {
|
|
|
628
630
|
"readonly",
|
|
629
631
|
"disabled"
|
|
630
632
|
])) : d("", !0),
|
|
631
|
-
|
|
633
|
+
dt.value ? (_(), u(oe, {
|
|
632
634
|
key: 1,
|
|
633
|
-
passed:
|
|
634
|
-
summary:
|
|
635
|
-
errors:
|
|
636
|
-
expanded:
|
|
637
|
-
onToggle: t[2] ||= (e) =>
|
|
638
|
-
onFocusError:
|
|
635
|
+
passed: lt.value,
|
|
636
|
+
summary: ut.value,
|
|
637
|
+
errors: Qe.value,
|
|
638
|
+
expanded: j.value,
|
|
639
|
+
onToggle: t[2] ||= (e) => j.value = !j.value,
|
|
640
|
+
onFocusError: Ot
|
|
639
641
|
}, null, 8, [
|
|
640
642
|
"passed",
|
|
641
643
|
"summary",
|
|
642
644
|
"errors",
|
|
643
645
|
"expanded"
|
|
644
646
|
])) : d("", !0),
|
|
645
|
-
|
|
647
|
+
at.value ? (_(), f("div", {
|
|
646
648
|
key: 3,
|
|
647
|
-
class:
|
|
649
|
+
class: de(["gd-contract-template-renderer__workspace", { "is-inline": h.interactionMode === "inline" }])
|
|
648
650
|
}, [p("div", {
|
|
649
651
|
ref_key: "pagesViewportElement",
|
|
650
|
-
ref:
|
|
652
|
+
ref: D,
|
|
651
653
|
class: "gd-contract-template-renderer__pages-viewport",
|
|
652
|
-
"data-highlighted-variable-key":
|
|
653
|
-
}, [p("div",
|
|
654
|
+
"data-highlighted-variable-key": N.value
|
|
655
|
+
}, [p("div", De, [(_(!0), f(se, null, pe(W.value, (e, t) => (_(), u(ae, {
|
|
654
656
|
key: e.id,
|
|
655
657
|
page: e,
|
|
656
658
|
index: t,
|
|
657
|
-
total:
|
|
658
|
-
zoom:
|
|
659
|
+
total: W.value.length,
|
|
660
|
+
zoom: I.value,
|
|
659
661
|
"show-meta": h.showPageMeta,
|
|
660
662
|
"font-base-url": h.contractFontBaseUrl,
|
|
661
|
-
"active-key":
|
|
662
|
-
"scroll-request":
|
|
663
|
-
onInteraction:
|
|
663
|
+
"active-key": N.value,
|
|
664
|
+
"scroll-request": Ke.value,
|
|
665
|
+
onInteraction: mt
|
|
664
666
|
}, null, 8, [
|
|
665
667
|
"page",
|
|
666
668
|
"index",
|
|
@@ -670,86 +672,86 @@ var Ee = {
|
|
|
670
672
|
"font-base-url",
|
|
671
673
|
"active-key",
|
|
672
674
|
"scroll-request"
|
|
673
|
-
]))), 128))])], 8,
|
|
675
|
+
]))), 128))])], 8, Ee), h.interactionMode === "panel" ? (_(), f("div", {
|
|
674
676
|
key: 0,
|
|
675
|
-
class:
|
|
676
|
-
}, [h.collapsiblePanel ? (
|
|
677
|
+
class: de(["gd-contract-template-renderer__panel-wrap", { "is-collapsed": z.value && h.collapsiblePanel }])
|
|
678
|
+
}, [h.collapsiblePanel ? (_(), u(b(be), {
|
|
677
679
|
key: 0,
|
|
678
|
-
title:
|
|
680
|
+
title: z.value ? "展开填写面板" : "收起填写面板"
|
|
679
681
|
}, {
|
|
680
|
-
default:
|
|
682
|
+
default: S(() => [p("button", {
|
|
681
683
|
type: "button",
|
|
682
684
|
class: "gd-contract-template-renderer__panel-handle",
|
|
683
|
-
"aria-label":
|
|
684
|
-
"aria-expanded": !
|
|
685
|
-
onClick: t[3] ||= (e) =>
|
|
686
|
-
}, [
|
|
685
|
+
"aria-label": z.value ? "展开填写面板" : "收起填写面板",
|
|
686
|
+
"aria-expanded": !z.value,
|
|
687
|
+
onClick: t[3] ||= (e) => z.value = !z.value
|
|
688
|
+
}, [z.value ? (_(), u(b(Se), {
|
|
687
689
|
key: 0,
|
|
688
690
|
"aria-hidden": "true"
|
|
689
|
-
})) : (
|
|
691
|
+
})) : (_(), u(b(Ce), {
|
|
690
692
|
key: 1,
|
|
691
693
|
"aria-hidden": "true"
|
|
692
|
-
}))], 8,
|
|
694
|
+
}))], 8, Oe)]),
|
|
693
695
|
_: 1
|
|
694
|
-
}, 8, ["title"])) : d("", !0), p("div",
|
|
695
|
-
p("div",
|
|
696
|
-
m(
|
|
697
|
-
value:
|
|
698
|
-
"onUpdate:value": t[4] ||= (e) =>
|
|
696
|
+
}, 8, ["title"])) : d("", !0), p("div", ke, [p("aside", Ae, [p("div", je, [
|
|
697
|
+
p("div", Me, [p("div", null, [t[6] ||= p("strong", null, "填写项", -1), p("span", null, y(ot.value) + " / " + y(U.value.length) + " 已填写", 1)]), p("span", null, y(st.value ? `${st.value} 项必填未完成` : "必填项已完成"), 1)]),
|
|
698
|
+
m(b(ge), {
|
|
699
|
+
value: L.value,
|
|
700
|
+
"onUpdate:value": t[4] ||= (e) => L.value = e,
|
|
699
701
|
"allow-clear": "",
|
|
700
702
|
size: "small",
|
|
701
703
|
class: "gd-contract-template-renderer__field-search",
|
|
702
704
|
placeholder: "搜索字段名称或标识"
|
|
703
705
|
}, {
|
|
704
|
-
prefix:
|
|
706
|
+
prefix: S(() => [m(b(we), { "aria-hidden": "true" })]),
|
|
705
707
|
_: 1
|
|
706
708
|
}, 8, ["value"]),
|
|
707
|
-
p("div",
|
|
708
|
-
value:
|
|
709
|
-
"onUpdate:value": t[5] ||= (e) =>
|
|
709
|
+
p("div", Ne, [m(b(ye), {
|
|
710
|
+
value: R.value,
|
|
711
|
+
"onUpdate:value": t[5] ||= (e) => R.value = e,
|
|
710
712
|
size: "small",
|
|
711
713
|
class: "gd-contract-template-renderer__field-filter",
|
|
712
|
-
options:
|
|
713
|
-
}, null, 8, ["value"]), m(
|
|
714
|
+
options: He
|
|
715
|
+
}, null, 8, ["value"]), m(b(he), {
|
|
714
716
|
size: "small",
|
|
715
|
-
disabled: !
|
|
717
|
+
disabled: !et.value,
|
|
716
718
|
onClick: zt
|
|
717
719
|
}, {
|
|
718
|
-
default:
|
|
720
|
+
default: S(() => [...t[7] ||= [le(" 下一个未填项 ", -1)]]),
|
|
719
721
|
_: 1
|
|
720
722
|
}, 8, ["disabled"])]),
|
|
721
|
-
m(
|
|
722
|
-
percent:
|
|
723
|
+
m(b(ve), {
|
|
724
|
+
percent: ct.value,
|
|
723
725
|
size: "small",
|
|
724
726
|
"show-info": !1
|
|
725
727
|
}, null, 8, ["percent"])
|
|
726
|
-
]),
|
|
728
|
+
]), rt.value.length ? (_(), f("div", {
|
|
727
729
|
key: 1,
|
|
728
730
|
ref_key: "fieldListElement",
|
|
729
|
-
ref:
|
|
731
|
+
ref: We,
|
|
730
732
|
class: "gd-contract-template-renderer__field-list",
|
|
731
733
|
onKeydownCapture: Wt
|
|
732
|
-
}, [(
|
|
734
|
+
}, [(_(!0), f(se, null, pe(it.value, (t) => (_(), f("div", {
|
|
733
735
|
key: t.id,
|
|
734
736
|
class: "gd-contract-template-renderer__field-group"
|
|
735
|
-
}, [p("div",
|
|
737
|
+
}, [p("div", Pe, [p("strong", null, y(t.title), 1), p("span", null, y(t.variables.length) + " / " + y(t.totalCount) + " 项", 1)]), p("div", Fe, [(_(!0), f(se, null, pe(t.variables, (t) => (_(), f("div", {
|
|
736
738
|
key: t.id || t.key,
|
|
737
739
|
"data-field-key": t.key
|
|
738
|
-
}, [
|
|
740
|
+
}, [me(e.$slots, "field", ue({ ref_for: !0 }, Rt(t)), () => [m(re, {
|
|
739
741
|
variable: t,
|
|
740
|
-
value:
|
|
741
|
-
errors:
|
|
742
|
-
active:
|
|
742
|
+
value: O.value[t.key],
|
|
743
|
+
errors: kt(t.key),
|
|
744
|
+
active: P.value === t.key,
|
|
743
745
|
readonly: h.readonly,
|
|
744
746
|
disabled: h.disabled,
|
|
745
|
-
options:
|
|
746
|
-
loading:
|
|
747
|
-
"load-error":
|
|
747
|
+
options: At(t).options,
|
|
748
|
+
loading: At(t).loading,
|
|
749
|
+
"load-error": At(t).error,
|
|
748
750
|
registration: jt(t),
|
|
749
751
|
"selector-http": h.selectorHttp,
|
|
750
752
|
"selector-url-prefix": h.selectorUrlPrefix,
|
|
751
|
-
onUpdateValue: (e) =>
|
|
752
|
-
onFocusVariable: (e) =>
|
|
753
|
+
onUpdateValue: (e) => K(t.key, e),
|
|
754
|
+
onFocusVariable: (e) => Y(t.key)
|
|
753
755
|
}, null, 8, [
|
|
754
756
|
"variable",
|
|
755
757
|
"value",
|
|
@@ -765,32 +767,32 @@ var Ee = {
|
|
|
765
767
|
"selector-url-prefix",
|
|
766
768
|
"onUpdateValue",
|
|
767
769
|
"onFocusVariable"
|
|
768
|
-
])])], 8,
|
|
770
|
+
])])], 8, Ie))), 128))])]))), 128))], 544)) : (_(), u(b(C), {
|
|
769
771
|
key: 0,
|
|
770
772
|
class: "gd-contract-template-renderer__field-empty",
|
|
771
|
-
description:
|
|
772
|
-
image:
|
|
773
|
+
description: U.value.length ? "没有符合条件的填写项" : "暂无填写项",
|
|
774
|
+
image: b(C).PRESENTED_IMAGE_SIMPLE
|
|
773
775
|
}, ce({
|
|
774
|
-
default:
|
|
776
|
+
default: S(() => [L.value || R.value !== "all" ? (_(), u(b(he), {
|
|
775
777
|
key: 0,
|
|
776
778
|
type: "link",
|
|
777
779
|
size: "small",
|
|
778
780
|
onClick: Vt
|
|
779
781
|
}, {
|
|
780
|
-
default:
|
|
782
|
+
default: S(() => [...t[9] ||= [le("清除筛选", -1)]]),
|
|
781
783
|
_: 1
|
|
782
784
|
})) : d("", !0)]),
|
|
783
785
|
_: 2
|
|
784
|
-
}, [
|
|
786
|
+
}, [L.value || R.value !== "all" ? {
|
|
785
787
|
name: "description",
|
|
786
|
-
fn:
|
|
788
|
+
fn: S(() => [t[8] ||= p("span", null, "没有符合条件的填写项", -1)]),
|
|
787
789
|
key: "0"
|
|
788
|
-
} : void 0]), 1032, ["description", "image"]))])])], 2)) : d("", !0)], 2)) : (
|
|
790
|
+
} : void 0]), 1032, ["description", "image"]))])])], 2)) : d("", !0)], 2)) : (_(), f("div", Te, [m(b(C), {
|
|
789
791
|
description: "暂无可渲染的合同页面",
|
|
790
|
-
image:
|
|
792
|
+
image: b(C).PRESENTED_IMAGE_SIMPLE
|
|
791
793
|
}, null, 8, ["image"])]))
|
|
792
794
|
], 34));
|
|
793
795
|
}
|
|
794
796
|
});
|
|
795
797
|
//#endregion
|
|
796
|
-
export {
|
|
798
|
+
export { Be as default };
|