@guodun/antdv 1.7.8 → 1.7.10

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.
Files changed (41) hide show
  1. package/dist/es/components/contract-signing-location/src/ContractSigningLocation.vue.mjs +295 -296
  2. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.mjs +5 -0
  3. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.vue.mjs +132 -0
  4. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +267 -277
  5. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.mjs +1 -1
  6. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.mjs +258 -252
  7. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +1020 -1011
  8. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +193 -163
  9. package/dist/es/components/pro-contract-template-designer/src/extensions/template-variable.mjs +70 -68
  10. package/dist/es/components/pro-contract-template-designer/src/utils/advanced-controls.mjs +63 -25
  11. package/dist/es/components/pro-contract-template-designer/src/utils/contract-print-document.mjs +7 -1
  12. package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +158 -93
  13. package/dist/es/components/pro-contract-template-designer/src/utils/template-variable-render.mjs +45 -18
  14. package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
  15. package/dist/es/index.mjs +22 -22
  16. package/dist/lib/components/contract-signing-location/src/ContractSigningLocation.vue.cjs +1 -1
  17. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.cjs +1 -0
  18. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.vue.cjs +1 -0
  19. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +1 -2
  20. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.cjs +1 -1
  21. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.cjs +1 -1
  22. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
  23. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +4 -4
  24. package/dist/lib/components/pro-contract-template-designer/src/extensions/template-variable.cjs +1 -1
  25. package/dist/lib/components/pro-contract-template-designer/src/utils/advanced-controls.cjs +1 -1
  26. package/dist/lib/components/pro-contract-template-designer/src/utils/contract-print-document.cjs +7 -1
  27. package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +5 -3
  28. package/dist/lib/components/pro-contract-template-designer/src/utils/template-variable-render.cjs +1 -1
  29. package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
  30. package/dist/lib/index.cjs +1 -1
  31. package/dist/theme/icon.css +1 -1
  32. package/dist/theme/index.css +1 -1
  33. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateChoiceOptionsEditor.vue.d.ts +12 -0
  34. package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +2 -0
  35. package/dist/types/components/pro-contract-template-designer/src/composables/use-template-designer.d.ts +5 -1
  36. package/dist/types/components/pro-contract-template-designer/src/types.d.ts +18 -2
  37. package/dist/types/components/pro-contract-template-designer/src/utils/advanced-controls.d.ts +10 -0
  38. package/dist/types/components/pro-contract-template-designer/src/utils/contract-print-document.d.ts +1 -1
  39. package/dist/types/components/pro-contract-template-designer/src/utils/template-renderer.d.ts +2 -0
  40. package/dist/types/components/pro-contract-template-designer/src/utils/template-variable-render.d.ts +15 -2
  41. package/package.json +3 -3
@@ -1,37 +1,48 @@
1
- import { DEFAULT_FIELD_STYLE as e, getFieldOption as t } from "./composables/use-template-designer.mjs";
2
- import { resolveFieldTypeIcon as n } from "./utils/template-tool-icons.mjs";
3
- import r from "./ContractTemplatePanelTabs.mjs";
4
- import ee from "./ContractTemplateControlLibrary.mjs";
5
- import te from "./ContractTemplateVariableAdvanced.mjs";
6
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as ne, openBlock as p, resolveDynamicComponent as re, shallowRef as ie, toDisplayString as m, unref as h, useId as ae, vShow as g, watch as oe, withCtx as _, withDirectives as v } from "vue";
7
- import { Button as y, Input as b, InputNumber as x, Popconfirm as se, Select as S, Switch as C, Tooltip as w } from "ant-design-vue";
8
- import { CopyOutlined as ce, DeleteOutlined as le, LeftOutlined as ue, RightOutlined as T } from "@ant-design/icons-vue";
1
+ import { TEMPLATE_NUMBER_FORMAT_OPTIONS as e } from "./utils/template-variable-render.mjs";
2
+ import { DEFAULT_FIELD_STYLE as t, getFieldOption as n } from "./composables/use-template-designer.mjs";
3
+ import { resolveFieldTypeIcon as r } from "./utils/template-tool-icons.mjs";
4
+ import ee from "./ContractTemplatePanelTabs.mjs";
5
+ import te from "./ContractTemplateChoiceOptionsEditor.mjs";
6
+ import ne from "./ContractTemplateControlLibrary.mjs";
7
+ import re from "./ContractTemplateVariableAdvanced.mjs";
8
+ import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as ie, openBlock as p, resolveDynamicComponent as ae, shallowRef as oe, toDisplayString as m, unref as h, useId as se, vShow as g, watch as ce, withCtx as _, withDirectives as v } from "vue";
9
+ import { Button as y, Input as b, InputNumber as x, Popconfirm as le, Select as S, Switch as C, Tooltip as w } from "ant-design-vue";
10
+ import { CopyOutlined as ue, DeleteOutlined as de, LeftOutlined as fe, RightOutlined as T } from "@ant-design/icons-vue";
9
11
  //#region src/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue?vue&type=script&setup=true&lang.ts
