@guodun/antdv 1.7.5 → 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.
@@ -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, openBlock as l, renderSlot as u, toDisplayString as d, unref as f, withCtx as p } from "vue";
3
- import { Button as m, Tooltip as h } from "ant-design-vue";
4
- import { AuditOutlined as g, MenuFoldOutlined as _, MenuUnfoldOutlined as v, SendOutlined as y, UndoOutlined as b } from "@ant-design/icons-vue";
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 x = { class: "gd-contract-template-renderer__header" }, S = { class: "gd-contract-template-renderer__title" }, C = { class: "gd-contract-template-renderer__header-meta" }, w = { class: "gd-contract-template-renderer__header-actions" }, T = /* @__PURE__ */ s({
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: T }) {
64
- let E = T;
65
- return (T, D) => (l(), r("header", x, [
66
- i("div", S, [
67
- D[9] ||= i("span", {
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", C, [i("strong", null, d(s.title), 1), i("span", null, d(s.filledCount) + " / " + d(s.totalCount) + " 已填写", 1)]),
72
- i("span", { class: c(["gd-contract-template-renderer__progress-pill", { "is-warning": s.requiredMissingCount > 0 }]) }, d(s.requiredMissingCount > 0 ? `${s.requiredMissingCount} 项必填未完成` : "必填项已完成"), 3)
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 ? (l(), t(e, {
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: D[0] ||= (e) => E("zoomIn"),
82
- onZoomOut: D[1] ||= (e) => E("zoomOut"),
83
- onResetZoom: D[2] ||= (e) => E("resetZoom"),
84
- onFitWidth: D[3] ||= (e) => E("fitWidth"),
85
- onSelectPage: D[4] ||= (e) => E("selectPage", e)
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", w, [
94
- s.showPanelToggle ? (l(), t(f(h), {
101
+ i("div", E, [
102
+ s.showPanelToggle ? (u(), t(p(g), {
95
103
  key: 0,
96
104
  title: s.panelCollapsed ? "展开填写面板" : "收起填写面板"
97
105
  }, {
98
- default: p(() => [o(f(m), {
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: D[5] ||= (e) => E("togglePanel")
111
+ onClick: k[5] ||= (e) => O("togglePanel")
104
112
  }, {
105
- default: p(() => [s.panelCollapsed ? (l(), t(f(v), {
113
+ default: m(() => [s.panelCollapsed ? (u(), t(p(y), {
106
114
  key: 0,
107
115
  "aria-hidden": "true"
108
- })) : (l(), t(f(_), {
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
- u(T.$slots, "extra"),
117
- s.showValidateButton ? (l(), t(f(h), {
124
+ d(D.$slots, "extra"),
125
+ s.showValidateButton ? (u(), t(p(g), {
118
126
  key: 1,
119
127
  title: "校验"
120
128
  }, {
121
- default: p(() => [o(f(m), {
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: D[6] ||= (e) => E("validate")
134
+ onClick: k[6] ||= (e) => O("validate")
127
135
  }, {
128
- default: p(() => [o(f(g), { "aria-hidden": "true" })]),
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 ? (l(), t(f(h), {
141
+ s.showResetButton ? (u(), t(p(g), {
134
142
  key: 2,
135
143
  title: "重置默认值"
136
144
  }, {
137
- default: p(() => [o(f(m), {
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: D[7] ||= (e) => E("reset")
150
+ onClick: k[7] ||= (e) => O("reset")
143
151
  }, {
144
- default: p(() => [o(f(b), { "aria-hidden": "true" })]),
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 ? (l(), t(f(m), {
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: D[8] ||= (e) => E("submit")
162
+ onClick: k[8] ||= (e) => O("submit")
155
163
  }, {
156
- icon: p(() => [o(f(y), { "aria-hidden": "true" })]),
157
- default: p(() => [D[10] ||= a(" 提交填写数据 ", -1)]),
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 { T as default };
173
+ export { D as default };