@guodun/antdv 1.5.2 → 1.5.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 (28) hide show
  1. package/dist/es/components/contract-signing-location/style/index.css +1 -1
  2. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.mjs +190 -169
  3. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.vue.mjs +43 -43
  4. package/dist/es/components/pro-contract-template-designer/src/DesignerPage.vue.mjs +114 -98
  5. package/dist/es/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.mjs +29 -18
  6. package/dist/es/components/pro-contract-template-designer/src/extensions/editor-extensions.mjs +4 -1
  7. package/dist/es/components/pro-contract-template-designer/src/extensions/word-paste.mjs +62 -34
  8. package/dist/es/components/pro-contract-template-designer/src/utils/clipboard.mjs +24 -0
  9. package/dist/es/components/pro-contract-template-designer/src/utils/toolbar-overflow.mjs +4 -1
  10. package/dist/lib/components/contract-signing-location/style/index.css +1 -1
  11. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.cjs +1 -1
  12. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.vue.cjs +1 -1
  13. package/dist/lib/components/pro-contract-template-designer/src/DesignerPage.vue.cjs +2 -2
  14. package/dist/lib/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.cjs +1 -1
  15. package/dist/lib/components/pro-contract-template-designer/src/extensions/editor-extensions.cjs +1 -1
  16. package/dist/lib/components/pro-contract-template-designer/src/extensions/word-paste.cjs +1 -1
  17. package/dist/lib/components/pro-contract-template-designer/src/utils/clipboard.cjs +1 -0
  18. package/dist/lib/components/pro-contract-template-designer/src/utils/toolbar-overflow.cjs +1 -1
  19. package/dist/theme/contract-signing-location.css +1 -1
  20. package/dist/theme/icon.css +1 -1
  21. package/dist/theme/index.css +1 -1
  22. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.d.ts +2 -1
  23. package/dist/types/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.d.ts +1 -1
  24. package/dist/types/components/pro-contract-template-designer/src/extensions/editor-extensions.d.ts +2 -0
  25. package/dist/types/components/pro-contract-template-designer/src/extensions/word-paste.d.ts +2 -0
  26. package/dist/types/components/pro-contract-template-designer/src/utils/clipboard.d.ts +7 -0
  27. package/dist/types/components/pro-contract-template-designer/src/utils/toolbar-overflow.d.ts +2 -2
  28. package/package.json +3 -3
@@ -4,29 +4,38 @@ import { useToolbarOverflow as ee } from "./composables/use-toolbar-overflow.mjs
4
4
  import { Fragment as te, Teleport as n, createBlock as r, createCommentVNode as ne, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeModels as l, normalizeClass as u, onBeforeUnmount as re, openBlock as d, ref as f, renderList as ie, resolveDynamicComponent as ae, toDisplayString as p, unref as m, useModel as h, vShow as g, withCtx as _, withDirectives as v, withModifiers as oe } from "vue";
5
5
  import { Alert as se, Button as y, Input as ce, InputNumber as b, Popover as x, Select as S, Switch as le, Tooltip as C } from "ant-design-vue";
6
6
  import { useElementSize as ue } from "@vueuse/core";
7
- import { AlignCenterOutlined as w, AlignLeftOutlined as de, AlignRightOutlined as fe, BoldOutlined as pe, ClearOutlined as me, EllipsisOutlined as he, FileAddOutlined as ge, FormatPainterOutlined as _e, ItalicOutlined as ve, MinusOutlined as ye, OrderedListOutlined as be, PictureOutlined as T, PlusOutlined as E, RedoOutlined as D, TableOutlined as O, UnderlineOutlined as k, UndoOutlined as A, UnorderedListOutlined as j } from "@ant-design/icons-vue";
7
+ import { AlignCenterOutlined as de, AlignLeftOutlined as w, AlignRightOutlined as fe, BoldOutlined as pe, ClearOutlined as me, EllipsisOutlined as he, FileAddOutlined as ge, FormatPainterOutlined as _e, ItalicOutlined as ve, MinusOutlined as ye, OrderedListOutlined as be, PictureOutlined as T, PlusOutlined as xe, RedoOutlined as E, TableOutlined as D, UnderlineOutlined as O, UndoOutlined as k, UnorderedListOutlined as A } from "@ant-design/icons-vue";
8
8
  //#region src/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue?vue&type=script&setup=true&lang.ts
