@guodun/antdv 1.4.1 → 1.4.3

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 (135) hide show
  1. package/dist/es/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.mjs +304 -293
  2. package/dist/es/components/contract-signing-location/src/coordinates.mjs +23 -23
  3. package/dist/es/components/contract-signing-location/src/location-rules.mjs +20 -10
  4. package/dist/es/components/contract-signing-location/src/page-layout.mjs +12 -9
  5. package/dist/es/components/contract-signing-location/src/template-source.mjs +2 -0
  6. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +208 -180
  7. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.mjs +2 -1
  8. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.mjs +5 -0
  9. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.mjs +690 -0
  10. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.mjs +5 -0
  11. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.mjs +253 -0
  12. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.mjs +5 -0
  13. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.vue.mjs +87 -0
  14. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.mjs +5 -0
  15. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.vue.mjs +98 -0
  16. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.mjs +5 -0
  17. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.vue.mjs +550 -0
  18. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.mjs +5 -0
  19. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.vue.mjs +117 -0
  20. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.mjs +5 -0
  21. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.vue.mjs +96 -0
  22. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.mjs +51 -26
  23. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererPage.vue.mjs +56 -33
  24. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.mjs +5 -0
  25. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.vue.mjs +29 -0
  26. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.mjs +5 -0
  27. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.vue.mjs +179 -0
  28. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.mjs +5 -0
  29. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.vue.mjs +390 -0
  30. package/dist/es/components/pro-contract-template-designer/src/DesignerPage.vue.mjs +332 -263
  31. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +1442 -2287
  32. package/dist/es/components/pro-contract-template-designer/src/composables/use-auto-pagination.mjs +71 -0
  33. package/dist/es/components/pro-contract-template-designer/src/composables/use-designer-files.mjs +11 -0
  34. package/dist/es/components/pro-contract-template-designer/src/composables/use-draft-cache-session.mjs +111 -0
  35. package/dist/es/components/pro-contract-template-designer/src/composables/use-signing-placement-editor.mjs +79 -0
  36. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +189 -160
  37. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-files.mjs +35 -22
  38. package/dist/es/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.mjs +71 -0
  39. package/dist/es/components/pro-contract-template-designer/src/constants.mjs +71 -10
  40. package/dist/es/components/pro-contract-template-designer/src/extensions/editor-extensions.mjs +1 -0
  41. package/dist/es/components/pro-contract-template-designer/src/utils/block-style.mjs +43 -0
  42. package/dist/es/components/pro-contract-template-designer/src/utils/context-menu-viewport.mjs +13 -0
  43. package/dist/es/components/pro-contract-template-designer/src/utils/editor-state.mjs +7 -0
  44. package/dist/es/components/pro-contract-template-designer/src/utils/page-decorations.mjs +398 -0
  45. package/dist/es/components/pro-contract-template-designer/src/utils/serialize-fingerprint.mjs +6 -0
  46. package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +88 -72
  47. package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
  48. package/dist/es/index.mjs +20 -20
  49. package/dist/lib/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.cjs +1 -1
  50. package/dist/lib/components/contract-signing-location/src/coordinates.cjs +1 -1
  51. package/dist/lib/components/contract-signing-location/src/location-rules.cjs +1 -1
  52. package/dist/lib/components/contract-signing-location/src/page-layout.cjs +1 -1
  53. package/dist/lib/components/contract-signing-location/src/template-source.cjs +1 -1
  54. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +1 -1
  55. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.cjs +1 -1
  56. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.cjs +1 -0
  57. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.cjs +1 -0
  58. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.cjs +1 -0
  59. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.cjs +1 -0
  60. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.cjs +1 -0
  61. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.vue.cjs +1 -0
  62. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.cjs +1 -0
  63. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.vue.cjs +1 -0
  64. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.cjs +1 -0
  65. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.vue.cjs +1 -0
  66. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.cjs +1 -0
  67. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.vue.cjs +1 -0
  68. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.cjs +1 -0
  69. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.vue.cjs +1 -0
  70. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.cjs +1 -1
  71. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererPage.vue.cjs +1 -1
  72. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.cjs +1 -0
  73. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.vue.cjs +1 -0
  74. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.cjs +1 -0
  75. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.vue.cjs +1 -0
  76. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.cjs +1 -0
  77. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.vue.cjs +1 -0
  78. package/dist/lib/components/pro-contract-template-designer/src/DesignerPage.vue.cjs +2 -2
  79. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
  80. package/dist/lib/components/pro-contract-template-designer/src/composables/use-auto-pagination.cjs +1 -0
  81. package/dist/lib/components/pro-contract-template-designer/src/composables/use-designer-files.cjs +1 -0
  82. package/dist/lib/components/pro-contract-template-designer/src/composables/use-draft-cache-session.cjs +1 -0
  83. package/dist/lib/components/pro-contract-template-designer/src/composables/use-signing-placement-editor.cjs +1 -0
  84. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +4 -4
  85. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-files.cjs +2 -2
  86. package/dist/lib/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.cjs +1 -0
  87. package/dist/lib/components/pro-contract-template-designer/src/constants.cjs +1 -1
  88. package/dist/lib/components/pro-contract-template-designer/src/extensions/editor-extensions.cjs +1 -1
  89. package/dist/lib/components/pro-contract-template-designer/src/utils/block-style.cjs +1 -0
  90. package/dist/lib/components/pro-contract-template-designer/src/utils/context-menu-viewport.cjs +1 -0
  91. package/dist/lib/components/pro-contract-template-designer/src/utils/editor-state.cjs +1 -0
  92. package/dist/lib/components/pro-contract-template-designer/src/utils/page-decorations.cjs +1 -0
  93. package/dist/lib/components/pro-contract-template-designer/src/utils/serialize-fingerprint.cjs +1 -0
  94. package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +3 -3
  95. package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
  96. package/dist/lib/index.cjs +1 -1
  97. package/dist/theme/icon.css +1 -1
  98. package/dist/theme/index.css +1 -1
  99. package/dist/types/components/contract-signing-location/src/coordinates.d.ts +2 -2
  100. package/dist/types/components/contract-signing-location/src/page-layout.d.ts +2 -2
  101. package/dist/types/components/contract-signing-location/src/template-source.d.ts +2 -0
  102. package/dist/types/components/contract-signing-location/src/types.d.ts +3 -0
  103. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.d.ts +3 -0
  104. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.d.ts +1 -0
  105. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.d.ts +104 -0
  106. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.d.ts +60 -0
  107. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.vue.d.ts +27 -0
  108. package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.vue.d.ts +13 -0
  109. package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.vue.d.ts +28 -0
  110. package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.vue.d.ts +77 -0
  111. package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.vue.d.ts +36 -0
  112. package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.d.ts +5 -1
  113. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.d.ts +4 -4
  114. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererToolbar.vue.d.ts +4 -4
  115. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.vue.d.ts +12 -0
  116. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.vue.d.ts +43 -0
  117. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.vue.d.ts +77 -0
  118. package/dist/types/components/pro-contract-template-designer/src/DesignerPage.vue.d.ts +30 -32
  119. package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +456 -12
  120. package/dist/types/components/pro-contract-template-designer/src/composables/use-auto-pagination.d.ts +43 -0
  121. package/dist/types/components/pro-contract-template-designer/src/composables/use-designer-files.d.ts +22 -0
  122. package/dist/types/components/pro-contract-template-designer/src/composables/use-draft-cache-session.d.ts +41 -0
  123. package/dist/types/components/pro-contract-template-designer/src/composables/use-signing-placement-editor.d.ts +49 -0
  124. package/dist/types/components/pro-contract-template-designer/src/composables/use-template-designer.d.ts +15 -1
  125. package/dist/types/components/pro-contract-template-designer/src/composables/use-template-files.d.ts +13 -0
  126. package/dist/types/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.d.ts +19 -0
  127. package/dist/types/components/pro-contract-template-designer/src/constants.d.ts +7 -1
  128. package/dist/types/components/pro-contract-template-designer/src/types.d.ts +89 -0
  129. package/dist/types/components/pro-contract-template-designer/src/utils/block-style.d.ts +4 -0
  130. package/dist/types/components/pro-contract-template-designer/src/utils/context-menu-viewport.d.ts +25 -0
  131. package/dist/types/components/pro-contract-template-designer/src/utils/editor-state.d.ts +8 -0
  132. package/dist/types/components/pro-contract-template-designer/src/utils/page-decorations.d.ts +90 -0
  133. package/dist/types/components/pro-contract-template-designer/src/utils/serialize-fingerprint.d.ts +8 -0
  134. package/dist/types/components/pro-contract-template-designer/src/utils/template-renderer.d.ts +4 -1
  135. package/package.json +3 -3
