@guodun/antdv 1.3.2 → 1.4.1

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 (111) hide show
  1. package/dist/es/components/contract-signing-location/index.mjs +1 -0
  2. package/dist/es/components/contract-signing-location/src/ContractSigningLocation.vue.mjs +311 -289
  3. package/dist/es/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.mjs +337 -326
  4. package/dist/es/components/contract-signing-location/src/ContractSigningLocationInspector.vue.mjs +3 -2
  5. package/dist/es/components/contract-signing-location/src/ContractSigningLocationNavigator.vue.mjs +41 -33
  6. package/dist/es/components/contract-signing-location/src/ContractSigningTemplatePage.mjs +5 -0
  7. package/dist/es/components/contract-signing-location/src/ContractSigningTemplatePage.vue.mjs +23 -0
  8. package/dist/es/components/contract-signing-location/src/location-rules.mjs +115 -77
  9. package/dist/es/components/contract-signing-location/src/template-source.mjs +85 -0
  10. package/dist/es/components/contract-signing-location/style/index.css +1 -1
  11. package/dist/es/components/index.mjs +8 -6
  12. package/dist/es/components/pro-contract-signing-flow/src/ContractSigningFlowCanvas.vue.mjs +164 -57
  13. package/dist/es/components/pro-contract-signing-flow/src/ContractSigningFlowInspector.vue.mjs +132 -126
  14. package/dist/es/components/pro-contract-signing-flow/src/ContractSigningFlowNodeCard.vue.mjs +75 -49
  15. package/dist/es/components/pro-contract-signing-flow/src/ProContractSigningFlow.vue.mjs +136 -91
  16. package/dist/es/components/pro-contract-signing-flow/src/constants.mjs +25 -5
  17. package/dist/es/components/pro-contract-signing-flow/style/index.css +1 -1
  18. package/dist/es/components/pro-contract-template-designer/index.mjs +5 -4
  19. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.mjs +5 -0
  20. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +347 -0
  21. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.mjs +5 -0
  22. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.mjs +171 -0
  23. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateFileBar.mjs +5 -0
  24. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateFileBar.vue.mjs +166 -0
  25. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.mjs +4 -4
  26. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererValidation.mjs +5 -0
  27. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererValidation.vue.mjs +36 -0
  28. package/dist/es/components/pro-contract-template-designer/src/DesignerPage.vue.mjs +202 -202
  29. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +1591 -1612
  30. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.mjs +235 -239
  31. package/dist/es/components/pro-contract-template-designer/src/SigningPlacementLayer.vue.mjs +16 -16
  32. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +166 -166
  33. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-draft-cache.mjs +100 -33
  34. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-files.mjs +77 -0
  35. package/dist/es/components/pro-contract-template-designer/src/extensions/word-paste.mjs +23 -23
  36. package/dist/es/components/pro-contract-template-designer/src/utils/file-tabs.mjs +14 -0
  37. package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +121 -121
  38. package/dist/es/components/pro-contract-template-designer/src/utils/toolbar-overflow.mjs +19 -0
  39. package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
  40. package/dist/es/index.mjs +23 -21
  41. package/dist/lib/components/contract-signing-location/index.cjs +1 -1
  42. package/dist/lib/components/contract-signing-location/src/ContractSigningLocation.vue.cjs +1 -1
  43. package/dist/lib/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.cjs +1 -1
  44. package/dist/lib/components/contract-signing-location/src/ContractSigningLocationInspector.vue.cjs +1 -1
  45. package/dist/lib/components/contract-signing-location/src/ContractSigningLocationNavigator.vue.cjs +1 -1
  46. package/dist/lib/components/contract-signing-location/src/ContractSigningTemplatePage.cjs +1 -0
  47. package/dist/lib/components/contract-signing-location/src/ContractSigningTemplatePage.vue.cjs +1 -0
  48. package/dist/lib/components/contract-signing-location/src/location-rules.cjs +1 -1
  49. package/dist/lib/components/contract-signing-location/src/template-source.cjs +1 -0
  50. package/dist/lib/components/contract-signing-location/style/index.css +1 -1
  51. package/dist/lib/components/index.cjs +1 -1
  52. package/dist/lib/components/pro-contract-signing-flow/src/ContractSigningFlowCanvas.vue.cjs +1 -1
  53. package/dist/lib/components/pro-contract-signing-flow/src/ContractSigningFlowInspector.vue.cjs +1 -1
  54. package/dist/lib/components/pro-contract-signing-flow/src/ContractSigningFlowNodeCard.vue.cjs +1 -1
  55. package/dist/lib/components/pro-contract-signing-flow/src/ProContractSigningFlow.vue.cjs +1 -1
  56. package/dist/lib/components/pro-contract-signing-flow/src/constants.cjs +1 -1
  57. package/dist/lib/components/pro-contract-signing-flow/style/index.css +1 -1
  58. package/dist/lib/components/pro-contract-template-designer/index.cjs +1 -1
  59. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.cjs +1 -0
  60. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +1 -0
  61. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.cjs +1 -0
  62. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.cjs +1 -0
  63. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateFileBar.cjs +1 -0
  64. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateFileBar.vue.cjs +1 -0
  65. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.cjs +1 -1
  66. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererValidation.cjs +1 -0
  67. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererValidation.vue.cjs +1 -0
  68. package/dist/lib/components/pro-contract-template-designer/src/DesignerPage.vue.cjs +2 -2
  69. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
  70. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.cjs +1 -1
  71. package/dist/lib/components/pro-contract-template-designer/src/SigningPlacementLayer.vue.cjs +1 -1
  72. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +2 -2
  73. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-draft-cache.cjs +1 -1
  74. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-files.cjs +2 -0
  75. package/dist/lib/components/pro-contract-template-designer/src/extensions/word-paste.cjs +1 -1
  76. package/dist/lib/components/pro-contract-template-designer/src/utils/file-tabs.cjs +1 -0
  77. package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +2 -2
  78. package/dist/lib/components/pro-contract-template-designer/src/utils/toolbar-overflow.cjs +1 -0
  79. package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
  80. package/dist/lib/index.cjs +1 -1
  81. package/dist/theme/contract-signing-location.css +1 -1
  82. package/dist/theme/icon.css +1 -1
  83. package/dist/theme/index.css +1 -1
  84. package/dist/theme/pro-contract-signing-flow.css +1 -1
  85. package/dist/types/components/contract-signing-location/index.d.ts +1 -0
  86. package/dist/types/components/contract-signing-location/src/ContractSigningLocation.vue.d.ts +4 -1
  87. package/dist/types/components/contract-signing-location/src/ContractSigningLocationInspector.vue.d.ts +3 -2
  88. package/dist/types/components/contract-signing-location/src/ContractSigningTemplatePage.vue.d.ts +6 -0
  89. package/dist/types/components/contract-signing-location/src/location-rules.d.ts +3 -3
  90. package/dist/types/components/contract-signing-location/src/template-source.d.ts +20 -0
  91. package/dist/types/components/contract-signing-location/src/types.d.ts +49 -2
  92. package/dist/types/components/pro-contract-signing-flow/src/ContractSigningFlowCanvas.vue.d.ts +19 -3
  93. package/dist/types/components/pro-contract-signing-flow/src/ProContractSigningFlow.vue.d.ts +223 -2
  94. package/dist/types/components/pro-contract-signing-flow/src/constants.d.ts +15 -0
  95. package/dist/types/components/pro-contract-signing-flow/src/types.d.ts +14 -0
  96. package/dist/types/components/pro-contract-template-designer/index.d.ts +1 -0
  97. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.d.ts +103 -0
  98. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.d.ts +48 -0
  99. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateFileBar.vue.d.ts +231 -0
  100. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererValidation.vue.d.ts +15 -0
  101. package/dist/types/components/pro-contract-template-designer/src/DesignerPage.vue.d.ts +1 -1
  102. package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +25 -2
  103. package/dist/types/components/pro-contract-template-designer/src/SigningPlacementInspector.vue.d.ts +2 -2
  104. package/dist/types/components/pro-contract-template-designer/src/composables/use-template-designer.d.ts +1 -1
  105. package/dist/types/components/pro-contract-template-designer/src/composables/use-template-draft-cache.d.ts +29 -1
  106. package/dist/types/components/pro-contract-template-designer/src/composables/use-template-files.d.ts +24 -0
  107. package/dist/types/components/pro-contract-template-designer/src/constants.d.ts +2 -2
  108. package/dist/types/components/pro-contract-template-designer/src/types.d.ts +59 -1
  109. package/dist/types/components/pro-contract-template-designer/src/utils/file-tabs.d.ts +3 -0
  110. package/dist/types/components/pro-contract-template-designer/src/utils/toolbar-overflow.d.ts +11 -0
  111. package/package.json +4 -3