9
- var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-contract-template-designer__toolbar-group" }, xe = { class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--style" }, Se = { class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--format" }, Ce = {
9
+ var j = { class: "gd-contract-template-designer__toolbar" }, M = { class: "gd-contract-template-designer__toolbar-group" }, Se = { class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--style" }, Ce = { class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--format" }, we = {
10
10
  class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--insert",
11
11
  "data-toolbar-overflow-key": "insert"
12
- }, we = { class: "gd-contract-template-designer__popover gd-contract-template-designer__control-insert-popover" }, Te = { class: "gd-contract-template-designer__text-menu-control-options" }, Ee = ["aria-label", "onClick"], De = { class: "gd-contract-template-designer__popover gd-contract-template-designer__image-insert-popover" }, Oe = {
12
+ }, Te = { class: "gd-contract-template-designer__popover gd-contract-template-designer__control-insert-popover" }, Ee = { class: "gd-contract-template-designer__text-menu-control-options" }, De = ["aria-label", "onClick"], Oe = { class: "gd-contract-template-designer__popover gd-contract-template-designer__image-insert-popover" }, ke = {
13
13
  class: "gd-contract-template-designer__image-size-fields",
14
14
  role: "group",
15
15
  "aria-label": "图片尺寸"
16
- }, ke = {
17
- class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--typography",
18
- "data-toolbar-overflow-key": "typography"
19
- }, Ae = ["value", "disabled"], je = {
16
+ }, Ae = {
17
+ class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--font-family",
18
+ "data-toolbar-overflow-key": "font-family"
19
+ }, je = {
20
+ class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--font-appearance",
21
+ "data-toolbar-overflow-key": "font-appearance"
22
+ }, Me = ["value", "disabled"], Ne = {
23
+ class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--list",
24
+ "data-toolbar-overflow-key": "list"
25
+ }, Pe = {
26
+ class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--alignment",
27
+ "data-toolbar-overflow-key": "alignment"
28
+ }, Fe = {
20
29
  class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--cleanup",
21
30
  "data-toolbar-overflow-key": "cleanup"
22
- }, Me = {
31
+ }, N = {
23
32
  class: "gd-contract-template-designer__toolbar-group gd-contract-template-designer__toolbar-group--table",
24
33
  "data-toolbar-overflow-key": "table"
25
- }, Ne = { class: "gd-contract-template-designer__popover" }, P = { class: "gd-contract-template-designer__switch-row" }, Pe = { class: "gd-contract-template-designer__popover" }, Fe = { class: "gd-contract-template-designer__table-actions" }, Ie = {
34
+ }, Ie = { class: "gd-contract-template-designer__popover" }, Le = { class: "gd-contract-template-designer__switch-row" }, Re = { class: "gd-contract-template-designer__popover" }, ze = { class: "gd-contract-template-designer__table-actions" }, Be = {
26
35
  class: "gd-contract-template-designer__toolbar-more-panel",
27
36
  role: "menu",
28
37
  "aria-label": "更多编辑工具"
29
- }, Le = { class: "gd-contract-template-designer__toolbar-more-section" }, Re = { class: "gd-contract-template-designer__toolbar-more-section" }, ze = { class: "gd-contract-template-designer__toolbar-more-section" }, Be = { class: "gd-contract-template-designer__toolbar-more-section" }, F = /* @__PURE__ */ c({
38
+ }, Ve = { class: "gd-contract-template-designer__toolbar-more-section" }, He = { class: "gd-contract-template-designer__toolbar-more-section" }, Ue = { class: "gd-contract-template-designer__toolbar-more-section" }, We = { class: "gd-contract-template-designer__toolbar-more-section" }, Ge = { class: "gd-contract-template-designer__toolbar-more-section" }, P = /* @__PURE__ */ c({
30
39
  name: "ContractTemplateDesignerToolbar",
31
40
  __name: "ContractTemplateDesignerToolbar",
32
41
  props: /* @__PURE__ */ l({
@@ -109,37 +118,37 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
109
118
  "update:toolbarMoreOpen"
110
119
  ]),
111
120
  setup(c, { emit: l }) {
112
- let F = c, I = h(c, "variableInsertPopoverOpen"), L = h(c, "imageInsertPopoverOpen"), R = h(c, "imageInsertUrl"), z = h(c, "imageInsertWidth"), B = h(c, "imageInsertHeight"), V = h(c, "tableInsertPopoverOpen"), H = h(c, "tableActionsPopoverOpen"), U = h(c, "tableInsertDraft"), W = h(c, "toolbarMoreOpen"), G = l, K = f(), q = f(), J = f(), Y = f(), X = f(), Z = f(), Q = !1;
121
+ let P = c, F = h(c, "variableInsertPopoverOpen"), I = h(c, "imageInsertPopoverOpen"), L = h(c, "imageInsertUrl"), R = h(c, "imageInsertWidth"), z = h(c, "imageInsertHeight"), B = h(c, "tableInsertPopoverOpen"), V = h(c, "tableActionsPopoverOpen"), H = h(c, "tableInsertDraft"), U = h(c, "toolbarMoreOpen"), W = l, G = f(), K = f(), q = f(), J = f(), Y = f(), X = f(), Z = f(), Q = !1;
113
122
  re(() => {
114
123
  Q = !0;
115
124
  });
116
- let { width: Ve } = ue(K), { isToolbarGroupOverflowed: $, toolbarHasOverflow: He } = ee({
117
- toolbarMainElement: K,
118
- toolbarMoreElement: q,
119
- toolbarMoreOpen: W,
125
+ let { width: Ke } = ue(G), { isToolbarGroupOverflowed: $, toolbarHasOverflow: qe } = ee({
126
+ toolbarMainElement: G,
127
+ toolbarMoreElement: K,
128
+ toolbarMoreOpen: U,
120
129
  measureDependencies: () => [
121
- Ve.value,
122
- F.currentBlockFormat,
123
- F.currentEditorFontFamily,
124
- F.currentEditorFontSize,
125
- F.readonly
130
+ Ke.value,
131
+ P.currentBlockFormat,
132
+ P.currentEditorFontFamily,
133
+ P.currentEditorFontSize,
134
+ P.readonly
126
135
  ],
127
136
  isDisposed: () => Q
128
137
  });
129
- return (ee, l) => (d(), i("header", M, [a("div", {
138
+ return (ee, l) => (d(), i("header", j, [a("div", {
130
139
  ref_key: "toolbarMainElement",
131
- ref: K,
140
+ ref: G,
132
141
  class: "gd-contract-template-designer__toolbar-section gd-contract-template-designer__toolbar-section--main"
133
142
  }, [
134
- a("div", N, [s(m(C), { title: "撤销" }, {
143
+ a("div", M, [s(m(C), { title: "撤销" }, {
135
144
  default: _(() => [s(m(y), {
136
145
  size: "small",
137
146
  class: "gd-contract-template-designer__icon-button",
138
147
  disabled: c.readonly || !c.editorState.canUndo,
139
148
  "aria-label": "撤销",
140
- onClick: l[0] ||= (e) => G("command", { type: "undo" })
149
+ onClick: l[0] ||= (e) => W("command", { type: "undo" })
141
150
  }, {
142
- default: _(() => [s(m(A), { "aria-hidden": "true" })]),
151
+ default: _(() => [s(m(k), { "aria-hidden": "true" })]),
143
152
  _: 1
144
153
  }, 8, ["disabled"])]),
145
154
  _: 1
@@ -149,21 +158,21 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
149
158
  class: "gd-contract-template-designer__icon-button",
150
159
  disabled: c.readonly || !c.editorState.canRedo,
151
160
  "aria-label": "重做",
152
- onClick: l[1] ||= (e) => G("command", { type: "redo" })
161
+ onClick: l[1] ||= (e) => W("command", { type: "redo" })
153
162
  }, {
154
- default: _(() => [s(m(D), { "aria-hidden": "true" })]),
163
+ default: _(() => [s(m(E), { "aria-hidden": "true" })]),
155
164
  _: 1
156
165
  }, 8, ["disabled"])]),
157
166
  _: 1
158
167
  })]),
159
- a("div", xe, [s(m(S), {
168
+ a("div", Se, [s(m(S), {
160
169
  class: "gd-contract-template-designer__toolbar-select",
161
170
  value: c.currentBlockFormat,
162
171
  options: c.blockFormatOptions,
163
172
  disabled: c.readonly,
164
173
  placeholder: "多种样式",
165
174
  "aria-label": "段落样式",
166
- onChange: l[2] ||= (e) => G("patch-block-format", e)
175
+ onChange: l[2] ||= (e) => W("patch-block-format", e)
167
176
  }, {
168
177
  option: _(({ label: e, value: t }) => [a("span", { class: u(["gd-contract-template-designer__block-format-option", `is-level-${String(t)}`]) }, p(e), 3)]),
169
178
  _: 1
@@ -172,7 +181,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
172
181
  "options",
173
182
  "disabled"
174
183
  ])]),
175
- a("div", Se, [
184
+ a("div", Ce, [
176
185
  s(m(C), { title: "加粗" }, {
177
186
  default: _(() => [s(m(y), {
178
187
  size: "small",
@@ -180,7 +189,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
180
189
  type: c.editorState.isBold ? "primary" : "default",
181
190
  disabled: c.readonly,
182
191
  "aria-label": "加粗",
183
- onClick: l[3] ||= (e) => G("command", { type: "toggle-bold" })
192
+ onClick: l[3] ||= (e) => W("command", { type: "toggle-bold" })
184
193
  }, {
185
194
  default: _(() => [s(m(pe), { "aria-hidden": "true" })]),
186
195
  _: 1
@@ -194,7 +203,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
194
203
  type: c.editorState.isItalic ? "primary" : "default",
195
204
  disabled: c.readonly,
196
205
  "aria-label": "斜体",
197
- onClick: l[4] ||= (e) => G("command", { type: "toggle-italic" })
206
+ onClick: l[4] ||= (e) => W("command", { type: "toggle-italic" })
198
207
  }, {
199
208
  default: _(() => [s(m(ve), { "aria-hidden": "true" })]),
200
209
  _: 1
@@ -208,53 +217,25 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
208
217
  type: c.editorState.isUnderline ? "primary" : "default",
209
218
  disabled: c.readonly,
210
219
  "aria-label": "下划线",
211
- onClick: l[5] ||= (e) => G("command", { type: "toggle-underline" })
212
- }, {
213
- default: _(() => [s(m(k), { "aria-hidden": "true" })]),
214
- _: 1
215
- }, 8, ["type", "disabled"])]),
216
- _: 1
217
- }),
218
- s(m(C), { title: "编号列表" }, {
219
- default: _(() => [s(m(y), {
220
- size: "small",
221
- class: "gd-contract-template-designer__icon-button",
222
- type: c.editorState.isOrderedList ? "primary" : "default",
223
- disabled: c.readonly,
224
- "aria-label": "编号列表",
225
- onClick: l[6] ||= (e) => G("command", { type: "toggle-ordered-list" })
226
- }, {
227
- default: _(() => [s(m(be), { "aria-hidden": "true" })]),
228
- _: 1
229
- }, 8, ["type", "disabled"])]),
230
- _: 1
231
- }),
232
- s(m(C), { title: "项目列表" }, {
233
- default: _(() => [s(m(y), {
234
- size: "small",
235
- class: "gd-contract-template-designer__icon-button",
236
- type: c.editorState.isBulletList ? "primary" : "default",
237
- disabled: c.readonly,
238
- "aria-label": "项目列表",
239
- onClick: l[7] ||= (e) => G("command", { type: "toggle-bullet-list" })
220
+ onClick: l[5] ||= (e) => W("command", { type: "toggle-underline" })
240
221
  }, {
241
- default: _(() => [s(m(j), { "aria-hidden": "true" })]),
222
+ default: _(() => [s(m(O), { "aria-hidden": "true" })]),
242
223
  _: 1
243
224
  }, 8, ["type", "disabled"])]),
244
225
  _: 1
245
226
  })
246
227
  ]),
247
228
  (d(), r(n, {
248
- disabled: !m($)("insert") || !J.value,
249
- to: J.value || "body"
250
- }, [a("div", Ce, [
229
+ disabled: !m($)("insert") || !q.value,
230
+ to: q.value || "body"
231
+ }, [a("div", we, [
251
232
  s(m(x), {
252
- open: I.value,
253
- "onUpdate:open": l[8] ||= (e) => I.value = e,
233
+ open: F.value,
234
+ "onUpdate:open": l[6] ||= (e) => F.value = e,
254
235
  trigger: "click",
255
236
  placement: "bottom"
256
237
  }, {
257
- content: _(() => [a("div", we, [l[45] ||= a("strong", null, "插入正文控件", -1), a("div", Te, [(d(!0), i(te, null, ie(c.bodyControlToolItems, (e) => (d(), r(m(C), {
238
+ content: _(() => [a("div", Te, [l[45] ||= a("strong", null, "插入正文控件", -1), a("div", Ee, [(d(!0), i(te, null, ie(c.bodyControlToolItems, (e) => (d(), r(m(C), {
258
239
  key: e.type,
259
240
  title: `插入${e.label}控件`
260
241
  }, {
@@ -262,8 +243,8 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
262
243
  type: "button",
263
244
  class: "gd-contract-template-designer__text-menu-control-option",
264
245
  "aria-label": `插入${e.label}控件`,
265
- onClick: (t) => G("insert-variable", e.type)
266
- }, [(d(), r(ae(e.icon), { "aria-hidden": "true" })), a("span", null, p(e.label), 1)], 8, Ee)]),
246
+ onClick: (t) => W("insert-variable", e.type)
247
+ }, [(d(), r(ae(e.icon), { "aria-hidden": "true" })), a("span", null, p(e.label), 1)], 8, De)]),
267
248
  _: 2
268
249
  }, 1032, ["title"]))), 128))])])]),
269
250
  default: _(() => [s(m(C), { title: "插入正文控件" }, {
@@ -273,7 +254,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
273
254
  disabled: c.readonly,
274
255
  "aria-label": "插入正文控件"
275
256
  }, {
276
- default: _(() => [s(m(E), { "aria-hidden": "true" })]),
257
+ default: _(() => [s(m(xe), { "aria-hidden": "true" })]),
277
258
  _: 1
278
259
  }, 8, ["disabled"])]),
279
260
  _: 1
@@ -281,34 +262,34 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
281
262
  _: 1
282
263
  }, 8, ["open"]),
283
264
  s(m(x), {
284
- open: L.value,
285
- "onUpdate:open": l[15] ||= (e) => L.value = e,
265
+ open: I.value,
266
+ "onUpdate:open": l[13] ||= (e) => I.value = e,
286
267
  trigger: "click",
287
268
  placement: "bottom"
288
269
  }, {
289
- content: _(() => [a("div", De, [
270
+ content: _(() => [a("div", Oe, [
290
271
  l[50] ||= a("strong", null, "插入正文图片", -1),
291
272
  s(m(y), {
292
273
  block: "",
293
274
  loading: c.imageProcessing,
294
275
  disabled: c.readonly,
295
- onClick: l[9] ||= (e) => G("open-image-file")
276
+ onClick: l[7] ||= (e) => W("open-image-file")
296
277
  }, {
297
278
  default: _(() => [s(m(T), { "aria-hidden": "true" }), l[46] ||= o(" 本地图片 ", -1)]),
298
279
  _: 1
299
280
  }, 8, ["loading", "disabled"]),
300
281
  s(m(ce), {
301
- value: R.value,
302
- "onUpdate:value": l[10] ||= (e) => R.value = e,
282
+ value: L.value,
283
+ "onUpdate:value": l[8] ||= (e) => L.value = e,
303
284
  "allow-clear": "",
304
285
  disabled: c.readonly || c.imageProcessing,
305
286
  placeholder: "https:// 或 data:image/...",
306
287
  "aria-label": "图片 URL",
307
- onPressEnter: l[11] ||= (e) => G("insert-image-url")
288
+ onPressEnter: l[9] ||= (e) => W("insert-image-url")
308
289
  }, null, 8, ["value", "disabled"]),
309
- a("div", Oe, [a("label", null, [l[47] ||= a("span", null, "宽度", -1), s(m(b), {
310
- value: z.value,
311
- "onUpdate:value": l[12] ||= (e) => z.value = e,
290
+ a("div", ke, [a("label", null, [l[47] ||= a("span", null, "宽度", -1), s(m(b), {
291
+ value: R.value,
292
+ "onUpdate:value": l[10] ||= (e) => R.value = e,
312
293
  min: m(16),
313
294
  max: m(e),
314
295
  disabled: c.readonly || c.imageProcessing,
@@ -320,8 +301,8 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
320
301
  "max",
321
302
  "disabled"
322
303
  ])]), a("label", null, [l[48] ||= a("span", null, "高度", -1), s(m(b), {
323
- value: B.value,
324
- "onUpdate:value": l[13] ||= (e) => B.value = e,
304
+ value: z.value,
305
+ "onUpdate:value": l[11] ||= (e) => z.value = e,
325
306
  min: m(16),
326
307
  max: m(e),
327
308
  disabled: c.readonly || c.imageProcessing,
@@ -336,8 +317,8 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
336
317
  s(m(y), {
337
318
  type: "primary",
338
319
  block: "",
339
- disabled: c.readonly || c.imageProcessing || !R.value.trim(),
340
- onClick: l[14] ||= (e) => G("insert-image-url")
320
+ disabled: c.readonly || c.imageProcessing || !L.value.trim(),
321
+ onClick: l[12] ||= (e) => W("insert-image-url")
341
322
  }, {
342
323
  default: _(() => [...l[49] ||= [o(" 插入 URL ", -1)]]),
343
324
  _: 1
@@ -369,7 +350,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
369
350
  class: "gd-contract-template-designer__icon-button",
370
351
  disabled: c.readonly,
371
352
  "aria-label": "插入分隔线",
372
- onClick: l[16] ||= (e) => G("command", { type: "insert-horizontal-rule" })
353
+ onClick: l[14] ||= (e) => W("command", { type: "insert-horizontal-rule" })
373
354
  }, {
374
355
  default: _(() => [s(m(ye), { "aria-hidden": "true" })]),
375
356
  _: 1
@@ -382,7 +363,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
382
363
  class: "gd-contract-template-designer__icon-button",
383
364
  disabled: c.readonly || c.pageLimitReached,
384
365
  "aria-label": "新增页面",
385
- onClick: l[17] ||= (e) => G("add-page")
366
+ onClick: l[15] ||= (e) => W("add-page")
386
367
  }, {
387
368
  default: _(() => [s(m(ge), { "aria-hidden": "true" })]),
388
369
  _: 1
@@ -391,46 +372,81 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
391
372
  }, 8, ["title"])
392
373
  ])], 8, ["disabled", "to"])),
393
374
  (d(), r(n, {
394
- disabled: !m($)("typography") || !Y.value,
375
+ disabled: !m($)("font-family") || !J.value,
376
+ to: J.value || "body"
377
+ }, [a("div", Ae, [s(m(S), {
378
+ class: "gd-contract-template-designer__toolbar-select is-wide",
379
+ value: c.currentEditorFontFamily,
380
+ options: c.fontFamilySelectOptions,
381
+ disabled: c.readonly,
382
+ onChange: l[16] ||= (e) => W("patch-font-family", e)
383
+ }, null, 8, [
384
+ "value",
385
+ "options",
386
+ "disabled"
387
+ ])])], 8, ["disabled", "to"])),
388
+ (d(), r(n, {
389
+ disabled: !m($)("font-appearance") || !J.value,
390
+ to: J.value || "body"
391
+ }, [a("div", je, [s(m(S), {
392
+ class: "gd-contract-template-designer__toolbar-select",
393
+ value: c.currentEditorFontSize,
394
+ options: c.fontSizePresetOptions,
395
+ "show-search": "",
396
+ "filter-option": !1,
397
+ "search-value": c.editorFontSizeSearchValue,
398
+ disabled: c.readonly,
399
+ onBlur: l[17] ||= (e) => W("font-size-commit"),
400
+ onChange: l[18] ||= (e) => W("patch-font-size", e),
401
+ onDropdownVisibleChange: l[19] ||= (e) => W("font-size-dropdown-change", e),
402
+ onInputKeyDown: l[20] ||= (e) => W("font-size-keydown", e),
403
+ onSearch: l[21] ||= (e) => W("font-size-search", e)
404
+ }, null, 8, [
405
+ "value",
406
+ "options",
407
+ "search-value",
408
+ "disabled"
409
+ ]), a("input", {
410
+ class: "gd-contract-template-designer__color",
411
+ type: "color",
412
+ value: c.currentEditorTextColor,
413
+ disabled: c.readonly,
414
+ onInput: l[22] ||= (e) => W("patch-color", e)
415
+ }, null, 40, Me)])], 8, ["disabled", "to"])),
416
+ (d(), r(n, {
417
+ disabled: !m($)("list") || !Y.value,
395
418
  to: Y.value || "body"
396
- }, [a("div", ke, [
397
- s(m(S), {
398
- class: "gd-contract-template-designer__toolbar-select is-wide",
399
- value: c.currentEditorFontFamily,
400
- options: c.fontFamilySelectOptions,
401
- disabled: c.readonly,
402
- onChange: l[18] ||= (e) => G("patch-font-family", e)
403
- }, null, 8, [
404
- "value",
405
- "options",
406
- "disabled"
407
- ]),
408
- s(m(S), {
409
- class: "gd-contract-template-designer__toolbar-select",
410
- value: c.currentEditorFontSize,
411
- options: c.fontSizePresetOptions,
412
- "show-search": "",
413
- "filter-option": !1,
414
- "search-value": c.editorFontSizeSearchValue,
419
+ }, [a("div", Ne, [s(m(C), { title: "编号列表" }, {
420
+ default: _(() => [s(m(y), {
421
+ size: "small",
422
+ class: "gd-contract-template-designer__icon-button",
423
+ type: c.editorState.isOrderedList ? "primary" : "default",
415
424
  disabled: c.readonly,
416
- onBlur: l[19] ||= (e) => G("font-size-commit"),
417
- onChange: l[20] ||= (e) => G("patch-font-size", e),
418
- onDropdownVisibleChange: l[21] ||= (e) => G("font-size-dropdown-change", e),
419
- onInputKeyDown: l[22] ||= (e) => G("font-size-keydown", e),
420
- onSearch: l[23] ||= (e) => G("font-size-search", e)
421
- }, null, 8, [
422
- "value",
423
- "options",
424
- "search-value",
425
- "disabled"
426
- ]),
427
- a("input", {
428
- class: "gd-contract-template-designer__color",
429
- type: "color",
430
- value: c.currentEditorTextColor,
425
+ "aria-label": "编号列表",
426
+ onClick: l[23] ||= (e) => W("command", { type: "toggle-ordered-list" })
427
+ }, {
428
+ default: _(() => [s(m(be), { "aria-hidden": "true" })]),
429
+ _: 1
430
+ }, 8, ["type", "disabled"])]),
431
+ _: 1
432
+ }), s(m(C), { title: "项目列表" }, {
433
+ default: _(() => [s(m(y), {
434
+ size: "small",
435
+ class: "gd-contract-template-designer__icon-button",
436
+ type: c.editorState.isBulletList ? "primary" : "default",
431
437
  disabled: c.readonly,
432
- onInput: l[24] ||= (e) => G("patch-color", e)
433
- }, null, 40, Ae),
438
+ "aria-label": "项目列表",
439
+ onClick: l[24] ||= (e) => W("command", { type: "toggle-bullet-list" })
440
+ }, {
441
+ default: _(() => [s(m(A), { "aria-hidden": "true" })]),
442
+ _: 1
443
+ }, 8, ["type", "disabled"])]),
444
+ _: 1
445
+ })])], 8, ["disabled", "to"])),
446
+ (d(), r(n, {
447
+ disabled: !m($)("alignment") || !Y.value,
448
+ to: Y.value || "body"
449
+ }, [a("div", Pe, [
434
450
  s(m(C), { title: "左对齐" }, {
435
451
  default: _(() => [s(m(y), {
436
452
  size: "small",
@@ -438,9 +454,9 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
438
454
  type: c.editorState.textAlign === "left" ? "primary" : "default",
439
455
  disabled: c.readonly,
440
456
  "aria-label": "左对齐",
441
- onClick: l[25] ||= (e) => G("patch-text-align", "left")
457
+ onClick: l[25] ||= (e) => W("patch-text-align", "left")
442
458
  }, {
443
- default: _(() => [s(m(de), { "aria-hidden": "true" })]),
459
+ default: _(() => [s(m(w), { "aria-hidden": "true" })]),
444
460
  _: 1
445
461
  }, 8, [
446
462
  "class",
@@ -456,9 +472,9 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
456
472
  type: c.editorState.textAlign === "center" ? "primary" : "default",
457
473
  disabled: c.readonly,
458
474
  "aria-label": "居中对齐",
459
- onClick: l[26] ||= (e) => G("patch-text-align", "center")
475
+ onClick: l[26] ||= (e) => W("patch-text-align", "center")
460
476
  }, {
461
- default: _(() => [s(m(w), { "aria-hidden": "true" })]),
477
+ default: _(() => [s(m(de), { "aria-hidden": "true" })]),
462
478
  _: 1
463
479
  }, 8, [
464
480
  "class",
@@ -474,7 +490,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
474
490
  type: c.editorState.textAlign === "right" ? "primary" : "default",
475
491
  disabled: c.readonly,
476
492
  "aria-label": "右对齐",
477
- onClick: l[27] ||= (e) => G("patch-text-align", "right")
493
+ onClick: l[27] ||= (e) => W("patch-text-align", "right")
478
494
  }, {
479
495
  default: _(() => [s(m(fe), { "aria-hidden": "true" })]),
480
496
  _: 1
@@ -489,13 +505,13 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
489
505
  (d(), r(n, {
490
506
  disabled: !m($)("cleanup") || !X.value,
491
507
  to: X.value || "body"
492
- }, [a("div", je, [s(m(C), { title: "清文字" }, {
508
+ }, [a("div", Fe, [s(m(C), { title: "清文字" }, {
493
509
  default: _(() => [s(m(y), {
494
510
  size: "small",
495
511
  class: "gd-contract-template-designer__icon-button",
496
512
  disabled: c.readonly,
497
513
  "aria-label": "清文字",
498
- onClick: l[28] ||= (e) => G("command", { type: "clear-text-format" })
514
+ onClick: l[28] ||= (e) => W("command", { type: "clear-text-format" })
499
515
  }, {
500
516
  default: _(() => [s(m(me), { "aria-hidden": "true" })]),
501
517
  _: 1
@@ -507,7 +523,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
507
523
  class: "gd-contract-template-designer__icon-button",
508
524
  disabled: c.readonly,
509
525
  "aria-label": "清段落",
510
- onClick: l[29] ||= (e) => G("command", { type: "clear-block-format" })
526
+ onClick: l[29] ||= (e) => W("command", { type: "clear-block-format" })
511
527
  }, {
512
528
  default: _(() => [s(m(_e), { "aria-hidden": "true" })]),
513
529
  _: 1
@@ -517,22 +533,22 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
517
533
  (d(), r(n, {
518
534
  disabled: !m($)("table") || !Z.value,
519
535
  to: Z.value || "body"
520
- }, [a("div", Me, [s(m(x), {
521
- open: V.value,
522
- "onUpdate:open": l[33] ||= (e) => V.value = e,
536
+ }, [a("div", N, [s(m(x), {
537
+ open: B.value,
538
+ "onUpdate:open": l[33] ||= (e) => B.value = e,
523
539
  trigger: "click",
524
540
  placement: "bottom"
525
541
  }, {
526
- content: _(() => [a("div", Ne, [
542
+ content: _(() => [a("div", Ie, [
527
543
  l[52] ||= a("strong", null, "插入表格", -1),
528
544
  s(t, {
529
545
  disabled: c.readonly,
530
- onSelect: l[30] ||= (e) => G("insert-table", e.rows, e.cols),
531
- onClose: l[31] ||= (e) => V.value = !1
546
+ onSelect: l[30] ||= (e) => W("insert-table", e.rows, e.cols),
547
+ onClose: l[31] ||= (e) => B.value = !1
532
548
  }, null, 8, ["disabled"]),
533
- a("label", P, [l[51] ||= a("span", null, "表头行", -1), s(m(le), {
534
- checked: U.value.withHeaderRow,
535
- "onUpdate:checked": l[32] ||= (e) => U.value.withHeaderRow = e,
549
+ a("label", Le, [l[51] ||= a("span", null, "表头行", -1), s(m(le), {
550
+ checked: H.value.withHeaderRow,
551
+ "onUpdate:checked": l[32] ||= (e) => H.value.withHeaderRow = e,
536
552
  disabled: c.readonly
537
553
  }, null, 8, ["checked", "disabled"])])
538
554
  ])]),
@@ -543,23 +559,23 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
543
559
  disabled: c.readonly,
544
560
  "aria-label": "插入表格"
545
561
  }, {
546
- default: _(() => [s(m(O), { "aria-hidden": "true" })]),
562
+ default: _(() => [s(m(D), { "aria-hidden": "true" })]),
547
563
  _: 1
548
564
  }, 8, ["disabled"])]),
549
565
  _: 1
550
566
  })]),
551
567
  _: 1
552
568
  }, 8, ["open"]), s(m(x), {
553
- open: H.value,
554
- "onUpdate:open": l[43] ||= (e) => H.value = e,
569
+ open: V.value,
570
+ "onUpdate:open": l[43] ||= (e) => V.value = e,
555
571
  trigger: "click",
556
572
  placement: "bottom"
557
573
  }, {
558
- content: _(() => [a("div", Pe, [l[62] ||= a("strong", null, "表格操作", -1), a("div", Fe, [
574
+ content: _(() => [a("div", Re, [l[62] ||= a("strong", null, "表格操作", -1), a("div", ze, [
559
575
  s(m(y), {
560
576
  size: "small",
561
577
  disabled: c.readonly,
562
- onClick: l[34] ||= (e) => G("table-action", "add-table-row-before")
578
+ onClick: l[34] ||= (e) => W("table-action", "add-table-row-before")
563
579
  }, {
564
580
  default: _(() => [...l[53] ||= [o(" 上方插行 ", -1)]]),
565
581
  _: 1
@@ -567,7 +583,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
567
583
  s(m(y), {
568
584
  size: "small",
569
585
  disabled: c.readonly,
570
- onClick: l[35] ||= (e) => G("table-action", "add-table-row-after")
586
+ onClick: l[35] ||= (e) => W("table-action", "add-table-row-after")
571
587
  }, {
572
588
  default: _(() => [...l[54] ||= [o(" 下方插行 ", -1)]]),
573
589
  _: 1
@@ -575,7 +591,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
575
591
  s(m(y), {
576
592
  size: "small",
577
593
  disabled: c.readonly,
578
- onClick: l[36] ||= (e) => G("table-action", "add-table-column-before")
594
+ onClick: l[36] ||= (e) => W("table-action", "add-table-column-before")
579
595
  }, {
580
596
  default: _(() => [...l[55] ||= [o(" 左侧插列 ", -1)]]),
581
597
  _: 1
@@ -583,7 +599,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
583
599
  s(m(y), {
584
600
  size: "small",
585
601
  disabled: c.readonly,
586
- onClick: l[37] ||= (e) => G("table-action", "add-table-column-after")
602
+ onClick: l[37] ||= (e) => W("table-action", "add-table-column-after")
587
603
  }, {
588
604
  default: _(() => [...l[56] ||= [o(" 右侧插列 ", -1)]]),
589
605
  _: 1
@@ -591,7 +607,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
591
607
  s(m(y), {
592
608
  size: "small",
593
609
  disabled: c.readonly,
594
- onClick: l[38] ||= (e) => G("table-action", "delete-table-row")
610
+ onClick: l[38] ||= (e) => W("table-action", "delete-table-row")
595
611
  }, {
596
612
  default: _(() => [...l[57] ||= [o(" 删除当前行 ", -1)]]),
597
613
  _: 1
@@ -599,7 +615,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
599
615
  s(m(y), {
600
616
  size: "small",
601
617
  disabled: c.readonly,
602
- onClick: l[39] ||= (e) => G("table-action", "delete-table-column")
618
+ onClick: l[39] ||= (e) => W("table-action", "delete-table-column")
603
619
  }, {
604
620
  default: _(() => [...l[58] ||= [o(" 删除当前列 ", -1)]]),
605
621
  _: 1
@@ -607,7 +623,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
607
623
  s(m(y), {
608
624
  size: "small",
609
625
  disabled: c.readonly,
610
- onClick: l[40] ||= (e) => G("table-action", "toggle-table-header-row")
626
+ onClick: l[40] ||= (e) => W("table-action", "toggle-table-header-row")
611
627
  }, {
612
628
  default: _(() => [...l[59] ||= [o(" 切换表头行 ", -1)]]),
613
629
  _: 1
@@ -615,7 +631,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
615
631
  s(m(y), {
616
632
  size: "small",
617
633
  disabled: c.readonly,
618
- onClick: l[41] ||= (e) => G("table-action", "toggle-table-header-column")
634
+ onClick: l[41] ||= (e) => W("table-action", "toggle-table-header-column")
619
635
  }, {
620
636
  default: _(() => [...l[60] ||= [o(" 切换表头列 ", -1)]]),
621
637
  _: 1
@@ -624,7 +640,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
624
640
  danger: "",
625
641
  size: "small",
626
642
  disabled: c.readonly,
627
- onClick: l[42] ||= (e) => G("table-action", "delete-table")
643
+ onClick: l[42] ||= (e) => W("table-action", "delete-table")
628
644
  }, {
629
645
  default: _(() => [...l[61] ||= [o(" 删除表格 ", -1)]]),
630
646
  _: 1
@@ -637,7 +653,7 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
637
653
  disabled: c.readonly || !c.editorState.isTableActive,
638
654
  "aria-label": "表格操作"
639
655
  }, {
640
- default: _(() => [s(m(O), { "aria-hidden": "true" })]),
656
+ default: _(() => [s(m(D), { "aria-hidden": "true" })]),
641
657
  _: 1
642
658
  }, 8, ["disabled"])]),
643
659
  _: 1
@@ -646,45 +662,50 @@ var M = { class: "gd-contract-template-designer__toolbar" }, N = { class: "gd-co
646
662
  }, 8, ["open"])])], 8, ["disabled", "to"])),
647
663
  v(a("div", {
648
664
  ref_key: "toolbarMoreElement",
649
- ref: q,
665
+ ref: K,
650
666
  class: "gd-contract-template-designer__toolbar-more"
651
667
  }, [s(m(C), { title: "更多工具" }, {
652
668
  default: _(() => [s(m(y), {
653
669
  size: "small",
654
- class: u(["gd-contract-template-designer__icon-button", { "is-selected": W.value }]),
670
+ class: u(["gd-contract-template-designer__icon-button", { "is-selected": U.value }]),
655
671
  "aria-label": "更多工具",
656
672
  "aria-haspopup": "true",
657
- "aria-expanded": W.value,
658
- onClick: l[44] ||= oe((e) => W.value = !W.value, ["stop"])
673
+ "aria-expanded": U.value,
674
+ onClick: l[44] ||= oe((e) => U.value = !U.value, ["stop"])
659
675
  }, {
660
676
  default: _(() => [s(m(he), { "aria-hidden": "true" })]),
661
677
  _: 1
662
678
  }, 8, ["class", "aria-expanded"])]),
663
679
  _: 1
664
- }), v(a("div", Ie, [
665
- v(a("div", Le, [l[63] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "插入", -1), a("div", {
680
+ }), v(a("div", Be, [
681
+ v(a("div", Ve, [l[63] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "插入", -1), a("div", {
666
682
  ref_key: "toolbarInsertSlotElement",
667
- ref: J,
683
+ ref: q,
668
684
  class: "gd-contract-template-designer__toolbar-more-slot"
669
685
  }, null, 512)], 512), [[g, m($)("insert")]]),
670
- v(a("div", Re, [l[64] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "文字排版", -1), a("div", {
671
- ref_key: "toolbarTypographySlotElement",
686
+ v(a("div", He, [l[64] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "字体", -1), a("div", {
687
+ ref_key: "toolbarFontSlotElement",
688
+ ref: J,
689
+ class: "gd-contract-template-designer__toolbar-more-slot"
690
+ }, null, 512)], 512), [[g, m($)("font-family") || m($)("font-appearance")]]),
691
+ v(a("div", Ue, [l[65] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "段落", -1), a("div", {
692
+ ref_key: "toolbarParagraphSlotElement",
672
693
  ref: Y,
673
694
  class: "gd-contract-template-designer__toolbar-more-slot"
674
- }, null, 512)], 512), [[g, m($)("typography")]]),
675
- v(a("div", ze, [l[65] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "清除格式", -1), a("div", {
695
+ }, null, 512)], 512), [[g, m($)("list") || m($)("alignment")]]),
696
+ v(a("div", We, [l[66] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "清除格式", -1), a("div", {
676
697
  ref_key: "toolbarCleanupSlotElement",
677
698
  ref: X,
678
699
  class: "gd-contract-template-designer__toolbar-more-slot"
679
700
  }, null, 512)], 512), [[g, m($)("cleanup")]]),
680
- v(a("div", Be, [l[66] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "表格", -1), a("div", {
701
+ v(a("div", Ge, [l[67] ||= a("span", { class: "gd-contract-template-designer__toolbar-more-title" }, "表格", -1), a("div", {
681
702
  ref_key: "toolbarTableSlotElement",
682
703
  ref: Z,
683
704
  class: "gd-contract-template-designer__toolbar-more-slot"
684
705
  }, null, 512)], 512), [[g, m($)("table")]])
685
- ], 512), [[g, W.value]])], 512), [[g, m(He)]])
706
+ ], 512), [[g, U.value]])], 512), [[g, m(qe)]])
686
707
  ], 512)]));
687
708
  }
688
709
  });
689
710
  //#endregion
690
- export { F as default };
711
+ export { P as default };