@@ -1,44 +1,49 @@
1
- import e from "./SigningPlacementInspector.mjs";
2
- import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as ee, createVNode as o, defineComponent as s, normalizeClass as te, openBlock as c, renderList as l, resolveDynamicComponent as u, toDisplayString as d, unref as f, withCtx as p } from "vue";
3
- import { Button as m, Empty as h, Input as g, InputNumber as _, Select as v, Switch as y, Tag as ne, Tooltip as b } from "ant-design-vue";
4
- import { CopyOutlined as re, DeleteOutlined as ie, LeftOutlined as x, RightOutlined as S } from "@ant-design/icons-vue";
1
+ import { validateContractTemplateVariableKey as e } from "./composables/use-template-designer.mjs";
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 ee, createVNode as c, defineComponent as l, normalizeClass as te, openBlock as u, ref as d, renderList as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, watch as ne, withCtx as g, withKeys as re, withModifiers as ie } from "vue";
4
+ import { Button as _, Empty as v, Input as y, InputNumber as b, Select as x, Switch as S, Tag as ae, Tooltip as C } from "ant-design-vue";
5
+ import { CopyOutlined as oe, DeleteOutlined as se, LeftOutlined as ce, RightOutlined as le } from "@ant-design/icons-vue";
5
6
  //#region src/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue?vue&type=script&setup=true&lang.ts
