@guodun/antdv 1.7.2 → 1.7.4
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/CHANGELOG.md +8 -0
- package/dist/es/components/contract-signing-location/src/ContractSigningLocation.vue.mjs +313 -308
- package/dist/es/components/contract-signing-location/style/index.css +1 -1
- package/dist/es/components/dept-selector/src/DeptSelector.vue.mjs +1 -0
- package/dist/es/components/pro-contract-signing-flow/style/index.css +1 -1
- package/dist/es/components/pro-contract-template-agent/style/index.css +1 -1
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.mjs +796 -0
- package/dist/es/components/pro-contract-template-designer/src/DesignerPage.vue.mjs +16 -5
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +3 -1
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.mjs +123 -710
- package/dist/es/components/pro-contract-template-designer/src/composables/use-renderer-files.mjs +80 -0
- package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +172 -134
- package/dist/es/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.mjs +11 -9
- package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +136 -76
- package/dist/es/components/pro-contract-template-designer/src/utils/toolbar-overflow.mjs +10 -9
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/components/pro-selector/src/ProUserSelector.vue.mjs +1 -0
- package/dist/es/components/pro-selector-group/src/index.vue.mjs +1 -0
- package/dist/es/components/pro-table/src/form-render.vue.mjs +1 -0
- package/dist/es/components/pro-table/src/pro-table.vue.mjs +23 -29
- package/dist/es/components/role-selector/src/RoleSelector.vue.mjs +1 -0
- package/dist/es/components/selector-core/components/DepartmentTree.vue.mjs +12 -10
- package/dist/es/components/selector-core/components/SelectionSummary.vue.mjs +1 -0
- package/dist/es/components/selector-core/components/SelectorDialog.vue.mjs +175 -171
- package/dist/lib/components/contract-signing-location/src/ContractSigningLocation.vue.cjs +1 -1
- package/dist/lib/components/contract-signing-location/style/index.css +1 -1
- package/dist/lib/components/dept-selector/src/DeptSelector.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-signing-flow/style/index.css +1 -1
- package/dist/lib/components/pro-contract-template-agent/style/index.css +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/DesignerPage.vue.cjs +2 -2
- package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-renderer-files.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +4 -4
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +3 -3
- package/dist/lib/components/pro-contract-template-designer/src/utils/toolbar-overflow.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/components/pro-selector/src/ProUserSelector.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/index.vue.cjs +1 -1
- package/dist/lib/components/pro-table/src/form-render.vue.cjs +1 -1
- package/dist/lib/components/pro-table/src/pro-table.vue.cjs +1 -1
- package/dist/lib/components/role-selector/src/RoleSelector.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/DepartmentTree.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/SelectionSummary.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/SelectorDialog.vue.cjs +1 -1
- package/dist/theme/base.css +1 -1
- package/dist/theme/contract-signing-location.css +1 -1
- package/dist/theme/controls.css +1 -1
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/theme/pro-contract-signing-flow.css +1 -1
- package/dist/theme/pro-drawer.css +1 -1
- package/dist/theme/pro-modal.css +1 -1
- package/dist/theme/pro-table.css +1 -1
- package/dist/theme/selector-core.css +1 -1
- package/dist/theme/var.css +1 -1
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.d.ts +89 -0
- package/dist/types/components/pro-contract-template-designer/src/DesignerPage.vue.d.ts +2 -0
- package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.d.ts +388 -10
- package/dist/types/components/pro-contract-template-designer/src/composables/use-renderer-files.d.ts +14 -0
- package/dist/types/components/pro-contract-template-designer/src/composables/use-template-designer.d.ts +9 -2
- package/dist/types/components/pro-contract-template-designer/src/types.d.ts +16 -2
- package/dist/types/components/pro-contract-template-designer/src/utils/template-renderer.d.ts +3 -3
- package/dist/types/components/pro-contract-template-designer/src/utils/toolbar-overflow.d.ts +2 -0
- package/package.json +5 -5
|
@@ -7,15 +7,15 @@ import le from "./ContractSigningLocationCanvas.mjs";
|
|
|
7
7
|
import ue from "./ContractSigningLocationInspector.mjs";
|
|
8
8
|
import de from "./ContractSigningLocationNavigator.mjs";
|
|
9
9
|
import { ContractSigningPreviewRequests as fe } from "./preview-requests.mjs";
|
|
10
|
-
import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as
|
|
11
|
-
import { Button as
|
|
12
|
-
import { LeftOutlined as
|
|
10
|
+
import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as pe, createVNode as g, defineComponent as me, nextTick as _, normalizeClass as he, normalizeStyle as ge, onBeforeUnmount as _e, openBlock as v, ref as y, shallowRef as b, toDisplayString as ve, unref as x, watch as S, withCtx as C } from "vue";
|
|
11
|
+
import { Button as w, Tooltip as ye } from "ant-design-vue";
|
|
12
|
+
import { LeftOutlined as be, ReloadOutlined as xe, RightOutlined as Se } from "@ant-design/icons-vue";
|
|
13
13
|
//#region src/components/contract-signing-location/src/ContractSigningLocation.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var
|
|
14
|
+
var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "gd-ant-contract-signing-location__title" }, Te = { class: "gd-ant-contract-signing-location__header-actions" }, Ee = { class: "gd-ant-contract-signing-location__placement-count" }, De = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "gd-ant-contract-signing-location__error",
|
|
17
17
|
role: "alert"
|
|
18
|
-
},
|
|
18
|
+
}, Oe = ["aria-label", "aria-expanded"], ke = { class: "gd-ant-contract-signing-location__panel-stack" }, Ae = ["aria-label", "aria-expanded"], je = { class: "gd-ant-contract-signing-location__panel-stack" }, Me = /* @__PURE__ */ me({
|
|
19
19
|
name: "ContractSigningLocation",
|
|
20
20
|
__name: "ContractSigningLocation",
|
|
21
21
|
props: {
|
|
@@ -74,122 +74,127 @@ var Se = { class: "gd-ant-contract-signing-location__header" }, Ce = { class: "g
|
|
|
74
74
|
"submit",
|
|
75
75
|
"error"
|
|
76
76
|
],
|
|
77
|
-
setup(e, { expose:
|
|
78
|
-
let
|
|
79
|
-
sealSizeLimit:
|
|
80
|
-
sealTypeOptions:
|
|
81
|
-
}),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
77
|
+
setup(e, { expose: me, emit: Me }) {
|
|
78
|
+
let T = e, E = Me, D = d(() => i(T.sealMinSize, T.sealMaxSize)), O = u(T.modelValue ?? c(T.contractId), {
|
|
79
|
+
sealSizeLimit: D.value,
|
|
80
|
+
sealTypeOptions: T.sealTypeOptions
|
|
81
|
+
}), k = b(O), Ne = b(s(O)), A = b(O.files[0]?.fileId ?? ""), j = b(O.files[0]?.pages[0]?.pageIndex ?? 0), M = b(""), N = b(!1), P = b(""), F = y([]), I = y({}), L = b(Ze(T.zoom)), R = y(null), z = y(!1), B = y(!1), V = b("loading"), Pe = b(""), H = 0, U = !1, Fe, W = [], Ie = 0, G = new fe(), K = d(() => T.mode === "preview"), Le = d(() => K.value || T.readonly || T.disabled), Re = d(() => T.showInspector ?? !K.value), ze = d(() => !K.value && T.showSubmitButton), Be = d(() => k.value.files.length <= 1), Ve = d(() => jt(T.height)), q = d(() => k.value.files.find((e) => e.fileId === A.value) ?? k.value.files[0]), J = d(() => a(q.value) && V.value !== "ready"), He = d(() => {
|
|
82
|
+
if (!J.value || K.value) return "";
|
|
83
|
+
if (V.value === "loading") return "合同排版校验中,暂不可指定签署位置";
|
|
84
|
+
let e = Pe.value.match(/第\s*(\d+)\s*页正文超出纸张/);
|
|
85
|
+
return e ? `第 ${e[1]} 页正文超出纸张,请回模板设计器调整后重试` : "合同排版校验失败,请检查模板后重试";
|
|
86
|
+
}), Y = d(() => Le.value || J.value), Ue = d(() => q.value?.pages.find((e) => e.pageIndex === j.value) ?? q.value?.pages[0]), We = d(() => {
|
|
87
|
+
let e = q.value;
|
|
88
|
+
return e ? k.value.placements.filter((t) => t.fileId === e.fileId) : [];
|
|
89
|
+
}), Ge = d(() => {
|
|
90
|
+
let e = q.value;
|
|
91
|
+
return e ? T.referencePlacements.filter((t) => t.fileId === e.fileId) : [];
|
|
92
|
+
}), X = d(() => k.value.placements.find((e) => e.id === M.value)), Ke = d(() => {
|
|
93
|
+
let e = X.value;
|
|
94
|
+
return e ? l(k.value, e.fileId, e.pageIndex) ?? Ue.value : Ue.value;
|
|
95
|
+
}), qe = d(() => F.value.filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Je = d(() => Object.keys(I.value).filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Ye = d(() => F.value.filter((e) => e.endsWith(":preview")).map((e) => e.slice(0, -8))), Xe = d(() => {
|
|
91
96
|
let e = {};
|
|
92
|
-
return Object.entries(
|
|
97
|
+
return Object.entries(I.value).forEach(([t, n]) => {
|
|
93
98
|
t.endsWith(":preview") && (e[t.slice(0, -8)] = n);
|
|
94
99
|
}), e;
|
|
95
100
|
});
|
|
96
|
-
|
|
101
|
+
S(() => T.modelValue, (e) => {
|
|
97
102
|
if (!e) return;
|
|
98
103
|
let t = u(e, {
|
|
99
|
-
sealSizeLimit:
|
|
100
|
-
sealTypeOptions:
|
|
104
|
+
sealSizeLimit: D.value,
|
|
105
|
+
sealTypeOptions: T.sealTypeOptions
|
|
101
106
|
});
|
|
102
|
-
|
|
103
|
-
}, { deep: !0 }),
|
|
104
|
-
|
|
105
|
-
sealSizeLimit:
|
|
106
|
-
sealTypeOptions:
|
|
107
|
-
})) !==
|
|
108
|
-
}),
|
|
109
|
-
|
|
110
|
-
}),
|
|
111
|
-
|
|
112
|
-
}),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
107
|
+
$(t) !== $(k.value) && (Et(), k.value = t, Ne.value = s(t), xt(), _(() => R.value?.scrollToPage(j.value)));
|
|
108
|
+
}, { deep: !0 }), S(D, () => {
|
|
109
|
+
$(u(k.value, {
|
|
110
|
+
sealSizeLimit: D.value,
|
|
111
|
+
sealTypeOptions: T.sealTypeOptions
|
|
112
|
+
})) !== $(k.value) && Z(k.value);
|
|
113
|
+
}), S(() => T.zoom, (e) => {
|
|
114
|
+
L.value = Ze(e);
|
|
115
|
+
}), S(() => q.value?.fileId, () => {
|
|
116
|
+
V.value = a(q.value) ? "loading" : "ready", Pe.value = "";
|
|
117
|
+
}), S(() => [
|
|
118
|
+
T.contractId,
|
|
119
|
+
T.dataProvider,
|
|
120
|
+
T.autoLoad
|
|
116
121
|
], ([e, t, n], r) => {
|
|
117
|
-
!n || !t || !e || (!r || e !== r[0] || t !== r[1]) &&
|
|
118
|
-
}, { immediate: !0 }),
|
|
119
|
-
|
|
122
|
+
!n || !t || !e || (!r || e !== r[0] || t !== r[1]) && et();
|
|
123
|
+
}, { immediate: !0 }), _e(() => {
|
|
124
|
+
U = !0, H += 1, Tt(), Et();
|
|
120
125
|
});
|
|
121
|
-
function
|
|
122
|
-
return n(e, Math.min(
|
|
123
|
-
}
|
|
124
|
-
function
|
|
125
|
-
let t =
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
130
|
-
}
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
sealSizeLimit:
|
|
134
|
-
sealTypeOptions:
|
|
135
|
-
}), t.clearError !== !1 && (
|
|
136
|
-
let n = s(
|
|
137
|
-
return
|
|
138
|
-
}
|
|
139
|
-
async function
|
|
140
|
-
let e = String(
|
|
141
|
-
if (!
|
|
126
|
+
function Ze(e) {
|
|
127
|
+
return n(e, Math.min(T.minZoom, T.maxZoom), Math.max(T.minZoom, T.maxZoom));
|
|
128
|
+
}
|
|
129
|
+
function Qe(e) {
|
|
130
|
+
let t = Ze(e);
|
|
131
|
+
L.value = t, E("update:zoom", t);
|
|
132
|
+
}
|
|
133
|
+
function $e() {
|
|
134
|
+
return R.value?.fitWidth() ?? L.value;
|
|
135
|
+
}
|
|
136
|
+
function Z(e, t = {}) {
|
|
137
|
+
k.value = u(e, {
|
|
138
|
+
sealSizeLimit: D.value,
|
|
139
|
+
sealTypeOptions: T.sealTypeOptions
|
|
140
|
+
}), t.clearError !== !1 && (P.value = ""), xt();
|
|
141
|
+
let n = s(k.value);
|
|
142
|
+
return E("update:modelValue", n), E("change", n), n;
|
|
143
|
+
}
|
|
144
|
+
async function et() {
|
|
145
|
+
let e = String(T.contractId || k.value.contractId || "").trim();
|
|
146
|
+
if (!T.dataProvider) return Q({
|
|
142
147
|
code: "CONTRACT_PROVIDER_MISSING",
|
|
143
148
|
message: "未配置合同数据提供器,请由宿主传入文件数据"
|
|
144
149
|
}), !1;
|
|
145
|
-
if (!e) return
|
|
150
|
+
if (!e) return Q({
|
|
146
151
|
code: "CONTRACT_ID_MISSING",
|
|
147
152
|
message: "缺少用于加载合同的 PaaS contractId"
|
|
148
153
|
}), !1;
|
|
149
|
-
let t = ++
|
|
150
|
-
|
|
154
|
+
let t = ++H;
|
|
155
|
+
Et(), N.value = !0, P.value = "";
|
|
151
156
|
try {
|
|
152
|
-
let n = await
|
|
153
|
-
if (
|
|
154
|
-
let i = ie(n, r(
|
|
157
|
+
let n = await T.dataProvider.loadContract({ contractId: e });
|
|
158
|
+
if (U || t !== H) return !1;
|
|
159
|
+
let i = ie(n, r(T.dataProvider.coordinateScale)), a = u({
|
|
155
160
|
...i,
|
|
156
161
|
contractId: e,
|
|
157
|
-
placements: i.placements.length ? i.placements :
|
|
162
|
+
placements: i.placements.length ? i.placements : k.value.contractId === e ? k.value.placements : []
|
|
158
163
|
}, {
|
|
159
|
-
sealSizeLimit:
|
|
160
|
-
sealTypeOptions:
|
|
164
|
+
sealSizeLimit: D.value,
|
|
165
|
+
sealTypeOptions: T.sealTypeOptions
|
|
161
166
|
});
|
|
162
|
-
|
|
167
|
+
k.value = a, Ne.value = s(a), M.value = "", xt();
|
|
163
168
|
let o = s(a);
|
|
164
|
-
return
|
|
169
|
+
return E("update:modelValue", o), E("change", o), E("ready", o), tt(), _(() => R.value?.scrollToPage(j.value)), o;
|
|
165
170
|
} catch (e) {
|
|
166
|
-
return
|
|
171
|
+
return U || t !== H || Q(St(e, "CONTRACT_LOAD_FAILED", "合同加载失败,请检查授权后重试")), !1;
|
|
167
172
|
} finally {
|
|
168
|
-
!
|
|
173
|
+
!U && t === H && (N.value = !1);
|
|
169
174
|
}
|
|
170
175
|
}
|
|
171
|
-
async function
|
|
172
|
-
|
|
176
|
+
async function tt() {
|
|
177
|
+
T.dataProvider?.loadPagePreview && await Promise.allSettled(k.value.files.map((e) => {
|
|
173
178
|
if (a(e)) return Promise.resolve();
|
|
174
179
|
let t = ne(e.pages);
|
|
175
|
-
return t && !t.thumbnailUrl ?
|
|
180
|
+
return t && !t.thumbnailUrl ? nt(e.fileId, t.pageIndex, !0) : Promise.resolve();
|
|
176
181
|
}));
|
|
177
182
|
}
|
|
178
|
-
async function
|
|
179
|
-
let i =
|
|
180
|
-
if (!i || a(o) || !ee ||
|
|
181
|
-
|
|
182
|
-
let c =
|
|
183
|
+
async function nt(e, t, n) {
|
|
184
|
+
let i = T.dataProvider?.loadPagePreview, o = k.value.files.find((t) => t.fileId === e), ee = l(k.value, e, t), s = Ct(e, t, n);
|
|
185
|
+
if (!i || a(o) || !ee || F.value.includes(s)) return;
|
|
186
|
+
wt(s), F.value = [...F.value, s];
|
|
187
|
+
let c = G.start(s);
|
|
183
188
|
try {
|
|
184
189
|
let a = await i({
|
|
185
|
-
contractId:
|
|
190
|
+
contractId: k.value.contractId || T.contractId,
|
|
186
191
|
fileId: e,
|
|
187
192
|
pageIndex: t,
|
|
188
193
|
thumbnail: n,
|
|
189
194
|
signal: c.signal
|
|
190
195
|
});
|
|
191
|
-
if (
|
|
192
|
-
let o = se(l(
|
|
196
|
+
if (U || !G.isCurrent(s, c) || !l(k.value, e, t)) return;
|
|
197
|
+
let o = se(l(k.value, e, t), a, r(T.dataProvider?.coordinateScale), n), ee = k.value.files.map((r) => r.fileId === e ? {
|
|
193
198
|
...r,
|
|
194
199
|
pages: r.pages.map((e) => e.pageIndex === t ? {
|
|
195
200
|
...e,
|
|
@@ -197,74 +202,74 @@ var Se = { class: "gd-ant-contract-signing-location__header" }, Ce = { class: "g
|
|
|
197
202
|
...n ? { thumbnailUrl: a.url } : { previewUrl: a.url }
|
|
198
203
|
} : e)
|
|
199
204
|
} : r);
|
|
200
|
-
|
|
201
|
-
...
|
|
205
|
+
Z({
|
|
206
|
+
...k.value,
|
|
202
207
|
files: ee
|
|
203
208
|
}, { clearError: !1 });
|
|
204
209
|
} catch (n) {
|
|
205
|
-
if (!
|
|
206
|
-
let r =
|
|
210
|
+
if (!G.isCurrent(s, c) || Dt(n)) return;
|
|
211
|
+
let r = St(n, "CONTRACT_PREVIEW_FAILED", "合同页面预览加载失败,可切换页面或重试", {
|
|
207
212
|
fileId: e,
|
|
208
213
|
pageIndex: t
|
|
209
214
|
});
|
|
210
|
-
|
|
211
|
-
...
|
|
215
|
+
E("error", r), I.value = {
|
|
216
|
+
...I.value,
|
|
212
217
|
[s]: r.message
|
|
213
218
|
};
|
|
214
219
|
} finally {
|
|
215
|
-
|
|
220
|
+
G.finish(s, c) && (F.value = F.value.filter((e) => e !== s));
|
|
216
221
|
}
|
|
217
222
|
}
|
|
218
|
-
function tt(e) {
|
|
219
|
-
if (e === j.value) return;
|
|
220
|
-
let t = j.value;
|
|
221
|
-
Ct(), t && (wt((e) => e.startsWith(`${t}:`) && e.endsWith(":preview")), G = G.filter((t) => t.fileId === e)), j.value = e, M.value = ne(A.value.files.find((t) => t.fileId === e)?.pages)?.pageIndex ?? 0, N.value = "", D("file-change", e), D("page-change", e, M.value), v(() => z.value?.scrollToPage(M.value));
|
|
222
|
-
}
|
|
223
|
-
function nt(e) {
|
|
224
|
-
M.value = e;
|
|
225
|
-
}
|
|
226
223
|
function rt(e) {
|
|
227
|
-
|
|
224
|
+
if (e === A.value) return;
|
|
225
|
+
let t = A.value;
|
|
226
|
+
Tt(), t && (Et((e) => e.startsWith(`${t}:`) && e.endsWith(":preview")), W = W.filter((t) => t.fileId === e)), A.value = e, j.value = ne(k.value.files.find((t) => t.fileId === e)?.pages)?.pageIndex ?? 0, M.value = "", E("file-change", e), E("page-change", e, j.value), _(() => R.value?.scrollToPage(j.value));
|
|
228
227
|
}
|
|
229
228
|
function it(e) {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
229
|
+
j.value = e;
|
|
230
|
+
}
|
|
231
|
+
function at(e) {
|
|
232
|
+
j.value !== e && (j.value = e), E("page-change", A.value, e);
|
|
233
|
+
}
|
|
234
|
+
function ot(e) {
|
|
235
|
+
Tt();
|
|
236
|
+
let t = A.value;
|
|
237
|
+
Fe = setTimeout(() => {
|
|
238
|
+
Fe = void 0, A.value === t && st(t, e);
|
|
234
239
|
}, 150);
|
|
235
240
|
}
|
|
236
|
-
function
|
|
237
|
-
let n =
|
|
238
|
-
!n || a(n) || e !==
|
|
241
|
+
function st(e, t) {
|
|
242
|
+
let n = k.value.files.find((t) => t.fileId === e);
|
|
243
|
+
!n || a(n) || e !== A.value || (t.forEach((e) => {
|
|
239
244
|
let t = n.pages.find((t) => t.pageIndex === e);
|
|
240
|
-
!t || t.previewUrl ||
|
|
245
|
+
!t || t.previewUrl || F.value.includes(Ct(n.fileId, e, !1)) || W.some((t) => t.fileId === n.fileId && t.pageIndex === e) || W.push({
|
|
241
246
|
fileId: n.fileId,
|
|
242
247
|
pageIndex: e
|
|
243
248
|
});
|
|
244
|
-
}),
|
|
249
|
+
}), ct());
|
|
245
250
|
}
|
|
246
|
-
async function
|
|
247
|
-
let e =
|
|
248
|
-
for (
|
|
249
|
-
let t =
|
|
251
|
+
async function ct() {
|
|
252
|
+
let e = A.value;
|
|
253
|
+
for (W = W.filter((t) => t.fileId === e); Ie < 3 && W.length;) {
|
|
254
|
+
let t = W.shift();
|
|
250
255
|
if (!t || t.fileId !== e) continue;
|
|
251
|
-
let n = l(
|
|
252
|
-
!n || a(r) || n.previewUrl ||
|
|
253
|
-
|
|
256
|
+
let n = l(k.value, t.fileId, t.pageIndex), r = k.value.files.find((e) => e.fileId === t.fileId);
|
|
257
|
+
!n || a(r) || n.previewUrl || F.value.includes(Ct(t.fileId, t.pageIndex, !1)) || (Ie += 1, nt(t.fileId, t.pageIndex, !1).finally(() => {
|
|
258
|
+
Ie = Math.max(0, Ie - 1), ct();
|
|
254
259
|
}));
|
|
255
260
|
}
|
|
256
261
|
}
|
|
257
|
-
function
|
|
258
|
-
let t =
|
|
259
|
-
t && (t.fileId !==
|
|
262
|
+
function lt(e) {
|
|
263
|
+
let t = k.value.placements.find((t) => t.id === e);
|
|
264
|
+
t && (t.fileId !== A.value && rt(t.fileId), M.value = e, _(() => R.value?.scrollToPlacement(e)));
|
|
260
265
|
}
|
|
261
|
-
function
|
|
262
|
-
if (
|
|
263
|
-
let n = t.fileId ??
|
|
266
|
+
function ut(e, t = {}) {
|
|
267
|
+
if (Y.value || !T.allowedPlacementTypes.includes(e)) return;
|
|
268
|
+
let n = t.fileId ?? q.value?.fileId, r = t.pageIndex ?? Ue.value?.pageIndex;
|
|
264
269
|
if (!n || r === void 0) return;
|
|
265
|
-
let i = l(
|
|
270
|
+
let i = l(k.value, n, r);
|
|
266
271
|
if (!i || !re(i)) {
|
|
267
|
-
|
|
272
|
+
Q({
|
|
268
273
|
code: "CONTRACT_PAGE_SIZE_INVALID",
|
|
269
274
|
message: "当前页面缺少有效的原始宽高,暂时不能添加签署位置",
|
|
270
275
|
fileId: n,
|
|
@@ -272,9 +277,9 @@ var Se = { class: "gd-ant-contract-signing-location__header" }, Ce = { class: "g
|
|
|
272
277
|
});
|
|
273
278
|
return;
|
|
274
279
|
}
|
|
275
|
-
let a = oe(
|
|
280
|
+
let a = oe(T.defaultSealTypes, T.sealTypeOptions);
|
|
276
281
|
if (e === "seal" && !a.length) {
|
|
277
|
-
|
|
282
|
+
Q({
|
|
278
283
|
code: "CONTRACT_SEAL_TYPES_MISSING",
|
|
279
284
|
message: "当前未配置可用的印章类型,暂时不能添加印章位置",
|
|
280
285
|
fileId: n,
|
|
@@ -285,105 +290,105 @@ var Se = { class: "gd-ant-contract-signing-location__header" }, Ce = { class: "g
|
|
|
285
290
|
let o = te(e, n, i, {
|
|
286
291
|
signLeft: t.signLeft,
|
|
287
292
|
signTop: t.signTop,
|
|
288
|
-
sizeProfile:
|
|
289
|
-
sealSizeLimit:
|
|
290
|
-
sealTypeOptions:
|
|
293
|
+
sizeProfile: T.sizeProfile,
|
|
294
|
+
sealSizeLimit: D.value,
|
|
295
|
+
sealTypeOptions: T.sealTypeOptions,
|
|
291
296
|
...e === "seal" ? { sealType: a } : {}
|
|
292
297
|
});
|
|
293
|
-
return
|
|
294
|
-
...
|
|
295
|
-
placements: [...
|
|
296
|
-
}),
|
|
297
|
-
}
|
|
298
|
-
function
|
|
299
|
-
|
|
300
|
-
...
|
|
301
|
-
placements:
|
|
298
|
+
return Z({
|
|
299
|
+
...k.value,
|
|
300
|
+
placements: [...k.value.placements, o]
|
|
301
|
+
}), A.value = n, j.value = r, M.value = o.id, kt(o);
|
|
302
|
+
}
|
|
303
|
+
function dt(e, t) {
|
|
304
|
+
Y.value || Z({
|
|
305
|
+
...k.value,
|
|
306
|
+
placements: k.value.placements.map((n) => {
|
|
302
307
|
if (n.id !== e) return n;
|
|
303
308
|
let r = t.pageIndex === void 0 ? n.pageIndex : t.pageIndex;
|
|
304
|
-
return ae(n, t, l(
|
|
305
|
-
sealSizeLimit:
|
|
306
|
-
sealTypeOptions:
|
|
309
|
+
return ae(n, t, l(k.value, n.fileId, r), {
|
|
310
|
+
sealSizeLimit: D.value,
|
|
311
|
+
sealTypeOptions: T.sealTypeOptions
|
|
307
312
|
});
|
|
308
313
|
})
|
|
309
314
|
});
|
|
310
315
|
}
|
|
311
|
-
function
|
|
312
|
-
let e =
|
|
313
|
-
if (!e ||
|
|
314
|
-
let n = l(
|
|
316
|
+
function ft() {
|
|
317
|
+
let e = X.value;
|
|
318
|
+
if (!e || Y.value) return;
|
|
319
|
+
let n = l(k.value, e.fileId, e.pageIndex);
|
|
315
320
|
if (!n) return;
|
|
316
321
|
let r = t({
|
|
317
|
-
...
|
|
318
|
-
id:
|
|
322
|
+
...kt(e),
|
|
323
|
+
id: At(),
|
|
319
324
|
signLeft: e.signLeft + 16,
|
|
320
325
|
signTop: e.signTop + 16
|
|
321
|
-
}, n, { sealSizeLimit:
|
|
322
|
-
|
|
323
|
-
...
|
|
324
|
-
placements: [...
|
|
325
|
-
}),
|
|
326
|
-
}
|
|
327
|
-
function
|
|
328
|
-
|
|
329
|
-
...
|
|
330
|
-
placements:
|
|
331
|
-
}),
|
|
326
|
+
}, n, { sealSizeLimit: D.value });
|
|
327
|
+
Z({
|
|
328
|
+
...k.value,
|
|
329
|
+
placements: [...k.value.placements, r]
|
|
330
|
+
}), M.value = r.id;
|
|
331
|
+
}
|
|
332
|
+
function pt(e) {
|
|
333
|
+
Y.value || (Z({
|
|
334
|
+
...k.value,
|
|
335
|
+
placements: k.value.placements.filter((t) => t.id !== e)
|
|
336
|
+
}), M.value === e && (M.value = ""));
|
|
332
337
|
}
|
|
333
|
-
function
|
|
334
|
-
let e = ce(
|
|
335
|
-
return
|
|
338
|
+
function mt() {
|
|
339
|
+
let e = ce(k.value, { allowedSealTypes: T.sealTypeOptions.map((e) => e.value) });
|
|
340
|
+
return J.value ? [...e, {
|
|
336
341
|
code: "CONTRACT_TEMPLATE_FONT_UNAVAILABLE",
|
|
337
|
-
message:
|
|
342
|
+
message: yt()
|
|
338
343
|
}] : e;
|
|
339
344
|
}
|
|
340
|
-
function
|
|
341
|
-
return s(
|
|
345
|
+
function ht() {
|
|
346
|
+
return s(k.value);
|
|
342
347
|
}
|
|
343
|
-
function
|
|
344
|
-
if (
|
|
348
|
+
function gt() {
|
|
349
|
+
if (J.value) throw new o([{
|
|
345
350
|
code: "CONTRACT_TEMPLATE_FONT_UNAVAILABLE",
|
|
346
|
-
message:
|
|
351
|
+
message: yt()
|
|
347
352
|
}]);
|
|
348
|
-
return ee(
|
|
353
|
+
return ee(ht(), { allowedSealTypes: T.sealTypeOptions.map((e) => e.value) });
|
|
349
354
|
}
|
|
350
|
-
function
|
|
351
|
-
if (
|
|
352
|
-
let e =
|
|
353
|
-
return console.error("[GD-SIGN-COORD]", e),
|
|
355
|
+
function _t() {
|
|
356
|
+
if (J.value) {
|
|
357
|
+
let e = yt();
|
|
358
|
+
return console.error("[GD-SIGN-COORD]", e), Q({
|
|
354
359
|
code: "CONTRACT_TEMPLATE_FONT_UNAVAILABLE",
|
|
355
360
|
message: e
|
|
356
361
|
}), !1;
|
|
357
362
|
}
|
|
358
363
|
try {
|
|
359
|
-
let e =
|
|
360
|
-
return
|
|
364
|
+
let e = gt();
|
|
365
|
+
return P.value = "", E("submit", e), e;
|
|
361
366
|
} catch (e) {
|
|
362
|
-
return
|
|
367
|
+
return Q(e instanceof o ? {
|
|
363
368
|
...e.errors[0],
|
|
364
369
|
cause: e
|
|
365
|
-
} :
|
|
370
|
+
} : St(e, "CONTRACT_SIGNING_LOCATION_INVALID", "指定签署位置数据不完整")), !1;
|
|
366
371
|
}
|
|
367
372
|
}
|
|
368
|
-
function
|
|
369
|
-
|
|
373
|
+
function vt(e, t) {
|
|
374
|
+
V.value = e, Pe.value = e === "error" ? t || "合同排版度量校验失败" : "";
|
|
370
375
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
376
|
+
function yt() {
|
|
377
|
+
return V.value === "error" ? Pe.value || "合同排版度量校验失败,禁止生成签署坐标" : "合同排版度量校验中,请稍后再保存签署坐标";
|
|
373
378
|
}
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
376
|
-
let e =
|
|
377
|
-
return
|
|
379
|
+
function bt() {
|
|
380
|
+
if (Y.value) return s(k.value);
|
|
381
|
+
let e = Z(s(Ne.value));
|
|
382
|
+
return M.value = "", xt(!0), _(() => R.value?.scrollToPage(j.value)), e;
|
|
378
383
|
}
|
|
379
|
-
function
|
|
380
|
-
let t = (e ? void 0 :
|
|
381
|
-
|
|
384
|
+
function xt(e = !1) {
|
|
385
|
+
let t = (e ? void 0 : k.value.files.find((e) => e.fileId === A.value)) ?? k.value.files[0];
|
|
386
|
+
A.value = t?.fileId ?? "", j.value = ((e ? void 0 : t?.pages.find((e) => e.pageIndex === j.value)) ?? t?.pages[0])?.pageIndex ?? 0, k.value.placements.some((e) => e.id === M.value) || (M.value = "");
|
|
382
387
|
}
|
|
383
|
-
function
|
|
384
|
-
|
|
388
|
+
function Q(e) {
|
|
389
|
+
P.value = e.message, E("error", e);
|
|
385
390
|
}
|
|
386
|
-
function
|
|
391
|
+
function St(e, t, n, r = {}) {
|
|
387
392
|
let i = typeof e == "object" && e && "status" in e ? Number(e.status) : void 0;
|
|
388
393
|
return {
|
|
389
394
|
code: t,
|
|
@@ -392,170 +397,170 @@ var Se = { class: "gd-ant-contract-signing-location__header" }, Ce = { class: "g
|
|
|
392
397
|
cause: e
|
|
393
398
|
};
|
|
394
399
|
}
|
|
395
|
-
function
|
|
400
|
+
function Ct(e, t, n) {
|
|
396
401
|
return `${e}:${t}:${n ? "thumbnail" : "preview"}`;
|
|
397
402
|
}
|
|
398
|
-
function St(e) {
|
|
399
|
-
if (!(e in L.value)) return;
|
|
400
|
-
let t = { ...L.value };
|
|
401
|
-
delete t[e], L.value = t;
|
|
402
|
-
}
|
|
403
|
-
function Ct() {
|
|
404
|
-
Pe &&= (clearTimeout(Pe), void 0);
|
|
405
|
-
}
|
|
406
403
|
function wt(e) {
|
|
407
|
-
|
|
408
|
-
|
|
404
|
+
if (!(e in I.value)) return;
|
|
405
|
+
let t = { ...I.value };
|
|
406
|
+
delete t[e], I.value = t;
|
|
409
407
|
}
|
|
410
|
-
function Tt(
|
|
411
|
-
|
|
408
|
+
function Tt() {
|
|
409
|
+
Fe &&= (clearTimeout(Fe), void 0);
|
|
412
410
|
}
|
|
413
411
|
function Et(e) {
|
|
414
|
-
let t =
|
|
415
|
-
|
|
412
|
+
let t = e ?? (() => !0), n = new Set(G.abort(t));
|
|
413
|
+
n.size && (F.value = F.value.filter((e) => !n.has(e))), e || (W = []);
|
|
416
414
|
}
|
|
417
415
|
function Dt(e) {
|
|
416
|
+
return !!(e && typeof e == "object" && "cancelled" in e && e.cancelled) || e instanceof DOMException && e.name === "AbortError";
|
|
417
|
+
}
|
|
418
|
+
function Ot(e) {
|
|
419
|
+
let t = q.value;
|
|
420
|
+
t && nt(t.fileId, e, !1);
|
|
421
|
+
}
|
|
422
|
+
function kt(e) {
|
|
418
423
|
return {
|
|
419
424
|
...e,
|
|
420
425
|
sealType: e.sealType ? [...e.sealType] : void 0
|
|
421
426
|
};
|
|
422
427
|
}
|
|
423
|
-
function
|
|
428
|
+
function $(e) {
|
|
424
429
|
return JSON.stringify(e);
|
|
425
430
|
}
|
|
426
|
-
function
|
|
431
|
+
function At() {
|
|
427
432
|
return typeof crypto < "u" && "randomUUID" in crypto ? `contract-signing-placement-${crypto.randomUUID()}` : `contract-signing-placement-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
428
433
|
}
|
|
429
|
-
function
|
|
434
|
+
function jt(e) {
|
|
430
435
|
if (typeof e == "number" && Number.isFinite(e) && e > 0) return { "--gd-ant-contract-signing-location-height": `${e}px` };
|
|
431
436
|
if (typeof e == "string" && e.trim()) return { "--gd-ant-contract-signing-location-height": e.trim() };
|
|
432
437
|
}
|
|
433
|
-
return
|
|
434
|
-
load:
|
|
435
|
-
validate:
|
|
436
|
-
getValue:
|
|
437
|
-
getOutput:
|
|
438
|
-
submit:
|
|
439
|
-
reset:
|
|
440
|
-
addPlacement:
|
|
441
|
-
removePlacement:
|
|
442
|
-
fitWidth:
|
|
443
|
-
}), (t, n) => (
|
|
444
|
-
class:
|
|
445
|
-
"is-readonly":
|
|
438
|
+
return me({
|
|
439
|
+
load: et,
|
|
440
|
+
validate: mt,
|
|
441
|
+
getValue: ht,
|
|
442
|
+
getOutput: gt,
|
|
443
|
+
submit: _t,
|
|
444
|
+
reset: bt,
|
|
445
|
+
addPlacement: ut,
|
|
446
|
+
removePlacement: pt,
|
|
447
|
+
fitWidth: $e
|
|
448
|
+
}), (t, n) => (v(), m("section", {
|
|
449
|
+
class: he(["gd-ant-contract-signing-location", {
|
|
450
|
+
"is-readonly": Le.value,
|
|
446
451
|
"is-disabled": e.disabled,
|
|
447
|
-
"is-preview":
|
|
452
|
+
"is-preview": K.value
|
|
448
453
|
}]),
|
|
449
|
-
style:
|
|
454
|
+
style: ge(Ve.value)
|
|
450
455
|
}, [
|
|
451
|
-
h("header",
|
|
456
|
+
h("header", Ce, [h("div", we, [n[6] ||= h("span", {
|
|
452
457
|
class: "gd-ant-contract-signing-location__title-bar",
|
|
453
458
|
"aria-hidden": "true"
|
|
454
|
-
}, null, -1), h("div", null, [h("strong", null,
|
|
455
|
-
h("span",
|
|
456
|
-
e.dataProvider ? (
|
|
459
|
+
}, null, -1), h("div", null, [h("strong", null, ve(K.value ? "合同预览" : "指定合同签署位置"), 1)])]), h("div", Te, [
|
|
460
|
+
h("span", Ee, ve(k.value.placements.length) + " 个位置", 1),
|
|
461
|
+
e.dataProvider ? (v(), f(x(w), {
|
|
457
462
|
key: 0,
|
|
458
|
-
loading:
|
|
459
|
-
onClick:
|
|
463
|
+
loading: N.value,
|
|
464
|
+
onClick: et
|
|
460
465
|
}, {
|
|
461
|
-
default:
|
|
466
|
+
default: C(() => [g(x(xe), { "aria-hidden": "true" }), n[7] ||= pe(" 重新加载 ", -1)]),
|
|
462
467
|
_: 1
|
|
463
468
|
}, 8, ["loading"])) : p("", !0),
|
|
464
|
-
|
|
469
|
+
K.value ? p("", !0) : (v(), f(x(w), {
|
|
465
470
|
key: 1,
|
|
466
|
-
disabled:
|
|
467
|
-
onClick:
|
|
471
|
+
disabled: Y.value,
|
|
472
|
+
onClick: bt
|
|
468
473
|
}, {
|
|
469
|
-
default:
|
|
474
|
+
default: C(() => [...n[8] ||= [pe("重置", -1)]]),
|
|
470
475
|
_: 1
|
|
471
476
|
}, 8, ["disabled"])),
|
|
472
|
-
|
|
477
|
+
ze.value ? (v(), f(x(w), {
|
|
473
478
|
key: 2,
|
|
474
479
|
type: "primary",
|
|
475
|
-
loading:
|
|
476
|
-
disabled: e.disabled ||
|
|
477
|
-
onClick:
|
|
480
|
+
loading: N.value,
|
|
481
|
+
disabled: e.disabled || J.value,
|
|
482
|
+
onClick: _t
|
|
478
483
|
}, {
|
|
479
|
-
default:
|
|
484
|
+
default: C(() => [...n[9] ||= [pe("确认并生成规则", -1)]]),
|
|
480
485
|
_: 1
|
|
481
486
|
}, 8, ["loading", "disabled"])) : p("", !0)
|
|
482
487
|
])]),
|
|
483
|
-
|
|
488
|
+
P.value || He.value ? (v(), m("div", De, [h("span", null, ve(P.value || He.value), 1), P.value && e.dataProvider && e.contractId ? (v(), f(x(w), {
|
|
484
489
|
key: 0,
|
|
485
490
|
type: "link",
|
|
486
491
|
size: "small",
|
|
487
|
-
onClick:
|
|
492
|
+
onClick: et
|
|
488
493
|
}, {
|
|
489
|
-
default:
|
|
494
|
+
default: C(() => [...n[10] ||= [pe("重试", -1)]]),
|
|
490
495
|
_: 1
|
|
491
496
|
})) : p("", !0)])) : p("", !0),
|
|
492
|
-
h("div", { class:
|
|
493
|
-
"is-single-file":
|
|
494
|
-
"is-inspector-hidden": !
|
|
497
|
+
h("div", { class: he(["gd-ant-contract-signing-location__body", {
|
|
498
|
+
"is-single-file": Be.value,
|
|
499
|
+
"is-inspector-hidden": !Re.value
|
|
495
500
|
}]) }, [
|
|
496
|
-
|
|
501
|
+
Be.value ? p("", !0) : (v(), m("div", {
|
|
497
502
|
key: 0,
|
|
498
|
-
class:
|
|
499
|
-
}, [
|
|
500
|
-
default:
|
|
503
|
+
class: he(["gd-ant-contract-signing-location__navigator-wrap", { "is-collapsed": B.value }])
|
|
504
|
+
}, [g(x(ye), { title: B.value ? "展开页面栏" : "收起页面栏" }, {
|
|
505
|
+
default: C(() => [h("button", {
|
|
501
506
|
type: "button",
|
|
502
507
|
class: "gd-ant-contract-signing-location__panel-handle",
|
|
503
|
-
"aria-label":
|
|
504
|
-
"aria-expanded": !
|
|
505
|
-
onClick: n[0] ||= (e) =>
|
|
506
|
-
}, [
|
|
508
|
+
"aria-label": B.value ? "展开页面栏" : "收起页面栏",
|
|
509
|
+
"aria-expanded": !B.value,
|
|
510
|
+
onClick: n[0] ||= (e) => B.value = !B.value
|
|
511
|
+
}, [B.value ? (v(), f(x(Se), {
|
|
507
512
|
key: 0,
|
|
508
513
|
"aria-hidden": "true"
|
|
509
|
-
})) : (
|
|
514
|
+
})) : (v(), f(x(be), {
|
|
510
515
|
key: 1,
|
|
511
516
|
"aria-hidden": "true"
|
|
512
|
-
}))], 8,
|
|
517
|
+
}))], 8, Oe)]),
|
|
513
518
|
_: 1
|
|
514
|
-
}, 8, ["title"]), h("div",
|
|
515
|
-
files:
|
|
516
|
-
"active-file-id":
|
|
517
|
-
"loading-preview-keys":
|
|
518
|
-
"error-preview-keys":
|
|
519
|
-
onSelect:
|
|
519
|
+
}, 8, ["title"]), h("div", ke, [g(de, {
|
|
520
|
+
files: k.value.files,
|
|
521
|
+
"active-file-id": A.value,
|
|
522
|
+
"loading-preview-keys": qe.value,
|
|
523
|
+
"error-preview-keys": Je.value,
|
|
524
|
+
onSelect: rt
|
|
520
525
|
}, null, 8, [
|
|
521
526
|
"files",
|
|
522
527
|
"active-file-id",
|
|
523
528
|
"loading-preview-keys",
|
|
524
529
|
"error-preview-keys"
|
|
525
530
|
])])], 2)),
|
|
526
|
-
|
|
531
|
+
g(le, {
|
|
527
532
|
ref_key: "canvasRef",
|
|
528
|
-
ref:
|
|
529
|
-
file:
|
|
530
|
-
pages:
|
|
531
|
-
placements:
|
|
532
|
-
"reference-placements":
|
|
533
|
-
"selected-placement-id":
|
|
534
|
-
readonly:
|
|
533
|
+
ref: R,
|
|
534
|
+
file: q.value,
|
|
535
|
+
pages: q.value?.pages ?? [],
|
|
536
|
+
placements: We.value,
|
|
537
|
+
"reference-placements": Ge.value,
|
|
538
|
+
"selected-placement-id": M.value,
|
|
539
|
+
readonly: Y.value,
|
|
535
540
|
resizable: e.resizable,
|
|
536
|
-
"seal-size-limit":
|
|
541
|
+
"seal-size-limit": D.value,
|
|
537
542
|
"seal-type-options": e.sealTypeOptions,
|
|
538
|
-
zoom:
|
|
539
|
-
"preview-loading-keys":
|
|
540
|
-
"preview-error-map":
|
|
541
|
-
"active-page-index":
|
|
543
|
+
zoom: L.value,
|
|
544
|
+
"preview-loading-keys": Ye.value,
|
|
545
|
+
"preview-error-map": Xe.value,
|
|
546
|
+
"active-page-index": j.value,
|
|
542
547
|
"min-zoom": e.minZoom,
|
|
543
548
|
"max-zoom": e.maxZoom,
|
|
544
549
|
"font-base-url": e.contractFontBaseUrl,
|
|
545
|
-
onSelect: n[1] ||= (e) =>
|
|
546
|
-
onRetry:
|
|
547
|
-
onAdd: n[2] ||= (e, t, n, r) =>
|
|
550
|
+
onSelect: n[1] ||= (e) => M.value = e,
|
|
551
|
+
onRetry: Ot,
|
|
552
|
+
onAdd: n[2] ||= (e, t, n, r) => ut(e, {
|
|
548
553
|
signLeft: t,
|
|
549
554
|
signTop: n,
|
|
550
555
|
pageIndex: r
|
|
551
556
|
}),
|
|
552
|
-
onUpdate: n[3] ||= (e) =>
|
|
553
|
-
onRemove:
|
|
554
|
-
onVisiblePages:
|
|
555
|
-
onViewPage:
|
|
556
|
-
onPageChange:
|
|
557
|
-
onZoomChange:
|
|
558
|
-
onTemplateStatus:
|
|
557
|
+
onUpdate: n[3] ||= (e) => dt(e.id, e),
|
|
558
|
+
onRemove: pt,
|
|
559
|
+
onVisiblePages: ot,
|
|
560
|
+
onViewPage: it,
|
|
561
|
+
onPageChange: at,
|
|
562
|
+
onZoomChange: Qe,
|
|
563
|
+
onTemplateStatus: vt
|
|
559
564
|
}, null, 8, [
|
|
560
565
|
"file",
|
|
561
566
|
"pages",
|
|
@@ -574,40 +579,40 @@ var Se = { class: "gd-ant-contract-signing-location__header" }, Ce = { class: "g
|
|
|
574
579
|
"max-zoom",
|
|
575
580
|
"font-base-url"
|
|
576
581
|
]),
|
|
577
|
-
|
|
582
|
+
Re.value ? (v(), m("div", {
|
|
578
583
|
key: 1,
|
|
579
|
-
class:
|
|
580
|
-
}, [
|
|
581
|
-
default:
|
|
584
|
+
class: he(["gd-ant-contract-signing-location__inspector-wrap", { "is-collapsed": z.value }])
|
|
585
|
+
}, [g(x(ye), { title: z.value ? "展开属性栏" : "收起属性栏" }, {
|
|
586
|
+
default: C(() => [h("button", {
|
|
582
587
|
type: "button",
|
|
583
588
|
class: "gd-ant-contract-signing-location__panel-handle",
|
|
584
|
-
"aria-label":
|
|
585
|
-
"aria-expanded": !
|
|
586
|
-
onClick: n[4] ||= (e) =>
|
|
587
|
-
}, [
|
|
589
|
+
"aria-label": z.value ? "展开属性栏" : "收起属性栏",
|
|
590
|
+
"aria-expanded": !z.value,
|
|
591
|
+
onClick: n[4] ||= (e) => z.value = !z.value
|
|
592
|
+
}, [z.value ? (v(), f(x(be), {
|
|
588
593
|
key: 0,
|
|
589
594
|
"aria-hidden": "true"
|
|
590
|
-
})) : (
|
|
595
|
+
})) : (v(), f(x(Se), {
|
|
591
596
|
key: 1,
|
|
592
597
|
"aria-hidden": "true"
|
|
593
|
-
}))], 8,
|
|
598
|
+
}))], 8, Ae)]),
|
|
594
599
|
_: 1
|
|
595
|
-
}, 8, ["title"]), h("div",
|
|
596
|
-
placement:
|
|
597
|
-
page:
|
|
598
|
-
pages:
|
|
599
|
-
placements:
|
|
600
|
-
readonly:
|
|
600
|
+
}, 8, ["title"]), h("div", je, [g(ue, {
|
|
601
|
+
placement: X.value,
|
|
602
|
+
page: Ke.value,
|
|
603
|
+
pages: q.value?.pages ?? [],
|
|
604
|
+
placements: We.value,
|
|
605
|
+
readonly: Y.value,
|
|
601
606
|
resizable: e.resizable,
|
|
602
|
-
"seal-size-limit":
|
|
607
|
+
"seal-size-limit": D.value,
|
|
603
608
|
"seal-type-options": e.sealTypeOptions,
|
|
604
609
|
"allowed-placement-types": e.allowedPlacementTypes,
|
|
605
610
|
"size-profile": e.sizeProfile,
|
|
606
|
-
onAdd:
|
|
607
|
-
onUpdate: n[5] ||= (e) =>
|
|
608
|
-
onDuplicate:
|
|
609
|
-
onRemove:
|
|
610
|
-
onLocate:
|
|
611
|
+
onAdd: ut,
|
|
612
|
+
onUpdate: n[5] ||= (e) => X.value && dt(X.value.id, e),
|
|
613
|
+
onDuplicate: ft,
|
|
614
|
+
onRemove: pt,
|
|
615
|
+
onLocate: lt
|
|
611
616
|
}, null, 8, [
|
|
612
617
|
"placement",
|
|
613
618
|
"page",
|
|
@@ -625,4 +630,4 @@ var Se = { class: "gd-ant-contract-signing-location__header" }, Ce = { class: "g
|
|
|
625
630
|
}
|
|
626
631
|
});
|
|
627
632
|
//#endregion
|
|
628
|
-
export {
|
|
633
|
+
export { Me as default };
|