@guodun/antdv 1.7.4 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.mjs +1 -1
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.mjs +45 -37
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.mjs +266 -264
- package/dist/es/components/pro-contract-template-designer/src/extensions/editor-extensions.mjs +37 -35
- package/dist/es/components/pro-contract-template-designer/src/extensions/paragraph-enter.mjs +28 -0
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/extensions/editor-extensions.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/extensions/paragraph-enter.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.d.ts +1 -0
- package/dist/types/components/pro-contract-template-designer/src/extensions/paragraph-enter.d.ts +6 -0
- package/package.json +4 -4
package/dist/es/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.mjs
CHANGED
|
@@ -122,7 +122,7 @@ var S = {
|
|
|
122
122
|
}, {
|
|
123
123
|
default: m(() => [o(d(y), { "aria-hidden": "true" })]),
|
|
124
124
|
_: 1
|
|
125
|
-
})]), f[13] ||= a("<dl class=\"gd-contract-template-designer__shortcut-list\"><div><dt>查找正文</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>F</kbd></span></dd></div><div><dt>替换正文</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl</kbd><span>+</span><kbd>H</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">或</span><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>⌘</kbd><span>+</span><kbd>Shift</kbd><span>+</span><kbd>H</kbd></span></dd></div><div><dt>下一处 / 上一处</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Enter</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">/</span><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Shift</kbd><span>+</span><kbd>Enter</kbd></span><small>查找框内</small></dd></div><div><dt>查找结果导航</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>G</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">反向加</span><kbd>Shift</kbd></dd></div><div><dt>撤销 / 重做(当前页)</dt><dd><kbd>Ctrl / ⌘ + Z</kbd><span class=\"gd-contract-template-designer__shortcut-separator\">/</span><kbd>Ctrl / ⌘ + Shift + Z</kbd></dd></div><div><dt>正文右键菜单</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Shift</kbd><span>+</span><kbd>F10</kbd></span></dd></div><div><dt>收起 / 退出沉浸</dt><dd><kbd>Esc</kbd><small>逐层关闭</small></dd></div><div><dt>打开此帮助</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>/</kbd></span></dd></div></dl><div class=\"gd-contract-template-designer__shortcut-note\"><span><strong>文本格式</strong>:<kbd>Ctrl</kbd> / <kbd>⌘</kbd> + <kbd>B</kbd> / <kbd>I</kbd> / <kbd>U</kbd></span><span>属性输入框保留原生输入行为;只读模式不执行写入。</span></div>", 2)], 32)) : n("", !0)], 2));
|
|
125
|
+
})]), f[13] ||= a("<dl class=\"gd-contract-template-designer__shortcut-list\"><div><dt>新建段落,默认左对齐</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Enter</kbd></span><small>正文内</small></dd></div><div><dt>段内换行,保留当前对齐</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Shift</kbd><span>+</span><kbd>Enter</kbd></span><small>正文内</small></dd></div><div><dt>查找正文</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>F</kbd></span></dd></div><div><dt>替换正文</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl</kbd><span>+</span><kbd>H</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">或</span><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>⌘</kbd><span>+</span><kbd>Shift</kbd><span>+</span><kbd>H</kbd></span></dd></div><div><dt>下一处 / 上一处</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Enter</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">/</span><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Shift</kbd><span>+</span><kbd>Enter</kbd></span><small>查找框内</small></dd></div><div><dt>查找结果导航</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>G</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">反向加</span><kbd>Shift</kbd></dd></div><div><dt>撤销 / 重做(当前页)</dt><dd><kbd>Ctrl / ⌘ + Z</kbd><span class=\"gd-contract-template-designer__shortcut-separator\">/</span><kbd>Ctrl / ⌘ + Shift + Z</kbd></dd></div><div><dt>正文右键菜单</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Shift</kbd><span>+</span><kbd>F10</kbd></span></dd></div><div><dt>收起 / 退出沉浸</dt><dd><kbd>Esc</kbd><small>逐层关闭</small></dd></div><div><dt>打开此帮助</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>/</kbd></span></dd></div></dl><div class=\"gd-contract-template-designer__shortcut-note\"><span><strong>文本格式</strong>:<kbd>Ctrl</kbd> / <kbd>⌘</kbd> + <kbd>B</kbd> / <kbd>I</kbd> / <kbd>U</kbd></span><span>分段规则仅适用于顶层正文的单个段落 / 标题,原段落对齐不变;列表、表格保留原有操作。</span><span>撤销 / 重做仅影响当前页,一次即可回退 / 恢复分段与对齐。</span><span>属性输入框保留原生输入行为;只读模式不执行写入。</span></div>", 2)], 32)) : n("", !0)], 2));
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
//#endregion
|
package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import e from "./ContractTemplateRendererToolbar.mjs";
|
|
2
|
-
import { createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c,
|
|
3
|
-
import { Button as
|
|
4
|
-
import { AuditOutlined as
|
|
2
|
+
import { createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderSlot as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
|
|
3
|
+
import { Button as h, Tooltip as g } from "ant-design-vue";
|
|
4
|
+
import { AuditOutlined as _, MenuFoldOutlined as v, MenuUnfoldOutlined as y, SendOutlined as b, UndoOutlined as x } from "@ant-design/icons-vue";
|
|
5
5
|
//#region src/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var S = { class: "gd-contract-template-renderer__header" }, C = { class: "gd-contract-template-renderer__title" }, w = { class: "gd-contract-template-renderer__header-meta" }, T = ["aria-valuenow"], E = { class: "gd-contract-template-renderer__header-actions" }, D = /* @__PURE__ */ s({
|
|
7
7
|
name: "ContractTemplateRendererHeader",
|
|
8
8
|
__name: "ContractTemplateRendererHeader",
|
|
9
9
|
props: {
|
|
10
10
|
title: {},
|
|
11
11
|
filledCount: {},
|
|
12
12
|
totalCount: {},
|
|
13
|
+
progressPercent: {},
|
|
13
14
|
requiredMissingCount: {},
|
|
14
15
|
zoom: {},
|
|
15
16
|
pages: {},
|
|
@@ -60,29 +61,36 @@ var x = { class: "gd-contract-template-renderer__header" }, S = { class: "gd-con
|
|
|
60
61
|
"submit",
|
|
61
62
|
"togglePanel"
|
|
62
63
|
],
|
|
63
|
-
setup(s, { emit:
|
|
64
|
-
let
|
|
65
|
-
return (
|
|
66
|
-
i("div",
|
|
67
|
-
|
|
64
|
+
setup(s, { emit: D }) {
|
|
65
|
+
let O = D;
|
|
66
|
+
return (D, k) => (u(), r("header", S, [
|
|
67
|
+
i("div", C, [
|
|
68
|
+
k[9] ||= i("span", {
|
|
68
69
|
class: "gd-contract-template-renderer__title-bar",
|
|
69
70
|
"aria-hidden": "true"
|
|
70
71
|
}, null, -1),
|
|
71
|
-
i("div",
|
|
72
|
-
i("
|
|
72
|
+
i("div", w, [i("strong", null, f(s.title), 1), i("span", null, f(s.filledCount) + " / " + f(s.totalCount) + " 已填写", 1)]),
|
|
73
|
+
i("div", {
|
|
74
|
+
class: "gd-contract-template-renderer__header-progress",
|
|
75
|
+
role: "progressbar",
|
|
76
|
+
"aria-valuenow": s.progressPercent,
|
|
77
|
+
"aria-valuemin": "0",
|
|
78
|
+
"aria-valuemax": "100"
|
|
79
|
+
}, [i("span", { style: l({ width: `${s.progressPercent}%` }) }, null, 4), i("em", null, f(s.progressPercent) + "%", 1)], 8, T),
|
|
80
|
+
i("span", { class: c(["gd-contract-template-renderer__progress-pill", { "is-warning": s.requiredMissingCount > 0 }]) }, f(s.requiredMissingCount > 0 ? `${s.requiredMissingCount} 项必填未完成` : "必填项已完成"), 3)
|
|
73
81
|
]),
|
|
74
|
-
s.showToolbar ? (
|
|
82
|
+
s.showToolbar ? (u(), t(e, {
|
|
75
83
|
key: 0,
|
|
76
84
|
zoom: s.zoom,
|
|
77
85
|
pages: s.pages,
|
|
78
86
|
"active-page-id": s.activePageId,
|
|
79
87
|
"min-zoom": s.minZoom,
|
|
80
88
|
"max-zoom": s.maxZoom,
|
|
81
|
-
onZoomIn:
|
|
82
|
-
onZoomOut:
|
|
83
|
-
onResetZoom:
|
|
84
|
-
onFitWidth:
|
|
85
|
-
onSelectPage:
|
|
89
|
+
onZoomIn: k[0] ||= (e) => O("zoomIn"),
|
|
90
|
+
onZoomOut: k[1] ||= (e) => O("zoomOut"),
|
|
91
|
+
onResetZoom: k[2] ||= (e) => O("resetZoom"),
|
|
92
|
+
onFitWidth: k[3] ||= (e) => O("fitWidth"),
|
|
93
|
+
onSelectPage: k[4] ||= (e) => O("selectPage", e)
|
|
86
94
|
}, null, 8, [
|
|
87
95
|
"zoom",
|
|
88
96
|
"pages",
|
|
@@ -90,22 +98,22 @@ var x = { class: "gd-contract-template-renderer__header" }, S = { class: "gd-con
|
|
|
90
98
|
"min-zoom",
|
|
91
99
|
"max-zoom"
|
|
92
100
|
])) : n("", !0),
|
|
93
|
-
i("div",
|
|
94
|
-
s.showPanelToggle ? (
|
|
101
|
+
i("div", E, [
|
|
102
|
+
s.showPanelToggle ? (u(), t(p(g), {
|
|
95
103
|
key: 0,
|
|
96
104
|
title: s.panelCollapsed ? "展开填写面板" : "收起填写面板"
|
|
97
105
|
}, {
|
|
98
|
-
default:
|
|
106
|
+
default: m(() => [o(p(h), {
|
|
99
107
|
size: "small",
|
|
100
108
|
class: "gd-contract-template-renderer__icon-button gd-contract-template-renderer__panel-toggle",
|
|
101
109
|
"aria-label": s.panelCollapsed ? "展开填写面板" : "收起填写面板",
|
|
102
110
|
"aria-expanded": !s.panelCollapsed,
|
|
103
|
-
onClick:
|
|
111
|
+
onClick: k[5] ||= (e) => O("togglePanel")
|
|
104
112
|
}, {
|
|
105
|
-
default:
|
|
113
|
+
default: m(() => [s.panelCollapsed ? (u(), t(p(y), {
|
|
106
114
|
key: 0,
|
|
107
115
|
"aria-hidden": "true"
|
|
108
|
-
})) : (
|
|
116
|
+
})) : (u(), t(p(v), {
|
|
109
117
|
key: 1,
|
|
110
118
|
"aria-hidden": "true"
|
|
111
119
|
}))]),
|
|
@@ -113,48 +121,48 @@ var x = { class: "gd-contract-template-renderer__header" }, S = { class: "gd-con
|
|
|
113
121
|
}, 8, ["aria-label", "aria-expanded"])]),
|
|
114
122
|
_: 1
|
|
115
123
|
}, 8, ["title"])) : n("", !0),
|
|
116
|
-
|
|
117
|
-
s.showValidateButton ? (
|
|
124
|
+
d(D.$slots, "extra"),
|
|
125
|
+
s.showValidateButton ? (u(), t(p(g), {
|
|
118
126
|
key: 1,
|
|
119
127
|
title: "校验"
|
|
120
128
|
}, {
|
|
121
|
-
default:
|
|
129
|
+
default: m(() => [o(p(h), {
|
|
122
130
|
size: "small",
|
|
123
131
|
class: "gd-contract-template-renderer__icon-button",
|
|
124
132
|
disabled: s.readonly || s.disabled,
|
|
125
133
|
"aria-label": "校验",
|
|
126
|
-
onClick:
|
|
134
|
+
onClick: k[6] ||= (e) => O("validate")
|
|
127
135
|
}, {
|
|
128
|
-
default:
|
|
136
|
+
default: m(() => [o(p(_), { "aria-hidden": "true" })]),
|
|
129
137
|
_: 1
|
|
130
138
|
}, 8, ["disabled"])]),
|
|
131
139
|
_: 1
|
|
132
140
|
})) : n("", !0),
|
|
133
|
-
s.showResetButton ? (
|
|
141
|
+
s.showResetButton ? (u(), t(p(g), {
|
|
134
142
|
key: 2,
|
|
135
143
|
title: "重置默认值"
|
|
136
144
|
}, {
|
|
137
|
-
default:
|
|
145
|
+
default: m(() => [o(p(h), {
|
|
138
146
|
size: "small",
|
|
139
147
|
class: "gd-contract-template-renderer__icon-button",
|
|
140
148
|
disabled: s.readonly || s.disabled,
|
|
141
149
|
"aria-label": "重置默认值",
|
|
142
|
-
onClick:
|
|
150
|
+
onClick: k[7] ||= (e) => O("reset")
|
|
143
151
|
}, {
|
|
144
|
-
default:
|
|
152
|
+
default: m(() => [o(p(x), { "aria-hidden": "true" })]),
|
|
145
153
|
_: 1
|
|
146
154
|
}, 8, ["disabled"])]),
|
|
147
155
|
_: 1
|
|
148
156
|
})) : n("", !0),
|
|
149
|
-
s.showSubmitButton && !s.readonly ? (
|
|
157
|
+
s.showSubmitButton && !s.readonly ? (u(), t(p(h), {
|
|
150
158
|
key: 3,
|
|
151
159
|
type: "primary",
|
|
152
160
|
size: "small",
|
|
153
161
|
disabled: s.disabled,
|
|
154
|
-
onClick:
|
|
162
|
+
onClick: k[8] ||= (e) => O("submit")
|
|
155
163
|
}, {
|
|
156
|
-
icon:
|
|
157
|
-
default:
|
|
164
|
+
icon: m(() => [o(p(b), { "aria-hidden": "true" })]),
|
|
165
|
+
default: m(() => [k[10] ||= a(" 提交填写数据 ", -1)]),
|
|
158
166
|
_: 1
|
|
159
167
|
}, 8, ["disabled"])) : n("", !0)
|
|
160
168
|
])
|
|
@@ -162,4 +170,4 @@ var x = { class: "gd-contract-template-renderer__header" }, S = { class: "gd-con
|
|
|
162
170
|
}
|
|
163
171
|
});
|
|
164
172
|
//#endregion
|
|
165
|
-
export {
|
|
173
|
+
export { D as default };
|