@king-one/antdv 1.2.16 → 1.2.17
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 +6 -0
- package/dist/es/components/dept-selector/index.mjs +3 -2
- package/dist/es/components/dept-selector/src/dept.mjs +165 -159
- package/dist/es/components/dept-selector/src/types.mjs +31 -2
- package/dist/es/components/pro-selector/index.mjs +10 -7
- package/dist/es/components/pro-selector/src/components/org-tree.mjs +132 -129
- package/dist/es/components/pro-selector/src/pro-user.mjs +58 -77
- package/dist/es/components/pro-selector/src/types.mjs +42 -1
- package/dist/es/components/pro-sign/src/components/signature.vue.mjs +39 -36
- package/dist/es/components/pro-table/src/pro-table.vue2.mjs +91 -84
- package/dist/es/components/pro-table/utils.mjs +11 -10
- package/dist/es/components/role-selector/index.mjs +3 -2
- package/dist/es/components/role-selector/src/role.mjs +93 -80
- package/dist/es/components/role-selector/src/types.mjs +24 -3
- package/dist/es/index.mjs +80 -74
- package/dist/lib/components/dept-selector/index.js +1 -1
- package/dist/lib/components/dept-selector/src/dept.js +1 -1
- package/dist/lib/components/dept-selector/src/types.js +1 -1
- package/dist/lib/components/pro-selector/index.js +1 -1
- package/dist/lib/components/pro-selector/src/components/org-tree.js +1 -1
- package/dist/lib/components/pro-selector/src/pro-user.js +1 -1
- package/dist/lib/components/pro-selector/src/types.js +1 -1
- package/dist/lib/components/pro-sign/src/components/signature.vue.js +1 -1
- package/dist/lib/components/pro-table/src/pro-table.vue2.js +1 -1
- package/dist/lib/components/pro-table/utils.js +1 -1
- package/dist/lib/components/role-selector/index.js +1 -1
- package/dist/lib/components/role-selector/src/role.js +1 -1
- package/dist/lib/components/role-selector/src/types.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/types/components/dept-selector/index.d.ts +55 -6
- package/dist/types/components/dept-selector/src/dept.d.ts +54 -6
- package/dist/types/components/dept-selector/src/types.d.ts +34 -2
- package/dist/types/components/pro-selector/index.d.ts +62 -42
- package/dist/types/components/pro-selector/src/components/org-tree.d.ts +1 -19
- package/dist/types/components/pro-selector/src/pro-user.d.ts +62 -44
- package/dist/types/components/pro-selector/src/types.d.ts +46 -0
- package/dist/types/components/role-selector/index.d.ts +40 -0
- package/dist/types/components/role-selector/src/role.d.ts +20 -0
- package/dist/types/components/role-selector/src/types.d.ts +20 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { withInstall as t } from "../utils/install.mjs";
|
|
2
2
|
import e from "./src/dept.mjs";
|
|
3
3
|
import "./src/style/index.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { GET_DEPT_TREE_URL as s, deptSelectorEmits as E, deptSelectorProps as c } from "./src/types.mjs";
|
|
5
5
|
const m = t(e);
|
|
6
6
|
export {
|
|
7
|
+
s as GET_DEPT_TREE_URL,
|
|
7
8
|
m as KDeptSelector,
|
|
8
9
|
m as default,
|
|
9
|
-
|
|
10
|
+
E as deptSelectorEmits,
|
|
10
11
|
c as deptSelectorProps
|
|
11
12
|
};
|
|
@@ -1,238 +1,244 @@
|
|
|
1
|
-
import { defineComponent as H, ref as
|
|
1
|
+
import { defineComponent as H, ref as o, watch as k, createVNode as n, Fragment as J } from "vue";
|
|
2
2
|
import { useNamespace as Q } from "../../../hooks/use-namespace/index.mjs";
|
|
3
3
|
import "../../index.mjs";
|
|
4
|
-
import { InputSearch as W, Tree as X, Empty as
|
|
5
|
-
import {
|
|
6
|
-
import { KProModal as
|
|
7
|
-
import { KIcon as
|
|
8
|
-
const
|
|
4
|
+
import { InputSearch as W, Tree as X, Empty as C, Input as Y } from "ant-design-vue";
|
|
5
|
+
import { GET_DEPT_TREE_URL as Z, deptSelectorEmits as ee, deptSelectorProps as te } from "./types.mjs";
|
|
6
|
+
import { KProModal as le } from "../../pro-modal/index.mjs";
|
|
7
|
+
import { KIcon as P } from "../../icon/index.mjs";
|
|
8
|
+
const f = Q("dept-selector"), oe = /* @__PURE__ */ H({
|
|
9
9
|
name: "KDeptSelector",
|
|
10
|
-
props:
|
|
11
|
-
emits:
|
|
12
|
-
setup(
|
|
13
|
-
emit:
|
|
14
|
-
attrs:
|
|
15
|
-
slots:
|
|
10
|
+
props: te,
|
|
11
|
+
emits: ee,
|
|
12
|
+
setup(l, {
|
|
13
|
+
emit: m,
|
|
14
|
+
attrs: V,
|
|
15
|
+
slots: g
|
|
16
16
|
}) {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
const x = o(!0), N = o(!0), p = o([]), h = o([]), c = o([]), A = o(!1), d = o(l.isBuiltInRequest ? {
|
|
18
|
+
children: "children",
|
|
19
|
+
title: "deptName",
|
|
20
|
+
key: "id"
|
|
21
|
+
} : l.fieldNames), S = o(""), s = o([]), v = o(l.treeData), E = o(!1), y = o("");
|
|
22
|
+
if (l.isBuiltInRequest) {
|
|
23
|
+
if (!l.http)
|
|
24
|
+
throw new Error("请传入http实例");
|
|
25
|
+
l.http.get(`${l.prefix}${Z}`).then((e) => {
|
|
26
|
+
e.status === 0 && (v.value = e.data);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const I = () => {
|
|
30
|
+
if (l.type === "checkbox") {
|
|
31
|
+
if (!Array.isArray(l.modelValue)) return;
|
|
32
|
+
const e = l.modelValue.map((t) => t.value);
|
|
33
|
+
x.value ? c.value = {
|
|
26
34
|
checked: e,
|
|
27
35
|
halfChecked: []
|
|
28
|
-
} : c.value = e,
|
|
36
|
+
} : c.value = e, p.value = e;
|
|
29
37
|
} else {
|
|
30
|
-
if (Array.isArray(
|
|
31
|
-
const e =
|
|
32
|
-
h.value = [e],
|
|
38
|
+
if (Array.isArray(l.modelValue)) return;
|
|
39
|
+
const e = l.modelValue.value;
|
|
40
|
+
h.value = [e], p.value = [e];
|
|
33
41
|
}
|
|
34
42
|
}, w = () => {
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
u.type === "radio" ? E.value = o.value[0].label : E.value = o.value.map((e) => e.label).join(",");
|
|
43
|
+
if (E.value)
|
|
44
|
+
return E.value = !1;
|
|
45
|
+
l.type === "radio" ? s.value.length > 0 && (S.value = s.value[0][d.value.title] || "") : S.value = s.value.map((e) => e[d.value.title]).join(",");
|
|
40
46
|
};
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
k(() => l.visible, () => {
|
|
48
|
+
l.visible && I();
|
|
43
49
|
}, {
|
|
44
50
|
immediate: !0
|
|
45
|
-
}),
|
|
46
|
-
|
|
51
|
+
}), k(() => l.modelValue, () => {
|
|
52
|
+
v.value.length > 0 && I();
|
|
47
53
|
}, {
|
|
48
54
|
immediate: !0,
|
|
49
55
|
deep: !0
|
|
50
|
-
}),
|
|
51
|
-
|
|
56
|
+
}), k(v, () => {
|
|
57
|
+
v.value.length > 0 && I();
|
|
52
58
|
}, {
|
|
53
59
|
immediate: !0,
|
|
54
60
|
deep: !0
|
|
55
|
-
}),
|
|
56
|
-
|
|
61
|
+
}), k(c, () => {
|
|
62
|
+
l.type === "checkbox" && (x.value ? s.value = D(c.value.checked) : s.value = D(c.value), w());
|
|
57
63
|
}, {
|
|
58
64
|
immediate: !0,
|
|
59
65
|
deep: !0
|
|
60
|
-
}),
|
|
61
|
-
|
|
66
|
+
}), k(h, () => {
|
|
67
|
+
l.type === "radio" && (s.value = D(h.value), w());
|
|
62
68
|
}, {
|
|
63
69
|
immediate: !0,
|
|
64
70
|
deep: !0
|
|
65
|
-
}),
|
|
66
|
-
|
|
71
|
+
}), k(() => l.treeData, () => {
|
|
72
|
+
l.isBuiltInRequest || (v.value = l.treeData);
|
|
67
73
|
});
|
|
68
|
-
function
|
|
69
|
-
const
|
|
70
|
-
for (const
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
73
|
-
if (
|
|
74
|
-
const i =
|
|
74
|
+
function _(e) {
|
|
75
|
+
const t = (u, r) => {
|
|
76
|
+
for (const a of u) {
|
|
77
|
+
if (a.id === r)
|
|
78
|
+
return a;
|
|
79
|
+
if (a.children && a.children.length) {
|
|
80
|
+
const i = t(a.children, r);
|
|
75
81
|
if (i) return i;
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
return null;
|
|
79
85
|
};
|
|
80
|
-
return
|
|
86
|
+
return t(v.value, e);
|
|
81
87
|
}
|
|
82
88
|
function D(e) {
|
|
83
|
-
return e.map((
|
|
89
|
+
return e ? e.map((t) => _(t)).filter(Boolean) : [];
|
|
84
90
|
}
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
value: h.value[0],
|
|
94
|
-
|
|
95
|
-
}) :
|
|
96
|
-
value: e.
|
|
97
|
-
|
|
98
|
-
}))),
|
|
99
|
-
},
|
|
100
|
-
if (
|
|
101
|
-
return
|
|
102
|
-
if (
|
|
103
|
-
c.value.checked = c.value.checked.filter((
|
|
91
|
+
const R = () => {
|
|
92
|
+
E.value = !0;
|
|
93
|
+
}, O = () => {
|
|
94
|
+
E.value = !0;
|
|
95
|
+
}, B = () => {
|
|
96
|
+
m("update:visible", !1);
|
|
97
|
+
}, M = () => {
|
|
98
|
+
l.type === "radio" ? m("update:modelValue", {
|
|
99
|
+
[d.value.key]: h.value[0],
|
|
100
|
+
[d.value.title]: s.value[0][d.value.title]
|
|
101
|
+
}) : m("update:modelValue", s.value.map((e) => ({
|
|
102
|
+
[d.value.key]: e[d.value.key],
|
|
103
|
+
[d.value.title]: e[d.value.title]
|
|
104
|
+
}))), m("update:visible", !1), w();
|
|
105
|
+
}, L = (e) => {
|
|
106
|
+
if (E.value = !0, l.type === "radio")
|
|
107
|
+
return s.value = [], h.value = [], !1;
|
|
108
|
+
if (x.value)
|
|
109
|
+
c.value.checked = c.value.checked.filter((t) => t !== e.id);
|
|
104
110
|
else {
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
const i = c.value.indexOf(
|
|
111
|
+
const t = e.parentId, u = c.value.indexOf(t);
|
|
112
|
+
u !== -1 && c.value.splice(u, 1), c.value = c.value.filter((a) => a !== e.id), q(e.children).forEach((a) => {
|
|
113
|
+
const i = c.value.indexOf(a);
|
|
108
114
|
i !== -1 && c.value.splice(i, 1);
|
|
109
115
|
});
|
|
110
116
|
}
|
|
111
|
-
},
|
|
112
|
-
const
|
|
113
|
-
for (const
|
|
114
|
-
|
|
117
|
+
}, q = (e) => {
|
|
118
|
+
const t = [], u = (r) => {
|
|
119
|
+
for (const a of r)
|
|
120
|
+
t.push(a.id), a.children && a.children.length && u(a.children);
|
|
115
121
|
};
|
|
116
|
-
return
|
|
117
|
-
},
|
|
118
|
-
modelValue:
|
|
122
|
+
return u(e), t;
|
|
123
|
+
}, F = () => n(J, null, [n(le, {
|
|
124
|
+
modelValue: l.visible,
|
|
119
125
|
modalProps: {
|
|
120
126
|
cancelText: "取消",
|
|
121
127
|
okText: "确定",
|
|
122
128
|
width: "700px",
|
|
123
|
-
...
|
|
129
|
+
...V
|
|
124
130
|
},
|
|
125
131
|
title: "选择部门",
|
|
126
|
-
onOnCancel:
|
|
127
|
-
onOnConfirm:
|
|
132
|
+
onOnCancel: B,
|
|
133
|
+
onOnConfirm: M
|
|
128
134
|
}, {
|
|
129
|
-
default: () => [
|
|
130
|
-
class:
|
|
131
|
-
}, [
|
|
132
|
-
}, 8, ["modelValue", "modalProps", "onOnCancel", "onOnConfirm"])]),
|
|
133
|
-
let
|
|
134
|
-
for (let
|
|
135
|
-
const
|
|
136
|
-
|
|
135
|
+
default: () => [n("div", {
|
|
136
|
+
class: f.e("modal-content")
|
|
137
|
+
}, [$(), j()], 2)]
|
|
138
|
+
}, 8, ["modelValue", "modalProps", "onOnCancel", "onOnConfirm"])]), b = (e, t) => {
|
|
139
|
+
let u;
|
|
140
|
+
for (let r = 0; r < t.length; r++) {
|
|
141
|
+
const a = t[r];
|
|
142
|
+
a.children && (a.children.some((i) => i.id === e) ? u = a.id : b(e, a.children) && (u = b(e, a.children)));
|
|
137
143
|
}
|
|
138
|
-
return
|
|
139
|
-
},
|
|
144
|
+
return u;
|
|
145
|
+
}, z = (e) => {
|
|
140
146
|
if (!e.trim()) {
|
|
141
|
-
|
|
147
|
+
p.value = [], y.value = "", N.value = !0;
|
|
142
148
|
return;
|
|
143
149
|
}
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
var
|
|
147
|
-
if ((
|
|
148
|
-
let
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
const t = /* @__PURE__ */ new Set(), u = (r, a) => {
|
|
151
|
+
r.forEach((i) => {
|
|
152
|
+
var U;
|
|
153
|
+
if ((U = i[d.value.title]) != null && U.includes(a)) {
|
|
154
|
+
let K = b(i.id, v.value);
|
|
155
|
+
for (; K; )
|
|
156
|
+
t.add(K), K = b(K, v.value);
|
|
157
|
+
t.add(i.id);
|
|
152
158
|
}
|
|
153
|
-
i.children && i.children.length > 0 &&
|
|
159
|
+
i.children && i.children.length > 0 && u(i.children, a);
|
|
154
160
|
});
|
|
155
161
|
};
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
|
|
162
|
+
u(v.value, e), p.value = Array.from(t), y.value = e, N.value = !0;
|
|
163
|
+
}, G = (e) => {
|
|
164
|
+
const t = e[d.value.title] || "";
|
|
165
|
+
if (!y.value)
|
|
166
|
+
return n("span", null, [t]);
|
|
167
|
+
const u = t.indexOf(y.value);
|
|
168
|
+
if (u === -1)
|
|
169
|
+
return n("span", null, [t]);
|
|
170
|
+
const r = t.substring(0, u), a = t.substring(u, u + y.value.length), i = t.substring(u + y.value.length);
|
|
171
|
+
return n("span", null, [r, n("span", {
|
|
172
|
+
style: "color: #f50; font-weight: bold"
|
|
173
|
+
}, [a]), i]);
|
|
174
|
+
}, $ = () => n("div", {
|
|
175
|
+
class: f.e("modal-content-left")
|
|
176
|
+
}, [n(W, {
|
|
160
177
|
placeholder: "请输入部门名称",
|
|
161
|
-
onSearch:
|
|
178
|
+
onSearch: z,
|
|
162
179
|
style: {
|
|
163
180
|
marginBottom: "10px"
|
|
164
181
|
},
|
|
165
182
|
allowClear: !0
|
|
166
|
-
}, null, 8, ["onSearch", "allowClear"]),
|
|
167
|
-
expandedKeys:
|
|
168
|
-
"onUpdate:expandedKeys": (e) =>
|
|
183
|
+
}, null, 8, ["onSearch", "allowClear"]), v.value.length > 0 ? n(X, {
|
|
184
|
+
expandedKeys: p.value,
|
|
185
|
+
"onUpdate:expandedKeys": (e) => p.value = e,
|
|
169
186
|
selectedKeys: h.value,
|
|
170
187
|
"onUpdate:selectedKeys": (e) => h.value = e,
|
|
171
188
|
checkedKeys: c.value,
|
|
172
189
|
"onUpdate:checkedKeys": (e) => c.value = e,
|
|
173
|
-
checkable:
|
|
174
|
-
checkStrictly:
|
|
190
|
+
checkable: l.type === "checkbox",
|
|
191
|
+
checkStrictly: x.value,
|
|
175
192
|
"show-icon": !0,
|
|
176
|
-
autoExpandParent:
|
|
193
|
+
autoExpandParent: N.value,
|
|
177
194
|
blockNode: !0,
|
|
178
195
|
defaultExpandAll: !0,
|
|
179
|
-
fieldNames:
|
|
180
|
-
"show-line":
|
|
181
|
-
"tree-data":
|
|
182
|
-
onCheck:
|
|
183
|
-
onSelect:
|
|
184
|
-
class:
|
|
196
|
+
fieldNames: d.value,
|
|
197
|
+
"show-line": A.value,
|
|
198
|
+
"tree-data": v.value,
|
|
199
|
+
onCheck: R,
|
|
200
|
+
onSelect: O,
|
|
201
|
+
class: f.e("modal-content-left-tree")
|
|
185
202
|
}, {
|
|
186
|
-
icon: (e) =>
|
|
187
|
-
title:
|
|
188
|
-
const l = e.label || "";
|
|
189
|
-
if (!p.value)
|
|
190
|
-
return a("span", null, [l]);
|
|
191
|
-
const n = l.indexOf(p.value);
|
|
192
|
-
if (n === -1)
|
|
193
|
-
return a("span", null, [l]);
|
|
194
|
-
const d = l.substring(0, n), t = l.substring(n, n + p.value.length), i = l.substring(n + p.value.length);
|
|
195
|
-
return a("span", null, [d, a("span", {
|
|
196
|
-
style: "color: #f50; font-weight: bold"
|
|
197
|
-
}, [t]), i]);
|
|
198
|
-
},
|
|
203
|
+
icon: (e) => T(e),
|
|
204
|
+
title: G,
|
|
199
205
|
_: 1
|
|
200
|
-
}, 8, ["expandedKeys", "onUpdate:expandedKeys", "selectedKeys", "onUpdate:selectedKeys", "checkedKeys", "onUpdate:checkedKeys", "checkable", "checkStrictly", "show-icon", "autoExpandParent", "blockNode", "defaultExpandAll", "fieldNames", "show-line", "tree-data", "onCheck", "onSelect", "class"]) :
|
|
206
|
+
}, 8, ["expandedKeys", "onUpdate:expandedKeys", "selectedKeys", "onUpdate:selectedKeys", "checkedKeys", "onUpdate:checkedKeys", "checkable", "checkStrictly", "show-icon", "autoExpandParent", "blockNode", "defaultExpandAll", "fieldNames", "show-line", "tree-data", "onCheck", "onSelect", "class"]) : n(C, {
|
|
201
207
|
description: "暂无数据",
|
|
202
|
-
image:
|
|
203
|
-
}, null, 8, ["image"])], 2),
|
|
208
|
+
image: C.PRESENTED_IMAGE_SIMPLE
|
|
209
|
+
}, null, 8, ["image"])], 2), T = (e) => n(P, {
|
|
204
210
|
name: e.parentId === "0" ? "qiye" : "bumen",
|
|
205
211
|
size: 16
|
|
206
|
-
}, null, 8, ["name"]),
|
|
207
|
-
class:
|
|
208
|
-
}, [
|
|
209
|
-
class:
|
|
210
|
-
}, [
|
|
211
|
-
class:
|
|
212
|
-
}, [
|
|
213
|
-
class:
|
|
214
|
-
onClick: () =>
|
|
215
|
-
}, [
|
|
212
|
+
}, null, 8, ["name"]), j = () => n("div", {
|
|
213
|
+
class: f.e("modal-content-right")
|
|
214
|
+
}, [s.value.length > 0 ? s.value.map((e) => n("div", {
|
|
215
|
+
class: f.e("modal-content-right-item")
|
|
216
|
+
}, [n("div", {
|
|
217
|
+
class: f.e("modal-content-right-item-label")
|
|
218
|
+
}, [T(e), n("span", null, [e[d.value.title]])], 2), n("div", {
|
|
219
|
+
class: f.e("modal-content-right-item-del"),
|
|
220
|
+
onClick: () => L(e)
|
|
221
|
+
}, [n(P, {
|
|
216
222
|
name: "shanchu",
|
|
217
223
|
size: 16
|
|
218
|
-
}, null)], 10, ["onClick"])], 2)) :
|
|
224
|
+
}, null)], 10, ["onClick"])], 2)) : n(C, {
|
|
219
225
|
description: "暂无数据",
|
|
220
|
-
image:
|
|
226
|
+
image: C.PRESENTED_IMAGE_SIMPLE
|
|
221
227
|
}, null, 8, ["image"])], 2);
|
|
222
228
|
return () => {
|
|
223
229
|
var e;
|
|
224
|
-
return
|
|
225
|
-
class:
|
|
226
|
-
}, [(e =
|
|
230
|
+
return n("div", {
|
|
231
|
+
class: f.b()
|
|
232
|
+
}, [(e = g.default) != null && e.call(g) ? g.default() : n("div", null, [n(Y, {
|
|
227
233
|
style: "width: 100%;",
|
|
228
234
|
readonly: !0,
|
|
229
|
-
value:
|
|
230
|
-
"onUpdate:value": (
|
|
231
|
-
onClick: () =>
|
|
235
|
+
value: S.value,
|
|
236
|
+
"onUpdate:value": (t) => S.value = t,
|
|
237
|
+
onClick: () => m("update:visible", !0)
|
|
232
238
|
}, {
|
|
233
|
-
suffix: () =>
|
|
234
|
-
onClick: () =>
|
|
235
|
-
}, [
|
|
239
|
+
suffix: () => n("div", {
|
|
240
|
+
onClick: () => m("update:visible", !0)
|
|
241
|
+
}, [n(P, {
|
|
236
242
|
style: {
|
|
237
243
|
cursor: "pointer"
|
|
238
244
|
},
|
|
@@ -241,10 +247,10 @@ const v = Q("dept-selector"), de = /* @__PURE__ */ H({
|
|
|
241
247
|
color: "#606266"
|
|
242
248
|
}, null)], 8, ["onClick"]),
|
|
243
249
|
_: 1
|
|
244
|
-
}, 8, ["readonly", "value", "onUpdate:value", "onClick"])]),
|
|
250
|
+
}, 8, ["readonly", "value", "onUpdate:value", "onClick"])]), F()], 2);
|
|
245
251
|
};
|
|
246
252
|
}
|
|
247
253
|
});
|
|
248
254
|
export {
|
|
249
|
-
|
|
255
|
+
oe as default
|
|
250
256
|
};
|
|
@@ -11,12 +11,41 @@ const t = {
|
|
|
11
11
|
treeData: {
|
|
12
12
|
type: Array,
|
|
13
13
|
default: () => []
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
},
|
|
15
|
+
fieldNames: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({
|
|
18
|
+
title: "label",
|
|
19
|
+
key: "id",
|
|
20
|
+
children: "children"
|
|
21
|
+
})
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* 是否使用内置请求,内置请求会走用户中心即
|
|
25
|
+
* ${prefix}security/company/role/page?pageNum=1&pageSize=1000
|
|
26
|
+
*/
|
|
27
|
+
isBuiltInRequest: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* axios 实例
|
|
33
|
+
*/
|
|
34
|
+
http: {
|
|
35
|
+
type: [Object, Function],
|
|
36
|
+
default: () => {
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* 请求前缀,如 qy-user-service
|
|
41
|
+
*/
|
|
42
|
+
prefix: String
|
|
43
|
+
}, l = "/security/dept/company/tree", a = {
|
|
16
44
|
"update:visible": (e) => !0,
|
|
17
45
|
"update:modelValue": (e) => !0
|
|
18
46
|
};
|
|
19
47
|
export {
|
|
48
|
+
l as GET_DEPT_TREE_URL,
|
|
20
49
|
a as deptSelectorEmits,
|
|
21
50
|
t as deptSelectorProps
|
|
22
51
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import
|
|
1
|
+
import { withInstall as r } from "../utils/install.mjs";
|
|
2
|
+
import e from "./src/pro-user.mjs";
|
|
3
3
|
import "./style/index.mjs";
|
|
4
|
-
import "./src/types.mjs";
|
|
4
|
+
import { GTE_ORGTREE_URL as l, UserSelectorProps as E, selectUserContextKey as R } from "./src/types.mjs";
|
|
5
5
|
import "./src/hooks/index.mjs";
|
|
6
|
-
|
|
7
|
-
const
|
|
6
|
+
e.GTE_ORGTREE_URL = "/security/dept/user/tree";
|
|
7
|
+
const m = r(e);
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
l as GTE_ORGTREE_URL,
|
|
10
|
+
m as KUserSelector,
|
|
11
|
+
e as ProUserSelector,
|
|
12
|
+
E as UserSelectorProps,
|
|
13
|
+
R as selectUserContextKey
|
|
11
14
|
};
|