@guodun/antdv 1.4.3 → 1.4.5
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/contract-signing-location/src/ContractSigningLocation.vue.mjs +85 -85
- package/dist/es/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.mjs +1 -1
- package/dist/es/components/contract-signing-location/src/ContractSigningTemplatePage.vue.mjs +66 -13
- package/dist/es/components/contract-signing-location/src/constants.mjs +27 -17
- package/dist/es/components/contract-signing-location/src/location-rules.mjs +2 -2
- package/dist/es/components/contract-signing-location/src/template-source.mjs +52 -36
- package/dist/es/components/contract-signing-location/style/index.css +1 -1
- package/dist/es/components/dept-selector/src/dept.mjs +170 -142
- package/dist/es/components/index.mjs +2 -1
- package/dist/es/components/pro-contract-template-designer/index.mjs +2 -1
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +372 -185
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.mjs +59 -42
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.mjs +4 -4
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.mjs +218 -85
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.vue.mjs +97 -0
- package/dist/es/components/pro-contract-template-designer/src/DesignerPage.vue.mjs +50 -50
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +948 -887
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.mjs +550 -245
- package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +225 -150
- package/dist/es/components/pro-contract-template-designer/src/extensions/template-variable.mjs +53 -35
- package/dist/es/components/pro-contract-template-designer/src/types.mjs +15 -2
- package/dist/es/components/pro-contract-template-designer/src/utils/advanced-controls.mjs +91 -0
- package/dist/es/components/pro-contract-template-designer/src/utils/page-decorations.mjs +17 -17
- package/dist/es/components/pro-contract-template-designer/src/utils/signing-placement.mjs +14 -14
- package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +168 -137
- package/dist/es/components/pro-contract-template-designer/src/utils/template-tool-icons.mjs +23 -16
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/components/pro-selector/src/components/org-tree.mjs +130 -89
- package/dist/es/components/pro-selector/src/components/user.mjs +34 -26
- package/dist/es/components/pro-selector/src/pro-user.mjs +86 -72
- package/dist/es/components/pro-selector/src/types.mjs +4 -1
- package/dist/es/components/pro-selector/src/utils/orgTree.mjs +5 -2
- package/dist/es/components/pro-selector-group/src/compoents/dept-tree.vue.mjs +92 -65
- package/dist/es/components/pro-selector-group/src/compoents/dept.vue.mjs +3 -3
- package/dist/es/components/pro-selector-group/src/compoents/role.vue.mjs +98 -73
- package/dist/es/components/pro-selector-group/src/compoents/select-box.vue.mjs +12 -9
- package/dist/es/components/pro-selector-group/src/compoents/user.vue.mjs +101 -72
- package/dist/es/components/pro-selector-group/src/hooks/useApi.mjs +39 -22
- package/dist/es/components/pro-selector-group/src/index.vue.mjs +105 -83
- package/dist/es/components/pro-selector-group/src/utils/index.mjs +36 -0
- package/dist/es/components/role-selector/src/role.mjs +134 -120
- package/dist/es/index.mjs +50 -49
- package/dist/lib/components/contract-signing-location/src/ContractSigningLocation.vue.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/ContractSigningTemplatePage.vue.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/constants.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/location-rules.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/template-source.cjs +1 -1
- package/dist/lib/components/contract-signing-location/style/index.css +1 -1
- package/dist/lib/components/dept-selector/src/dept.cjs +1 -1
- package/dist/lib/components/index.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/index.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +2 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.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-template-designer.cjs +4 -4
- package/dist/lib/components/pro-contract-template-designer/src/extensions/template-variable.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/types.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/utils/advanced-controls.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/utils/page-decorations.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/utils/signing-placement.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/template-tool-icons.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/components/pro-selector/src/components/org-tree.cjs +1 -1
- package/dist/lib/components/pro-selector/src/components/user.cjs +1 -1
- package/dist/lib/components/pro-selector/src/pro-user.cjs +1 -1
- package/dist/lib/components/pro-selector/src/types.cjs +1 -1
- package/dist/lib/components/pro-selector/src/utils/orgTree.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/compoents/dept-tree.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/compoents/dept.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/compoents/role.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/compoents/select-box.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/compoents/user.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/hooks/useApi.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/index.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/utils/index.cjs +1 -0
- package/dist/lib/components/role-selector/src/role.cjs +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/theme/contract-signing-location.css +1 -1
- package/dist/theme/dept-selector.css +1 -1
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/theme/pro-selector-group.css +1 -1
- package/dist/theme/pro-selector.css +1 -1
- package/dist/theme/role-selector.css +1 -1
- package/dist/types/components/contract-signing-location/src/ContractSigningLocation.vue.d.ts +3 -3
- package/dist/types/components/contract-signing-location/src/ContractSigningTemplatePage.vue.d.ts +3 -1
- package/dist/types/components/contract-signing-location/src/constants.d.ts +18 -0
- package/dist/types/components/contract-signing-location/src/coordinates.d.ts +6 -0
- package/dist/types/components/contract-signing-location/src/template-source.d.ts +17 -0
- package/dist/types/components/pro-contract-template-designer/index.d.ts +1 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.d.ts +1 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.d.ts +3 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.d.ts +7 -1
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.vue.d.ts +14 -0
- package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +13 -1
- package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.d.ts +11 -1
- package/dist/types/components/pro-contract-template-designer/src/composables/use-template-designer.d.ts +4 -0
- package/dist/types/components/pro-contract-template-designer/src/extensions/template-variable.d.ts +11 -1
- package/dist/types/components/pro-contract-template-designer/src/types.d.ts +131 -2
- package/dist/types/components/pro-contract-template-designer/src/utils/advanced-controls.d.ts +15 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/template-renderer.d.ts +10 -2
- package/dist/types/components/pro-selector/index.d.ts +9 -0
- package/dist/types/components/pro-selector/src/components/user.d.ts +9 -0
- package/dist/types/components/pro-selector/src/types.d.ts +2 -0
- package/dist/types/components/pro-selector/src/utils/orgTree.d.ts +4 -1
- package/dist/types/components/pro-selector-group/src/compoents/select-box.vue.d.ts +4 -4
- package/dist/types/components/pro-selector-group/src/hooks/useApi.d.ts +6 -1
- package/dist/types/components/pro-selector-group/src/utils/index.d.ts +8 -0
- package/package.json +5 -1
|
@@ -1,49 +1,72 @@
|
|
|
1
1
|
import { validateContractTemplateVariableKey as e } from "./composables/use-template-designer.mjs";
|
|
2
2
|
import t from "./SigningPlacementInspector.mjs";
|
|
3
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { CopyOutlined as
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as ee, openBlock as d, ref as f, renderList as p, resolveDynamicComponent as m, toDisplayString as h, unref as g, watch as _, withCtx as v, withKeys as te, withModifiers as ne } from "vue";
|
|
4
|
+
import { Button as y, Empty as b, Input as x, InputNumber as S, Select as C, Switch as w, Tag as T, Tooltip as E } from "ant-design-vue";
|
|
5
|
+
import { CopyOutlined as re, DeleteOutlined as ie, LeftOutlined as ae, RightOutlined as oe } from "@ant-design/icons-vue";
|
|
6
6
|
//#region src/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var se = ["aria-label", "aria-expanded"], ce = { class: "gd-contract-template-designer__panel-stack" }, le = { class: "gd-contract-template-designer__panel gd-contract-template-designer__panel--tools" }, ue = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "gd-contract-template-designer__advanced-control-group"
|
|
10
|
+
}, de = { class: "gd-contract-template-designer__advanced-control-list" }, fe = [
|
|
11
|
+
"disabled",
|
|
12
|
+
"onDragstart",
|
|
13
|
+
"onClick"
|
|
14
|
+
], pe = {
|
|
15
|
+
class: "gd-contract-template-designer__tool-item-icon",
|
|
16
|
+
"aria-hidden": "true"
|
|
17
|
+
}, D = { class: "gd-contract-template-designer__tool-item-copy" }, O = [
|
|
8
18
|
"disabled",
|
|
9
19
|
"onDragstart",
|
|
10
20
|
"onClick"
|
|
11
|
-
],
|
|
21
|
+
], k = {
|
|
12
22
|
class: "gd-contract-template-designer__tool-item-icon",
|
|
13
23
|
"aria-hidden": "true"
|
|
14
|
-
},
|
|
24
|
+
}, A = { class: "gd-contract-template-designer__tool-item-copy" }, j = {
|
|
15
25
|
key: 0,
|
|
16
26
|
class: "gd-contract-template-designer__panel gd-contract-template-designer__panel--tools"
|
|
17
|
-
},
|
|
27
|
+
}, M = { class: "gd-contract-template-designer__panel-head" }, N = { class: "gd-contract-template-designer__panel-actions" }, P = [
|
|
18
28
|
"disabled",
|
|
19
29
|
"onDragstart",
|
|
20
30
|
"onClick"
|
|
21
|
-
],
|
|
31
|
+
], F = {
|
|
22
32
|
class: "gd-contract-template-designer__tool-item-icon",
|
|
23
33
|
"aria-hidden": "true"
|
|
24
|
-
},
|
|
34
|
+
}, I = { class: "gd-contract-template-designer__signing-tool-copy" }, L = { class: "gd-contract-template-designer__signing-tool-label" }, R = {
|
|
25
35
|
key: 2,
|
|
26
36
|
class: "gd-contract-template-designer__panel gd-contract-template-designer__panel--properties"
|
|
27
|
-
},
|
|
37
|
+
}, z = { class: "gd-contract-template-designer__panel-head" }, B = {
|
|
28
38
|
key: 0,
|
|
29
39
|
class: "gd-contract-template-designer__panel-actions"
|
|
30
|
-
},
|
|
40
|
+
}, me = { class: "gd-contract-template-designer__form-row" }, he = {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "gd-contract-template-designer__advanced-properties"
|
|
43
|
+
}, ge = { class: "gd-contract-template-designer__advanced-properties-content" }, _e = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "gd-contract-template-designer__switch-row"
|
|
46
|
+
}, ve = { class: "gd-contract-template-designer__form-row is-stacked" }, ye = { class: "gd-contract-template-designer__form-row" }, be = {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "gd-contract-template-designer__form-row"
|
|
49
|
+
}, xe = { class: "gd-contract-template-designer__form-row" }, Se = { class: "gd-contract-template-designer__form-row" }, Ce = { class: "gd-contract-template-designer__form-row" }, we = { class: "gd-contract-template-designer__form-row is-stacked" }, Te = {
|
|
31
50
|
key: 0,
|
|
32
51
|
class: "gd-contract-template-designer__form-error",
|
|
33
52
|
role: "alert"
|
|
34
|
-
},
|
|
53
|
+
}, Ee = { class: "gd-contract-template-designer__form-row" }, De = {
|
|
35
54
|
key: 1,
|
|
55
|
+
class: "gd-contract-template-designer__form-error",
|
|
56
|
+
role: "alert"
|
|
57
|
+
}, Oe = { class: "gd-contract-template-designer__form-row" }, ke = { class: "gd-contract-template-designer__form-row" }, Ae = { class: "gd-contract-template-designer__form-row" }, je = { class: "gd-contract-template-designer__form-row" }, Me = {
|
|
58
|
+
key: 2,
|
|
36
59
|
class: "gd-contract-template-designer__switch-grid"
|
|
37
|
-
},
|
|
60
|
+
}, Ne = { class: "gd-contract-template-designer__switch-row" }, Pe = {
|
|
38
61
|
key: 0,
|
|
39
62
|
class: "gd-contract-template-designer__form-row is-compact"
|
|
40
|
-
},
|
|
41
|
-
key:
|
|
63
|
+
}, V = {
|
|
64
|
+
key: 3,
|
|
42
65
|
class: "gd-contract-template-designer__form-row"
|
|
43
|
-
},
|
|
66
|
+
}, Fe = { class: "gd-contract-template-designer__form-row" }, Ie = { class: "gd-contract-template-designer__form-row" }, Le = { class: "gd-contract-template-designer__form-row" }, Re = { class: "gd-contract-template-designer__form-row" }, ze = { class: "gd-contract-template-designer__switch-grid" }, Be = { class: "gd-contract-template-designer__switch-row" }, Ve = { class: "gd-contract-template-designer__switch-row" }, He = { class: "gd-contract-template-designer__switch-row" }, Ue = {
|
|
44
67
|
key: 0,
|
|
45
68
|
class: "gd-contract-template-designer__switch-row"
|
|
46
|
-
},
|
|
69
|
+
}, We = { class: "gd-contract-template-designer__form-row" }, Ge = { class: "gd-contract-template-designer__form-row" }, Ke = { class: "gd-contract-template-designer__form-row" }, qe = ["value", "disabled"], Je = { class: "gd-contract-template-designer__form-row" }, Ye = ["value", "disabled"], Xe = { class: "gd-contract-template-designer__form-row" }, Ze = ["value", "disabled"], Qe = { class: "gd-contract-template-designer__form-row" }, $e = { class: "gd-contract-template-designer__form-row" }, et = { class: "gd-contract-template-designer__form-row" }, H = /* @__PURE__ */ u({
|
|
47
70
|
name: "ContractTemplateDesignerInspector",
|
|
48
71
|
__name: "ContractTemplateDesignerInspector",
|
|
49
72
|
props: {
|
|
@@ -93,283 +116,447 @@ var w = ["aria-label", "aria-expanded"], T = { class: "gd-contract-template-desi
|
|
|
93
116
|
"patchBorderStyle",
|
|
94
117
|
"patchObjectFit"
|
|
95
118
|
],
|
|
96
|
-
setup(
|
|
97
|
-
let
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}, { immediate: !0 })
|
|
101
|
-
|
|
102
|
-
|
|
119
|
+
setup(u, { emit: H }) {
|
|
120
|
+
let U = u, W = H, G = () => U.readonly || U.disabled, K = f(""), q = f(!1), J = f("{}"), Y = f(""), X = r(() => q.value && U.selectedVariable ? e(K.value, U.variables, U.selectedVariable.id) : "");
|
|
121
|
+
_(() => [U.selectedVariable?.id, U.selectedVariable?.key], ([, e]) => {
|
|
122
|
+
K.value = e ?? "", q.value = !1;
|
|
123
|
+
}, { immediate: !0 }), _(() => [U.selectedVariable?.id, U.selectedVariable?.componentConfig], ([, e]) => {
|
|
124
|
+
J.value = JSON.stringify(e ?? {}, null, 2), Y.value = "";
|
|
125
|
+
}, {
|
|
126
|
+
immediate: !0,
|
|
127
|
+
deep: !0
|
|
128
|
+
});
|
|
129
|
+
let tt = r(() => [
|
|
130
|
+
{
|
|
131
|
+
key: "basic",
|
|
132
|
+
label: "基础控件",
|
|
133
|
+
advanced: !1
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: "advanced-choice",
|
|
137
|
+
label: "下拉与单选",
|
|
138
|
+
advanced: !0
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
key: "builtin-selector",
|
|
142
|
+
label: "组织选择器",
|
|
143
|
+
advanced: !0
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
key: "custom",
|
|
147
|
+
label: "自定义控件",
|
|
148
|
+
advanced: !0
|
|
149
|
+
}
|
|
150
|
+
].map((e) => ({
|
|
151
|
+
...e,
|
|
152
|
+
items: U.bodyControlToolItems.filter((t) => t.group === e.key)
|
|
153
|
+
})).filter((e) => e.items.length > 0)), nt = r(() => {
|
|
154
|
+
let e = U.selectedVariable?.type;
|
|
155
|
+
return e === "select" || e === "radio" || e === "custom" || !!e?.endsWith("-selector");
|
|
156
|
+
}), rt = r(() => (U.selectedVariable?.options ?? []).map((e) => `${e.value}|${e.label}`).join("\n"));
|
|
157
|
+
function Z(e) {
|
|
158
|
+
W("insertVariable", e.type);
|
|
159
|
+
}
|
|
160
|
+
function Q(e) {
|
|
161
|
+
U.selectedVariable && W("patchVariable", { dataSource: {
|
|
162
|
+
...U.selectedVariable.dataSource ?? {
|
|
163
|
+
kind: "resolver",
|
|
164
|
+
resolverKey: ""
|
|
165
|
+
},
|
|
166
|
+
...e
|
|
167
|
+
} });
|
|
168
|
+
}
|
|
169
|
+
function it(e) {
|
|
170
|
+
if (e === "none") {
|
|
171
|
+
W("patchVariable", { dataSource: void 0 });
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
W("patchVariable", { dataSource: e === "url" ? {
|
|
175
|
+
kind: "url",
|
|
176
|
+
url: "",
|
|
177
|
+
method: "GET"
|
|
178
|
+
} : {
|
|
179
|
+
kind: "resolver",
|
|
180
|
+
resolverKey: ""
|
|
181
|
+
} });
|
|
182
|
+
}
|
|
183
|
+
function at(e) {
|
|
184
|
+
W("patchVariable", { options: e.target.value.split(/\r?\n/).map((e) => e.trim()).filter(Boolean).map((e) => {
|
|
185
|
+
let [t, ...n] = e.split("|");
|
|
186
|
+
return {
|
|
187
|
+
value: t.trim(),
|
|
188
|
+
label: n.join("|").trim() || t.trim(),
|
|
189
|
+
type: U.selectedVariable?.type || "select"
|
|
190
|
+
};
|
|
191
|
+
}) });
|
|
192
|
+
}
|
|
193
|
+
function ot() {
|
|
194
|
+
try {
|
|
195
|
+
let e = JSON.parse(J.value);
|
|
196
|
+
if (!e || typeof e != "object" || Array.isArray(e)) throw TypeError("配置必须是 JSON 对象");
|
|
197
|
+
Y.value = "", W("patchVariable", { componentConfig: e });
|
|
198
|
+
} catch (e) {
|
|
199
|
+
Y.value = e instanceof Error ? e.message : "JSON 配置无效";
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
function st(e) {
|
|
203
|
+
K.value = e.target.value, q.value = !0;
|
|
103
204
|
}
|
|
104
205
|
function $() {
|
|
105
|
-
if (!
|
|
106
|
-
let e =
|
|
107
|
-
e !==
|
|
206
|
+
if (!U.selectedVariable || G() || (q.value = !0, X.value)) return;
|
|
207
|
+
let e = K.value.trim();
|
|
208
|
+
e !== U.selectedVariable.key && W("renameVariable", e), q.value = !1;
|
|
108
209
|
}
|
|
109
|
-
return (e, r) => (
|
|
110
|
-
default:
|
|
210
|
+
return (e, r) => (d(), o("aside", { class: ee(["gd-contract-template-designer__inspector", { "is-collapsed": U.collapsed }]) }, [l(g(E), { title: U.collapsed ? "展开属性栏" : "收起属性栏" }, {
|
|
211
|
+
default: v(() => [s("button", {
|
|
111
212
|
type: "button",
|
|
112
213
|
class: "gd-contract-template-designer__panel-handle",
|
|
113
|
-
"aria-label":
|
|
114
|
-
"aria-expanded": !
|
|
115
|
-
onClick: r[0] ||= (e) =>
|
|
116
|
-
}, [
|
|
214
|
+
"aria-label": U.collapsed ? "展开属性栏" : "收起属性栏",
|
|
215
|
+
"aria-expanded": !U.collapsed,
|
|
216
|
+
onClick: r[0] ||= (e) => W("toggle")
|
|
217
|
+
}, [U.collapsed ? (d(), i(g(ae), {
|
|
117
218
|
key: 0,
|
|
118
219
|
"aria-hidden": "true"
|
|
119
|
-
})) : (
|
|
220
|
+
})) : (d(), i(g(oe), {
|
|
120
221
|
key: 1,
|
|
121
222
|
"aria-hidden": "true"
|
|
122
|
-
}))], 8,
|
|
223
|
+
}))], 8, se)]),
|
|
123
224
|
_: 1
|
|
124
|
-
}, 8, ["title"]), s("div",
|
|
125
|
-
s("section",
|
|
225
|
+
}, 8, ["title"]), s("div", ce, [
|
|
226
|
+
s("section", le, [r[38] ||= s("div", { class: "gd-contract-template-designer__panel-head" }, [s("strong", null, "正文控件"), s("span", null, "拖到正文")], -1), (d(!0), o(n, null, p(tt.value, (e) => (d(), o(n, { key: e.key }, [e.advanced ? (d(), o("details", ue, [s("summary", null, [c(h(e.label), 1), l(g(T), null, {
|
|
227
|
+
default: v(() => [c(h(e.items.length), 1)]),
|
|
228
|
+
_: 2
|
|
229
|
+
}, 1024)]), s("div", de, [(d(!0), o(n, null, p(e.items, (e) => (d(), o("button", {
|
|
230
|
+
key: e.type,
|
|
231
|
+
type: "button",
|
|
232
|
+
draggable: "true",
|
|
233
|
+
class: "gd-contract-template-designer__tool-item",
|
|
234
|
+
disabled: G(),
|
|
235
|
+
onDragstart: (t) => W("variableDragStart", t, e.type),
|
|
236
|
+
onClick: (t) => Z(e)
|
|
237
|
+
}, [s("span", pe, [(d(), i(m(e.icon)))]), s("span", D, [s("span", null, h(e.label), 1), r[36] ||= s("small", null, "高级控件", -1)])], 40, fe))), 128))])])) : (d(!0), o(n, { key: 1 }, p(e.items, (e) => (d(), o("button", {
|
|
126
238
|
key: e.type,
|
|
127
239
|
type: "button",
|
|
128
240
|
draggable: "true",
|
|
129
241
|
class: "gd-contract-template-designer__tool-item",
|
|
130
|
-
disabled:
|
|
131
|
-
onDragstart: (t) =>
|
|
132
|
-
onClick: (t) =>
|
|
133
|
-
}, [s("span",
|
|
134
|
-
|
|
135
|
-
default:
|
|
242
|
+
disabled: G(),
|
|
243
|
+
onDragstart: (t) => W("variableDragStart", t, e.type),
|
|
244
|
+
onClick: (t) => Z(e)
|
|
245
|
+
}, [s("span", k, [(d(), i(m(e.icon)))]), s("span", A, [s("span", null, h(e.label), 1), r[37] ||= s("small", null, "模板变量", -1)])], 40, O))), 128))], 64))), 128))]),
|
|
246
|
+
U.showSigningPlacementTools ? (d(), o("section", j, [s("div", M, [r[39] ||= s("strong", null, "签署位置", -1), s("div", N, [l(g(T), null, {
|
|
247
|
+
default: v(() => [c(h(U.signingPlacements.length), 1)]),
|
|
136
248
|
_: 1
|
|
137
|
-
})])]), (
|
|
249
|
+
})])]), (d(!0), o(n, null, p(U.signingPlacementTools, (e) => (d(), o("button", {
|
|
138
250
|
key: e.key,
|
|
139
251
|
type: "button",
|
|
140
252
|
draggable: "true",
|
|
141
253
|
class: "gd-contract-template-designer__tool-item gd-contract-template-designer__signing-tool",
|
|
142
|
-
disabled:
|
|
143
|
-
onDragstart: (t) =>
|
|
144
|
-
onClick: (t) =>
|
|
145
|
-
}, [s("span",
|
|
146
|
-
|
|
254
|
+
disabled: G(),
|
|
255
|
+
onDragstart: (t) => W("signingPlacementDragStart", t, e),
|
|
256
|
+
onClick: (t) => W("insertSigningPlacement", e)
|
|
257
|
+
}, [s("span", F, [(d(), i(m(U.resolveSigningPlacementTypeIcon(e.type))))]), s("span", I, [s("span", L, h(e.label), 1), s("small", null, h(U.signingPlacementTypeLabels[e.type]) + " · 页面坐标", 1)])], 40, P))), 128))])) : a("", !0),
|
|
258
|
+
U.showSigningPlacementTools && U.selectedSigningPlacement ? (d(), i(t, {
|
|
147
259
|
key: 1,
|
|
148
|
-
placement:
|
|
149
|
-
"page-size":
|
|
150
|
-
readonly:
|
|
151
|
-
disabled:
|
|
152
|
-
onUpdate: r[1] ||= (e) =>
|
|
153
|
-
onDuplicate: r[2] ||= (e) =>
|
|
154
|
-
onRemove: r[3] ||= (e) =>
|
|
260
|
+
placement: U.selectedSigningPlacement,
|
|
261
|
+
"page-size": U.selectedSigningPlacementPageSize,
|
|
262
|
+
readonly: U.readonly,
|
|
263
|
+
disabled: U.disabled,
|
|
264
|
+
onUpdate: r[1] ||= (e) => W("patchSigningPlacement", e),
|
|
265
|
+
onDuplicate: r[2] ||= (e) => W("duplicateSigningPlacement"),
|
|
266
|
+
onRemove: r[3] ||= (e) => W("removeSigningPlacement")
|
|
155
267
|
}, null, 8, [
|
|
156
268
|
"placement",
|
|
157
269
|
"page-size",
|
|
158
270
|
"readonly",
|
|
159
271
|
"disabled"
|
|
160
|
-
])) : (
|
|
161
|
-
default:
|
|
272
|
+
])) : (d(), o("section", R, [s("div", z, [r[40] ||= s("strong", null, "属性", -1), U.selectedVariable ? (d(), o("div", B, [l(g(E), { title: "复制变量" }, {
|
|
273
|
+
default: v(() => [l(g(y), {
|
|
162
274
|
size: "small",
|
|
163
275
|
type: "primary",
|
|
164
276
|
class: "gd-contract-template-designer__icon-button",
|
|
165
|
-
disabled:
|
|
277
|
+
disabled: G(),
|
|
166
278
|
"aria-label": "复制变量",
|
|
167
|
-
onClick: r[4] ||= (e) =>
|
|
279
|
+
onClick: r[4] ||= (e) => W("duplicateVariable", U.selectedVariable)
|
|
168
280
|
}, {
|
|
169
|
-
default:
|
|
281
|
+
default: v(() => [l(g(re), { "aria-hidden": "true" })]),
|
|
170
282
|
_: 1
|
|
171
283
|
}, 8, ["disabled"])]),
|
|
172
284
|
_: 1
|
|
173
|
-
}),
|
|
174
|
-
default:
|
|
285
|
+
}), l(g(E), { title: "删除变量" }, {
|
|
286
|
+
default: v(() => [l(g(y), {
|
|
175
287
|
danger: "",
|
|
176
288
|
type: "primary",
|
|
177
289
|
size: "small",
|
|
178
290
|
class: "gd-contract-template-designer__icon-button",
|
|
179
|
-
disabled:
|
|
291
|
+
disabled: G(),
|
|
180
292
|
"aria-label": "删除变量",
|
|
181
|
-
onClick: r[5] ||= (e) =>
|
|
293
|
+
onClick: r[5] ||= (e) => W("removeVariable", U.selectedVariable)
|
|
182
294
|
}, {
|
|
183
|
-
default:
|
|
295
|
+
default: v(() => [l(g(ie), { "aria-hidden": "true" })]),
|
|
184
296
|
_: 1
|
|
185
297
|
}, 8, ["disabled"])]),
|
|
186
298
|
_: 1
|
|
187
|
-
})])) : a("", !0)]),
|
|
188
|
-
s("label",
|
|
189
|
-
value:
|
|
190
|
-
disabled:
|
|
191
|
-
onChange: r[6] ||= (e) =>
|
|
299
|
+
})])) : a("", !0)]), U.selectedVariable ? (d(), o(n, { key: 1 }, [
|
|
300
|
+
s("label", me, [r[41] ||= s("span", null, "名称", -1), l(g(x), {
|
|
301
|
+
value: U.selectedVariable.label,
|
|
302
|
+
disabled: G(),
|
|
303
|
+
onChange: r[6] ||= (e) => W("patchVariable", { label: e.target.value })
|
|
192
304
|
}, null, 8, ["value", "disabled"])]),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
305
|
+
nt.value ? (d(), o("details", he, [r[50] ||= s("summary", null, "高级属性", -1), s("div", ge, [
|
|
306
|
+
U.selectedVariable.type !== "radio" && U.selectedVariable.type !== "custom" ? (d(), o("label", _e, [r[42] ||= s("span", null, "允许多选", -1), l(g(w), {
|
|
307
|
+
checked: !!U.selectedVariable.multiple,
|
|
308
|
+
disabled: G(),
|
|
309
|
+
onChange: r[7] ||= (e) => W("patchVariable", { multiple: !!e })
|
|
310
|
+
}, null, 8, ["checked", "disabled"])])) : a("", !0),
|
|
311
|
+
U.selectedVariable.type === "select" || U.selectedVariable.type === "radio" ? (d(), o(n, { key: 1 }, [
|
|
312
|
+
s("label", ve, [r[43] ||= s("span", null, [c("本地选项 "), s("small", null, "每行 value|label")], -1), l(g(x).TextArea, {
|
|
313
|
+
value: rt.value,
|
|
314
|
+
rows: 4,
|
|
315
|
+
disabled: G(),
|
|
316
|
+
onChange: at
|
|
317
|
+
}, null, 8, ["value", "disabled"])]),
|
|
318
|
+
s("label", ye, [r[44] ||= s("span", null, "数据来源", -1), l(g(C), {
|
|
319
|
+
value: U.selectedVariable.dataSource?.kind || "none",
|
|
320
|
+
options: [
|
|
321
|
+
{
|
|
322
|
+
label: "仅本地选项",
|
|
323
|
+
value: "none"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
label: "宿主 Resolver",
|
|
327
|
+
value: "resolver"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
label: "受限 URL",
|
|
331
|
+
value: "url"
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
disabled: G(),
|
|
335
|
+
onChange: it
|
|
336
|
+
}, null, 8, ["value", "disabled"])]),
|
|
337
|
+
U.selectedVariable.dataSource?.kind === "resolver" ? (d(), o("label", be, [r[45] ||= s("span", null, "Resolver Key", -1), l(g(x), {
|
|
338
|
+
value: U.selectedVariable.dataSource.resolverKey,
|
|
339
|
+
disabled: G(),
|
|
340
|
+
onChange: r[8] ||= (e) => Q({ resolverKey: e.target.value })
|
|
341
|
+
}, null, 8, ["value", "disabled"])])) : a("", !0),
|
|
342
|
+
U.selectedVariable.dataSource?.kind === "url" ? (d(), o(n, { key: 1 }, [s("label", xe, [r[46] ||= s("span", null, "请求 URL", -1), l(g(x), {
|
|
343
|
+
value: U.selectedVariable.dataSource.url,
|
|
344
|
+
disabled: G(),
|
|
345
|
+
onChange: r[9] ||= (e) => Q({ url: e.target.value })
|
|
346
|
+
}, null, 8, ["value", "disabled"])]), s("label", Se, [r[47] ||= s("span", null, "请求方法", -1), l(g(C), {
|
|
347
|
+
value: U.selectedVariable.dataSource.method || "GET",
|
|
348
|
+
options: [{
|
|
349
|
+
label: "GET",
|
|
350
|
+
value: "GET"
|
|
351
|
+
}, {
|
|
352
|
+
label: "POST",
|
|
353
|
+
value: "POST"
|
|
354
|
+
}],
|
|
355
|
+
disabled: G(),
|
|
356
|
+
onChange: r[10] ||= (e) => Q({ method: e })
|
|
357
|
+
}, null, 8, ["value", "disabled"])])], 64)) : a("", !0)
|
|
358
|
+
], 64)) : a("", !0),
|
|
359
|
+
U.selectedVariable.type === "custom" ? (d(), o(n, { key: 2 }, [
|
|
360
|
+
s("label", Ce, [r[48] ||= s("span", null, "组件 Key", -1), l(g(x), {
|
|
361
|
+
value: U.selectedVariable.componentKey,
|
|
362
|
+
disabled: G(),
|
|
363
|
+
onChange: r[11] ||= (e) => W("patchVariable", { componentKey: e.target.value })
|
|
364
|
+
}, null, 8, ["value", "disabled"])]),
|
|
365
|
+
s("label", we, [r[49] ||= s("span", null, "组件配置 JSON", -1), l(g(x).TextArea, {
|
|
366
|
+
value: J.value,
|
|
367
|
+
"onUpdate:value": r[12] ||= (e) => J.value = e,
|
|
368
|
+
rows: 5,
|
|
369
|
+
status: Y.value ? "error" : void 0,
|
|
370
|
+
disabled: G(),
|
|
371
|
+
onBlur: ot
|
|
372
|
+
}, null, 8, [
|
|
373
|
+
"value",
|
|
374
|
+
"status",
|
|
375
|
+
"disabled"
|
|
376
|
+
])]),
|
|
377
|
+
Y.value ? (d(), o("small", Te, h(Y.value), 1)) : a("", !0)
|
|
378
|
+
], 64)) : a("", !0)
|
|
379
|
+
])])) : a("", !0),
|
|
380
|
+
s("label", Ee, [r[51] ||= s("span", null, "变量标识", -1), l(g(x), {
|
|
381
|
+
value: K.value,
|
|
382
|
+
status: X.value ? "error" : void 0,
|
|
383
|
+
disabled: G(),
|
|
384
|
+
onInput: st,
|
|
198
385
|
onBlur: $,
|
|
199
|
-
onKeydown:
|
|
386
|
+
onKeydown: te(ne($, ["prevent"]), ["enter"])
|
|
200
387
|
}, null, 8, [
|
|
201
388
|
"value",
|
|
202
389
|
"status",
|
|
203
390
|
"disabled",
|
|
204
391
|
"onKeydown"
|
|
205
392
|
])]),
|
|
206
|
-
|
|
207
|
-
s("label",
|
|
208
|
-
value:
|
|
209
|
-
disabled:
|
|
210
|
-
onChange: r[
|
|
393
|
+
X.value ? (d(), o("small", De, h(X.value), 1)) : a("", !0),
|
|
394
|
+
s("label", Oe, [r[52] ||= s("span", null, "占位文案", -1), l(g(x), {
|
|
395
|
+
value: U.selectedVariable.placeholder,
|
|
396
|
+
disabled: G(),
|
|
397
|
+
onChange: r[13] ||= (e) => W("patchVariable", { placeholder: e.target.value })
|
|
211
398
|
}, null, 8, ["value", "disabled"])]),
|
|
212
|
-
s("label",
|
|
213
|
-
value:
|
|
214
|
-
disabled:
|
|
215
|
-
onChange: r[
|
|
399
|
+
s("label", ke, [r[53] ||= s("span", null, "默认值", -1), l(g(x), {
|
|
400
|
+
value: U.selectedVariable.defaultValue,
|
|
401
|
+
disabled: G(),
|
|
402
|
+
onChange: r[14] ||= (e) => W("patchVariable", { defaultValue: e.target.value })
|
|
216
403
|
}, null, 8, ["value", "disabled"])]),
|
|
217
|
-
s("label",
|
|
218
|
-
value:
|
|
404
|
+
s("label", Ae, [r[54] ||= s("span", null, "宽度", -1), l(g(S), {
|
|
405
|
+
value: U.selectedVariable.width,
|
|
219
406
|
min: 48,
|
|
220
|
-
max:
|
|
221
|
-
disabled:
|
|
222
|
-
onChange: r[
|
|
407
|
+
max: U.selectedVariableWidthMax,
|
|
408
|
+
disabled: G(),
|
|
409
|
+
onChange: r[15] ||= (e) => W("patchVariable", { width: Number(e || 48) })
|
|
223
410
|
}, null, 8, [
|
|
224
411
|
"value",
|
|
225
412
|
"max",
|
|
226
413
|
"disabled"
|
|
227
414
|
])]),
|
|
228
|
-
s("label",
|
|
229
|
-
value:
|
|
415
|
+
s("label", je, [r[55] ||= s("span", null, "高度", -1), l(g(S), {
|
|
416
|
+
value: U.selectedVariable.height,
|
|
230
417
|
min: 24,
|
|
231
|
-
max:
|
|
232
|
-
disabled:
|
|
233
|
-
onChange: r[
|
|
418
|
+
max: U.selectedVariableHeightMax,
|
|
419
|
+
disabled: G(),
|
|
420
|
+
onChange: r[16] ||= (e) => W("patchVariable", { height: Number(e || 24) })
|
|
234
421
|
}, null, 8, [
|
|
235
422
|
"value",
|
|
236
423
|
"max",
|
|
237
424
|
"disabled"
|
|
238
425
|
])]),
|
|
239
|
-
|
|
240
|
-
checked: !!
|
|
241
|
-
disabled:
|
|
242
|
-
onChange: r[
|
|
243
|
-
}, null, 8, ["checked", "disabled"])]),
|
|
244
|
-
value:
|
|
426
|
+
U.selectedVariable.type === "text" ? (d(), o("div", Me, [s("label", Ne, [r[56] ||= s("span", null, "多行", -1), l(g(w), {
|
|
427
|
+
checked: !!U.selectedVariable.multiline,
|
|
428
|
+
disabled: G(),
|
|
429
|
+
onChange: r[17] ||= (e) => W("patchMultiline", !!e)
|
|
430
|
+
}, null, 8, ["checked", "disabled"])]), U.selectedVariable.multiline ? (d(), o("label", Pe, [r[57] ||= s("span", null, "行数", -1), l(g(S), {
|
|
431
|
+
value: U.selectedVariable.rows || U.defaultMultilineRows,
|
|
245
432
|
min: 2,
|
|
246
433
|
max: 12,
|
|
247
|
-
disabled:
|
|
248
|
-
onChange: r[
|
|
434
|
+
disabled: G(),
|
|
435
|
+
onChange: r[18] ||= (e) => W("patchRows", e)
|
|
249
436
|
}, null, 8, ["value", "disabled"])])) : a("", !0)])) : a("", !0),
|
|
250
|
-
|
|
251
|
-
value:
|
|
252
|
-
disabled:
|
|
253
|
-
onChange: r[
|
|
437
|
+
U.selectedVariable.type === "date" ? (d(), o("label", V, [r[58] ||= s("span", null, "日期格式", -1), l(g(x), {
|
|
438
|
+
value: U.selectedVariable.format,
|
|
439
|
+
disabled: G(),
|
|
440
|
+
onChange: r[19] ||= (e) => W("patchVariable", { format: e.target.value })
|
|
254
441
|
}, null, 8, ["value", "disabled"])])) : a("", !0),
|
|
255
|
-
|
|
256
|
-
value:
|
|
257
|
-
disabled:
|
|
258
|
-
onChange: r[
|
|
259
|
-
}, null, 8, ["value", "disabled"])]), s("label",
|
|
260
|
-
value:
|
|
442
|
+
U.selectedVariable.type === "number" ? (d(), o(n, { key: 4 }, [s("label", Fe, [r[59] ||= s("span", null, "数字格式", -1), l(g(x), {
|
|
443
|
+
value: U.selectedVariable.format,
|
|
444
|
+
disabled: G(),
|
|
445
|
+
onChange: r[20] ||= (e) => W("patchVariable", { format: e.target.value })
|
|
446
|
+
}, null, 8, ["value", "disabled"])]), s("label", Ie, [r[60] ||= s("span", null, "小数位", -1), l(g(S), {
|
|
447
|
+
value: U.selectedVariable.precision,
|
|
261
448
|
min: 0,
|
|
262
449
|
max: 6,
|
|
263
|
-
disabled:
|
|
264
|
-
onChange: r[
|
|
450
|
+
disabled: G(),
|
|
451
|
+
onChange: r[21] ||= (e) => W("patchVariable", { precision: typeof e == "number" ? e : void 0 })
|
|
265
452
|
}, null, 8, ["value", "disabled"])])], 64)) : a("", !0),
|
|
266
|
-
|
|
267
|
-
value:
|
|
268
|
-
disabled:
|
|
269
|
-
onChange: r[
|
|
270
|
-
}, null, 8, ["value", "disabled"])]), s("label",
|
|
271
|
-
value:
|
|
272
|
-
disabled:
|
|
273
|
-
onChange: r[
|
|
453
|
+
U.selectedVariable.type === "checkbox" ? (d(), o(n, { key: 5 }, [s("label", Le, [r[61] ||= s("span", null, "勾选文本", -1), l(g(x), {
|
|
454
|
+
value: U.selectedVariable.checkedText,
|
|
455
|
+
disabled: G(),
|
|
456
|
+
onChange: r[22] ||= (e) => W("patchVariable", { checkedText: e.target.value })
|
|
457
|
+
}, null, 8, ["value", "disabled"])]), s("label", Re, [r[62] ||= s("span", null, "未选文本", -1), l(g(x), {
|
|
458
|
+
value: U.selectedVariable.uncheckedText,
|
|
459
|
+
disabled: G(),
|
|
460
|
+
onChange: r[23] ||= (e) => W("patchVariable", { uncheckedText: e.target.value })
|
|
274
461
|
}, null, 8, ["value", "disabled"])])], 64)) : a("", !0),
|
|
275
|
-
s("div",
|
|
276
|
-
s("label",
|
|
277
|
-
checked:
|
|
278
|
-
disabled:
|
|
279
|
-
onChange: r[
|
|
462
|
+
s("div", ze, [
|
|
463
|
+
s("label", Be, [r[63] ||= s("span", null, "必填", -1), l(g(w), {
|
|
464
|
+
checked: U.selectedVariable.required,
|
|
465
|
+
disabled: G(),
|
|
466
|
+
onChange: r[24] ||= (e) => W("patchVariable", { required: !!e })
|
|
280
467
|
}, null, 8, ["checked", "disabled"])]),
|
|
281
|
-
s("label",
|
|
282
|
-
checked: !!
|
|
283
|
-
disabled:
|
|
284
|
-
onChange: r[
|
|
468
|
+
s("label", Ve, [r[64] ||= s("span", null, "边框", -1), l(g(w), {
|
|
469
|
+
checked: !!U.selectedVariable.style?.border,
|
|
470
|
+
disabled: G(),
|
|
471
|
+
onChange: r[25] ||= (e) => W("patchStyle", { border: !!e })
|
|
285
472
|
}, null, 8, ["checked", "disabled"])]),
|
|
286
|
-
s("label",
|
|
287
|
-
checked: !!
|
|
288
|
-
disabled:
|
|
289
|
-
onChange: r[
|
|
473
|
+
s("label", He, [r[65] ||= s("span", null, "下划线", -1), l(g(w), {
|
|
474
|
+
checked: !!U.selectedVariable.style?.underline,
|
|
475
|
+
disabled: G(),
|
|
476
|
+
onChange: r[26] ||= (e) => W("patchStyle", { underline: !!e })
|
|
290
477
|
}, null, 8, ["checked", "disabled"])]),
|
|
291
|
-
|
|
292
|
-
checked:
|
|
293
|
-
disabled:
|
|
294
|
-
onChange: r[
|
|
478
|
+
U.selectedVariable.type === "number" ? (d(), o("label", Ue, [r[66] ||= s("span", null, "千分位", -1), l(g(w), {
|
|
479
|
+
checked: U.selectedVariable.useGrouping !== !1,
|
|
480
|
+
disabled: G(),
|
|
481
|
+
onChange: r[27] ||= (e) => W("patchVariable", { useGrouping: !!e })
|
|
295
482
|
}, null, 8, ["checked", "disabled"])])) : a("", !0)
|
|
296
483
|
]),
|
|
297
|
-
s("label",
|
|
298
|
-
value:
|
|
299
|
-
options:
|
|
300
|
-
disabled:
|
|
301
|
-
onChange: r[
|
|
484
|
+
s("label", We, [r[67] ||= s("span", null, "字体", -1), l(g(C), {
|
|
485
|
+
value: U.currentVariableFontFamily,
|
|
486
|
+
options: U.fontFamilySelectOptions,
|
|
487
|
+
disabled: G(),
|
|
488
|
+
onChange: r[28] ||= (e) => W("patchFontFamily", e)
|
|
302
489
|
}, null, 8, [
|
|
303
490
|
"value",
|
|
304
491
|
"options",
|
|
305
492
|
"disabled"
|
|
306
493
|
])]),
|
|
307
|
-
s("label",
|
|
308
|
-
value:
|
|
309
|
-
min:
|
|
310
|
-
max:
|
|
311
|
-
disabled:
|
|
312
|
-
onChange: r[
|
|
494
|
+
s("label", Ge, [r[68] ||= s("span", null, "字号", -1), l(g(S), {
|
|
495
|
+
value: U.selectedVariable.style?.fontSize,
|
|
496
|
+
min: U.minFontSize,
|
|
497
|
+
max: U.maxFontSize,
|
|
498
|
+
disabled: G(),
|
|
499
|
+
onChange: r[29] ||= (e) => W("patchFontSize", e)
|
|
313
500
|
}, null, 8, [
|
|
314
501
|
"value",
|
|
315
502
|
"min",
|
|
316
503
|
"max",
|
|
317
504
|
"disabled"
|
|
318
505
|
])]),
|
|
319
|
-
s("label",
|
|
506
|
+
s("label", Ke, [r[69] ||= s("span", null, "颜色", -1), s("input", {
|
|
320
507
|
type: "color",
|
|
321
|
-
value:
|
|
322
|
-
disabled:
|
|
323
|
-
onInput: r[
|
|
324
|
-
}, null, 40,
|
|
325
|
-
s("label",
|
|
508
|
+
value: U.selectedVariable.style?.color || "#1f2937",
|
|
509
|
+
disabled: G(),
|
|
510
|
+
onInput: r[30] ||= (e) => W("patchStyle", { color: e.target.value })
|
|
511
|
+
}, null, 40, qe)]),
|
|
512
|
+
s("label", Je, [r[70] ||= s("span", null, "占位颜色", -1), s("input", {
|
|
326
513
|
type: "color",
|
|
327
|
-
value:
|
|
328
|
-
disabled:
|
|
329
|
-
onInput: r[
|
|
330
|
-
}, null, 40,
|
|
331
|
-
s("label",
|
|
514
|
+
value: U.selectedVariable.style?.placeholderColor || "#7a818b",
|
|
515
|
+
disabled: G(),
|
|
516
|
+
onInput: r[31] ||= (e) => W("patchStyle", { placeholderColor: e.target.value })
|
|
517
|
+
}, null, 40, Ye)]),
|
|
518
|
+
s("label", Xe, [r[71] ||= s("span", null, "线条颜色", -1), s("input", {
|
|
332
519
|
type: "color",
|
|
333
|
-
value:
|
|
334
|
-
disabled:
|
|
335
|
-
onInput: r[
|
|
336
|
-
}, null, 40,
|
|
337
|
-
s("label",
|
|
338
|
-
value:
|
|
339
|
-
options:
|
|
340
|
-
disabled:
|
|
341
|
-
onChange: r[
|
|
520
|
+
value: U.selectedVariable.style?.lineColor || "#565b66",
|
|
521
|
+
disabled: G(),
|
|
522
|
+
onInput: r[32] ||= (e) => W("patchStyle", { lineColor: e.target.value })
|
|
523
|
+
}, null, 40, Ze)]),
|
|
524
|
+
s("label", Qe, [r[72] ||= s("span", null, "文字对齐", -1), l(g(C), {
|
|
525
|
+
value: U.selectedVariable.style?.textAlign || "left",
|
|
526
|
+
options: U.textAlignOptions,
|
|
527
|
+
disabled: G(),
|
|
528
|
+
onChange: r[33] ||= (e) => W("patchTextAlign", e)
|
|
342
529
|
}, null, 8, [
|
|
343
530
|
"value",
|
|
344
531
|
"options",
|
|
345
532
|
"disabled"
|
|
346
533
|
])]),
|
|
347
|
-
|
|
348
|
-
value:
|
|
349
|
-
options:
|
|
350
|
-
disabled:
|
|
351
|
-
onChange: r[
|
|
534
|
+
U.selectedVariable.type === "image" ? (d(), o(n, { key: 6 }, [s("label", $e, [r[73] ||= s("span", null, "边框样式", -1), l(g(C), {
|
|
535
|
+
value: U.selectedVariable.style?.borderStyle || "dashed",
|
|
536
|
+
options: U.borderStyleOptions,
|
|
537
|
+
disabled: G(),
|
|
538
|
+
onChange: r[34] ||= (e) => W("patchBorderStyle", e)
|
|
352
539
|
}, null, 8, [
|
|
353
540
|
"value",
|
|
354
541
|
"options",
|
|
355
542
|
"disabled"
|
|
356
|
-
])]), s("label",
|
|
357
|
-
value:
|
|
358
|
-
options:
|
|
359
|
-
disabled:
|
|
360
|
-
onChange: r[
|
|
543
|
+
])]), s("label", et, [r[74] ||= s("span", null, "图片适配", -1), l(g(C), {
|
|
544
|
+
value: U.selectedVariable.style?.objectFit || "contain",
|
|
545
|
+
options: U.objectFitOptions,
|
|
546
|
+
disabled: G(),
|
|
547
|
+
onChange: r[35] ||= (e) => W("patchObjectFit", e)
|
|
361
548
|
}, null, 8, [
|
|
362
549
|
"value",
|
|
363
550
|
"options",
|
|
364
551
|
"disabled"
|
|
365
552
|
])])], 64)) : a("", !0)
|
|
366
|
-
], 64)) : (
|
|
553
|
+
], 64)) : (d(), i(g(b), {
|
|
367
554
|
key: 0,
|
|
368
555
|
description: "请选择模板变量",
|
|
369
|
-
image:
|
|
556
|
+
image: g(b).PRESENTED_IMAGE_SIMPLE
|
|
370
557
|
}, null, 8, ["image"]))]))
|
|
371
558
|
])], 2));
|
|
372
559
|
}
|
|
373
560
|
});
|
|
374
561
|
//#endregion
|
|
375
|
-
export {
|
|
562
|
+
export { H as default };
|