10
- var E = ["aria-label", "aria-expanded"], D = { class: "gd-contract-template-designer__panel-stack" }, O = { class: "gd-contract-authoring-panel__body" }, k = ["id", "aria-labelledby"], A = ["id", "aria-labelledby"], j = { class: "gd-contract-authoring-panel__section-heading" }, M = {
12
+ var pe = ["aria-label", "aria-expanded"], me = { class: "gd-contract-template-designer__panel-stack" }, E = { class: "gd-contract-authoring-panel__body" }, D = ["id", "aria-labelledby"], O = ["id", "aria-labelledby"], k = { class: "gd-contract-authoring-panel__section-heading" }, A = {
11
13
  key: 0,
12
14
  class: "gd-contract-authoring-panel__meta"
13
- }, N = {
15
+ }, j = {
14
16
  key: 0,
15
17
  class: "gd-contract-authoring-panel__empty"
16
- }, P = { class: "gd-contract-authoring-panel__selection" }, F = {
18
+ }, M = { class: "gd-contract-authoring-panel__selection" }, N = {
17
19
  class: "gd-contract-authoring-panel__variable-icon",
18
20
  "aria-hidden": "true"
19
- }, I = { class: "gd-contract-authoring-panel__variable-copy" }, L = { class: "gd-contract-authoring-panel__item-title" }, R = { class: "gd-contract-authoring-panel__meta" }, z = { class: "gd-contract-authoring-panel__property-group" }, B = { class: "gd-contract-authoring-panel__fields" }, V = { class: "gd-contract-authoring-panel__field" }, H = { class: "gd-contract-authoring-panel__field" }, U = { class: "gd-contract-authoring-panel__field" }, de = {
21
+ }, P = { class: "gd-contract-authoring-panel__variable-copy" }, F = { class: "gd-contract-authoring-panel__item-title" }, I = { class: "gd-contract-authoring-panel__meta" }, L = { class: "gd-contract-authoring-panel__property-group" }, R = { class: "gd-contract-authoring-panel__fields" }, z = { class: "gd-contract-authoring-panel__field" }, he = { class: "gd-contract-authoring-panel__field" }, ge = {
22
+ key: 0,
23
+ class: "gd-contract-authoring-panel__field"
24
+ }, _e = {
20
25
  open: "",
21
26
  class: "gd-contract-authoring-panel__property-group"
22
- }, fe = { class: "gd-contract-authoring-panel__group-title" }, pe = { class: "gd-contract-authoring-panel__fields" }, me = { class: "gd-contract-authoring-panel__switch" }, he = { class: "gd-contract-authoring-panel__switch" }, ge = {
27
+ }, ve = { class: "gd-contract-authoring-panel__group-title" }, ye = { class: "gd-contract-authoring-panel__fields" }, B = { class: "gd-contract-authoring-panel__switch" }, be = { class: "gd-contract-authoring-panel__switch" }, xe = {
23
28
  key: 0,
24
29
  class: "gd-contract-authoring-panel__field"
25
- }, _e = {
30
+ }, Se = {
26
31
  key: 1,
27
32
  class: "gd-contract-authoring-panel__field"
28
- }, ve = { class: "gd-contract-authoring-panel__field" }, ye = { class: "gd-contract-authoring-panel__field" }, be = { class: "gd-contract-authoring-panel__switch" }, xe = { class: "gd-contract-authoring-panel__field" }, Se = { class: "gd-contract-authoring-panel__field" }, Ce = {
33
+ }, Ce = { class: "gd-contract-authoring-panel__field" }, we = { key: 0 }, Te = { class: "gd-contract-authoring-panel__field" }, Ee = { class: "gd-contract-authoring-panel__switch" }, De = { class: "gd-contract-authoring-panel__field" }, Oe = { class: "gd-contract-authoring-panel__field" }, ke = {
29
34
  key: 4,
30
35
  class: "gd-contract-authoring-panel__switch"
31
- }, we = { class: "gd-contract-authoring-panel__field" }, Te = { class: "gd-contract-authoring-panel__field" }, Ee = {
36
+ }, Ae = {
37
+ key: 5,
38
+ class: "gd-contract-authoring-panel__field"
39
+ }, je = { class: "gd-contract-authoring-panel__property-group" }, Me = { class: "gd-contract-authoring-panel__group-title" }, Ne = { class: "gd-contract-authoring-panel__fields" }, Pe = { class: "gd-contract-authoring-panel__field-pair" }, Fe = { class: "gd-contract-authoring-panel__field" }, Ie = {
32
40
  key: 0,
33
41
  class: "gd-contract-authoring-panel__field"
34
- }, De = { class: "gd-contract-authoring-panel__field" }, Oe = { class: "gd-contract-authoring-panel__field" }, ke = { class: "gd-contract-authoring-panel__property-group" }, Ae = { class: "gd-contract-authoring-panel__group-title" }, je = { class: "gd-contract-authoring-panel__fields" }, Me = { class: "gd-contract-authoring-panel__field-pair" }, Ne = { class: "gd-contract-authoring-panel__field" }, Pe = { class: "gd-contract-authoring-panel__field" }, Fe = { class: "gd-contract-authoring-panel__switch" }, Ie = { class: "gd-contract-authoring-panel__switch" }, Le = { class: "gd-contract-authoring-panel__field" }, Re = { class: "gd-contract-authoring-panel__field" }, ze = { class: "gd-contract-authoring-panel__color" }, Be = ["value", "disabled"], Ve = { class: "gd-contract-authoring-panel__color" }, He = ["value", "disabled"], Ue = { class: "gd-contract-authoring-panel__color" }, We = ["value", "disabled"], Ge = { class: "gd-contract-authoring-panel__field" }, Ke = { class: "gd-contract-authoring-panel__field" }, qe = { class: "gd-contract-authoring-panel__field" }, Je = { class: "gd-contract-authoring-panel__danger-zone" }, W = /* @__PURE__ */ f({
42
+ }, Le = { class: "gd-contract-authoring-panel__meta" }, Re = {
43
+ key: 1,
44
+ class: "gd-contract-authoring-panel__field"
45
+ }, ze = { class: "gd-contract-authoring-panel__switch" }, Be = { class: "gd-contract-authoring-panel__switch" }, Ve = { class: "gd-contract-authoring-panel__field" }, He = { class: "gd-contract-authoring-panel__field" }, Ue = { class: "gd-contract-authoring-panel__color" }, We = ["value", "disabled"], Ge = { class: "gd-contract-authoring-panel__color" }, Ke = ["value", "disabled"], qe = { class: "gd-contract-authoring-panel__color" }, Je = ["value", "disabled"], Ye = { class: "gd-contract-authoring-panel__field" }, Xe = { class: "gd-contract-authoring-panel__field" }, Ze = { class: "gd-contract-authoring-panel__field" }, Qe = { class: "gd-contract-authoring-panel__danger-zone" }, V = /* @__PURE__ */ f({
35
46
  name: "ContractTemplateDesignerInspector",
36
47
  __name: "ContractTemplateDesignerInspector",
37
48
  props: {
@@ -69,417 +80,396 @@ var E = ["aria-label", "aria-expanded"], D = { class: "gd-contract-template-desi
69
80
  "patchBorderStyle",
70
81
  "patchObjectFit"
71
82
  ],
72
- setup(f, { emit: W }) {
73
- let G = f, K = W, q = `gd-contract-inspector-${ae()}`, J = ie("insert"), Y = [{
83
+ setup(f, { emit: V }) {
84
+ let H = f, U = V, W = `gd-contract-inspector-${se()}`, G = oe("insert"), $e = [{
74
85
  value: "insert",
75
86
  label: "插入控件"
76
87
  }, {
77
88
  value: "properties",
78
89
  label: "控件属性"
79
- }], X = a(() => G.readonly || G.disabled), Ye = a(() => G.selectedVariable ? G.bodyControlToolItems.find((e) => e.type === (G.selectedVariable?.type || "text"))?.label || t(G.selectedVariable.type || "text").label : ""), Xe = a(() => G.selectedVariable?.type === "select" || G.selectedVariable?.type === "radio"), Ze = a(() => G.selectedVariable?.type === "select" || !!G.selectedVariable?.type?.endsWith("-selector")), Qe = a(() => (G.selectedVariable?.options ?? []).map((e) => `${e.value}|${e.label}`).join("\n"));
80
- oe(() => G.selectedVariable?.id, (e) => {
81
- J.value = e ? "properties" : "insert";
90
+ }], K = a(() => e.some((e) => e.value === H.selectedVariable?.format) ? H.selectedVariable?.format : "decimal"), q = a(() => H.readonly || H.disabled), et = a(() => H.selectedVariable ? H.bodyControlToolItems.find((e) => e.type === (H.selectedVariable?.type || "text"))?.label || n(H.selectedVariable.type || "text").label : ""), J = a(() => (!H.selectedVariable?.type || H.selectedVariable.type === "text") && !!H.selectedVariable?.multiline), Y = a(() => H.selectedVariable?.rows || H.defaultMultilineRows), X = a(() => H.selectedVariable?.lineHeight || 28), Z = a(() => H.selectedVariable?.type === "select" || H.selectedVariable?.type === "radio"), tt = a(() => H.selectedVariable?.type === "select" || !!H.selectedVariable?.type?.endsWith("-selector")), nt = a(() => H.selectedVariable?.type === "select" && !!H.selectedVariable.multiple), rt = a(() => H.selectedVariable?.defaultValue || void 0), it = a(() => (H.selectedVariable?.options ?? []).map((e) => ({
91
+ label: e.label,
92
+ value: String(e.value)
93
+ })));
94
+ ce(() => H.selectedVariable?.id, (e) => {
95
+ G.value = e ? "properties" : "insert";
82
96
  }, { immediate: !0 });
83
- function Z(e) {
84
- G.selectedVariable && !X.value && K("patchVariable", e);
85
- }
86
97
  function Q(e) {
87
- G.selectedVariable && !X.value && K("patchStyle", e);
98
+ H.selectedVariable && !q.value && U("patchVariable", e);
88
99
  }
89
100
  function $(e) {
90
- let t = G.selectedVariable?.dataSource;
91
- t && Z({ dataSource: {
92
- ...t,
93
- ...e
94
- } });
101
+ H.selectedVariable && !q.value && U("patchStyle", e);
102
+ }
103
+ function at(e) {
104
+ Q({ defaultValue: e == null ? "" : String(e) });
95
105
  }
96
- function $e(e) {
97
- e === "none" ? Z({ dataSource: void 0 }) : e === "url" ? Z({ dataSource: {
98
- kind: "url",
99
- url: "",
100
- method: "GET"
101
- } }) : e === "resolver" && Z({ dataSource: {
102
- kind: "resolver",
103
- resolverKey: ""
104
- } });
106
+ function ot(e) {
107
+ let t = { multiple: e };
108
+ e && H.selectedVariable?.type === "select" && (t.defaultValue = ""), Q(t);
105
109
  }
106
- function et(e) {
107
- Z({ options: e.target.value.split(/\r?\n/).map((e) => e.trim()).filter(Boolean).map((e) => {
108
- let [t, ...n] = e.split("|");
109
- return {
110
- value: t.trim(),
111
- label: n.join("|").trim() || t.trim(),
112
- type: G.selectedVariable?.type || "select"
113
- };
114
- }) });
110
+ function st(e) {
111
+ let t = e ?? [], n = H.selectedVariable?.defaultValue, r = { options: t };
112
+ n && !t.some((e) => String(e.value) === String(n)) && (r.defaultValue = ""), Q(r);
115
113
  }
116
- function tt() {
117
- G.selectedVariable && !X.value && K("duplicateVariable", G.selectedVariable);
114
+ function ct() {
115
+ H.selectedVariable && !q.value && U("duplicateVariable", H.selectedVariable);
118
116
  }
119
- function nt() {
120
- G.selectedVariable && !X.value && K("removeVariable", G.selectedVariable);
117
+ function lt() {
118
+ H.selectedVariable && !q.value && U("removeVariable", H.selectedVariable);
121
119
  }
122
- return (t, a) => (p(), c("aside", {
123
- class: ne(["gd-contract-template-designer__inspector gd-contract-authoring-panel", { "is-collapsed": G.collapsed }]),
120
+ return (n, a) => (p(), c("aside", {
121
+ class: ie(["gd-contract-template-designer__inspector gd-contract-authoring-panel", { "is-collapsed": H.collapsed }]),
124
122
  "aria-label": "控件插入与属性"
125
- }, [d(h(w), { title: G.collapsed ? "展开属性栏" : "收起属性栏" }, {
123
+ }, [d(h(w), { title: H.collapsed ? "展开属性栏" : "收起属性栏" }, {
126
124
  default: _(() => [l("button", {
127
125
  type: "button",
128
126
  class: "gd-contract-template-designer__panel-handle gd-contract-authoring-panel__handle",
129
- "aria-label": G.collapsed ? "展开属性栏" : "收起属性栏",
130
- "aria-expanded": !G.collapsed,
131
- onClick: a[0] ||= (e) => K("toggle")
132
- }, [G.collapsed ? (p(), o(h(ue), {
127
+ "aria-label": H.collapsed ? "展开属性栏" : "收起属性栏",
128
+ "aria-expanded": !H.collapsed,
129
+ onClick: a[0] ||= (e) => U("toggle")
130
+ }, [H.collapsed ? (p(), o(h(fe), {
133
131
  key: 0,
134
132
  "aria-hidden": "true"
135
133
  })) : (p(), o(h(T), {
136
134
  key: 1,
137
135
  "aria-hidden": "true"
138
- }))], 8, E)]),
136
+ }))], 8, pe)]),
139
137
  _: 1
140
- }, 8, ["title"]), l("div", D, [l("div", O, [
141
- d(r, {
142
- id: q,
143
- modelValue: J.value,
144
- "onUpdate:modelValue": a[1] ||= (e) => J.value = e,
145
- items: Y,
138
+ }, 8, ["title"]), l("div", me, [l("div", E, [
139
+ d(ee, {
140
+ id: W,
141
+ modelValue: G.value,
142
+ "onUpdate:modelValue": a[1] ||= (e) => G.value = e,
143
+ items: $e,
146
144
  label: "控件面板视图"
147
145
  }, null, 8, ["modelValue"]),
148
146
  v(l("section", {
149
- id: `${q}-panel-insert`,
147
+ id: `${W}-panel-insert`,
150
148
  class: "gd-contract-authoring-panel__view",
151
149
  role: "tabpanel",
152
- "aria-labelledby": `${q}-tab-insert`
153
- }, [d(ee, {
154
- items: G.bodyControlToolItems,
155
- readonly: X.value,
156
- onInsertVariable: a[2] ||= (e) => K("insertVariable", e),
157
- onVariableDragStart: a[3] ||= (e, t) => K("variableDragStart", e, t)
158
- }, null, 8, ["items", "readonly"])], 8, k), [[g, J.value === "insert"]]),
150
+ "aria-labelledby": `${W}-tab-insert`
151
+ }, [d(ne, {
152
+ items: H.bodyControlToolItems,
153
+ readonly: q.value,
154
+ onInsertVariable: a[2] ||= (e) => U("insertVariable", e),
155
+ onVariableDragStart: a[3] ||= (e, t) => U("variableDragStart", e, t)
156
+ }, null, 8, ["items", "readonly"])], 8, D), [[g, G.value === "insert"]]),
159
157
  v(l("section", {
160
- id: `${q}-panel-properties`,
158
+ id: `${W}-panel-properties`,
161
159
  class: "gd-contract-authoring-panel__view",
162
160
  role: "tabpanel",
163
- "aria-labelledby": `${q}-tab-properties`
164
- }, [l("div", j, [a[34] ||= l("strong", null, "属性", -1), X.value ? (p(), c("small", M, "只读")) : s("", !0)]), G.selectedVariable ? (p(), c("div", {
165
- key: G.selectedVariable.id,
161
+ "aria-labelledby": `${W}-tab-properties`
162
+ }, [l("div", k, [a[32] ||= l("strong", null, "属性", -1), q.value ? (p(), c("small", A, "只读")) : s("", !0)]), H.selectedVariable ? (p(), c("div", {
163
+ key: H.selectedVariable.id,
166
164
  class: "gd-contract-authoring-panel__properties"
167
165
  }, [
168
- l("div", P, [
169
- l("span", F, [(p(), o(re(h(n)(G.selectedVariable.type))))]),
170
- l("div", I, [l("span", L, m(G.selectedVariable.label), 1), l("small", R, m(Ye.value), 1)]),
166
+ l("div", M, [
167
+ l("span", N, [(p(), o(ae(h(r)(H.selectedVariable.type))))]),
168
+ l("div", P, [l("span", F, m(H.selectedVariable.label), 1), l("small", I, m(et.value), 1)]),
171
169
  d(h(w), { title: "复制变量" }, {
172
170
  default: _(() => [d(h(y), {
173
171
  type: "text",
174
- disabled: X.value,
172
+ disabled: q.value,
175
173
  "aria-label": "复制变量",
176
- onClick: tt
174
+ onClick: ct
177
175
  }, {
178
- default: _(() => [d(h(ce), { "aria-hidden": "true" })]),
176
+ default: _(() => [d(h(ue), { "aria-hidden": "true" })]),
179
177
  _: 1
180
178
  }, 8, ["disabled"])]),
181
179
  _: 1
182
180
  })
183
181
  ]),
184
- d(te, {
185
- variable: G.selectedVariable,
186
- variables: G.variables,
187
- readonly: X.value,
188
- onPatchVariable: Z,
189
- onRenameVariable: a[5] ||= (e) => K("renameVariable", e)
182
+ d(re, {
183
+ variable: H.selectedVariable,
184
+ variables: H.variables,
185
+ readonly: q.value,
186
+ onPatchVariable: Q,
187
+ onRenameVariable: a[5] ||= (e) => U("renameVariable", e)
190
188
  }, null, 8, [
191
189
  "variable",
192
190
  "variables",
193
191
  "readonly"
194
192
  ]),
195
- l("section", z, [a[41] ||= l("h3", { class: "gd-contract-authoring-panel__group-title" }, "基础信息", -1), l("div", B, [
196
- l("label", V, [a[38] ||= l("span", null, "名称", -1), d(h(b), {
197
- value: G.selectedVariable.label,
198
- disabled: X.value,
193
+ l("section", L, [a[39] ||= l("h3", { class: "gd-contract-authoring-panel__group-title" }, "基础信息", -1), l("div", R, [
194
+ l("label", z, [a[36] ||= l("span", null, "名称", -1), d(h(b), {
195
+ value: H.selectedVariable.label,
196
+ disabled: q.value,
199
197
  "aria-label": "变量名称",
200
- onChange: a[6] ||= (e) => Z({ label: e.target.value })
198
+ onChange: a[6] ||= (e) => Q({ label: e.target.value })
201
199
  }, null, 8, ["value", "disabled"])]),
202
- l("label", H, [a[39] ||= l("span", null, "占位文案", -1), d(h(b), {
203
- value: G.selectedVariable.placeholder,
204
- disabled: X.value,
200
+ l("label", he, [a[37] ||= l("span", null, "占位文案", -1), d(h(b), {
201
+ value: H.selectedVariable.placeholder,
202
+ disabled: q.value,
205
203
  "aria-label": "占位文案",
206
- onChange: a[7] ||= (e) => Z({ placeholder: e.target.value })
204
+ onChange: a[7] ||= (e) => Q({ placeholder: e.target.value })
207
205
  }, null, 8, ["value", "disabled"])]),
208
- l("label", U, [a[40] ||= l("span", null, "默认值", -1), d(h(b), {
209
- value: G.selectedVariable.defaultValue,
210
- disabled: X.value,
206
+ nt.value ? s("", !0) : (p(), c("label", ge, [a[38] ||= l("span", null, "默认值", -1), Z.value ? (p(), o(h(S), {
207
+ key: 0,
208
+ value: rt.value,
209
+ options: it.value,
210
+ disabled: q.value,
211
+ "allow-clear": "",
212
+ placeholder: "请选择",
211
213
  "aria-label": "默认值",
212
- onChange: a[8] ||= (e) => Z({ defaultValue: e.target.value })
213
- }, null, 8, ["value", "disabled"])])
214
+ onChange: at
215
+ }, null, 8, [
216
+ "value",
217
+ "options",
218
+ "disabled"
219
+ ])) : J.value ? (p(), o(h(b).TextArea, {
220
+ key: 1,
221
+ value: H.selectedVariable.defaultValue,
222
+ rows: Y.value,
223
+ disabled: q.value,
224
+ "aria-label": "默认值",
225
+ "onUpdate:value": a[8] ||= (e) => Q({ defaultValue: e })
226
+ }, null, 8, [
227
+ "value",
228
+ "rows",
229
+ "disabled"
230
+ ])) : (p(), o(h(b), {
231
+ key: 2,
232
+ value: H.selectedVariable.defaultValue,
233
+ disabled: q.value,
234
+ "aria-label": "默认值",
235
+ onChange: a[9] ||= (e) => Q({ defaultValue: e.target.value })
236
+ }, null, 8, ["value", "disabled"]))]))
214
237
  ])]),
215
- l("details", de, [l("summary", fe, [d(h(T), {
238
+ l("details", _e, [l("summary", ve, [d(h(T), {
216
239
  class: "gd-contract-authoring-panel__chevron",
217
240
  "aria-hidden": "true"
218
- }), a[42] ||= l("span", null, "填写规则", -1)]), l("div", pe, [
219
- l("label", me, [a[43] ||= l("span", null, "必填", -1), d(h(C), {
220
- checked: G.selectedVariable.required,
221
- disabled: X.value,
241
+ }), a[40] ||= l("span", null, "填写规则", -1)]), l("div", ye, [
242
+ l("label", B, [a[41] ||= l("span", null, "必填", -1), d(h(C), {
243
+ checked: H.selectedVariable.required,
244
+ disabled: q.value,
222
245
  "aria-label": "必填",
223
- onChange: a[9] ||= (e) => Z({ required: !!e })
246
+ onChange: a[10] ||= (e) => Q({ required: !!e })
224
247
  }, null, 8, ["checked", "disabled"])]),
225
- !G.selectedVariable.type || G.selectedVariable.type === "text" ? (p(), c(i, { key: 0 }, [l("label", he, [a[44] ||= l("span", null, "多行", -1), d(h(C), {
226
- checked: !!G.selectedVariable.multiline,
227
- disabled: X.value,
248
+ !H.selectedVariable.type || H.selectedVariable.type === "text" ? (p(), c(i, { key: 0 }, [l("label", be, [a[42] ||= l("span", null, "多行", -1), d(h(C), {
249
+ checked: !!H.selectedVariable.multiline,
250
+ disabled: q.value,
228
251
  "aria-label": "多行",
229
- onChange: a[10] ||= (e) => K("patchMultiline", !!e)
230
- }, null, 8, ["checked", "disabled"])]), G.selectedVariable.multiline ? (p(), c("label", ge, [a[45] ||= l("span", null, "行数", -1), d(h(x), {
231
- value: G.selectedVariable.rows || G.defaultMultilineRows,
252
+ onChange: a[11] ||= (e) => U("patchMultiline", !!e)
253
+ }, null, 8, ["checked", "disabled"])]), H.selectedVariable.multiline ? (p(), c("label", xe, [a[43] ||= l("span", null, "行数", -1), d(h(x), {
254
+ value: H.selectedVariable.rows || H.defaultMultilineRows,
232
255
  min: 2,
233
256
  max: 12,
234
- disabled: X.value,
257
+ disabled: q.value,
235
258
  "aria-label": "行数",
236
- onChange: a[11] ||= (e) => K("patchRows", e)
259
+ onChange: a[12] ||= (e) => U("patchRows", e)
237
260
  }, null, 8, ["value", "disabled"])])) : s("", !0)], 64)) : s("", !0),
238
- G.selectedVariable.type === "date" ? (p(), c("label", _e, [a[46] ||= l("span", null, "日期格式", -1), d(h(b), {
239
- value: G.selectedVariable.format,
240
- disabled: X.value,
261
+ H.selectedVariable.type === "date" ? (p(), c("label", Se, [a[44] ||= l("span", null, "日期格式", -1), d(h(b), {
262
+ value: H.selectedVariable.format,
263
+ disabled: q.value,
241
264
  "aria-label": "日期格式",
242
- onChange: a[12] ||= (e) => Z({ format: e.target.value })
265
+ onChange: a[13] ||= (e) => Q({ format: e.target.value })
243
266
  }, null, 8, ["value", "disabled"])])) : s("", !0),
244
- G.selectedVariable.type === "number" ? (p(), c(i, { key: 2 }, [
245
- l("label", ve, [a[47] ||= l("span", null, "数字格式", -1), d(h(b), {
246
- value: G.selectedVariable.format,
247
- disabled: X.value,
248
- "aria-label": "数字格式",
249
- onChange: a[13] ||= (e) => Z({ format: e.target.value })
250
- }, null, 8, ["value", "disabled"])]),
251
- l("label", ye, [a[48] ||= l("span", null, "小数位", -1), d(h(x), {
252
- value: G.selectedVariable.precision,
267
+ H.selectedVariable.type === "number" ? (p(), c(i, { key: 2 }, [
268
+ l("label", Ce, [
269
+ a[45] ||= l("span", null, "数字格式", -1),
270
+ d(h(S), {
271
+ value: K.value,
272
+ options: h(e),
273
+ disabled: q.value,
274
+ "aria-label": "数字格式",
275
+ onChange: a[14] ||= (e) => Q({ format: String(e) })
276
+ }, null, 8, [
277
+ "value",
278
+ "options",
279
+ "disabled"
280
+ ]),
281
+ K.value === "percent" ? (p(), c("span", we, "按比例填写,例如 0.125 显示为 12.5%。")) : s("", !0)
282
+ ]),
283
+ l("label", Te, [a[46] ||= l("span", null, "小数位", -1), d(h(x), {
284
+ value: H.selectedVariable.precision,
253
285
  min: 0,
254
286
  max: 6,
255
- disabled: X.value,
287
+ disabled: q.value,
256
288
  "aria-label": "小数位",
257
- onChange: a[14] ||= (e) => Z({ precision: typeof e == "number" ? e : void 0 })
289
+ onChange: a[15] ||= (e) => Q({ precision: typeof e == "number" ? e : void 0 })
258
290
  }, null, 8, ["value", "disabled"])]),
259
- l("label", be, [a[49] ||= l("span", null, "千分位", -1), d(h(C), {
260
- checked: G.selectedVariable.useGrouping !== !1,
261
- disabled: X.value,
291
+ l("label", Ee, [a[47] ||= l("span", null, "千分位", -1), d(h(C), {
292
+ checked: H.selectedVariable.useGrouping === !0,
293
+ disabled: q.value,
262
294
  "aria-label": "千分位",
263
- onChange: a[15] ||= (e) => Z({ useGrouping: !!e })
295
+ onChange: a[16] ||= (e) => Q({ useGrouping: !!e })
264
296
  }, null, 8, ["checked", "disabled"])])
265
297
  ], 64)) : s("", !0),
266
- G.selectedVariable.type === "checkbox" ? (p(), c(i, { key: 3 }, [l("label", xe, [a[50] ||= l("span", null, "勾选文本", -1), d(h(b), {
267
- value: G.selectedVariable.checkedText,
268
- disabled: X.value,
298
+ H.selectedVariable.type === "checkbox" ? (p(), c(i, { key: 3 }, [l("label", De, [a[48] ||= l("span", null, "勾选文本", -1), d(h(b), {
299
+ value: H.selectedVariable.checkedText,
300
+ disabled: q.value,
269
301
  "aria-label": "勾选文本",
270
- onChange: a[16] ||= (e) => Z({ checkedText: e.target.value })
271
- }, null, 8, ["value", "disabled"])]), l("label", Se, [a[51] ||= l("span", null, "未选文本", -1), d(h(b), {
272
- value: G.selectedVariable.uncheckedText,
273
- disabled: X.value,
302
+ onChange: a[17] ||= (e) => Q({ checkedText: e.target.value })
303
+ }, null, 8, ["value", "disabled"])]), l("label", Oe, [a[49] ||= l("span", null, "未选文本", -1), d(h(b), {
304
+ value: H.selectedVariable.uncheckedText,
305
+ disabled: q.value,
274
306
  "aria-label": "未选文本",
275
- onChange: a[17] ||= (e) => Z({ uncheckedText: e.target.value })
307
+ onChange: a[18] ||= (e) => Q({ uncheckedText: e.target.value })
276
308
  }, null, 8, ["value", "disabled"])])], 64)) : s("", !0),
277
- Ze.value ? (p(), c("label", Ce, [a[52] ||= l("span", null, "允许多选", -1), d(h(C), {
278
- checked: !!G.selectedVariable.multiple,
279
- disabled: X.value,
309
+ tt.value ? (p(), c("label", ke, [a[50] ||= l("span", null, "允许多选", -1), d(h(C), {
310
+ checked: !!H.selectedVariable.multiple,
311
+ disabled: q.value,
280
312
  "aria-label": "允许多选",
281
- onChange: a[18] ||= (e) => Z({ multiple: !!e })
313
+ onChange: a[19] ||= (e) => ot(!!e)
282
314
  }, null, 8, ["checked", "disabled"])])) : s("", !0),
283
- Xe.value ? (p(), c(i, { key: 5 }, [
284
- l("label", we, [a[53] ||= l("span", null, [u("本地选项 "), l("small", { class: "gd-contract-authoring-panel__meta" }, "每行 value|label")], -1), d(h(b).TextArea, {
285
- value: Qe.value,
286
- rows: 4,
287
- disabled: X.value,
288
- "aria-label": "本地选项",
289
- onChange: et
290
- }, null, 8, ["value", "disabled"])]),
291
- l("label", Te, [a[54] ||= l("span", null, "数据来源", -1), d(h(S), {
292
- value: G.selectedVariable.dataSource?.kind || "none",
293
- options: [
294
- {
295
- label: "仅本地选项",
296
- value: "none"
297
- },
298
- {
299
- label: "宿主 Resolver",
300
- value: "resolver"
301
- },
302
- {
303
- label: "受限 URL",
304
- value: "url"
305
- }
306
- ],
307
- disabled: X.value,
308
- "aria-label": "数据来源",
309
- onChange: $e
310
- }, null, 8, ["value", "disabled"])]),
311
- G.selectedVariable.dataSource?.kind === "resolver" ? (p(), c("label", Ee, [a[55] ||= l("span", null, "Resolver Key", -1), d(h(b), {
312
- value: G.selectedVariable.dataSource.resolverKey,
313
- disabled: X.value,
314
- "aria-label": "Resolver Key",
315
- onChange: a[19] ||= (e) => $({ resolverKey: e.target.value })
316
- }, null, 8, ["value", "disabled"])])) : s("", !0),
317
- G.selectedVariable.dataSource?.kind === "url" ? (p(), c(i, { key: 1 }, [l("label", De, [a[56] ||= l("span", null, "请求 URL", -1), d(h(b), {
318
- value: G.selectedVariable.dataSource.url,
319
- disabled: X.value,
320
- "aria-label": "请求 URL",
321
- onChange: a[20] ||= (e) => $({ url: e.target.value })
322
- }, null, 8, ["value", "disabled"])]), l("label", Oe, [a[57] ||= l("span", null, "请求方法", -1), d(h(S), {
323
- value: G.selectedVariable.dataSource.method || "GET",
324
- options: [{
325
- label: "GET",
326
- value: "GET"
327
- }, {
328
- label: "POST",
329
- value: "POST"
330
- }],
331
- disabled: X.value,
332
- "aria-label": "请求方法",
333
- onChange: a[21] ||= (e) => $({ method: e })
334
- }, null, 8, ["value", "disabled"])])], 64)) : s("", !0)
335
- ], 64)) : s("", !0)
315
+ Z.value ? (p(), c("div", Ae, [a[51] ||= l("span", null, "选项", -1), (p(), o(te, {
316
+ key: H.selectedVariable.id,
317
+ options: H.selectedVariable.options ?? [],
318
+ "variable-type": H.selectedVariable.type || "select",
319
+ readonly: q.value,
320
+ onChange: st
321
+ }, null, 8, [
322
+ "options",
323
+ "variable-type",
324
+ "readonly"
325
+ ]))])) : s("", !0)
336
326
  ])]),
337
- l("details", ke, [l("summary", Ae, [d(h(T), {
327
+ l("details", je, [l("summary", Me, [d(h(T), {
338
328
  class: "gd-contract-authoring-panel__chevron",
339
329
  "aria-hidden": "true"
340
- }), a[58] ||= l("span", null, "外观", -1)]), l("div", je, [
341
- l("div", Me, [l("label", Ne, [a[59] ||= l("span", null, [u("宽度 "), l("small", { class: "gd-contract-authoring-panel__meta" }, "px")], -1), d(h(x), {
342
- value: G.selectedVariable.width,
330
+ }), a[52] ||= l("span", null, "外观", -1)]), l("div", Ne, [
331
+ l("div", Pe, [l("label", Fe, [a[53] ||= l("span", null, [u("宽度 "), l("small", { class: "gd-contract-authoring-panel__meta" }, "px")], -1), d(h(x), {
332
+ value: H.selectedVariable.width,
343
333
  min: 48,
344
- max: G.selectedVariableWidthMax,
345
- disabled: X.value,
334
+ max: H.selectedVariableWidthMax,
335
+ disabled: q.value,
346
336
  "aria-label": "控件宽度",
347
- onChange: a[22] ||= (e) => Z({ width: Number(e || 48) })
337
+ onChange: a[20] ||= (e) => Q({ width: Number(e || 48) })
348
338
  }, null, 8, [
349
339
  "value",
350
340
  "max",
351
341
  "disabled"
352
- ])]), l("label", Pe, [a[60] ||= l("span", null, [u("高度 "), l("small", { class: "gd-contract-authoring-panel__meta" }, "px")], -1), d(h(x), {
353
- value: G.selectedVariable.height,
342
+ ])]), J.value ? (p(), c("div", Ie, [a[54] ||= l("span", null, "高度", -1), l("span", Le, m(Y.value) + "行×" + m(X.value) + "px,正文高度" + m(Y.value * X.value) + "px", 1)])) : (p(), c("label", Re, [a[55] ||= l("span", null, [u("高度 "), l("small", { class: "gd-contract-authoring-panel__meta" }, "px")], -1), d(h(x), {
343
+ value: H.selectedVariable.height,
354
344
  min: 24,
355
- max: G.selectedVariableHeightMax,
356
- disabled: X.value,
345
+ max: H.selectedVariableHeightMax,
346
+ disabled: q.value,
357
347
  "aria-label": "控件高度",
358
- onChange: a[23] ||= (e) => Z({ height: Number(e || 24) })
348
+ onChange: a[21] ||= (e) => Q({ height: Number(e || 24) })
359
349
  }, null, 8, [
360
350
  "value",
361
351
  "max",
362
352
  "disabled"
363
- ])])]),
364
- l("label", Fe, [a[61] ||= l("span", null, "边框", -1), d(h(C), {
365
- checked: !!G.selectedVariable.style?.border,
366
- disabled: X.value,
353
+ ])]))]),
354
+ l("label", ze, [a[56] ||= l("span", null, "边框", -1), d(h(C), {
355
+ checked: !!H.selectedVariable.style?.border,
356
+ disabled: q.value,
367
357
  "aria-label": "边框",
368
- onChange: a[24] ||= (e) => Q({ border: !!e })
358
+ onChange: a[22] ||= (e) => $({ border: !!e })
369
359
  }, null, 8, ["checked", "disabled"])]),
370
- l("label", Ie, [a[62] ||= l("span", null, "下划线", -1), d(h(C), {
371
- checked: !!G.selectedVariable.style?.underline,
372
- disabled: X.value,
360
+ l("label", Be, [a[57] ||= l("span", null, "下划线", -1), d(h(C), {
361
+ checked: !!H.selectedVariable.style?.underline,
362
+ disabled: q.value,
373
363
  "aria-label": "下划线",
374
- onChange: a[25] ||= (e) => Q({ underline: !!e })
364
+ onChange: a[23] ||= (e) => $({ underline: !!e })
375
365
  }, null, 8, ["checked", "disabled"])]),
376
- l("label", Le, [a[63] ||= l("span", null, "字体", -1), d(h(S), {
377
- value: G.currentVariableFontFamily,
378
- options: G.fontFamilySelectOptions,
379
- disabled: X.value,
366
+ l("label", Ve, [a[58] ||= l("span", null, "字体", -1), d(h(S), {
367
+ value: H.currentVariableFontFamily,
368
+ options: H.fontFamilySelectOptions,
369
+ disabled: q.value,
380
370
  "aria-label": "控件字体",
381
- onChange: a[26] ||= (e) => K("patchFontFamily", e)
371
+ onChange: a[24] ||= (e) => U("patchFontFamily", e)
382
372
  }, null, 8, [
383
373
  "value",
384
374
  "options",
385
375
  "disabled"
386
376
  ])]),
387
- l("label", Re, [a[64] ||= l("span", null, "字号", -1), d(h(x), {
388
- value: G.selectedVariable.style?.fontSize,
389
- min: G.minFontSize,
390
- max: G.maxFontSize,
391
- disabled: X.value,
377
+ l("label", He, [a[59] ||= l("span", null, "字号", -1), d(h(x), {
378
+ value: H.selectedVariable.style?.fontSize,
379
+ min: H.minFontSize,
380
+ max: H.maxFontSize,
381
+ disabled: q.value,
392
382
  "aria-label": "控件字号",
393
- onChange: a[27] ||= (e) => K("patchFontSize", e)
383
+ onChange: a[25] ||= (e) => U("patchFontSize", e)
394
384
  }, null, 8, [
395
385
  "value",
396
386
  "min",
397
387
  "max",
398
388
  "disabled"
399
389
  ])]),
400
- l("label", ze, [a[65] ||= l("span", null, "颜色", -1), l("input", {
390
+ l("label", Ue, [a[60] ||= l("span", null, "颜色", -1), l("input", {
401
391
  type: "color",
402
- value: G.selectedVariable.style?.color || h(e).color,
403
- disabled: X.value,
392
+ value: H.selectedVariable.style?.color || h(t).color,
393
+ disabled: q.value,
404
394
  "aria-label": "控件文字颜色",
405
- onInput: a[28] ||= (e) => Q({ color: e.target.value })
406
- }, null, 40, Be)]),
407
- l("label", Ve, [a[66] ||= l("span", null, "占位颜色", -1), l("input", {
395
+ onInput: a[26] ||= (e) => $({ color: e.target.value })
396
+ }, null, 40, We)]),
397
+ l("label", Ge, [a[61] ||= l("span", null, "占位颜色", -1), l("input", {
408
398
  type: "color",
409
- value: G.selectedVariable.style?.placeholderColor || h(e).placeholderColor,
410
- disabled: X.value,
399
+ value: H.selectedVariable.style?.placeholderColor || h(t).placeholderColor,
400
+ disabled: q.value,
411
401
  "aria-label": "控件占位颜色",
412
- onInput: a[29] ||= (e) => Q({ placeholderColor: e.target.value })
413
- }, null, 40, He)]),
414
- l("label", Ue, [a[67] ||= l("span", null, "线条颜色", -1), l("input", {
402
+ onInput: a[27] ||= (e) => $({ placeholderColor: e.target.value })
403
+ }, null, 40, Ke)]),
404
+ l("label", qe, [a[62] ||= l("span", null, "线条颜色", -1), l("input", {
415
405
  type: "color",
416
- value: G.selectedVariable.style?.lineColor || h(e).lineColor,
417
- disabled: X.value,
406
+ value: H.selectedVariable.style?.lineColor || h(t).lineColor,
407
+ disabled: q.value,
418
408
  "aria-label": "控件线条颜色",
419
- onInput: a[30] ||= (e) => Q({ lineColor: e.target.value })
420
- }, null, 40, We)]),
421
- l("label", Ge, [a[68] ||= l("span", null, "文字对齐", -1), d(h(S), {
422
- value: G.selectedVariable.style?.textAlign || "left",
423
- options: G.textAlignOptions,
424
- disabled: X.value,
409
+ onInput: a[28] ||= (e) => $({ lineColor: e.target.value })
410
+ }, null, 40, Je)]),
411
+ l("label", Ye, [a[63] ||= l("span", null, "文字对齐", -1), d(h(S), {
412
+ value: H.selectedVariable.style?.textAlign || "left",
413
+ options: H.textAlignOptions,
414
+ disabled: q.value,
425
415
  "aria-label": "控件文字对齐",
426
- onChange: a[31] ||= (e) => K("patchTextAlign", e)
416
+ onChange: a[29] ||= (e) => U("patchTextAlign", e)
427
417
  }, null, 8, [
428
418
  "value",
429
419
  "options",
430
420
  "disabled"
431
421
  ])]),
432
- G.selectedVariable.type === "image" ? (p(), c(i, { key: 0 }, [l("label", Ke, [a[69] ||= l("span", null, "边框样式", -1), d(h(S), {
433
- value: G.selectedVariable.style?.borderStyle || "dashed",
434
- options: G.borderStyleOptions,
435
- disabled: X.value,
422
+ H.selectedVariable.type === "image" ? (p(), c(i, { key: 0 }, [l("label", Xe, [a[64] ||= l("span", null, "边框样式", -1), d(h(S), {
423
+ value: H.selectedVariable.style?.borderStyle || "dashed",
424
+ options: H.borderStyleOptions,
425
+ disabled: q.value,
436
426
  "aria-label": "图片边框样式",
437
- onChange: a[32] ||= (e) => K("patchBorderStyle", e)
427
+ onChange: a[30] ||= (e) => U("patchBorderStyle", e)
438
428
  }, null, 8, [
439
429
  "value",
440
430
  "options",
441
431
  "disabled"
442
- ])]), l("label", qe, [a[70] ||= l("span", null, "图片适配", -1), d(h(S), {
443
- value: G.selectedVariable.style?.objectFit || "contain",
444
- options: G.objectFitOptions,
445
- disabled: X.value,
432
+ ])]), l("label", Ze, [a[65] ||= l("span", null, "图片适配", -1), d(h(S), {
433
+ value: H.selectedVariable.style?.objectFit || "contain",
434
+ options: H.objectFitOptions,
435
+ disabled: q.value,
446
436
  "aria-label": "图片适配",
447
- onChange: a[33] ||= (e) => K("patchObjectFit", e)
437
+ onChange: a[31] ||= (e) => U("patchObjectFit", e)
448
438
  }, null, 8, [
449
439
  "value",
450
440
  "options",
451
441
  "disabled"
452
442
  ])])], 64)) : s("", !0)
453
443
  ])]),
454
- l("div", Je, [d(h(se), {
444
+ l("div", Qe, [d(h(le), {
455
445
  title: "删除此变量及其全部引用?",
456
446
  "ok-text": "删除变量",
457
447
  "cancel-text": "取消",
458
448
  "ok-button-props": { danger: !0 },
459
- disabled: X.value,
460
- onConfirm: nt
449
+ disabled: q.value,
450
+ onConfirm: lt
461
451
  }, {
462
452
  default: _(() => [d(h(y), {
463
453
  type: "text",
464
454
  danger: "",
465
- disabled: X.value,
455
+ disabled: q.value,
466
456
  "aria-label": "删除变量"
467
457
  }, {
468
- default: _(() => [d(h(le), { "aria-hidden": "true" }), a[71] ||= u("删除变量", -1)]),
458
+ default: _(() => [d(h(de), { "aria-hidden": "true" }), a[66] ||= u("删除变量", -1)]),
469
459
  _: 1
470
460
  }, 8, ["disabled"])]),
471
461
  _: 1
472
462
  }, 8, ["disabled"])])
473
- ])) : (p(), c("div", N, [
474
- a[36] ||= l("span", null, "先选择一个正文变量", -1),
475
- a[37] ||= l("small", { class: "gd-contract-authoring-panel__meta" }, "点击正文控件,或从左侧「变量」中定位。", -1),
476
- d(h(y), { onClick: a[4] ||= (e) => J.value = "insert" }, {
477
- default: _(() => [...a[35] ||= [u("前往插入控件", -1)]]),
463
+ ])) : (p(), c("div", j, [
464
+ a[34] ||= l("span", null, "先选择一个正文变量", -1),
465
+ a[35] ||= l("small", { class: "gd-contract-authoring-panel__meta" }, "点击正文控件,或从左侧「变量」中定位。", -1),
466
+ d(h(y), { onClick: a[4] ||= (e) => G.value = "insert" }, {
467
+ default: _(() => [...a[33] ||= [u("前往插入控件", -1)]]),
478
468
  _: 1
479
469
  })
480
- ]))], 8, A), [[g, J.value === "properties"]])
470
+ ]))], 8, O), [[g, G.value === "properties"]])
481
471
  ])])], 2));
482
472
  }
483
473
  });
484
474
  //#endregion
485
- export { W as default };
475
+ export { V as default };