@guodun/antdv 1.7.1 → 1.7.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.
- package/CHANGELOG.md +8 -0
- package/dist/es/components/contract-signing-location/style/index.css +1 -1
- package/dist/es/components/dept-selector/src/DeptSelector.vue.mjs +1 -0
- package/dist/es/components/pro-contract-signing-flow/style/index.css +1 -1
- package/dist/es/components/pro-contract-template-agent/style/index.css +1 -1
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/components/pro-selector/src/ProUserSelector.vue.mjs +1 -0
- package/dist/es/components/pro-selector-group/src/index.vue.mjs +1 -0
- package/dist/es/components/pro-table/src/form-render.vue.mjs +1 -0
- package/dist/es/components/pro-table/src/pro-table.vue.mjs +23 -29
- package/dist/es/components/role-selector/src/RoleSelector.vue.mjs +1 -0
- package/dist/es/components/selector-core/components/DepartmentTree.vue.mjs +12 -10
- package/dist/es/components/selector-core/components/SelectionSummary.vue.mjs +1 -0
- package/dist/es/components/selector-core/components/SelectorDialog.vue.mjs +175 -171
- package/dist/lib/components/contract-signing-location/style/index.css +1 -1
- package/dist/lib/components/dept-selector/src/DeptSelector.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-signing-flow/style/index.css +1 -1
- package/dist/lib/components/pro-contract-template-agent/style/index.css +1 -1
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/components/pro-selector/src/ProUserSelector.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/index.vue.cjs +1 -1
- package/dist/lib/components/pro-table/src/form-render.vue.cjs +1 -1
- package/dist/lib/components/pro-table/src/pro-table.vue.cjs +1 -1
- package/dist/lib/components/role-selector/src/RoleSelector.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/DepartmentTree.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/SelectionSummary.vue.cjs +1 -1
- package/dist/lib/components/selector-core/components/SelectorDialog.vue.cjs +1 -1
- package/dist/theme/base.css +1 -1
- package/dist/theme/contract-signing-location.css +1 -1
- package/dist/theme/controls.css +1 -1
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/theme/pro-contract-signing-flow.css +1 -1
- package/dist/theme/pro-drawer.css +1 -1
- package/dist/theme/pro-modal.css +1 -1
- package/dist/theme/pro-table.css +1 -1
- package/dist/theme/selector-core.css +1 -1
- package/dist/theme/var.css +1 -1
- package/package.json +5 -5
|
@@ -8,6 +8,7 @@ import { FormItemRest as y } from "ant-design-vue";
|
|
|
8
8
|
//#region src/components/pro-selector/src/ProUserSelector.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var b = /* @__PURE__ */ f({
|
|
10
10
|
name: "ProUserSelector",
|
|
11
|
+
inheritAttrs: !1,
|
|
11
12
|
__name: "ProUserSelector",
|
|
12
13
|
props: a,
|
|
13
14
|
emits: o,
|
|
@@ -8,6 +8,7 @@ import { FormItemRest as S } from "ant-design-vue";
|
|
|
8
8
|
//#region src/components/pro-selector-group/src/index.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var C = /* @__PURE__ */ p({
|
|
10
10
|
name: "ProSelectorGroup",
|
|
11
|
+
inheritAttrs: !1,
|
|
11
12
|
__name: "index",
|
|
12
13
|
props: /* @__PURE__ */ m({
|
|
13
14
|
title: { default: "选择器" },
|
|
@@ -4,10 +4,10 @@ import { ANTD_SLOT_NAMES as n, TABLE_CONTEXT_PROVIDE_KEY as r } from "./constant
|
|
|
4
4
|
import i from "./form-render.mjs";
|
|
5
5
|
import { useForm as a } from "./hooks/use-form.mjs";
|
|
6
6
|
import { useTable as o } from "./hooks/use-table.mjs";
|
|
7
|
-
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, defineComponent as g, mergeProps as _,
|
|
8
|
-
import { Card as
|
|
7
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, defineComponent as g, mergeProps as _, normalizeClass as v, normalizeProps as y, openBlock as b, provide as x, reactive as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as D, unref as O, useSlots as k, watch as A, withCtx as j } from "vue";
|
|
8
|
+
import { Card as M, Pagination as ee, Table as N } from "ant-design-vue";
|
|
9
9
|
//#region src/components/pro-table/src/pro-table.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
10
|
+
var P = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "pro-table-form"
|
|
13
13
|
}, F = {
|
|
@@ -41,7 +41,7 @@ var N = { class: "pro-table" }, P = {
|
|
|
41
41
|
density: { default: "default" }
|
|
42
42
|
},
|
|
43
43
|
setup(g, { expose: R }) {
|
|
44
|
-
let z = g, B =
|
|
44
|
+
let z = g, B = k(), { columns: V } = z, H = c(() => {
|
|
45
45
|
switch (z.density) {
|
|
46
46
|
case "compact": return "small";
|
|
47
47
|
case "loose": return "large";
|
|
@@ -50,23 +50,23 @@ var N = { class: "pro-table" }, P = {
|
|
|
50
50
|
}), U = c(() => ({
|
|
51
51
|
...z.antdTableProps,
|
|
52
52
|
size: z.antdTableProps?.size ?? H.value
|
|
53
|
-
})), W =
|
|
53
|
+
})), W = C(), G = C(!1), K = S({
|
|
54
54
|
pageSize: z.pageSize,
|
|
55
55
|
pageNum: 1,
|
|
56
56
|
total: 0
|
|
57
|
-
}), q =
|
|
57
|
+
}), q = C([]), { formState: J, genFormState: Y } = a(z), { filteredColumns: X, handleRequest: Z, getLabelByValue: Q, hasCurrentColBodySlot: te, bodyCellProps: $ } = o(z, B, {
|
|
58
58
|
loading: G,
|
|
59
59
|
pageData: K,
|
|
60
60
|
formState: J,
|
|
61
61
|
dataSource: q
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
A(() => V, () => {
|
|
64
64
|
Y();
|
|
65
65
|
}, {
|
|
66
66
|
immediate: !0,
|
|
67
67
|
deep: !0
|
|
68
|
-
}),
|
|
69
|
-
...
|
|
68
|
+
}), x(r, S({
|
|
69
|
+
...D(z),
|
|
70
70
|
tableSlots: B,
|
|
71
71
|
formState: J,
|
|
72
72
|
loading: G,
|
|
@@ -85,42 +85,36 @@ var N = { class: "pro-table" }, P = {
|
|
|
85
85
|
setFormField: (e, t) => {
|
|
86
86
|
V.find((t) => t.dataIndex === e && !t.hideInForm) ? J.value[e] = t : console.warn(`Field '${e}' is not available for form setting. It must exist in columns and have hideInForm set to false.`);
|
|
87
87
|
}
|
|
88
|
-
}), (r, a) => (
|
|
88
|
+
}), (r, a) => (b(), d("div", { class: v(["pro-table", `pro-table--${g.density}`]) }, [g.hideForm ? u("", !0) : (b(), d("div", P, [h(i, {
|
|
89
89
|
ref_key: "formRenderRef",
|
|
90
90
|
ref: W
|
|
91
|
-
}, null, 512)])), h(
|
|
91
|
+
}, null, 512)])), h(O(M), {
|
|
92
92
|
class: "pro-table-table",
|
|
93
|
-
"head-style": {
|
|
94
|
-
borderBottom: "none",
|
|
95
|
-
paddingLeft: "16px",
|
|
96
|
-
paddingRight: "16px"
|
|
97
|
-
},
|
|
98
|
-
"body-style": { padding: 0 },
|
|
99
93
|
bordered: !1,
|
|
100
94
|
shadow: "none!"
|
|
101
95
|
}, p({
|
|
102
|
-
extra:
|
|
103
|
-
default:
|
|
96
|
+
extra: j(() => [B.toolbar || z.toolbarRender ? (b(), d("div", F, [B.toolbar ? (b(), d("div", I, [T(r.$slots, "toolbar")])) : (b(), l(z.toolbarRender, { key: 1 }))])) : u("", !0)]),
|
|
97
|
+
default: j(() => [h(O(N), _(U.value, {
|
|
104
98
|
"data-source": q.value,
|
|
105
|
-
columns:
|
|
99
|
+
columns: O(X),
|
|
106
100
|
pagination: !1,
|
|
107
101
|
loading: G.value
|
|
108
102
|
}), p({ _: 2 }, [B.emptyText ? void 0 : {
|
|
109
103
|
name: "emptyText",
|
|
110
|
-
fn:
|
|
104
|
+
fn: j(() => [a[2] ||= f("div", { class: "pro-table-empty" }, [f("p", null, "暂无数据")], -1)]),
|
|
111
105
|
key: "0"
|
|
112
|
-
},
|
|
106
|
+
}, w(B, (e, i) => ({
|
|
113
107
|
name: i,
|
|
114
|
-
fn:
|
|
108
|
+
fn: j((e) => [String(i) === "bodyCell" ? (b(), d(s, { key: 0 }, [O(te)(e) ? T(r.$slots, "bodyCell", y(_({ key: 0 }, O($)(e)))) : e.column.customRender ? (b(), l(O(t), {
|
|
115
109
|
key: 1,
|
|
116
110
|
fn: e.column.customRender,
|
|
117
|
-
scope:
|
|
118
|
-
}, null, 8, ["fn", "scope"])) : e.column.valueType === "select" || e.column.valueEnum ? (
|
|
111
|
+
scope: O($)(e)
|
|
112
|
+
}, null, 8, ["fn", "scope"])) : e.column.valueType === "select" || e.column.valueEnum ? (b(), d(s, { key: 2 }, [m(E(O(Q)(e.text, e.column)), 1)], 64)) : u("", !0)], 64)) : O(n).includes(i) ? T(r.$slots, i, y(_({ key: 1 }, e))) : u("", !0)])
|
|
119
113
|
}))]), 1040, [
|
|
120
114
|
"data-source",
|
|
121
115
|
"columns",
|
|
122
116
|
"loading"
|
|
123
|
-
]), g.hidePage ? u("", !0) : (
|
|
117
|
+
]), g.hidePage ? u("", !0) : (b(), d("div", L, [h(O(ee), {
|
|
124
118
|
current: K.pageNum,
|
|
125
119
|
"onUpdate:current": a[0] ||= (e) => K.pageNum = e,
|
|
126
120
|
"page-size": K.pageSize,
|
|
@@ -140,7 +134,7 @@ var N = { class: "pro-table" }, P = {
|
|
|
140
134
|
"100"
|
|
141
135
|
],
|
|
142
136
|
"show-total": g.pageShowTotal ? (e) => `共 ${e} 条` : void 0,
|
|
143
|
-
onChange:
|
|
137
|
+
onChange: O(Z)
|
|
144
138
|
}, null, 8, [
|
|
145
139
|
"current",
|
|
146
140
|
"page-size",
|
|
@@ -151,12 +145,12 @@ var N = { class: "pro-table" }, P = {
|
|
|
151
145
|
_: 2
|
|
152
146
|
}, [g.headerTitle ? {
|
|
153
147
|
name: "title",
|
|
154
|
-
fn:
|
|
148
|
+
fn: j(() => [h(O(e), {
|
|
155
149
|
title: g.headerTitle,
|
|
156
150
|
size: 16
|
|
157
151
|
}, null, 8, ["title"])]),
|
|
158
152
|
key: "0"
|
|
159
|
-
} : void 0]), 1024)]));
|
|
153
|
+
} : void 0]), 1024)], 2));
|
|
160
154
|
}
|
|
161
155
|
});
|
|
162
156
|
//#endregion
|
|
@@ -8,6 +8,7 @@ import { FormItemRest as y } from "ant-design-vue";
|
|
|
8
8
|
//#region src/components/role-selector/src/RoleSelector.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var b = /* @__PURE__ */ f({
|
|
10
10
|
name: "KRoleSelector",
|
|
11
|
+
inheritAttrs: !1,
|
|
11
12
|
__name: "RoleSelector",
|
|
12
13
|
props: o,
|
|
13
14
|
emits: a,
|
|
@@ -46,8 +46,8 @@ var y = ["aria-label"], b = { class: "gd-ant-selector__pane-heading" }, x = { cl
|
|
|
46
46
|
m(k, (e, n) => {
|
|
47
47
|
e && !n && (j.value = [...A.value]), A.value = e ? t(N.value).map((e) => e.key) : j.value;
|
|
48
48
|
});
|
|
49
|
-
let P = i(() => D.selected.filter((e) => e.type === "dept").map((e) => e.value));
|
|
50
|
-
function
|
|
49
|
+
let P = i(() => D.selected.filter((e) => e.type === "dept").map((e) => e.value)), F = i(() => D.navigation ? D.active ? [D.active] : [] : P.value);
|
|
50
|
+
function I(e) {
|
|
51
51
|
if (D.navigation) {
|
|
52
52
|
O("navigate", e);
|
|
53
53
|
return;
|
|
@@ -55,12 +55,12 @@ var y = ["aria-label"], b = { class: "gd-ant-selector__pane-heading" }, x = { cl
|
|
|
55
55
|
let n = t(D.nodes).find((t) => t.key === e);
|
|
56
56
|
n && O("toggle", n.entity);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function L(e, t) {
|
|
59
59
|
let n = t.nativeEvent?.target;
|
|
60
|
-
!D.navigation && !D.radio && n?.closest?.(".ant-tree-checkbox") ||
|
|
60
|
+
!D.navigation && !D.radio && n?.closest?.(".ant-tree-checkbox") || I(String(t.node.key));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
!D.navigation && !D.radio &&
|
|
62
|
+
function R(e, t) {
|
|
63
|
+
!D.navigation && !D.radio && I(String(t.node.key));
|
|
64
64
|
}
|
|
65
65
|
return (i, d) => (u(), o("section", {
|
|
66
66
|
class: "gd-ant-selector__tree-pane",
|
|
@@ -93,15 +93,16 @@ var y = ["aria-label"], b = { class: "gd-ant-selector__pane-heading" }, x = { cl
|
|
|
93
93
|
default: h(() => [s("div", S, [c(p(v), {
|
|
94
94
|
"tree-data": N.value,
|
|
95
95
|
"block-node": "",
|
|
96
|
+
multiple: !l.navigation && !l.radio,
|
|
96
97
|
checkable: !l.navigation && !l.radio,
|
|
97
98
|
"check-strictly": "",
|
|
98
99
|
"checked-keys": P.value,
|
|
99
|
-
"selected-keys":
|
|
100
|
+
"selected-keys": F.value,
|
|
100
101
|
"expanded-keys": A.value,
|
|
101
102
|
"auto-expand-parent": !1,
|
|
102
103
|
onExpand: d[2] ||= (e) => A.value = e.map(String),
|
|
103
|
-
onSelect:
|
|
104
|
-
onCheck:
|
|
104
|
+
onSelect: L,
|
|
105
|
+
onCheck: R
|
|
105
106
|
}, {
|
|
106
107
|
title: h(({ title: t, key: r }) => [s("span", {
|
|
107
108
|
class: "gd-ant-selector__tree-title",
|
|
@@ -112,7 +113,7 @@ var y = ["aria-label"], b = { class: "gd-ant-selector__pane-heading" }, x = { cl
|
|
|
112
113
|
type: "radio",
|
|
113
114
|
checked: P.value.includes(String(r)),
|
|
114
115
|
"aria-label": `选择${t}`,
|
|
115
|
-
onClick: g((e) =>
|
|
116
|
+
onClick: g((e) => I(String(r)), ["stop"]),
|
|
116
117
|
onKeydown: d[1] ||= g(() => {}, ["stop"])
|
|
117
118
|
}, null, 40, w)) : a("", !0),
|
|
118
119
|
c(e, {
|
|
@@ -128,6 +129,7 @@ var y = ["aria-label"], b = { class: "gd-ant-selector__pane-heading" }, x = { cl
|
|
|
128
129
|
_: 1
|
|
129
130
|
}, 8, [
|
|
130
131
|
"tree-data",
|
|
132
|
+
"multiple",
|
|
131
133
|
"checkable",
|
|
132
134
|
"checked-keys",
|
|
133
135
|
"selected-keys",
|