6
- var C = ["aria-label", "aria-expanded"], w = { class: "gd-contract-template-designer__panel-stack" }, T = { class: "gd-contract-template-designer__panel gd-contract-template-designer__panel--tools" }, E = [
7
+ var w = ["aria-label", "aria-expanded"], T = { class: "gd-contract-template-designer__panel-stack" }, E = { class: "gd-contract-template-designer__panel gd-contract-template-designer__panel--tools" }, D = [
7
8
  "disabled",
8
9
  "onDragstart",
9
10
  "onClick"
10
- ], D = {
11
+ ], O = {
11
12
  class: "gd-contract-template-designer__tool-item-icon",
12
13
  "aria-hidden": "true"
13
- }, O = { class: "gd-contract-template-designer__tool-item-copy" }, k = {
14
+ }, k = { class: "gd-contract-template-designer__tool-item-copy" }, A = {
14
15
  key: 0,
15
16
  class: "gd-contract-template-designer__panel gd-contract-template-designer__panel--tools"
16
- }, A = { class: "gd-contract-template-designer__panel-head" }, j = { class: "gd-contract-template-designer__panel-actions" }, M = [
17
+ }, j = { class: "gd-contract-template-designer__panel-head" }, M = { class: "gd-contract-template-designer__panel-actions" }, N = [
17
18
  "disabled",
18
19
  "onDragstart",
19
20
  "onClick"
20
- ], N = {
21
+ ], P = {
21
22
  class: "gd-contract-template-designer__tool-item-icon",
22
23
  "aria-hidden": "true"
23
- }, P = { class: "gd-contract-template-designer__signing-tool-copy" }, F = { class: "gd-contract-template-designer__signing-tool-label" }, I = {
24
+ }, F = { class: "gd-contract-template-designer__signing-tool-copy" }, I = { class: "gd-contract-template-designer__signing-tool-label" }, L = {
24
25
  key: 2,
25
26
  class: "gd-contract-template-designer__panel gd-contract-template-designer__panel--properties"
26
- }, L = { class: "gd-contract-template-designer__panel-head" }, R = {
27
+ }, R = { class: "gd-contract-template-designer__panel-head" }, z = {
27
28
  key: 0,
28
29
  class: "gd-contract-template-designer__panel-actions"
29
- }, z = { class: "gd-contract-template-designer__form-row" }, B = { class: "gd-contract-template-designer__form-row" }, V = { class: "gd-contract-template-designer__form-row" }, H = { class: "gd-contract-template-designer__form-row" }, U = { class: "gd-contract-template-designer__form-row" }, W = { class: "gd-contract-template-designer__form-row" }, ae = {
30
+ }, B = { class: "gd-contract-template-designer__form-row" }, V = { class: "gd-contract-template-designer__form-row" }, H = {
30
31
  key: 0,
32
+ class: "gd-contract-template-designer__form-error",
33
+ role: "alert"
34
+ }, U = { class: "gd-contract-template-designer__form-row" }, W = { class: "gd-contract-template-designer__form-row" }, ue = { class: "gd-contract-template-designer__form-row" }, de = { class: "gd-contract-template-designer__form-row" }, fe = {
35
+ key: 1,
31
36
  class: "gd-contract-template-designer__switch-grid"
32
- }, G = { class: "gd-contract-template-designer__switch-row" }, K = {
37
+ }, pe = { class: "gd-contract-template-designer__switch-row" }, me = {
33
38
  key: 0,
34
39
  class: "gd-contract-template-designer__form-row is-compact"
35
- }, q = {
36
- key: 1,
40
+ }, he = {
41
+ key: 2,
37
42
  class: "gd-contract-template-designer__form-row"
38
- }, J = { class: "gd-contract-template-designer__form-row" }, oe = { class: "gd-contract-template-designer__form-row" }, se = { class: "gd-contract-template-designer__form-row" }, ce = { class: "gd-contract-template-designer__form-row" }, le = { class: "gd-contract-template-designer__switch-grid" }, ue = { class: "gd-contract-template-designer__switch-row" }, de = { class: "gd-contract-template-designer__switch-row" }, fe = { class: "gd-contract-template-designer__switch-row" }, pe = {
43
+ }, G = { class: "gd-contract-template-designer__form-row" }, ge = { class: "gd-contract-template-designer__form-row" }, _e = { class: "gd-contract-template-designer__form-row" }, ve = { class: "gd-contract-template-designer__form-row" }, ye = { class: "gd-contract-template-designer__switch-grid" }, be = { class: "gd-contract-template-designer__switch-row" }, xe = { class: "gd-contract-template-designer__switch-row" }, Se = { class: "gd-contract-template-designer__switch-row" }, Ce = {
39
44
  key: 0,
40
45
  class: "gd-contract-template-designer__switch-row"
41
- }, me = { class: "gd-contract-template-designer__form-row" }, he = { class: "gd-contract-template-designer__form-row" }, ge = { class: "gd-contract-template-designer__form-row" }, _e = ["value", "disabled"], Y = { class: "gd-contract-template-designer__form-row" }, ve = ["value", "disabled"], ye = { class: "gd-contract-template-designer__form-row" }, be = ["value", "disabled"], xe = { class: "gd-contract-template-designer__form-row" }, Se = { class: "gd-contract-template-designer__form-row" }, Ce = { class: "gd-contract-template-designer__form-row" }, X = /* @__PURE__ */ s({
46
+ }, we = { class: "gd-contract-template-designer__form-row" }, Te = { class: "gd-contract-template-designer__form-row" }, Ee = { class: "gd-contract-template-designer__form-row" }, De = ["value", "disabled"], Oe = { class: "gd-contract-template-designer__form-row" }, ke = ["value", "disabled"], Ae = { class: "gd-contract-template-designer__form-row" }, je = ["value", "disabled"], Me = { class: "gd-contract-template-designer__form-row" }, Ne = { class: "gd-contract-template-designer__form-row" }, Pe = { class: "gd-contract-template-designer__form-row" }, K = /* @__PURE__ */ l({
42
47
  name: "ContractTemplateDesignerInspector",
43
48
  __name: "ContractTemplateDesignerInspector",
44
49
  props: {
@@ -52,6 +57,7 @@ var C = ["aria-label", "aria-expanded"], w = { class: "gd-contract-template-desi
52
57
  selectedSigningPlacement: {},
53
58
  selectedSigningPlacementPageSize: {},
54
59
  selectedVariable: {},
60
+ variables: {},
55
61
  currentVariableFontFamily: {},
56
62
  fontFamilySelectOptions: {},
57
63
  textAlignOptions: {},
@@ -77,6 +83,7 @@ var C = ["aria-label", "aria-expanded"], w = { class: "gd-contract-template-desi
77
83
  "duplicateVariable",
78
84
  "removeVariable",
79
85
  "patchVariable",
86
+ "renameVariable",
80
87
  "patchStyle",
81
88
  "patchMultiline",
82
89
  "patchRows",
@@ -86,262 +93,283 @@ var C = ["aria-label", "aria-expanded"], w = { class: "gd-contract-template-desi
86
93
  "patchBorderStyle",
87
94
  "patchObjectFit"
88
95
  ],
89
- setup(s, { emit: X }) {
90
- let Z = s, Q = X, $ = () => Z.readonly || Z.disabled;
91
- return (s, X) => (c(), i("aside", { class: te(["gd-contract-template-designer__inspector", { "is-collapsed": Z.collapsed }]) }, [o(f(b), { title: Z.collapsed ? "展开属性栏" : "收起属性栏" }, {
92
- default: p(() => [a("button", {
96
+ setup(l, { emit: K }) {
97
+ let q = l, J = K, Y = () => q.readonly || q.disabled, X = d(""), Z = d(!1), Q = r(() => Z.value && q.selectedVariable ? e(X.value, q.variables, q.selectedVariable.id) : "");
98
+ ne(() => [q.selectedVariable?.id, q.selectedVariable?.key], ([, e]) => {
99
+ X.value = e ?? "", Z.value = !1;
100
+ }, { immediate: !0 });
101
+ function Fe(e) {
102
+ X.value = e.target.value, Z.value = !0;
103
+ }
104
+ function $() {
105
+ if (!q.selectedVariable || Y() || (Z.value = !0, Q.value)) return;
106
+ let e = X.value.trim();
107
+ e !== q.selectedVariable.key && J("renameVariable", e), Z.value = !1;
108
+ }
109
+ return (e, r) => (u(), o("aside", { class: te(["gd-contract-template-designer__inspector", { "is-collapsed": q.collapsed }]) }, [c(h(C), { title: q.collapsed ? "展开属性栏" : "收起属性栏" }, {
110
+ default: g(() => [s("button", {
93
111
  type: "button",
94
112
  class: "gd-contract-template-designer__panel-handle",
95
- "aria-label": Z.collapsed ? "展开属性栏" : "收起属性栏",
96
- "aria-expanded": !Z.collapsed,
97
- onClick: X[0] ||= (e) => Q("toggle")
98
- }, [Z.collapsed ? (c(), n(f(x), {
113
+ "aria-label": q.collapsed ? "展开属性栏" : "收起属性栏",
114
+ "aria-expanded": !q.collapsed,
115
+ onClick: r[0] ||= (e) => J("toggle")
116
+ }, [q.collapsed ? (u(), i(h(ce), {
99
117
  key: 0,
100
118
  "aria-hidden": "true"
101
- })) : (c(), n(f(S), {
119
+ })) : (u(), i(h(le), {
102
120
  key: 1,
103
121
  "aria-hidden": "true"
104
- }))], 8, C)]),
122
+ }))], 8, w)]),
105
123
  _: 1
106
- }, 8, ["title"]), a("div", w, [
107
- a("section", T, [X[31] ||= a("div", { class: "gd-contract-template-designer__panel-head" }, [a("strong", null, "正文控件"), a("span", null, "拖到正文")], -1), (c(!0), i(t, null, l(Z.bodyControlToolItems, (e) => (c(), i("button", {
124
+ }, 8, ["title"]), s("div", T, [
125
+ s("section", E, [r[31] ||= s("div", { class: "gd-contract-template-designer__panel-head" }, [s("strong", null, "正文控件"), s("span", null, "拖到正文")], -1), (u(!0), o(n, null, f(q.bodyControlToolItems, (e) => (u(), o("button", {
108
126
  key: e.type,
109
127
  type: "button",
110
128
  draggable: "true",
111
129
  class: "gd-contract-template-designer__tool-item",
112
- disabled: $(),
113
- onDragstart: (t) => Q("variableDragStart", t, e.type),
114
- onClick: (t) => Q("insertVariable", e.type)
115
- }, [a("span", D, [(c(), n(u(e.icon)))]), a("span", O, [a("span", null, d(e.label), 1), X[30] ||= a("small", null, "模板变量", -1)])], 40, E))), 128))]),
116
- Z.showSigningPlacementTools ? (c(), i("section", k, [a("div", A, [X[32] ||= a("strong", null, "签署位置", -1), a("div", j, [o(f(ne), null, {
117
- default: p(() => [ee(d(Z.signingPlacements.length), 1)]),
130
+ disabled: Y(),
131
+ onDragstart: (t) => J("variableDragStart", t, e.type),
132
+ onClick: (t) => J("insertVariable", e.type)
133
+ }, [s("span", O, [(u(), i(p(e.icon)))]), s("span", k, [s("span", null, m(e.label), 1), r[30] ||= s("small", null, "模板变量", -1)])], 40, D))), 128))]),
134
+ q.showSigningPlacementTools ? (u(), o("section", A, [s("div", j, [r[32] ||= s("strong", null, "签署位置", -1), s("div", M, [c(h(ae), null, {
135
+ default: g(() => [ee(m(q.signingPlacements.length), 1)]),
118
136
  _: 1
119
- })])]), (c(!0), i(t, null, l(Z.signingPlacementTools, (e) => (c(), i("button", {
137
+ })])]), (u(!0), o(n, null, f(q.signingPlacementTools, (e) => (u(), o("button", {
120
138
  key: e.key,
121
139
  type: "button",
122
140
  draggable: "true",
123
141
  class: "gd-contract-template-designer__tool-item gd-contract-template-designer__signing-tool",
124
- disabled: $(),
125
- onDragstart: (t) => Q("signingPlacementDragStart", t, e),
126
- onClick: (t) => Q("insertSigningPlacement", e)
127
- }, [a("span", N, [(c(), n(u(Z.resolveSigningPlacementTypeIcon(e.type))))]), a("span", P, [a("span", F, d(e.label), 1), a("small", null, d(Z.signingPlacementTypeLabels[e.type]) + " · 页面坐标", 1)])], 40, M))), 128))])) : r("", !0),
128
- Z.showSigningPlacementTools && Z.selectedSigningPlacement ? (c(), n(e, {
142
+ disabled: Y(),
143
+ onDragstart: (t) => J("signingPlacementDragStart", t, e),
144
+ onClick: (t) => J("insertSigningPlacement", e)
145
+ }, [s("span", P, [(u(), i(p(q.resolveSigningPlacementTypeIcon(e.type))))]), s("span", F, [s("span", I, m(e.label), 1), s("small", null, m(q.signingPlacementTypeLabels[e.type]) + " · 页面坐标", 1)])], 40, N))), 128))])) : a("", !0),
146
+ q.showSigningPlacementTools && q.selectedSigningPlacement ? (u(), i(t, {
129
147
  key: 1,
130
- placement: Z.selectedSigningPlacement,
131
- "page-size": Z.selectedSigningPlacementPageSize,
132
- readonly: Z.readonly,
133
- disabled: Z.disabled,
134
- onUpdate: X[1] ||= (e) => Q("patchSigningPlacement", e),
135
- onDuplicate: X[2] ||= (e) => Q("duplicateSigningPlacement"),
136
- onRemove: X[3] ||= (e) => Q("removeSigningPlacement")
148
+ placement: q.selectedSigningPlacement,
149
+ "page-size": q.selectedSigningPlacementPageSize,
150
+ readonly: q.readonly,
151
+ disabled: q.disabled,
152
+ onUpdate: r[1] ||= (e) => J("patchSigningPlacement", e),
153
+ onDuplicate: r[2] ||= (e) => J("duplicateSigningPlacement"),
154
+ onRemove: r[3] ||= (e) => J("removeSigningPlacement")
137
155
  }, null, 8, [
138
156
  "placement",
139
157
  "page-size",
140
158
  "readonly",
141
159
  "disabled"
142
- ])) : (c(), i("section", I, [a("div", L, [X[33] ||= a("strong", null, "属性", -1), Z.selectedVariable ? (c(), i("div", R, [o(f(b), { title: "复制变量" }, {
143
- default: p(() => [o(f(m), {
160
+ ])) : (u(), o("section", L, [s("div", R, [r[33] ||= s("strong", null, "属性", -1), q.selectedVariable ? (u(), o("div", z, [c(h(C), { title: "复制变量" }, {
161
+ default: g(() => [c(h(_), {
144
162
  size: "small",
145
163
  type: "primary",
146
164
  class: "gd-contract-template-designer__icon-button",
147
- disabled: $(),
165
+ disabled: Y(),
148
166
  "aria-label": "复制变量",
149
- onClick: X[4] ||= (e) => Q("duplicateVariable", Z.selectedVariable)
167
+ onClick: r[4] ||= (e) => J("duplicateVariable", q.selectedVariable)
150
168
  }, {
151
- default: p(() => [o(f(re), { "aria-hidden": "true" })]),
169
+ default: g(() => [c(h(oe), { "aria-hidden": "true" })]),
152
170
  _: 1
153
171
  }, 8, ["disabled"])]),
154
172
  _: 1
155
- }), o(f(b), { title: "删除变量" }, {
156
- default: p(() => [o(f(m), {
173
+ }), c(h(C), { title: "删除变量" }, {
174
+ default: g(() => [c(h(_), {
157
175
  danger: "",
158
176
  type: "primary",
159
177
  size: "small",
160
178
  class: "gd-contract-template-designer__icon-button",
161
- disabled: $(),
179
+ disabled: Y(),
162
180
  "aria-label": "删除变量",
163
- onClick: X[5] ||= (e) => Q("removeVariable", Z.selectedVariable)
181
+ onClick: r[5] ||= (e) => J("removeVariable", q.selectedVariable)
164
182
  }, {
165
- default: p(() => [o(f(ie), { "aria-hidden": "true" })]),
183
+ default: g(() => [c(h(se), { "aria-hidden": "true" })]),
166
184
  _: 1
167
185
  }, 8, ["disabled"])]),
168
186
  _: 1
169
- })])) : r("", !0)]), Z.selectedVariable ? (c(), i(t, { key: 1 }, [
170
- a("label", z, [X[34] ||= a("span", null, "名称", -1), o(f(g), {
171
- value: Z.selectedVariable.label,
172
- disabled: $(),
173
- onChange: X[6] ||= (e) => Q("patchVariable", { label: e.target.value })
187
+ })])) : a("", !0)]), q.selectedVariable ? (u(), o(n, { key: 1 }, [
188
+ s("label", B, [r[34] ||= s("span", null, "名称", -1), c(h(y), {
189
+ value: q.selectedVariable.label,
190
+ disabled: Y(),
191
+ onChange: r[6] ||= (e) => J("patchVariable", { label: e.target.value })
174
192
  }, null, 8, ["value", "disabled"])]),
175
- a("label", B, [X[35] ||= a("span", null, "变量标识", -1), o(f(g), {
176
- value: Z.selectedVariable.key,
177
- disabled: ""
178
- }, null, 8, ["value"])]),
179
- a("label", V, [X[36] ||= a("span", null, "占位文案", -1), o(f(g), {
180
- value: Z.selectedVariable.placeholder,
181
- disabled: $(),
182
- onChange: X[7] ||= (e) => Q("patchVariable", { placeholder: e.target.value })
193
+ s("label", V, [r[35] ||= s("span", null, "变量标识", -1), c(h(y), {
194
+ value: X.value,
195
+ status: Q.value ? "error" : void 0,
196
+ disabled: Y(),
197
+ onInput: Fe,
198
+ onBlur: $,
199
+ onKeydown: re(ie($, ["prevent"]), ["enter"])
200
+ }, null, 8, [
201
+ "value",
202
+ "status",
203
+ "disabled",
204
+ "onKeydown"
205
+ ])]),
206
+ Q.value ? (u(), o("small", H, m(Q.value), 1)) : a("", !0),
207
+ s("label", U, [r[36] ||= s("span", null, "占位文案", -1), c(h(y), {
208
+ value: q.selectedVariable.placeholder,
209
+ disabled: Y(),
210
+ onChange: r[7] ||= (e) => J("patchVariable", { placeholder: e.target.value })
183
211
  }, null, 8, ["value", "disabled"])]),
184
- a("label", H, [X[37] ||= a("span", null, "默认值", -1), o(f(g), {
185
- value: Z.selectedVariable.defaultValue,
186
- disabled: $(),
187
- onChange: X[8] ||= (e) => Q("patchVariable", { defaultValue: e.target.value })
212
+ s("label", W, [r[37] ||= s("span", null, "默认值", -1), c(h(y), {
213
+ value: q.selectedVariable.defaultValue,
214
+ disabled: Y(),
215
+ onChange: r[8] ||= (e) => J("patchVariable", { defaultValue: e.target.value })
188
216
  }, null, 8, ["value", "disabled"])]),
189
- a("label", U, [X[38] ||= a("span", null, "宽度", -1), o(f(_), {
190
- value: Z.selectedVariable.width,
217
+ s("label", ue, [r[38] ||= s("span", null, "宽度", -1), c(h(b), {
218
+ value: q.selectedVariable.width,
191
219
  min: 48,
192
- max: Z.selectedVariableWidthMax,
193
- disabled: $(),
194
- onChange: X[9] ||= (e) => Q("patchVariable", { width: Number(e || 48) })
220
+ max: q.selectedVariableWidthMax,
221
+ disabled: Y(),
222
+ onChange: r[9] ||= (e) => J("patchVariable", { width: Number(e || 48) })
195
223
  }, null, 8, [
196
224
  "value",
197
225
  "max",
198
226
  "disabled"
199
227
  ])]),
200
- a("label", W, [X[39] ||= a("span", null, "高度", -1), o(f(_), {
201
- value: Z.selectedVariable.height,
228
+ s("label", de, [r[39] ||= s("span", null, "高度", -1), c(h(b), {
229
+ value: q.selectedVariable.height,
202
230
  min: 24,
203
- max: Z.selectedVariableHeightMax,
204
- disabled: $(),
205
- onChange: X[10] ||= (e) => Q("patchVariable", { height: Number(e || 24) })
231
+ max: q.selectedVariableHeightMax,
232
+ disabled: Y(),
233
+ onChange: r[10] ||= (e) => J("patchVariable", { height: Number(e || 24) })
206
234
  }, null, 8, [
207
235
  "value",
208
236
  "max",
209
237
  "disabled"
210
238
  ])]),
211
- Z.selectedVariable.type === "text" ? (c(), i("div", ae, [a("label", G, [X[40] ||= a("span", null, "多行", -1), o(f(y), {
212
- checked: !!Z.selectedVariable.multiline,
213
- disabled: $(),
214
- onChange: X[11] ||= (e) => Q("patchMultiline", !!e)
215
- }, null, 8, ["checked", "disabled"])]), Z.selectedVariable.multiline ? (c(), i("label", K, [X[41] ||= a("span", null, "行数", -1), o(f(_), {
216
- value: Z.selectedVariable.rows || Z.defaultMultilineRows,
239
+ q.selectedVariable.type === "text" ? (u(), o("div", fe, [s("label", pe, [r[40] ||= s("span", null, "多行", -1), c(h(S), {
240
+ checked: !!q.selectedVariable.multiline,
241
+ disabled: Y(),
242
+ onChange: r[11] ||= (e) => J("patchMultiline", !!e)
243
+ }, null, 8, ["checked", "disabled"])]), q.selectedVariable.multiline ? (u(), o("label", me, [r[41] ||= s("span", null, "行数", -1), c(h(b), {
244
+ value: q.selectedVariable.rows || q.defaultMultilineRows,
217
245
  min: 2,
218
246
  max: 12,
219
- disabled: $(),
220
- onChange: X[12] ||= (e) => Q("patchRows", e)
221
- }, null, 8, ["value", "disabled"])])) : r("", !0)])) : r("", !0),
222
- Z.selectedVariable.type === "date" ? (c(), i("label", q, [X[42] ||= a("span", null, "日期格式", -1), o(f(g), {
223
- value: Z.selectedVariable.format,
224
- disabled: $(),
225
- onChange: X[13] ||= (e) => Q("patchVariable", { format: e.target.value })
226
- }, null, 8, ["value", "disabled"])])) : r("", !0),
227
- Z.selectedVariable.type === "number" ? (c(), i(t, { key: 2 }, [a("label", J, [X[43] ||= a("span", null, "数字格式", -1), o(f(g), {
228
- value: Z.selectedVariable.format,
229
- disabled: $(),
230
- onChange: X[14] ||= (e) => Q("patchVariable", { format: e.target.value })
231
- }, null, 8, ["value", "disabled"])]), a("label", oe, [X[44] ||= a("span", null, "小数位", -1), o(f(_), {
232
- value: Z.selectedVariable.precision,
247
+ disabled: Y(),
248
+ onChange: r[12] ||= (e) => J("patchRows", e)
249
+ }, null, 8, ["value", "disabled"])])) : a("", !0)])) : a("", !0),
250
+ q.selectedVariable.type === "date" ? (u(), o("label", he, [r[42] ||= s("span", null, "日期格式", -1), c(h(y), {
251
+ value: q.selectedVariable.format,
252
+ disabled: Y(),
253
+ onChange: r[13] ||= (e) => J("patchVariable", { format: e.target.value })
254
+ }, null, 8, ["value", "disabled"])])) : a("", !0),
255
+ q.selectedVariable.type === "number" ? (u(), o(n, { key: 3 }, [s("label", G, [r[43] ||= s("span", null, "数字格式", -1), c(h(y), {
256
+ value: q.selectedVariable.format,
257
+ disabled: Y(),
258
+ onChange: r[14] ||= (e) => J("patchVariable", { format: e.target.value })
259
+ }, null, 8, ["value", "disabled"])]), s("label", ge, [r[44] ||= s("span", null, "小数位", -1), c(h(b), {
260
+ value: q.selectedVariable.precision,
233
261
  min: 0,
234
262
  max: 6,
235
- disabled: $(),
236
- onChange: X[15] ||= (e) => Q("patchVariable", { precision: typeof e == "number" ? e : void 0 })
237
- }, null, 8, ["value", "disabled"])])], 64)) : r("", !0),
238
- Z.selectedVariable.type === "checkbox" ? (c(), i(t, { key: 3 }, [a("label", se, [X[45] ||= a("span", null, "勾选文本", -1), o(f(g), {
239
- value: Z.selectedVariable.checkedText,
240
- disabled: $(),
241
- onChange: X[16] ||= (e) => Q("patchVariable", { checkedText: e.target.value })
242
- }, null, 8, ["value", "disabled"])]), a("label", ce, [X[46] ||= a("span", null, "未选文本", -1), o(f(g), {
243
- value: Z.selectedVariable.uncheckedText,
244
- disabled: $(),
245
- onChange: X[17] ||= (e) => Q("patchVariable", { uncheckedText: e.target.value })
246
- }, null, 8, ["value", "disabled"])])], 64)) : r("", !0),
247
- a("div", le, [
248
- a("label", ue, [X[47] ||= a("span", null, "必填", -1), o(f(y), {
249
- checked: Z.selectedVariable.required,
250
- disabled: $(),
251
- onChange: X[18] ||= (e) => Q("patchVariable", { required: !!e })
263
+ disabled: Y(),
264
+ onChange: r[15] ||= (e) => J("patchVariable", { precision: typeof e == "number" ? e : void 0 })
265
+ }, null, 8, ["value", "disabled"])])], 64)) : a("", !0),
266
+ q.selectedVariable.type === "checkbox" ? (u(), o(n, { key: 4 }, [s("label", _e, [r[45] ||= s("span", null, "勾选文本", -1), c(h(y), {
267
+ value: q.selectedVariable.checkedText,
268
+ disabled: Y(),
269
+ onChange: r[16] ||= (e) => J("patchVariable", { checkedText: e.target.value })
270
+ }, null, 8, ["value", "disabled"])]), s("label", ve, [r[46] ||= s("span", null, "未选文本", -1), c(h(y), {
271
+ value: q.selectedVariable.uncheckedText,
272
+ disabled: Y(),
273
+ onChange: r[17] ||= (e) => J("patchVariable", { uncheckedText: e.target.value })
274
+ }, null, 8, ["value", "disabled"])])], 64)) : a("", !0),
275
+ s("div", ye, [
276
+ s("label", be, [r[47] ||= s("span", null, "必填", -1), c(h(S), {
277
+ checked: q.selectedVariable.required,
278
+ disabled: Y(),
279
+ onChange: r[18] ||= (e) => J("patchVariable", { required: !!e })
252
280
  }, null, 8, ["checked", "disabled"])]),
253
- a("label", de, [X[48] ||= a("span", null, "边框", -1), o(f(y), {
254
- checked: !!Z.selectedVariable.style?.border,
255
- disabled: $(),
256
- onChange: X[19] ||= (e) => Q("patchStyle", { border: !!e })
281
+ s("label", xe, [r[48] ||= s("span", null, "边框", -1), c(h(S), {
282
+ checked: !!q.selectedVariable.style?.border,
283
+ disabled: Y(),
284
+ onChange: r[19] ||= (e) => J("patchStyle", { border: !!e })
257
285
  }, null, 8, ["checked", "disabled"])]),
258
- a("label", fe, [X[49] ||= a("span", null, "下划线", -1), o(f(y), {
259
- checked: !!Z.selectedVariable.style?.underline,
260
- disabled: $(),
261
- onChange: X[20] ||= (e) => Q("patchStyle", { underline: !!e })
286
+ s("label", Se, [r[49] ||= s("span", null, "下划线", -1), c(h(S), {
287
+ checked: !!q.selectedVariable.style?.underline,
288
+ disabled: Y(),
289
+ onChange: r[20] ||= (e) => J("patchStyle", { underline: !!e })
262
290
  }, null, 8, ["checked", "disabled"])]),
263
- Z.selectedVariable.type === "number" ? (c(), i("label", pe, [X[50] ||= a("span", null, "千分位", -1), o(f(y), {
264
- checked: Z.selectedVariable.useGrouping !== !1,
265
- disabled: $(),
266
- onChange: X[21] ||= (e) => Q("patchVariable", { useGrouping: !!e })
267
- }, null, 8, ["checked", "disabled"])])) : r("", !0)
291
+ q.selectedVariable.type === "number" ? (u(), o("label", Ce, [r[50] ||= s("span", null, "千分位", -1), c(h(S), {
292
+ checked: q.selectedVariable.useGrouping !== !1,
293
+ disabled: Y(),
294
+ onChange: r[21] ||= (e) => J("patchVariable", { useGrouping: !!e })
295
+ }, null, 8, ["checked", "disabled"])])) : a("", !0)
268
296
  ]),
269
- a("label", me, [X[51] ||= a("span", null, "字体", -1), o(f(v), {
270
- value: Z.currentVariableFontFamily,
271
- options: Z.fontFamilySelectOptions,
272
- disabled: $(),
273
- onChange: X[22] ||= (e) => Q("patchFontFamily", e)
297
+ s("label", we, [r[51] ||= s("span", null, "字体", -1), c(h(x), {
298
+ value: q.currentVariableFontFamily,
299
+ options: q.fontFamilySelectOptions,
300
+ disabled: Y(),
301
+ onChange: r[22] ||= (e) => J("patchFontFamily", e)
274
302
  }, null, 8, [
275
303
  "value",
276
304
  "options",
277
305
  "disabled"
278
306
  ])]),
279
- a("label", he, [X[52] ||= a("span", null, "字号", -1), o(f(_), {
280
- value: Z.selectedVariable.style?.fontSize,
281
- min: Z.minFontSize,
282
- max: Z.maxFontSize,
283
- disabled: $(),
284
- onChange: X[23] ||= (e) => Q("patchFontSize", e)
307
+ s("label", Te, [r[52] ||= s("span", null, "字号", -1), c(h(b), {
308
+ value: q.selectedVariable.style?.fontSize,
309
+ min: q.minFontSize,
310
+ max: q.maxFontSize,
311
+ disabled: Y(),
312
+ onChange: r[23] ||= (e) => J("patchFontSize", e)
285
313
  }, null, 8, [
286
314
  "value",
287
315
  "min",
288
316
  "max",
289
317
  "disabled"
290
318
  ])]),
291
- a("label", ge, [X[53] ||= a("span", null, "颜色", -1), a("input", {
319
+ s("label", Ee, [r[53] ||= s("span", null, "颜色", -1), s("input", {
292
320
  type: "color",
293
- value: Z.selectedVariable.style?.color || "#1f2937",
294
- disabled: $(),
295
- onInput: X[24] ||= (e) => Q("patchStyle", { color: e.target.value })
296
- }, null, 40, _e)]),
297
- a("label", Y, [X[54] ||= a("span", null, "占位颜色", -1), a("input", {
321
+ value: q.selectedVariable.style?.color || "#1f2937",
322
+ disabled: Y(),
323
+ onInput: r[24] ||= (e) => J("patchStyle", { color: e.target.value })
324
+ }, null, 40, De)]),
325
+ s("label", Oe, [r[54] ||= s("span", null, "占位颜色", -1), s("input", {
298
326
  type: "color",
299
- value: Z.selectedVariable.style?.placeholderColor || "#7a818b",
300
- disabled: $(),
301
- onInput: X[25] ||= (e) => Q("patchStyle", { placeholderColor: e.target.value })
302
- }, null, 40, ve)]),
303
- a("label", ye, [X[55] ||= a("span", null, "线条颜色", -1), a("input", {
327
+ value: q.selectedVariable.style?.placeholderColor || "#7a818b",
328
+ disabled: Y(),
329
+ onInput: r[25] ||= (e) => J("patchStyle", { placeholderColor: e.target.value })
330
+ }, null, 40, ke)]),
331
+ s("label", Ae, [r[55] ||= s("span", null, "线条颜色", -1), s("input", {
304
332
  type: "color",
305
- value: Z.selectedVariable.style?.lineColor || "#565b66",
306
- disabled: $(),
307
- onInput: X[26] ||= (e) => Q("patchStyle", { lineColor: e.target.value })
308
- }, null, 40, be)]),
309
- a("label", xe, [X[56] ||= a("span", null, "文字对齐", -1), o(f(v), {
310
- value: Z.selectedVariable.style?.textAlign || "left",
311
- options: Z.textAlignOptions,
312
- disabled: $(),
313
- onChange: X[27] ||= (e) => Q("patchTextAlign", e)
333
+ value: q.selectedVariable.style?.lineColor || "#565b66",
334
+ disabled: Y(),
335
+ onInput: r[26] ||= (e) => J("patchStyle", { lineColor: e.target.value })
336
+ }, null, 40, je)]),
337
+ s("label", Me, [r[56] ||= s("span", null, "文字对齐", -1), c(h(x), {
338
+ value: q.selectedVariable.style?.textAlign || "left",
339
+ options: q.textAlignOptions,
340
+ disabled: Y(),
341
+ onChange: r[27] ||= (e) => J("patchTextAlign", e)
314
342
  }, null, 8, [
315
343
  "value",
316
344
  "options",
317
345
  "disabled"
318
346
  ])]),
319
- Z.selectedVariable.type === "image" ? (c(), i(t, { key: 4 }, [a("label", Se, [X[57] ||= a("span", null, "边框样式", -1), o(f(v), {
320
- value: Z.selectedVariable.style?.borderStyle || "dashed",
321
- options: Z.borderStyleOptions,
322
- disabled: $(),
323
- onChange: X[28] ||= (e) => Q("patchBorderStyle", e)
347
+ q.selectedVariable.type === "image" ? (u(), o(n, { key: 5 }, [s("label", Ne, [r[57] ||= s("span", null, "边框样式", -1), c(h(x), {
348
+ value: q.selectedVariable.style?.borderStyle || "dashed",
349
+ options: q.borderStyleOptions,
350
+ disabled: Y(),
351
+ onChange: r[28] ||= (e) => J("patchBorderStyle", e)
324
352
  }, null, 8, [
325
353
  "value",
326
354
  "options",
327
355
  "disabled"
328
- ])]), a("label", Ce, [X[58] ||= a("span", null, "图片适配", -1), o(f(v), {
329
- value: Z.selectedVariable.style?.objectFit || "contain",
330
- options: Z.objectFitOptions,
331
- disabled: $(),
332
- onChange: X[29] ||= (e) => Q("patchObjectFit", e)
356
+ ])]), s("label", Pe, [r[58] ||= s("span", null, "图片适配", -1), c(h(x), {
357
+ value: q.selectedVariable.style?.objectFit || "contain",
358
+ options: q.objectFitOptions,
359
+ disabled: Y(),
360
+ onChange: r[29] ||= (e) => J("patchObjectFit", e)
333
361
  }, null, 8, [
334
362
  "value",
335
363
  "options",
336
364
  "disabled"
337
- ])])], 64)) : r("", !0)
338
- ], 64)) : (c(), n(f(h), {
365
+ ])])], 64)) : a("", !0)
366
+ ], 64)) : (u(), i(h(v), {
339
367
  key: 0,
340
368
  description: "请选择模板变量",
341
- image: f(h).PRESENTED_IMAGE_SIMPLE
369
+ image: h(v).PRESENTED_IMAGE_SIMPLE
342
370
  }, null, 8, ["image"]))]))
343
371
  ])], 2));
344
372
  }
345
373
  });
346
374
  //#endregion
347
- export { X as default };
375
+ export { K as default };
@@ -18,6 +18,7 @@ var w = ["aria-label", "aria-expanded"], T = { class: "gd-contract-template-desi
18
18
  collapsed: { type: Boolean },
19
19
  pages: {},
20
20
  variables: {},
21
+ decorationVariableKeys: {},
21
22
  signingPlacementNavigationItems: {},
22
23
  activePageId: {},
23
24
  selectedVariableKey: {},
@@ -145,7 +146,7 @@ var w = ["aria-label", "aria-expanded"], T = { class: "gd-contract-template-desi
145
146
  type: "button",
146
147
  class: c(["gd-contract-template-designer__nav-item", { "is-active": V.selectedVariableKey === e.key }]),
147
148
  onClick: (t) => H("scrollToVariable", e)
148
- }, [i("span", null, d(e.label), 1), i("small", null, d(e.type || "text") + " · " + d(e.key), 1)], 10, I))), 128))
149
+ }, [i("span", null, d(e.label), 1), i("small", null, d(V.decorationVariableKeys.includes(e.key) ? "页面装饰" : e.type || "text") + " · " + d(e.key), 1)], 10, I))), 128))
149
150
  ]),
150
151
  V.showSigningPlacementTools ? (l(), r("section", L, [
151
152
  i("div", R, [B[6] ||= i("strong", null, "签署位置", -1), o(f(_), null, {
@@ -0,0 +1,5 @@
1
+ import e from "./ContractTemplateDesignerToolbar.vue.mjs";
2
+ //#region src/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };