@guodun/antdv 1.6.2 → 1.6.4
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/dept-selector/src/DeptSelector.vue.mjs +52 -46
- package/dist/es/components/dept-selector/src/types.mjs +4 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.mjs +67 -106
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +791 -794
- package/dist/es/components/pro-contract-template-designer/src/composables/use-template-authoring.mjs +2 -9
- package/dist/es/components/pro-contract-template-designer/src/extensions/editor-extensions.mjs +34 -36
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/components/pro-menu-tree/src/pro-menu-tree.mjs +108 -103
- package/dist/es/components/pro-menu-tree/src/types.mjs +4 -0
- package/dist/es/components/pro-selector/src/ProUserSelector.vue.mjs +50 -44
- package/dist/es/components/pro-selector/src/types.mjs +4 -0
- package/dist/es/components/pro-selector-group/src/index.vue.mjs +47 -40
- package/dist/es/components/role-selector/src/RoleSelector.vue.mjs +50 -44
- package/dist/es/components/role-selector/src/types.mjs +5 -1
- package/dist/es/components/selector-core/components/SelectorDialog.vue.mjs +242 -233
- package/dist/es/components/selector-core/selection-theme.mjs +35 -0
- package/dist/es/components/selector-core/useSelectorData.mjs +1 -1
- package/dist/lib/components/dept-selector/src/DeptSelector.vue.cjs +1 -1
- package/dist/lib/components/dept-selector/src/types.cjs +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/ProContractTemplateDesigner.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-authoring.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/style/index.css +1 -1
- package/dist/lib/components/pro-menu-tree/src/pro-menu-tree.cjs +1 -1
- package/dist/lib/components/pro-menu-tree/src/types.cjs +1 -1
- package/dist/lib/components/pro-selector/src/ProUserSelector.vue.cjs +1 -1
- package/dist/lib/components/pro-selector/src/types.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/index.vue.cjs +1 -1
- package/dist/lib/components/role-selector/src/RoleSelector.vue.cjs +1 -1
- package/dist/lib/components/role-selector/src/types.cjs +1 -1
- package/dist/lib/components/selector-core/components/SelectorDialog.vue.cjs +1 -1
- package/dist/lib/components/selector-core/selection-theme.cjs +1 -0
- package/dist/lib/components/selector-core/useSelectorData.cjs +1 -1
- package/dist/theme/dept-selector.css +1 -0
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/theme/pro-menu-tree.css +1 -1
- package/dist/theme/pro-selector-group.css +1 -0
- package/dist/theme/role-selector.css +1 -0
- package/dist/theme/selector-core.css +1 -1
- package/dist/types/components/dept-selector/index.d.ts +15 -0
- package/dist/types/components/dept-selector/src/DeptSelector.vue.d.ts +9 -0
- package/dist/types/components/dept-selector/src/types.d.ts +7 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.d.ts +0 -3
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.d.ts +2 -2
- package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +0 -3
- package/dist/types/components/pro-contract-template-designer/src/composables/use-template-authoring.d.ts +2 -4
- package/dist/types/components/pro-contract-template-designer/src/constants.d.ts +0 -3
- package/dist/types/components/pro-contract-template-designer/src/types.d.ts +0 -4
- package/dist/types/components/pro-menu-tree/index.d.ts +9 -0
- package/dist/types/components/pro-menu-tree/src/pro-menu-tree.d.ts +9 -0
- package/dist/types/components/pro-menu-tree/src/types.d.ts +7 -0
- package/dist/types/components/pro-selector/index.d.ts +59 -2
- package/dist/types/components/pro-selector/src/ProUserSelector.vue.d.ts +9 -0
- package/dist/types/components/pro-selector/src/ProUserSelectorDrilldown.vue.d.ts +28 -4
- package/dist/types/components/pro-selector/src/types.d.ts +7 -0
- package/dist/types/components/pro-selector-group/index.d.ts +3 -0
- package/dist/types/components/pro-selector-group/src/index.vue.d.ts +1 -0
- package/dist/types/components/pro-selector-group/src/types.d.ts +5 -0
- package/dist/types/components/role-selector/index.d.ts +30 -0
- package/dist/types/components/role-selector/src/RoleSelector.vue.d.ts +9 -0
- package/dist/types/components/role-selector/src/types.d.ts +9 -2
- package/dist/types/components/selector-core/components/SelectorDialog.vue.d.ts +2 -0
- package/dist/types/components/selector-core/selection-theme.d.ts +20 -0
- package/package.json +3 -3
- package/dist/es/components/pro-contract-template-designer/src/utils/clause-snippets.mjs +0 -56
- package/dist/lib/components/pro-contract-template-designer/src/utils/clause-snippets.cjs +0 -1
- package/dist/types/components/pro-contract-template-designer/src/utils/clause-snippets.d.ts +0 -10
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { defaultFieldNames as e, serializeDepartments as t, text as n } from "../../selector-core/model.mjs";
|
|
2
|
-
import r from "../../selector-core/
|
|
3
|
-
import i from "../../selector-core/components/
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { createSelectionTheme as r } from "../../selector-core/selection-theme.mjs";
|
|
3
|
+
import i from "../../selector-core/components/SelectorDialog.mjs";
|
|
4
|
+
import a from "../../selector-core/components/SelectionChips.mjs";
|
|
5
|
+
import { deptSelectorEmits as o, deptSelectorProps as s } from "./types.mjs";
|
|
6
|
+
import { computed as c, createBlock as l, createCommentVNode as u, createElementVNode as d, createVNode as f, defineComponent as p, normalizeStyle as m, openBlock as h, renderSlot as g, unref as _, useAttrs as v, withCtx as y } from "vue";
|
|
7
|
+
import { FormItemRest as b } from "ant-design-vue";
|
|
7
8
|
//#region src/components/dept-selector/src/DeptSelector.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
9
|
+
var x = /* @__PURE__ */ p({
|
|
9
10
|
name: "KDeptSelector",
|
|
10
11
|
__name: "DeptSelector",
|
|
11
|
-
props:
|
|
12
|
-
emits:
|
|
13
|
-
setup(
|
|
14
|
-
let
|
|
12
|
+
props: s,
|
|
13
|
+
emits: o,
|
|
14
|
+
setup(o, { emit: s }) {
|
|
15
|
+
let p = o, x = s, S = v(), C = c(() => r(p.activeColor)), w = c(() => p.isBuiltInRequest ? e : p.fieldNames), T = c(() => (Array.isArray(p.modelValue) ? p.modelValue : p.modelValue ? [p.modelValue] : []).map((e) => ({
|
|
15
16
|
type: "dept",
|
|
16
|
-
value: n(e[
|
|
17
|
-
label: n(e[
|
|
17
|
+
value: n(e[w.value.key]),
|
|
18
|
+
label: n(e[w.value.title]),
|
|
18
19
|
raw: e
|
|
19
|
-
})).filter((e) => e.value)),
|
|
20
|
-
let { modalProps: e, ...t } =
|
|
20
|
+
})).filter((e) => e.value)), E = c(() => {
|
|
21
|
+
let { modalProps: e, ...t } = S;
|
|
21
22
|
return {
|
|
22
23
|
cancelText: "取消",
|
|
23
24
|
okText: "确定",
|
|
@@ -25,45 +26,49 @@ var y = { class: "gd-ant-dept-selector" }, b = /* @__PURE__ */ f({
|
|
|
25
26
|
...e || {}
|
|
26
27
|
};
|
|
27
28
|
});
|
|
28
|
-
function
|
|
29
|
-
|
|
29
|
+
function D(e) {
|
|
30
|
+
x("update:visible", e === !0);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
let { values: n, confirm: r } = t(e,
|
|
33
|
-
|
|
32
|
+
function O(e) {
|
|
33
|
+
let { values: n, confirm: r } = t(e, w.value), i = p.type === "radio" ? n[0] || null : n;
|
|
34
|
+
x("update:visible", !1), x("update:modelValue", i), x("confirm", r);
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
-
|
|
36
|
+
function k() {
|
|
37
|
+
x("update:visible", !1), x("cancel");
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
if (
|
|
40
|
-
|
|
39
|
+
function A(e) {
|
|
40
|
+
if (p.type === "radio") {
|
|
41
|
+
x("update:modelValue", null);
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
x("update:modelValue", (Array.isArray(p.modelValue) ? p.modelValue : []).filter((t) => String(t[w.value.key]) !== e));
|
|
44
45
|
}
|
|
45
|
-
return (e, t) => (
|
|
46
|
-
default:
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
return (e, t) => (h(), l(_(b), null, {
|
|
47
|
+
default: y(() => [d("div", {
|
|
48
|
+
class: "gd-ant-dept-selector",
|
|
49
|
+
style: m(C.value.style)
|
|
50
|
+
}, [p.hideSlot ? u("", !0) : g(e.$slots, "default", { key: 0 }, () => [f(a, {
|
|
51
|
+
items: T.value,
|
|
52
|
+
"max-visible-count": p.maxVisibleCount,
|
|
49
53
|
"add-text": "选择部门",
|
|
50
|
-
onAdd: t[0] ||= (e) =>
|
|
51
|
-
onRemove: t[1] ||= (e) =>
|
|
52
|
-
}, null, 8, ["items", "max-visible-count"])]),
|
|
53
|
-
open:
|
|
54
|
+
onAdd: t[0] ||= (e) => x("update:visible", !0),
|
|
55
|
+
onRemove: t[1] ||= (e) => A(e.value)
|
|
56
|
+
}, null, 8, ["items", "max-visible-count"])]), f(i, {
|
|
57
|
+
open: p.visible,
|
|
54
58
|
mode: "dept",
|
|
55
|
-
selected:
|
|
56
|
-
selection:
|
|
59
|
+
selected: T.value,
|
|
60
|
+
selection: p.type,
|
|
57
61
|
title: "选择部门",
|
|
58
|
-
"tree-data":
|
|
59
|
-
"field-names":
|
|
60
|
-
http:
|
|
61
|
-
prefix:
|
|
62
|
-
"is-built-in-request":
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
"tree-data": p.treeData,
|
|
63
|
+
"field-names": w.value,
|
|
64
|
+
http: p.http,
|
|
65
|
+
prefix: p.prefix,
|
|
66
|
+
"is-built-in-request": p.isBuiltInRequest,
|
|
67
|
+
"active-color": p.activeColor,
|
|
68
|
+
"modal-props": E.value,
|
|
69
|
+
"onUpdate:open": D,
|
|
70
|
+
onConfirm: O,
|
|
71
|
+
onCancel: k
|
|
67
72
|
}, null, 8, [
|
|
68
73
|
"open",
|
|
69
74
|
"selected",
|
|
@@ -73,11 +78,12 @@ var y = { class: "gd-ant-dept-selector" }, b = /* @__PURE__ */ f({
|
|
|
73
78
|
"http",
|
|
74
79
|
"prefix",
|
|
75
80
|
"is-built-in-request",
|
|
81
|
+
"active-color",
|
|
76
82
|
"modal-props"
|
|
77
|
-
])])]),
|
|
83
|
+
])], 4)]),
|
|
78
84
|
_: 3
|
|
79
85
|
}));
|
|
80
86
|
}
|
|
81
87
|
});
|
|
82
88
|
//#endregion
|
|
83
|
-
export {
|
|
89
|
+
export { x as default };
|
package/dist/es/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { CloseOutlined as C, FileTextOutlined as w, QuestionCircleOutlined as T, SearchOutlined as E } from "@ant-design/icons-vue";
|
|
1
|
+
import e from "./ContractTemplateFindReplace.mjs";
|
|
2
|
+
import { createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createVNode as o, defineComponent as s, mergeModels as c, normalizeClass as l, openBlock as u, unref as d, useModel as f, useTemplateRef as p, withCtx as m, withKeys as h, withModifiers as g } from "vue";
|
|
3
|
+
import { Button as _, Tooltip as v } from "ant-design-vue";
|
|
4
|
+
import { CloseOutlined as y, QuestionCircleOutlined as b, SearchOutlined as x } from "@ant-design/icons-vue";
|
|
6
5
|
//#region src/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
6
|
+
var S = {
|
|
8
7
|
class: "gd-contract-template-designer__authoring-actions",
|
|
9
8
|
role: "toolbar",
|
|
10
9
|
"aria-label": "编写辅助工具"
|
|
11
|
-
},
|
|
10
|
+
}, C = { key: 0 }, w = { key: 0 }, T = { class: "gd-contract-template-designer__authoring-panel-head" }, E = /* @__PURE__ */ s({
|
|
12
11
|
__name: "ContractTemplateAuthoringBar",
|
|
13
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ c({
|
|
14
13
|
compact: { type: Boolean },
|
|
15
14
|
panel: {},
|
|
16
15
|
readonly: { type: Boolean },
|
|
@@ -29,92 +28,77 @@ var D = {
|
|
|
29
28
|
},
|
|
30
29
|
matchCaseModifiers: {}
|
|
31
30
|
}),
|
|
32
|
-
emits: /* @__PURE__ */
|
|
31
|
+
emits: /* @__PURE__ */ c([
|
|
33
32
|
"open",
|
|
34
33
|
"close",
|
|
35
34
|
"navigate",
|
|
36
35
|
"replaceCurrent",
|
|
37
|
-
"replaceAll"
|
|
38
|
-
"insertSnippet"
|
|
36
|
+
"replaceAll"
|
|
39
37
|
], [
|
|
40
38
|
"update:query",
|
|
41
39
|
"update:replacement",
|
|
42
40
|
"update:matchCase"
|
|
43
41
|
]),
|
|
44
|
-
setup(
|
|
45
|
-
let
|
|
46
|
-
function
|
|
47
|
-
|
|
42
|
+
setup(s, { expose: c, emit: E }) {
|
|
43
|
+
let D = s, O = f(s, "query"), k = f(s, "replacement"), A = f(s, "matchCase"), j = E, M = p("barElement"), N = p("findElement");
|
|
44
|
+
function P(e) {
|
|
45
|
+
D.panel === e || e === "find" && D.panel === "replace" ? j("close") : j("open", e);
|
|
48
46
|
}
|
|
49
|
-
return
|
|
47
|
+
return c({
|
|
50
48
|
focusPanel: () => {
|
|
51
|
-
|
|
49
|
+
D.panel === "find" || D.panel === "replace" ? N.value?.focus() : M.value?.querySelector("[data-authoring-panel] button")?.focus();
|
|
52
50
|
},
|
|
53
|
-
focusTrigger: (e) =>
|
|
54
|
-
}), (
|
|
51
|
+
focusTrigger: (e) => M.value?.querySelector(`[data-authoring-trigger="${e === "replace" ? "find" : e}"]`)?.focus()
|
|
52
|
+
}), (c, f) => (u(), r("div", {
|
|
55
53
|
ref_key: "barElement",
|
|
56
|
-
ref:
|
|
57
|
-
class:
|
|
58
|
-
}, [
|
|
59
|
-
|
|
60
|
-
default: v(() => [c(h(x), {
|
|
61
|
-
type: "text",
|
|
62
|
-
"data-authoring-trigger": "find",
|
|
63
|
-
"aria-label": "查找与替换",
|
|
64
|
-
"aria-expanded": l.panel === "find" || l.panel === "replace",
|
|
65
|
-
onClick: g[0] ||= (e) => U("find")
|
|
66
|
-
}, {
|
|
67
|
-
default: v(() => [c(h(E), { "aria-hidden": "true" }), l.compact ? i("", !0) : (f(), a("span", O, "查找 / 替换"))]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["aria-expanded"])]),
|
|
70
|
-
_: 1
|
|
71
|
-
}),
|
|
72
|
-
c(h(x), {
|
|
54
|
+
ref: M,
|
|
55
|
+
class: l(["gd-contract-template-designer__authoring-bar", { "is-compact": s.compact }])
|
|
56
|
+
}, [i("div", S, [o(d(v), { title: "查找与替换(Ctrl / ⌘ + F)" }, {
|
|
57
|
+
default: m(() => [o(d(_), {
|
|
73
58
|
type: "text",
|
|
74
|
-
"data-authoring-trigger": "
|
|
75
|
-
"aria-label": "
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
onClick: g[1] ||= (e) => U("snippets")
|
|
59
|
+
"data-authoring-trigger": "find",
|
|
60
|
+
"aria-label": "查找与替换",
|
|
61
|
+
"aria-expanded": s.panel === "find" || s.panel === "replace",
|
|
62
|
+
onClick: f[0] ||= (e) => P("find")
|
|
79
63
|
}, {
|
|
80
|
-
default:
|
|
64
|
+
default: m(() => [o(d(x), { "aria-hidden": "true" }), s.compact ? n("", !0) : (u(), r("span", C, "查找 / 替换"))]),
|
|
81
65
|
_: 1
|
|
82
|
-
}, 8, ["
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}, 8, ["aria-expanded"])]),
|
|
66
|
+
}, 8, ["aria-expanded"])]),
|
|
67
|
+
_: 1
|
|
68
|
+
}), o(d(v), { title: "编写快捷键(Ctrl / ⌘ + /)" }, {
|
|
69
|
+
default: m(() => [o(d(_), {
|
|
70
|
+
type: "text",
|
|
71
|
+
class: "gd-contract-template-designer__authoring-help-trigger",
|
|
72
|
+
"data-authoring-trigger": "help",
|
|
73
|
+
"aria-label": "编写快捷键",
|
|
74
|
+
"aria-expanded": s.panel === "help",
|
|
75
|
+
onClick: f[1] ||= (e) => P("help")
|
|
76
|
+
}, {
|
|
77
|
+
default: m(() => [o(d(b), { "aria-hidden": "true" }), s.compact ? n("", !0) : (u(), r("span", w, "快捷键"))]),
|
|
95
78
|
_: 1
|
|
96
|
-
})
|
|
97
|
-
|
|
79
|
+
}, 8, ["aria-expanded"])]),
|
|
80
|
+
_: 1
|
|
81
|
+
})]), s.panel === "find" || s.panel === "replace" ? (u(), t(e, {
|
|
98
82
|
key: 0,
|
|
99
83
|
ref_key: "findElement",
|
|
100
|
-
ref:
|
|
101
|
-
query:
|
|
102
|
-
"onUpdate:query":
|
|
103
|
-
replacement:
|
|
104
|
-
"onUpdate:replacement":
|
|
105
|
-
"match-case":
|
|
106
|
-
"onUpdate:matchCase":
|
|
107
|
-
readonly:
|
|
108
|
-
"replace-mode":
|
|
109
|
-
total:
|
|
110
|
-
"current-index":
|
|
111
|
-
"current-page":
|
|
112
|
-
feedback:
|
|
113
|
-
onNavigate:
|
|
114
|
-
onReplaceCurrent:
|
|
115
|
-
onReplaceAll:
|
|
116
|
-
onToggleReplace:
|
|
117
|
-
onClose:
|
|
84
|
+
ref: N,
|
|
85
|
+
query: O.value,
|
|
86
|
+
"onUpdate:query": f[2] ||= (e) => O.value = e,
|
|
87
|
+
replacement: k.value,
|
|
88
|
+
"onUpdate:replacement": f[3] ||= (e) => k.value = e,
|
|
89
|
+
"match-case": A.value,
|
|
90
|
+
"onUpdate:matchCase": f[4] ||= (e) => A.value = e,
|
|
91
|
+
readonly: s.readonly,
|
|
92
|
+
"replace-mode": s.panel === "replace",
|
|
93
|
+
total: s.total,
|
|
94
|
+
"current-index": s.currentIndex,
|
|
95
|
+
"current-page": s.currentPage,
|
|
96
|
+
feedback: s.feedback,
|
|
97
|
+
onNavigate: f[5] ||= (e) => j("navigate", e),
|
|
98
|
+
onReplaceCurrent: f[6] ||= (e) => j("replaceCurrent"),
|
|
99
|
+
onReplaceAll: f[7] ||= (e) => j("replaceAll"),
|
|
100
|
+
onToggleReplace: f[8] ||= (e) => j("open", s.panel === "replace" ? "find" : "replace"),
|
|
101
|
+
onClose: f[9] ||= (e) => j("close")
|
|
118
102
|
}, null, 8, [
|
|
119
103
|
"query",
|
|
120
104
|
"replacement",
|
|
@@ -125,44 +109,21 @@ var D = {
|
|
|
125
109
|
"current-index",
|
|
126
110
|
"current-page",
|
|
127
111
|
"feedback"
|
|
128
|
-
])) :
|
|
112
|
+
])) : s.panel === "help" ? (u(), r("section", {
|
|
129
113
|
key: 1,
|
|
130
114
|
"data-authoring-panel": "",
|
|
131
|
-
class: "gd-contract-template-designer__authoring-panel",
|
|
132
|
-
"aria-label": "条款骨架",
|
|
133
|
-
onKeydown: g[12] ||= y(b((e) => B("close"), ["stop", "prevent"]), ["esc"])
|
|
134
|
-
}, [
|
|
135
|
-
o("div", j, [g[15] ||= o("strong", null, "条款骨架(可选)", -1), c(h(x), {
|
|
136
|
-
type: "text",
|
|
137
|
-
"aria-label": "关闭条款骨架",
|
|
138
|
-
onClick: g[11] ||= (e) => B("close")
|
|
139
|
-
}, {
|
|
140
|
-
default: v(() => [c(h(C), { "aria-hidden": "true" })]),
|
|
141
|
-
_: 1
|
|
142
|
-
})]),
|
|
143
|
-
o("div", M, [(f(!0), a(n, null, p(h(e), (e) => (f(), a("button", {
|
|
144
|
-
key: e.key,
|
|
145
|
-
type: "button",
|
|
146
|
-
disabled: l.readonly,
|
|
147
|
-
class: "gd-contract-template-designer__snippet",
|
|
148
|
-
onClick: (t) => B("insertSnippet", e.key)
|
|
149
|
-
}, [o("strong", null, m(e.label), 1), o("span", null, m(e.description), 1)], 8, N))), 128))]),
|
|
150
|
-
g[16] ||= o("p", { class: "gd-contract-template-designer__authoring-note" }, "低频快捷入口:在当前光标 / 选区插入可编辑的标题与填写提示;不是完整合同范本,也不是法律意见。", -1)
|
|
151
|
-
], 32)) : l.panel === "help" ? (f(), a("section", {
|
|
152
|
-
key: 2,
|
|
153
|
-
"data-authoring-panel": "",
|
|
154
|
-
class: "gd-contract-template-designer__authoring-panel",
|
|
115
|
+
class: "gd-contract-template-designer__authoring-panel gd-contract-template-designer__shortcut-panel",
|
|
155
116
|
"aria-label": "编写快捷键帮助",
|
|
156
|
-
onKeydown:
|
|
157
|
-
}, [
|
|
117
|
+
onKeydown: f[11] ||= h(g((e) => j("close"), ["stop", "prevent"]), ["esc"])
|
|
118
|
+
}, [i("div", T, [f[12] ||= i("div", { class: "gd-contract-template-designer__shortcut-heading" }, [i("strong", null, "快捷键"), i("span", null, "仅在当前设计器内生效")], -1), o(d(_), {
|
|
158
119
|
type: "text",
|
|
159
120
|
"aria-label": "关闭快捷键帮助",
|
|
160
|
-
onClick:
|
|
121
|
+
onClick: f[10] ||= (e) => j("close")
|
|
161
122
|
}, {
|
|
162
|
-
default:
|
|
123
|
+
default: m(() => [o(d(y), { "aria-hidden": "true" })]),
|
|
163
124
|
_: 1
|
|
164
|
-
})]),
|
|
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));
|
|
165
126
|
}
|
|
166
127
|
});
|
|
167
128
|
//#endregion
|
|
168
|
-
export {
|
|
129
|
+
export { E as default };
|