@@ -1,18 +1,19 @@
1
- import { CONTRACT_SIGNING_FLOW_SEAL_TYPES as e } from "./constants.mjs";
2
- import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as ee, openBlock as u, ref as d, renderList as te, toDisplayString as f, unref as p, vShow as ne, withCtx as m, withDirectives as re } from "vue";
3
- import { Button as ie, Checkbox as ae, Empty as h, Form as oe, FormItem as g, Input as _, RadioGroup as se, Select as v, Switch as y, Tag as b } from "ant-design-vue";
4
- import { DownOutlined as x, EnvironmentOutlined as ce, RightOutlined as le } from "@ant-design/icons-vue";
1
+ import e from "../../pro-title/index.mjs";
2
+ import { CONTRACT_SIGNING_FLOW_IDENTITY_OPTIONS as t, CONTRACT_SIGNING_FLOW_SEAL_TYPES as n } from "./constants.mjs";
3
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, openBlock as p, ref as m, renderList as ee, toDisplayString as h, unref as g, vShow as te, withCtx as _, withDirectives as ne } from "vue";
4
+ import { Button as re, Checkbox as ie, Empty as v, Form as ae, FormItem as y, Input as b, RadioGroup as x, Select as oe, Switch as S, Tag as se } from "ant-design-vue";
5
+ import { DownOutlined as ce, EnvironmentOutlined as le, ExclamationCircleOutlined as ue, FileDoneOutlined as de, PlayCircleOutlined as fe, RightOutlined as pe } from "@ant-design/icons-vue";
5
6
  //#region src/components/pro-contract-signing-flow/src/ContractSigningFlowInspector.vue?vue&type=script&setup=true&lang.ts
6
- var ue = { class: "gd-contract-signing-flow__inspector" }, de = { class: "gd-contract-signing-flow__inspector-header" }, fe = { class: "gd-contract-signing-flow__inspector-scroll" }, pe = { class: "gd-contract-signing-flow__form-section" }, S = { class: "gd-contract-signing-flow__form-section" }, C = { class: "gd-contract-signing-flow__setting-list" }, w = { class: "gd-contract-signing-flow__setting-row" }, T = { class: "gd-contract-signing-flow__form-section" }, E = { class: "gd-contract-signing-flow__section-heading" }, D = { class: "gd-contract-signing-flow__rule-grid" }, O = {
7
+ var me = { class: "gd-contract-signing-flow__inspector" }, C = { class: "gd-contract-signing-flow__inspector-header" }, w = { class: "gd-contract-signing-flow__inspector-type" }, T = { class: "gd-contract-signing-flow__inspector-scroll" }, E = { class: "gd-contract-signing-flow__form-section" }, D = { class: "gd-contract-signing-flow__form-section" }, O = { class: "gd-contract-signing-flow__segmented is-two" }, k = {
8
+ key: 0,
9
+ class: "gd-contract-signing-flow__identity-note"
10
+ }, A = { class: "gd-contract-signing-flow__setting-list" }, j = { class: "gd-contract-signing-flow__setting-row" }, M = { class: "gd-contract-signing-flow__form-section" }, N = { class: "gd-contract-signing-flow__section-heading" }, P = { class: "gd-contract-signing-flow__rule-summary" }, F = { class: "gd-contract-signing-flow__rule-grid" }, I = { class: "gd-contract-signing-flow__segmented is-three" }, L = { class: "gd-contract-signing-flow__segmented is-three" }, R = {
7
11
  key: 0,
8
12
  class: "gd-contract-signing-flow__seal-types"
9
- }, k = { class: "gd-contract-signing-flow__seal-list" }, A = { class: "gd-contract-signing-flow__section-heading-meta" }, j = { class: "gd-contract-signing-flow__setting-list is-compact" }, M = { class: "gd-contract-signing-flow__setting-row" }, N = { class: "gd-contract-signing-flow__setting-row" }, P = { class: "gd-contract-signing-flow__setting-row" }, F = { class: "gd-contract-signing-flow__setting-row" }, I = { class: "gd-contract-signing-flow__setting-row" }, L = { class: "gd-contract-signing-flow__setting-row" }, R = { class: "gd-contract-signing-flow__setting-row" }, z = { class: "gd-contract-signing-flow__setting-row" }, B = {
13
+ }, z = { class: "gd-contract-signing-flow__seal-list" }, he = { class: "gd-contract-signing-flow__section-heading-meta" }, ge = { class: "gd-contract-signing-flow__setting-list is-compact" }, _e = { class: "gd-contract-signing-flow__setting-row" }, ve = { class: "gd-contract-signing-flow__setting-row" }, ye = { class: "gd-contract-signing-flow__setting-row" }, be = { class: "gd-contract-signing-flow__setting-row" }, B = { class: "gd-contract-signing-flow__setting-row" }, xe = { class: "gd-contract-signing-flow__setting-row" }, Se = { class: "gd-contract-signing-flow__setting-row" }, Ce = { class: "gd-contract-signing-flow__setting-row" }, we = {
10
14
  key: 0,
11
15
  class: "gd-contract-signing-flow__form-section is-placement"
12
- }, me = { class: "gd-contract-signing-flow__section-heading" }, he = {
13
- key: 1,
14
- class: "gd-contract-signing-flow__node-overview"
15
- }, ge = { class: "gd-contract-signing-flow__node-overview-icon" }, V = /* @__PURE__ */ l({
16
+ }, Te = { class: "gd-contract-signing-flow__placement-summary" }, Ee = { class: "gd-contract-signing-flow__placement-count" }, De = { class: "gd-contract-signing-flow__node-overview-icon" }, V = /* @__PURE__ */ d({
16
17
  __name: "ContractSigningFlowInspector",
17
18
  props: {
18
19
  node: {},
@@ -21,8 +22,8 @@ var ue = { class: "gd-contract-signing-flow__inspector" }, de = { class: "gd-con
21
22
  showPlacement: { type: Boolean }
22
23
  },
23
24
  emits: ["change", "placementRequest"],
24
- setup(l, { emit: V }) {
25
- let H = l, U = d(!1), _e = [
25
+ setup(d, { emit: V }) {
26
+ let H = d, U = m(!1), Oe = [
26
27
  "smsVerify",
27
28
  "faceVerify",
28
29
  "passwordVerify",
@@ -31,13 +32,7 @@ var ue = { class: "gd-contract-signing-flow__inspector" }, de = { class: "gd-con
31
32
  "batchFunctionEnable",
32
33
  "perforationSealEnable",
33
34
  "cannotExtraLocations"
34
- ], W = V, G = n(() => H.readonly || H.disabled), ve = [{
35
- label: "个人",
36
- value: "person"
37
- }, {
38
- label: "企业",
39
- value: "company"
40
- }], K = [
35
+ ], W = V, G = i(() => H.readonly || H.disabled), K = [
41
36
  {
42
37
  label: "必须",
43
38
  value: "must"
@@ -50,7 +45,7 @@ var ue = { class: "gd-contract-signing-flow__inspector" }, de = { class: "gd-con
50
45
  label: "禁止",
51
46
  value: "forbid"
52
47
  }
53
- ], ye = [{
48
+ ], ke = [{
54
49
  label: "任一人通过",
55
50
  value: "ONE_PASS"
56
51
  }, {
@@ -84,20 +79,23 @@ var ue = { class: "gd-contract-signing-flow__inspector" }, de = { class: "gd-con
84
79
  e === "description" ? n.description = t || null : n[e] = t;
85
80
  });
86
81
  }
87
- function be(e) {
82
+ function Ae(e) {
88
83
  e !== "person" && e !== "company" || q((t) => {
89
84
  if (t.identity = e, e === "person") {
90
85
  let e = t.config.signRule;
91
- e.cannotSeal = !0, e.mustSeal = !1, e.sealType = [], e.perforationSealEnable = !1;
86
+ e.cannotSeal = !0, e.mustSeal = !1, e.sealType = [], e.perforationSealEnable = !1, t.config.locationRules = (t.config.locationRules || []).filter((e) => {
87
+ let t = e.location?.signType;
88
+ return t !== "seal" && t !== "acrossSeal";
89
+ });
92
90
  }
93
91
  });
94
92
  }
95
- function xe(e) {
93
+ function je(e) {
96
94
  q((t) => {
97
95
  t.multi = e === !0;
98
96
  });
99
97
  }
100
- function Se(e) {
98
+ function Me(e) {
101
99
  e !== "ONE_PASS" && e !== "ALL_PASS" || q((t) => {
102
100
  t.multiCompletedCondition = {
103
101
  ...t.multiCompletedCondition || {
@@ -108,7 +106,7 @@ var ue = { class: "gd-contract-signing-flow__inspector" }, de = { class: "gd-con
108
106
  };
109
107
  });
110
108
  }
111
- function Ce(e, t) {
109
+ function Ne(e, t) {
112
110
  q((n) => {
113
111
  let r = n.config.signRule;
114
112
  r.sealType = t === !0 ? Array.from(new Set([...r.sealType, e])) : r.sealType.filter((t) => t !== e);
@@ -125,209 +123,217 @@ var ue = { class: "gd-contract-signing-flow__inspector" }, de = { class: "gd-con
125
123
  r[e] = t === !0, t === !0 && (e === "noneVerify" ? (r.smsVerify = !1, r.faceVerify = !1, r.passwordVerify = !1) : r.noneVerify = !1);
126
124
  });
127
125
  }
128
- function we() {
126
+ function Pe() {
129
127
  let e = J();
130
128
  return e ? e.mustSeal ? "必须印章" : e.cannotSignature ? "仅印章" : e.cannotSeal ? "仅签名" : "签名可选" : "未配置";
131
129
  }
132
- let Te = n(() => {
130
+ let Fe = i(() => {
133
131
  let e = J();
134
- return e ? _e.filter((t) => e[t] === !0).length : 0;
132
+ return e ? Oe.filter((t) => e[t] === !0).length : 0;
135
133
  });
136
- function Ee(e) {
134
+ function Ie(e) {
137
135
  return e === "sign" ? "签署节点" : e === "start" ? "开始节点" : e === "end" ? "结束节点" : "异常节点";
138
136
  }
139
- return (n, d) => (u(), a("aside", ue, [l.node ? (u(), a(t, { key: 0 }, [o("header", de, [o("div", null, [d[15] ||= o("h2", null, "节点配置", -1), o("p", null, f(l.node.name || "未命名节点"), 1)]), c(p(b), { color: l.node.type === "sign" ? "blue" : void 0 }, {
140
- default: m(() => [s(f(Ee(l.node.type)), 1)]),
141
- _: 1
142
- }, 8, ["color"])]), o("div", fe, [l.node.type === "sign" ? (u(), a(t, { key: 0 }, [
143
- o("section", pe, [d[16] ||= o("div", { class: "gd-contract-signing-flow__section-heading" }, [o("h3", null, "基础信息")], -1), c(p(oe), {
137
+ return (i, m) => (p(), s("aside", me, [d.node ? (p(), s(r, { key: 0 }, [c("header", C, [c("div", null, [u(g(e), {
138
+ title: "节点配置",
139
+ size: 16
140
+ }), c("p", null, h(d.node.name || "未命名节点"), 1)]), c("span", w, h(Ie(d.node.type)), 1)]), c("div", T, [d.node.type === "sign" ? (p(), s(r, { key: 0 }, [
141
+ c("section", E, [m[15] ||= c("div", { class: "gd-contract-signing-flow__section-heading" }, [c("h3", null, "基础信息")], -1), u(g(ae), {
144
142
  layout: "vertical",
145
143
  class: "gd-contract-signing-flow__form"
146
144
  }, {
147
- default: m(() => [
148
- c(p(g), { label: "节点名称" }, {
149
- default: m(() => [c(p(_), {
150
- value: l.node.name,
145
+ default: _(() => [
146
+ u(g(y), { label: "节点名称" }, {
147
+ default: _(() => [u(g(b), {
148
+ value: d.node.name,
151
149
  disabled: G.value,
152
150
  placeholder: "请输入节点名称",
153
- "onUpdate:value": d[0] ||= (e) => Z("name", String(e))
151
+ "onUpdate:value": m[0] ||= (e) => Z("name", String(e))
154
152
  }, null, 8, ["value", "disabled"])]),
155
153
  _: 1
156
154
  }),
157
- c(p(g), { label: "节点标识" }, {
158
- default: m(() => [c(p(_), {
159
- value: l.node.customKey || "",
155
+ u(g(y), { label: "节点标识" }, {
156
+ default: _(() => [u(g(b), {
157
+ value: d.node.customKey || "",
160
158
  disabled: G.value,
161
159
  placeholder: "请输入唯一标识",
162
- "onUpdate:value": d[1] ||= (e) => Z("customKey", String(e))
160
+ "onUpdate:value": m[1] ||= (e) => Z("customKey", String(e))
163
161
  }, null, 8, ["value", "disabled"])]),
164
162
  _: 1
165
163
  }),
166
- c(p(g), { label: "节点描述" }, {
167
- default: m(() => [c(p(_).TextArea, {
168
- value: l.node.description || "",
164
+ u(g(y), { label: "节点描述" }, {
165
+ default: _(() => [u(g(b).TextArea, {
166
+ value: d.node.description || "",
169
167
  disabled: G.value,
170
168
  "auto-size": {
171
169
  minRows: 2,
172
170
  maxRows: 4
173
171
  },
174
172
  placeholder: "请输入节点描述",
175
- "onUpdate:value": d[2] ||= (e) => Z("description", String(e))
173
+ "onUpdate:value": m[2] ||= (e) => Z("description", String(e))
176
174
  }, null, 8, ["value", "disabled"])]),
177
175
  _: 1
178
176
  })
179
177
  ]),
180
178
  _: 1
181
179
  })]),
182
- o("section", S, [
183
- d[18] ||= o("div", { class: "gd-contract-signing-flow__section-heading" }, [o("h3", null, "签署主体")], -1),
184
- c(p(se), {
185
- value: l.node.identity,
186
- options: ve,
180
+ c("section", D, [
181
+ m[17] ||= c("div", { class: "gd-contract-signing-flow__section-heading" }, [c("h3", null, "签署主体")], -1),
182
+ c("div", O, [u(g(x), {
183
+ value: d.node.identity,
184
+ options: g(t),
187
185
  "option-type": "button",
188
186
  "button-style": "solid",
189
187
  disabled: G.value,
190
- "onUpdate:value": be
191
- }, null, 8, ["value", "disabled"]),
192
- o("div", C, [o("div", w, [d[17] ||= o("div", null, [o("strong", null, "多人签署"), o("span", null, "允许多位签署人共同完成该节点")], -1), c(p(y), {
193
- checked: l.node.multi,
188
+ "onUpdate:value": Ae
189
+ }, null, 8, [
190
+ "value",
191
+ "options",
192
+ "disabled"
193
+ ])]),
194
+ d.node.identity === "person" ? (p(), s("p", k, "个人节点不允许使用印章或骑缝章。")) : o("", !0),
195
+ c("div", A, [c("div", j, [m[16] ||= c("div", null, [c("strong", null, "多人签署"), c("span", null, "允许多位签署人共同完成该节点")], -1), u(g(S), {
196
+ checked: d.node.multi,
194
197
  disabled: G.value,
195
198
  size: "small",
196
- "onUpdate:checked": xe
197
- }, null, 8, ["checked", "disabled"])]), l.node.multi ? (u(), r(p(g), {
199
+ "onUpdate:checked": je
200
+ }, null, 8, ["checked", "disabled"])]), d.node.multi ? (p(), a(g(y), {
198
201
  key: 0,
199
202
  label: "完成条件",
200
203
  class: "gd-contract-signing-flow__inline-form-item"
201
204
  }, {
202
- default: m(() => [c(p(v), {
203
- value: l.node.multiCompletedCondition?.type,
204
- options: ye,
205
+ default: _(() => [u(g(oe), {
206
+ value: d.node.multiCompletedCondition?.type,
207
+ options: ke,
205
208
  disabled: G.value,
206
- "onUpdate:value": Se
209
+ "onUpdate:value": Me
207
210
  }, null, 8, ["value", "disabled"])]),
208
211
  _: 1
209
- })) : i("", !0)])
212
+ })) : o("", !0)])
210
213
  ]),
211
- o("section", T, [
212
- o("div", E, [d[19] ||= o("h3", null, "签署规则", -1), c(p(b), { color: "blue" }, {
213
- default: m(() => [s(f(we()), 1)]),
214
- _: 1
215
- })]),
216
- o("div", D, [c(p(g), { label: "个人签名" }, {
217
- default: m(() => [c(p(v), {
214
+ c("section", M, [
215
+ c("div", N, [m[18] ||= c("h3", null, "签署规则", -1), c("span", P, h(Pe()), 1)]),
216
+ c("div", F, [u(g(y), { label: "个人签名" }, {
217
+ default: _(() => [c("div", I, [u(g(x), {
218
218
  value: Y("signature"),
219
219
  options: K,
220
+ "option-type": "button",
221
+ "button-style": "solid",
220
222
  disabled: G.value,
221
- "onUpdate:value": d[3] ||= (e) => X("signature", e)
222
- }, null, 8, ["value", "disabled"])]),
223
+ "onUpdate:value": m[3] ||= (e) => X("signature", e)
224
+ }, null, 8, ["value", "disabled"])])]),
223
225
  _: 1
224
- }), l.node.identity === "company" ? (u(), r(p(g), {
226
+ }), d.node.identity === "company" ? (p(), a(g(y), {
225
227
  key: 0,
226
228
  label: "企业印章"
227
229
  }, {
228
- default: m(() => [c(p(v), {
230
+ default: _(() => [c("div", L, [u(g(x), {
229
231
  value: Y("seal"),
230
232
  options: K,
233
+ "option-type": "button",
234
+ "button-style": "solid",
231
235
  disabled: G.value,
232
- "onUpdate:value": d[4] ||= (e) => X("seal", e)
233
- }, null, 8, ["value", "disabled"])]),
236
+ "onUpdate:value": m[4] ||= (e) => X("seal", e)
237
+ }, null, 8, ["value", "disabled"])])]),
234
238
  _: 1
235
- })) : i("", !0)]),
236
- l.node.identity === "company" && !J()?.cannotSeal ? (u(), a("div", O, [d[20] ||= o("span", { class: "gd-contract-signing-flow__field-label" }, "允许的印章类型", -1), o("div", k, [(u(!0), a(t, null, te(p(e), (e) => (u(), r(p(ae), {
239
+ })) : o("", !0)]),
240
+ d.node.identity === "company" && !J()?.cannotSeal ? (p(), s("div", R, [m[19] ||= c("span", { class: "gd-contract-signing-flow__field-label" }, "允许的印章类型", -1), c("div", z, [(p(!0), s(r, null, ee(g(n), (e) => (p(), a(g(ie), {
237
241
  key: e.value,
242
+ class: "gd-contract-signing-flow__seal-tile",
238
243
  checked: J()?.sealType.includes(e.value),
239
244
  disabled: G.value,
240
- "onUpdate:checked": (t) => Ce(e.value, t)
245
+ "onUpdate:checked": (t) => Ne(e.value, t)
241
246
  }, {
242
- default: m(() => [s(f(e.label), 1)]),
247
+ default: _(() => [l(h(e.label), 1)]),
243
248
  _: 2
244
249
  }, 1032, [
245
250
  "checked",
246
251
  "disabled",
247
252
  "onUpdate:checked"
248
- ]))), 128))])])) : i("", !0)
253
+ ]))), 128))])])) : o("", !0)
249
254
  ]),
250
- o("section", { class: ee(["gd-contract-signing-flow__form-section", { "is-collapsed": !U.value }]) }, [o("button", {
255
+ c("section", { class: f(["gd-contract-signing-flow__form-section", { "is-collapsed": !U.value }]) }, [c("button", {
251
256
  type: "button",
252
257
  class: "gd-contract-signing-flow__section-heading is-toggle",
253
- onClick: d[5] ||= (e) => U.value = !U.value
254
- }, [d[21] ||= o("h3", null, "验证与权限", -1), o("span", A, [U.value ? i("", !0) : (u(), r(p(b), { key: 0 }, {
255
- default: m(() => [s("已开启 " + f(Te.value) + " 项", 1)]),
258
+ onClick: m[5] ||= (e) => U.value = !U.value
259
+ }, [m[20] ||= c("h3", null, "验证与权限", -1), c("span", he, [U.value ? o("", !0) : (p(), a(g(se), { key: 0 }, {
260
+ default: _(() => [l("已开启 " + h(Fe.value) + " 项", 1)]),
256
261
  _: 1
257
- })), U.value ? (u(), r(p(x), { key: 2 })) : (u(), r(p(le), { key: 1 }))])]), re(o("div", j, [
258
- o("div", M, [d[22] ||= o("span", null, "短信验证", -1), c(p(y), {
262
+ })), U.value ? (p(), a(g(ce), { key: 2 })) : (p(), a(g(pe), { key: 1 }))])]), ne(c("div", ge, [
263
+ c("div", _e, [m[21] ||= c("span", null, "短信验证", -1), u(g(S), {
259
264
  checked: J()?.smsVerify,
260
265
  disabled: G.value,
261
266
  size: "small",
262
- "onUpdate:checked": d[6] ||= (e) => $("smsVerify", e)
267
+ "onUpdate:checked": m[6] ||= (e) => $("smsVerify", e)
263
268
  }, null, 8, ["checked", "disabled"])]),
264
- o("div", N, [d[23] ||= o("span", null, "人脸验证", -1), c(p(y), {
269
+ c("div", ve, [m[22] ||= c("span", null, "人脸验证", -1), u(g(S), {
265
270
  checked: J()?.faceVerify,
266
271
  disabled: G.value,
267
272
  size: "small",
268
- "onUpdate:checked": d[7] ||= (e) => $("faceVerify", e)
273
+ "onUpdate:checked": m[7] ||= (e) => $("faceVerify", e)
269
274
  }, null, 8, ["checked", "disabled"])]),
270
- o("div", P, [d[24] ||= o("span", null, "密码验证", -1), c(p(y), {
275
+ c("div", ye, [m[23] ||= c("span", null, "密码验证", -1), u(g(S), {
271
276
  checked: J()?.passwordVerify,
272
277
  disabled: G.value,
273
278
  size: "small",
274
- "onUpdate:checked": d[8] ||= (e) => $("passwordVerify", e)
279
+ "onUpdate:checked": m[8] ||= (e) => $("passwordVerify", e)
275
280
  }, null, 8, ["checked", "disabled"])]),
276
- o("div", F, [d[25] ||= o("span", null, "免验证", -1), c(p(y), {
281
+ c("div", be, [m[24] ||= c("span", null, "免验证", -1), u(g(S), {
277
282
  checked: J()?.noneVerify,
278
283
  disabled: G.value,
279
284
  size: "small",
280
- "onUpdate:checked": d[9] ||= (e) => $("noneVerify", e)
285
+ "onUpdate:checked": m[9] ||= (e) => $("noneVerify", e)
281
286
  }, null, 8, ["checked", "disabled"])]),
282
- o("div", I, [d[26] ||= o("span", null, "允许拒签", -1), c(p(y), {
287
+ c("div", B, [m[25] ||= c("span", null, "允许拒签", -1), u(g(S), {
283
288
  checked: J()?.refuseFunctionEnable,
284
289
  disabled: G.value,
285
290
  size: "small",
286
- "onUpdate:checked": d[10] ||= (e) => Q("refuseFunctionEnable", e)
291
+ "onUpdate:checked": m[10] ||= (e) => Q("refuseFunctionEnable", e)
287
292
  }, null, 8, ["checked", "disabled"])]),
288
- o("div", L, [d[27] ||= o("span", null, "批量签署", -1), c(p(y), {
293
+ c("div", xe, [m[26] ||= c("span", null, "批量签署", -1), u(g(S), {
289
294
  checked: J()?.batchFunctionEnable,
290
295
  disabled: G.value,
291
296
  size: "small",
292
- "onUpdate:checked": d[11] ||= (e) => Q("batchFunctionEnable", e)
297
+ "onUpdate:checked": m[11] ||= (e) => Q("batchFunctionEnable", e)
293
298
  }, null, 8, ["checked", "disabled"])]),
294
- o("div", R, [d[28] ||= o("span", null, "骑缝章", -1), c(p(y), {
299
+ c("div", Se, [m[27] ||= c("span", null, "骑缝章", -1), u(g(S), {
295
300
  checked: J()?.perforationSealEnable,
296
- disabled: G.value || l.node.identity !== "company",
301
+ disabled: G.value || d.node.identity !== "company",
297
302
  size: "small",
298
- "onUpdate:checked": d[12] ||= (e) => Q("perforationSealEnable", e)
303
+ "onUpdate:checked": m[12] ||= (e) => Q("perforationSealEnable", e)
299
304
  }, null, 8, ["checked", "disabled"])]),
300
- o("div", z, [d[29] ||= o("span", null, "禁止额外签署位置", -1), c(p(y), {
305
+ c("div", Ce, [m[28] ||= c("span", null, "禁止额外签署位置", -1), u(g(S), {
301
306
  checked: J()?.cannotExtraLocations,
302
307
  disabled: G.value,
303
308
  size: "small",
304
- "onUpdate:checked": d[13] ||= (e) => Q("cannotExtraLocations", e)
309
+ "onUpdate:checked": m[13] ||= (e) => Q("cannotExtraLocations", e)
305
310
  }, null, 8, ["checked", "disabled"])])
306
- ], 512), [[ne, U.value]])], 2),
307
- l.showPlacement === !1 ? i("", !0) : (u(), a("section", B, [o("div", me, [d[30] ||= o("div", null, [o("h3", null, "签署位置"), o("p", null, "由业务侧位置编辑器配置并回填")], -1), c(p(b), null, {
308
- default: m(() => [s(f(l.node.config.locationRules?.length || 0) + " 个", 1)]),
309
- _: 1
310
- })]), c(p(ie), {
311
- block: "",
312
- disabled: l.disabled,
313
- onClick: d[14] ||= (e) => W("placementRequest")
314
- }, {
315
- icon: m(() => [c(p(ce))]),
316
- default: m(() => [d[31] ||= s("设置签署位置", -1)]),
317
- _: 1
318
- }, 8, ["disabled"])]))
319
- ], 64)) : (u(), a("section", he, [
320
- o("div", ge, f(l.node.type === "start" ? "始" : l.node.type === "end" ? "终" : "!"), 1),
321
- o("h3", null, f(l.node.type === "start" ? "流程入口" : l.node.type === "end" ? "流程出口" : "异常节点"), 1),
322
- o("p", null, f(l.node.description || "该节点仅用于展示,不能编辑。"), 1),
323
- c(p(b), null, {
324
- default: m(() => [s(f(l.node.key), 1)]),
325
- _: 1
326
- })
327
- ]))])], 64)) : (u(), r(p(h), {
311
+ ], 512), [[te, U.value]])], 2),
312
+ d.showPlacement === !1 ? o("", !0) : (p(), s("section", we, [
313
+ m[31] ||= c("div", { class: "gd-contract-signing-flow__section-heading" }, [c("h3", null, "签署位置")], -1),
314
+ c("div", Te, [c("span", Ee, h(d.node.config.locationRules?.length || 0), 1), m[29] ||= c("div", null, [c("strong", null, "已设置位置"), c("p", null, "由业务侧位置编辑器配置并回填")], -1)]),
315
+ u(g(re), {
316
+ block: "",
317
+ disabled: d.disabled,
318
+ onClick: m[14] ||= (e) => W("placementRequest")
319
+ }, {
320
+ icon: _(() => [u(g(le))]),
321
+ default: _(() => [m[30] ||= l("设置签署位置", -1)]),
322
+ _: 1
323
+ }, 8, ["disabled"])
324
+ ]))
325
+ ], 64)) : (p(), s("section", {
326
+ key: 1,
327
+ class: f(["gd-contract-signing-flow__node-overview", `is-${d.node.type}`])
328
+ }, [
329
+ c("div", De, [d.node.type === "start" ? (p(), a(g(fe), { key: 0 })) : d.node.type === "end" ? (p(), a(g(de), { key: 1 })) : (p(), a(g(ue), { key: 2 }))]),
330
+ c("h3", null, h(d.node.type === "start" ? "流程入口" : d.node.type === "end" ? "流程出口" : "异常节点"), 1),
331
+ c("p", null, h(d.node.description || "该节点仅用于展示,不能编辑。"), 1),
332
+ m[32] ||= c("span", { class: "gd-contract-signing-flow__node-overview-hint" }, "系统节点无需配置", -1)
333
+ ], 2))])], 64)) : (p(), a(g(v), {
328
334
  key: 1,
329
335
  class: "gd-contract-signing-flow__empty-inspector",
330
- image: p(h).PRESENTED_IMAGE_SIMPLE,
336
+ image: g(v).PRESENTED_IMAGE_SIMPLE,
331
337
  description: "请选择一个节点"
332
338
  }, null, 8, ["image"]))]));
333
339
  }
@@ -1,18 +1,21 @@
1
- import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, toDisplayString as u, unref as d, withCtx as f, withKeys as p, withModifiers as m } from "vue";
2
- import { Button as h, Tag as g, Tooltip as _ } from "ant-design-vue";
3
- import { ApartmentOutlined as v, ArrowDownOutlined as y, ArrowUpOutlined as b, DeleteOutlined as x, FileDoneOutlined as S, PlayCircleOutlined as C, SafetyCertificateOutlined as w, UserOutlined as T } from "@ant-design/icons-vue";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderList as u, toDisplayString as d, unref as f, withCtx as p, withKeys as m, withModifiers as h } from "vue";
2
+ import { Button as g, Tooltip as _ } from "ant-design-vue";
3
+ import { ArrowDownOutlined as v, ArrowUpOutlined as y, DeleteOutlined as b, FileDoneOutlined as x, PlayCircleOutlined as S, SafetyCertificateOutlined as C, UserOutlined as w } from "@ant-design/icons-vue";
4
4
  //#region src/components/pro-contract-signing-flow/src/ContractSigningFlowNodeCard.vue?vue&type=script&setup=true&lang.ts
5
- var E = [
5
+ var T = [
6
6
  "tabindex",
7
7
  "aria-disabled",
8
8
  "aria-current"
9
- ], D = { class: "gd-contract-signing-flow__node-body" }, O = { class: "gd-contract-signing-flow__node-title-row" }, k = { class: "gd-contract-signing-flow__node-name" }, A = {
9
+ ], E = {
10
10
  key: 0,
11
- class: "gd-contract-signing-flow__node-meta"
12
- }, j = {
11
+ class: "gd-contract-signing-flow__node-caption"
12
+ }, D = {
13
13
  key: 1,
14
- class: "gd-contract-signing-flow__node-description"
15
- }, M = /* @__PURE__ */ s({
14
+ class: "gd-contract-signing-flow__node-body"
15
+ }, O = { class: "gd-contract-signing-flow__node-title-row" }, k = { class: "gd-contract-signing-flow__node-name" }, A = { class: "gd-contract-signing-flow__node-description" }, j = {
16
+ key: 2,
17
+ class: "gd-contract-signing-flow__node-body"
18
+ }, M = { class: "gd-contract-signing-flow__node-title-row" }, N = { class: "gd-contract-signing-flow__node-name" }, P = { class: "gd-contract-signing-flow__node-chips" }, F = /* @__PURE__ */ s({
16
19
  __name: "ContractSigningFlowNodeCard",
17
20
  props: {
18
21
  node: {},
@@ -27,82 +30,105 @@ var E = [
27
30
  "remove",
28
31
  "move"
29
32
  ],
30
- setup(s, { emit: M }) {
31
- let N = s, P = M, F = e(() => N.node.type === "sign" && N.node.config.locationRules?.length || 0), I = e(() => N.node.type === "start" ? "开始" : N.node.type === "end" ? "结束" : N.node.type === "sign" ? "签署" : "异常"), L = e(() => {
32
- let e = N.node.config.signRule;
33
+ setup(s, { emit: F }) {
34
+ let I = s, L = F, R = t(() => I.node.type === "start" || I.node.type === "end"), z = t(() => I.node.type === "sign"), B = t(() => !R.value && !z.value), V = t(() => z.value && I.node.config.locationRules?.length || 0), H = t(() => I.node.type === "start" ? "开始" : I.node.type === "end" ? "结束" : I.node.type === "sign" ? "签署" : "异常"), U = t(() => {
35
+ let e = I.node.config.signRule;
33
36
  return e ? e.mustSeal ? "必须盖章" : e.cannotSignature ? "仅盖章" : e.cannotSeal ? "仅签名" : "签名可选" : "未配置规则";
34
- });
35
- return (e, M) => (l(), r("article", {
36
- class: c(["gd-contract-signing-flow__node", {
37
- "is-selected": s.selected,
38
- "is-disabled": s.disabled,
39
- "is-unknown": s.node.type !== "start" && s.node.type !== "sign" && s.node.type !== "end"
40
- }]),
37
+ }), W = t(() => {
38
+ if (!z.value) return [];
39
+ let e = [
40
+ {
41
+ key: "identity",
42
+ label: I.node.identity === "company" ? "企业" : "个人"
43
+ },
44
+ {
45
+ key: "multi",
46
+ label: I.node.multi ? I.node.multiCompletedCondition?.type === "ALL_PASS" ? "多人全部通过" : "多人任一通过" : "单人签署"
47
+ },
48
+ {
49
+ key: "rule",
50
+ label: U.value
51
+ },
52
+ {
53
+ key: "location",
54
+ label: `${V.value} 个位置`
55
+ }
56
+ ];
57
+ return I.node.config.signRule?.smsVerify && e.push({
58
+ key: "sms",
59
+ label: "短信"
60
+ }), e;
61
+ }), G = t(() => ({
62
+ "is-selected": I.selected,
63
+ "is-disabled": I.disabled,
64
+ "is-terminal": R.value,
65
+ "is-sign": z.value,
66
+ "is-unknown": B.value,
67
+ "is-person": z.value && I.node.identity !== "company",
68
+ "is-company": z.value && I.node.identity === "company"
69
+ })), K = t(() => z.value && I.selected && !I.readonly);
70
+ return (t, F) => (l(), i("article", {
71
+ class: c(["gd-contract-signing-flow__node", G.value]),
41
72
  role: "group",
42
73
  tabindex: s.disabled ? -1 : 0,
43
74
  "aria-disabled": s.disabled,
44
75
  "aria-current": s.selected ? "step" : void 0,
45
- onClick: M[4] ||= (e) => P("select"),
46
- onKeydown: [M[5] ||= p(m((e) => P("select"), ["prevent"]), ["enter"]), M[6] ||= p(m((e) => P("select"), ["prevent"]), ["space"])]
47
- }, [
48
- i("div", { class: c(["gd-contract-signing-flow__node-icon", `is-${s.node.type}`]) }, [s.node.type === "start" ? (l(), t(d(C), { key: 0 })) : s.node.type === "end" ? (l(), t(d(S), { key: 1 })) : s.node.identity === "company" ? (l(), t(d(w), { key: 2 })) : (l(), t(d(T), { key: 3 }))], 2),
49
- i("div", D, [i("div", O, [i("strong", k, u(s.node.name || "未命名节点"), 1), o(d(g), { color: s.node.type === "sign" ? "blue" : void 0 }, {
50
- default: f(() => [a(u(I.value), 1)]),
51
- _: 1
52
- }, 8, ["color"])]), s.node.type === "sign" ? (l(), r("div", A, [
53
- i("span", null, [s.node.identity === "company" ? (l(), t(d(v), { key: 0 })) : (l(), t(d(T), { key: 1 })), a(u(s.node.identity === "company" ? "企业" : "个人"), 1)]),
54
- i("span", null, u(s.node.multi ? s.node.multiCompletedCondition?.type === "ALL_PASS" ? "多人全部通过" : "多人任一通过" : "单人签署"), 1),
55
- i("span", null, u(L.value), 1),
56
- i("span", null, u(F.value) + " 个位置", 1)
57
- ])) : (l(), r("p", j, u(s.node.description || "流程节点"), 1))]),
58
- s.node.type === "sign" && !s.readonly ? (l(), r("div", {
76
+ onClick: F[4] ||= (e) => L("select"),
77
+ onKeydown: [F[5] ||= m(h((e) => L("select"), ["prevent"]), ["enter"]), F[6] ||= m(h((e) => L("select"), ["prevent"]), ["space"])]
78
+ }, [a("div", { class: c(["gd-contract-signing-flow__node-icon", `is-${s.node.type}`]) }, [s.node.type === "start" ? (l(), n(f(S), { key: 0 })) : s.node.type === "end" ? (l(), n(f(x), { key: 1 })) : s.node.identity === "company" ? (l(), n(f(C), { key: 2 })) : (l(), n(f(w), { key: 3 }))], 2), R.value ? (l(), i("span", E, d(H.value), 1)) : B.value ? (l(), i("div", D, [a("div", O, [a("strong", k, d(s.node.name || "未命名节点"), 1)]), a("p", A, d(s.node.description || H.value) + " · " + d(s.node.type), 1)])) : (l(), i("div", j, [
79
+ a("div", M, [a("strong", N, d(s.node.name || "未命名节点"), 1)]),
80
+ a("div", P, [(l(!0), i(e, null, u(W.value, (e) => (l(), i("span", {
81
+ key: e.key,
82
+ class: "gd-contract-signing-flow__node-chip"
83
+ }, d(e.label), 1))), 128))]),
84
+ K.value ? (l(), i("div", {
59
85
  key: 0,
60
86
  class: "gd-contract-signing-flow__node-actions",
61
- onClick: M[3] ||= m(() => {}, ["stop"])
87
+ onClick: F[3] ||= h(() => {}, ["stop"])
62
88
  }, [
63
- o(d(_), { title: "上移节点" }, {
64
- default: f(() => [o(d(h), {
89
+ o(f(_), { title: "上移节点" }, {
90
+ default: p(() => [o(f(g), {
65
91
  type: "text",
66
92
  size: "small",
67
93
  disabled: s.disabled || !s.canMoveUp,
68
94
  "aria-label": "上移节点",
69
- onClick: M[0] ||= (e) => P("move", -1)
95
+ onClick: F[0] ||= (e) => L("move", -1)
70
96
  }, {
71
- default: f(() => [o(d(b))]),
97
+ default: p(() => [o(f(y))]),
72
98
  _: 1
73
99
  }, 8, ["disabled"])]),
74
100
  _: 1
75
101
  }),
76
- o(d(_), { title: "下移节点" }, {
77
- default: f(() => [o(d(h), {
102
+ o(f(_), { title: "下移节点" }, {
103
+ default: p(() => [o(f(g), {
78
104
  type: "text",
79
105
  size: "small",
80
106
  disabled: s.disabled || !s.canMoveDown,
81
107
  "aria-label": "下移节点",
82
- onClick: M[1] ||= (e) => P("move", 1)
108
+ onClick: F[1] ||= (e) => L("move", 1)
83
109
  }, {
84
- default: f(() => [o(d(y))]),
110
+ default: p(() => [o(f(v))]),
85
111
  _: 1
86
112
  }, 8, ["disabled"])]),
87
113
  _: 1
88
114
  }),
89
- o(d(_), { title: "删除节点" }, {
90
- default: f(() => [o(d(h), {
115
+ o(f(_), { title: "删除节点" }, {
116
+ default: p(() => [o(f(g), {
91
117
  type: "text",
92
118
  danger: "",
93
119
  size: "small",
94
120
  disabled: s.disabled,
95
121
  "aria-label": "删除节点",
96
- onClick: M[2] ||= (e) => P("remove")
122
+ onClick: F[2] ||= (e) => L("remove")
97
123
  }, {
98
- default: f(() => [o(d(x))]),
124
+ default: p(() => [o(f(b))]),
99
125
  _: 1
100
126
  }, 8, ["disabled"])]),
101
127
  _: 1
102
128
  })
103
- ])) : n("", !0)
104
- ], 42, E));
129
+ ])) : r("", !0)
130
+ ]))], 42, T));
105
131
  }
106
132
  });
107
133
  //#endregion
108
- export { M as default };
134
+ export { F as default };