@king-one/antdv 1.2.15 → 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 +12 -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/pro-user-avatar/src/index.vue2.mjs +81 -80
- package/dist/es/components/pro-user-avatar/src/load-error.png.mjs +4 -0
- 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/pro-user-avatar/src/index.vue2.js +1 -3
- package/dist/lib/components/pro-user-avatar/src/load-error.png.js +1 -0
- 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/fonts/iconfont.ttf +0 -0
- package/dist/theme-chalk/fonts/iconfont.woff +0 -0
- package/dist/theme-chalk/fonts/iconfont.woff2 +0 -0
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/pro-user-avatar.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/pro-user-avatar/index.d.ts +0 -4
- package/dist/types/components/pro-user-avatar/src/types.d.ts +29 -3
- 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/global.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { withInstall as o } from "../utils/install.mjs";
|
|
2
2
|
import e from "./src/role.mjs";
|
|
3
3
|
import "./src/style/index.mjs";
|
|
4
|
-
import { roleSelectorEmits as i, roleSelectorProps as
|
|
4
|
+
import { GTE_OPTIONS_URL as S, roleSelectorEmits as i, roleSelectorProps as f } from "./src/types.mjs";
|
|
5
5
|
const c = o(e), m = o(e);
|
|
6
6
|
export {
|
|
7
|
+
S as GTE_OPTIONS_URL,
|
|
7
8
|
m as KProRoleSelector,
|
|
8
9
|
c as KRoleSelector,
|
|
9
10
|
c as default,
|
|
10
11
|
i as roleSelectorEmits,
|
|
11
|
-
|
|
12
|
+
f as roleSelectorProps
|
|
12
13
|
};
|
|
@@ -1,165 +1,178 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { isVNode as P, defineComponent as x, ref as d, watch as f, createVNode as l } from "vue";
|
|
2
|
+
import { useNamespace as O } from "../../../hooks/use-namespace/index.mjs";
|
|
3
3
|
import "../../index.mjs";
|
|
4
|
-
import { InputSearch as
|
|
5
|
-
import {
|
|
4
|
+
import { InputSearch as j, Empty as m, RadioGroup as D, Radio as M, CheckboxGroup as T, Checkbox as G, Input as L } from "ant-design-vue";
|
|
5
|
+
import { GTE_OPTIONS_URL as z, roleSelectorEmits as B, roleSelectorProps as F } from "./types.mjs";
|
|
6
6
|
import { KIcon as h } from "../../icon/index.mjs";
|
|
7
7
|
import { KProModal as K } from "../../pro-modal/index.mjs";
|
|
8
|
-
function
|
|
9
|
-
return typeof
|
|
8
|
+
function R(u) {
|
|
9
|
+
return typeof u == "function" || Object.prototype.toString.call(u) === "[object Object]" && !P(u);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const i = O("role-selector"), Y = /* @__PURE__ */ x({
|
|
12
12
|
name: "KRoleSelector",
|
|
13
13
|
props: F,
|
|
14
|
-
emits:
|
|
15
|
-
setup(
|
|
14
|
+
emits: B,
|
|
15
|
+
setup(u, {
|
|
16
16
|
emit: s,
|
|
17
|
-
attrs:
|
|
18
|
-
slots:
|
|
17
|
+
attrs: g,
|
|
18
|
+
slots: b
|
|
19
19
|
}) {
|
|
20
|
-
const
|
|
20
|
+
const t = d([]), y = d(""), n = d([]), r = d([]), v = d(""), c = d(!1);
|
|
21
|
+
if (u.isBuiltInRequest) {
|
|
22
|
+
if (!u.http)
|
|
23
|
+
throw new Error("请传入http实例");
|
|
24
|
+
u.http.get(`${u.prefix}/${z}`).then((e) => {
|
|
25
|
+
console.log(e), e.status === 0 && (n.value = e.data.list.map((a) => ({
|
|
26
|
+
label: a.roleName,
|
|
27
|
+
value: a.id
|
|
28
|
+
})));
|
|
29
|
+
}).catch((e) => {
|
|
30
|
+
console.log(e);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
const E = () => {
|
|
21
34
|
if (!c.value) {
|
|
22
35
|
v.value = "";
|
|
23
36
|
const e = [];
|
|
24
|
-
|
|
25
|
-
Array.isArray(
|
|
37
|
+
u.options.forEach((a) => {
|
|
38
|
+
Array.isArray(t.value) ? t.value.includes(a.value) && e.push(a.label) : t.value === a.value && e.push(a.label);
|
|
26
39
|
}), v.value = e.join(",");
|
|
27
40
|
}
|
|
28
|
-
},
|
|
41
|
+
}, S = () => {
|
|
29
42
|
const e = [];
|
|
30
|
-
if (Array.isArray(
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
43
|
+
if (Array.isArray(t.value))
|
|
44
|
+
t.value.forEach((a) => {
|
|
45
|
+
const o = n.value.find((N) => N.value === a);
|
|
46
|
+
o && e.push(o);
|
|
34
47
|
});
|
|
35
48
|
else {
|
|
36
|
-
const a =
|
|
49
|
+
const a = n.value.find((o) => o.value === t.value);
|
|
37
50
|
a && e.push(a);
|
|
38
51
|
}
|
|
39
52
|
r.value = e;
|
|
40
|
-
},
|
|
41
|
-
Array.isArray(
|
|
53
|
+
}, C = () => {
|
|
54
|
+
Array.isArray(u.modelValue) ? t.value = u.modelValue.map((e) => e.value) : t.value = u.modelValue.value;
|
|
42
55
|
};
|
|
43
|
-
f(() =>
|
|
44
|
-
|
|
45
|
-
}), f(() =>
|
|
46
|
-
c.value ? c.value = !1 : (
|
|
56
|
+
f(() => u.visible, (e) => {
|
|
57
|
+
C();
|
|
58
|
+
}), f(() => u.modelValue, (e) => {
|
|
59
|
+
c.value ? c.value = !1 : (C(), E());
|
|
47
60
|
}, {
|
|
48
61
|
deep: !0,
|
|
49
62
|
immediate: !0
|
|
50
|
-
}), f(() =>
|
|
51
|
-
|
|
63
|
+
}), f(() => u.options, (e) => {
|
|
64
|
+
u.isBuiltInRequest || (n.value = e || [], E(), S());
|
|
52
65
|
}, {
|
|
53
66
|
deep: !0,
|
|
54
67
|
immediate: !0
|
|
55
|
-
}), f(
|
|
56
|
-
|
|
68
|
+
}), f(t, () => {
|
|
69
|
+
S();
|
|
57
70
|
}, {
|
|
58
71
|
deep: !0,
|
|
59
72
|
immediate: !0
|
|
60
73
|
});
|
|
61
|
-
const
|
|
62
|
-
e ?
|
|
63
|
-
var
|
|
64
|
-
return (
|
|
65
|
-
}) :
|
|
66
|
-
},
|
|
74
|
+
const k = (e) => {
|
|
75
|
+
e ? n.value = n.value.filter((a) => {
|
|
76
|
+
var o;
|
|
77
|
+
return (o = a.label) == null ? void 0 : o.includes(e);
|
|
78
|
+
}) : n.value = [...u.options];
|
|
79
|
+
}, w = () => {
|
|
67
80
|
s("update:visible", !1);
|
|
68
|
-
},
|
|
81
|
+
}, V = () => {
|
|
69
82
|
var e;
|
|
70
|
-
Array.isArray(
|
|
71
|
-
},
|
|
72
|
-
Array.isArray(
|
|
83
|
+
Array.isArray(t.value) ? (v.value = r.value.map((a) => a.label).join(","), s("update:modelValue", r.value)) : (v.value = ((e = r.value[0]) == null ? void 0 : e.label) || "", s("update:modelValue", r.value[0])), c.value = !0, s("update:visible", !1);
|
|
84
|
+
}, A = (e) => {
|
|
85
|
+
Array.isArray(t.value) ? t.value = t.value.filter((a) => a !== e.value) : t.value = "";
|
|
73
86
|
}, p = (e, a) => l("div", {
|
|
74
|
-
class: [
|
|
87
|
+
class: [i.e("role-item"), a && i.is("active")]
|
|
75
88
|
}, [l("div", {
|
|
76
|
-
class:
|
|
89
|
+
class: i.e("role-item-label")
|
|
77
90
|
}, [l(h, {
|
|
78
91
|
name: "a-jiaoseguanli2",
|
|
79
92
|
size: 18,
|
|
80
93
|
color: "#606266"
|
|
81
94
|
}, null), l("span", {
|
|
82
|
-
class:
|
|
95
|
+
class: i.e("label")
|
|
83
96
|
}, [e.label], 2)], 2), l("div", {
|
|
84
|
-
class:
|
|
85
|
-
onClick: () =>
|
|
97
|
+
class: i.e("role-item-del"),
|
|
98
|
+
onClick: () => A(e)
|
|
86
99
|
}, [a && l(h, {
|
|
87
100
|
name: "shanchu",
|
|
88
101
|
size: 18,
|
|
89
102
|
color: "#606266"
|
|
90
103
|
}, null)], 10, ["onClick"])], 2), _ = () => l("div", {
|
|
91
|
-
class:
|
|
92
|
-
}, [l(
|
|
104
|
+
class: i.b("left")
|
|
105
|
+
}, [l(j, {
|
|
93
106
|
allowClear: !0,
|
|
94
107
|
placeholder: "请输入角色名称",
|
|
95
|
-
value:
|
|
96
|
-
"onUpdate:value": (e) =>
|
|
97
|
-
onSearch:
|
|
108
|
+
value: y.value,
|
|
109
|
+
"onUpdate:value": (e) => y.value = e,
|
|
110
|
+
onSearch: k
|
|
98
111
|
}, null, 8, ["allowClear", "value", "onUpdate:value", "onSearch"]), l("div", {
|
|
99
|
-
class:
|
|
100
|
-
}, [
|
|
112
|
+
class: i.e("role-list")
|
|
113
|
+
}, [n.value.length === 0 && l(m, {
|
|
101
114
|
description: "暂无数据",
|
|
102
115
|
image: m.PRESENTED_IMAGE_SIMPLE
|
|
103
|
-
}, null, 8, ["image"]),
|
|
104
|
-
value:
|
|
105
|
-
"onUpdate:value": (e) =>
|
|
116
|
+
}, null, 8, ["image"]), u.type === "radio" ? l(D, {
|
|
117
|
+
value: t.value,
|
|
118
|
+
"onUpdate:value": (e) => t.value = e
|
|
106
119
|
}, {
|
|
107
120
|
default: () => [l("div", {
|
|
108
121
|
style: "width: 100%;"
|
|
109
|
-
}, [
|
|
110
|
-
let
|
|
122
|
+
}, [n.value.map((e, a) => {
|
|
123
|
+
let o;
|
|
111
124
|
return l("div", {
|
|
112
125
|
key: a
|
|
113
|
-
}, [l(
|
|
126
|
+
}, [l(M, {
|
|
114
127
|
value: e.value
|
|
115
|
-
},
|
|
116
|
-
default: () => [
|
|
128
|
+
}, R(o = p(e)) ? o : {
|
|
129
|
+
default: () => [o],
|
|
117
130
|
_: 1
|
|
118
131
|
}, 8, ["value"])]);
|
|
119
132
|
})])]
|
|
120
|
-
}, 8, ["value", "onUpdate:value"]) : l(
|
|
121
|
-
value:
|
|
122
|
-
"onUpdate:value": (e) =>
|
|
133
|
+
}, 8, ["value", "onUpdate:value"]) : l(T, {
|
|
134
|
+
value: t.value,
|
|
135
|
+
"onUpdate:value": (e) => t.value = e
|
|
123
136
|
}, {
|
|
124
137
|
default: () => [l("div", {
|
|
125
138
|
style: "width: 100%;"
|
|
126
|
-
}, [
|
|
127
|
-
let
|
|
139
|
+
}, [n.value.map((e, a) => {
|
|
140
|
+
let o;
|
|
128
141
|
return l("div", {
|
|
129
142
|
key: a
|
|
130
|
-
}, [l(
|
|
143
|
+
}, [l(G, {
|
|
131
144
|
value: e.value
|
|
132
|
-
},
|
|
133
|
-
default: () => [
|
|
145
|
+
}, R(o = p(e)) ? o : {
|
|
146
|
+
default: () => [o],
|
|
134
147
|
_: 1
|
|
135
148
|
}, 8, ["value"])]);
|
|
136
149
|
})])]
|
|
137
|
-
}, 8, ["value", "onUpdate:value"])], 2)], 2),
|
|
138
|
-
class:
|
|
150
|
+
}, 8, ["value", "onUpdate:value"])], 2)], 2), I = () => l("div", {
|
|
151
|
+
class: i.b("right")
|
|
139
152
|
}, [r.value.map((e, a) => l("div", {
|
|
140
153
|
key: a
|
|
141
154
|
}, [p(e, !0)])), r.value.length === 0 && l(m, {
|
|
142
155
|
description: "暂无数据",
|
|
143
156
|
image: m.PRESENTED_IMAGE_SIMPLE
|
|
144
|
-
}, null, 8, ["image"])], 2),
|
|
145
|
-
modelValue:
|
|
157
|
+
}, null, 8, ["image"])], 2), U = () => l("div", null, [l(K, {
|
|
158
|
+
modelValue: u.visible,
|
|
146
159
|
title: "选择角色",
|
|
147
160
|
modalProps: {
|
|
148
161
|
cancelText: "取消",
|
|
149
162
|
okText: "确定",
|
|
150
163
|
width: "700px",
|
|
151
|
-
...
|
|
164
|
+
...g
|
|
152
165
|
},
|
|
153
|
-
onOnCancel: () =>
|
|
154
|
-
onOnConfirm: () =>
|
|
166
|
+
onOnCancel: () => w(),
|
|
167
|
+
onOnConfirm: () => V()
|
|
155
168
|
}, {
|
|
156
169
|
default: () => [l("div", {
|
|
157
|
-
class:
|
|
158
|
-
}, [_(),
|
|
170
|
+
class: i.b("modal")
|
|
171
|
+
}, [_(), I()], 2)]
|
|
159
172
|
}, 8, ["modelValue", "modalProps", "onOnCancel", "onOnConfirm"])]);
|
|
160
173
|
return () => l("div", {
|
|
161
|
-
class:
|
|
162
|
-
}, [
|
|
174
|
+
class: i.b()
|
|
175
|
+
}, [b.default ? b.default() : l(L, {
|
|
163
176
|
style: "width: 100%;",
|
|
164
177
|
readonly: !0,
|
|
165
178
|
value: v.value,
|
|
@@ -177,7 +190,7 @@ const n = N("role-selector"), Y = /* @__PURE__ */ x({
|
|
|
177
190
|
color: "#606266"
|
|
178
191
|
}, null)], 8, ["onClick"]),
|
|
179
192
|
_: 1
|
|
180
|
-
}, 8, ["readonly", "value", "onUpdate:value", "onClick"]),
|
|
193
|
+
}, 8, ["readonly", "value", "onUpdate:value", "onClick"]), U()], 2);
|
|
181
194
|
}
|
|
182
195
|
});
|
|
183
196
|
export {
|
|
@@ -11,12 +11,33 @@ const t = {
|
|
|
11
11
|
options: {
|
|
12
12
|
type: Array,
|
|
13
13
|
default: () => []
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* 是否使用内置请求,内置请求会走用户中心即
|
|
17
|
+
* ${prefix}security/company/role/page?pageNum=1&pageSize=1000
|
|
18
|
+
*/
|
|
19
|
+
isBuiltInRequest: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* axios 实例
|
|
25
|
+
*/
|
|
26
|
+
http: {
|
|
27
|
+
type: [Object, Function],
|
|
28
|
+
default: () => {
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* 请求前缀,如 qy-user-service
|
|
33
|
+
*/
|
|
34
|
+
prefix: String
|
|
35
|
+
}, l = "/security/company/role/page?pageNum=1&pageSize=1000", o = {
|
|
16
36
|
"update:visible": (e) => !0,
|
|
17
37
|
"update:modelValue": (e) => !0
|
|
18
38
|
};
|
|
19
39
|
export {
|
|
20
|
-
l as
|
|
40
|
+
l as GTE_OPTIONS_URL,
|
|
41
|
+
o as roleSelectorEmits,
|
|
21
42
|
t as roleSelectorProps
|
|
22
43
|
};
|
package/dist/es/index.mjs
CHANGED
|
@@ -3,103 +3,109 @@ import "./components/index.mjs";
|
|
|
3
3
|
import "./hooks/index.mjs";
|
|
4
4
|
import { collapseProps as f } from "./components/collapse-transtion/src/types.mjs";
|
|
5
5
|
import { KCollapseTranstion as x } from "./components/collapse-transtion/index.mjs";
|
|
6
|
-
import { useProModal as
|
|
7
|
-
import { KProModal as
|
|
8
|
-
import { TitleProps as
|
|
6
|
+
import { useProModal as s, useProModalInit as a } from "./components/pro-modal/hooks/useProModal.mjs";
|
|
7
|
+
import { KProModal as c } from "./components/pro-modal/index.mjs";
|
|
8
|
+
import { TitleProps as K } from "./components/pro-title/src/types.mjs";
|
|
9
9
|
import { KProTitle as u } from "./components/pro-title/index.mjs";
|
|
10
|
-
import { scrollbarProps as
|
|
11
|
-
import { KScrollBar as
|
|
12
|
-
import { CoverScrollbarProps as
|
|
13
|
-
import { KCoverScrollBar as
|
|
14
|
-
import { KScaleVirtualList as
|
|
15
|
-
import { proTagProps as
|
|
16
|
-
import { KProTag as
|
|
17
|
-
import { PickerApiEnum as
|
|
18
|
-
import { KProPicker as
|
|
19
|
-
import { ProAreaProps as
|
|
20
|
-
import { useProArea as
|
|
21
|
-
import { KProArea as
|
|
22
|
-
import { ProSignatureProps as
|
|
23
|
-
import { KProSignature as
|
|
24
|
-
import { useProTable as
|
|
25
|
-
import { KProTable as
|
|
26
|
-
import { KIcon as
|
|
10
|
+
import { scrollbarProps as T } from "./components/scroll-bar/src/types.mjs";
|
|
11
|
+
import { KScrollBar as g } from "./components/scroll-bar/index.mjs";
|
|
12
|
+
import { CoverScrollbarProps as C } from "./components/cover-scroll-bar/src/types.mjs";
|
|
13
|
+
import { KCoverScrollBar as _ } from "./components/cover-scroll-bar/index.mjs";
|
|
14
|
+
import { KScaleVirtualList as v } from "./components/scale-virtual-list/index.mjs";
|
|
15
|
+
import { proTagProps as b } from "./components/pro-tag/src/types.mjs";
|
|
16
|
+
import { KProTag as L } from "./components/pro-tag/index.mjs";
|
|
17
|
+
import { PickerApiEnum as O, ProPickerProps as V } from "./components/pro-picker/src/types.mjs";
|
|
18
|
+
import { KProPicker as y } from "./components/pro-picker/index.mjs";
|
|
19
|
+
import { ProAreaProps as B } from "./components/pro-area/src/types.mjs";
|
|
20
|
+
import { useProArea as F } from "./components/pro-area/hooks/use-pro-area.mjs";
|
|
21
|
+
import { KProArea as h } from "./components/pro-area/index.mjs";
|
|
22
|
+
import { ProSignatureProps as q } from "./components/pro-signature/src/types.mjs";
|
|
23
|
+
import { KProSignature as H } from "./components/pro-signature/index.mjs";
|
|
24
|
+
import { useProTable as Q } from "./components/pro-table/hooks/use-pro-table.mjs";
|
|
25
|
+
import { KProTable as X } from "./components/pro-table/index.mjs";
|
|
26
|
+
import { KIcon as Z } from "./components/icon/index.mjs";
|
|
27
27
|
import { UploadContextKey as rr } from "./components/pro-upload/src/types.mjs";
|
|
28
28
|
import { useUpload as er } from "./components/pro-upload/src/hooks/useUpload.mjs";
|
|
29
29
|
import { KProUpload as pr } from "./components/pro-upload/index.mjs";
|
|
30
30
|
import { useProContractView as fr } from "./components/pro-contract-view/hooks/use-contract-view.mjs";
|
|
31
31
|
import { KProContractView as xr } from "./components/pro-contract-view/index.mjs";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as sr } from "./components/pro-loading/src/pro-loading.mjs";
|
|
33
33
|
import { KPlusUpload as ir } from "./components/plus-upload/index.mjs";
|
|
34
|
-
import { KProOverlay as
|
|
34
|
+
import { KProOverlay as nr } from "./components/pro-overlay/index.mjs";
|
|
35
35
|
import { onSignConfirm as Sr, onSignInit as ur, onSignSuccess as dr } from "./components/pro-sign/src/effects/onEffects.mjs";
|
|
36
36
|
import { initProSign as Ur } from "./components/pro-sign/src/core/index.mjs";
|
|
37
|
-
import { useProSign as
|
|
38
|
-
import { KProSign as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
37
|
+
import { useProSign as Er } from "./components/pro-sign/src/hook/useProSign.mjs";
|
|
38
|
+
import { KProSign as Rr } from "./components/pro-sign/index.mjs";
|
|
39
|
+
import { GTE_ORGTREE_URL as Ar, UserSelectorProps as vr, selectUserContextKey as Ir } from "./components/pro-selector/src/types.mjs";
|
|
40
|
+
import { useUserSelector as Gr } from "./components/pro-selector/src/hooks/useUserSelector.mjs";
|
|
41
|
+
import { KUserSelector as Mr } from "./components/pro-selector/index.mjs";
|
|
42
|
+
import { default as Vr } from "./components/pro-selector/src/pro-user.mjs";
|
|
43
|
+
import { KProUserAvatar as yr, KUserAvatar as wr } from "./components/pro-user-avatar/index.mjs";
|
|
44
|
+
import { GTE_OPTIONS_URL as Dr, roleSelectorEmits as Fr, roleSelectorProps as Nr } from "./components/role-selector/src/types.mjs";
|
|
45
|
+
import { KProRoleSelector as jr, KRoleSelector as qr } from "./components/role-selector/index.mjs";
|
|
46
|
+
import { GET_DEPT_TREE_URL as Hr, deptSelectorEmits as Jr, deptSelectorProps as Qr } from "./components/dept-selector/src/types.mjs";
|
|
47
|
+
import { KDeptSelector as Xr } from "./components/dept-selector/index.mjs";
|
|
48
|
+
import { useProForm as Zr, useProFormInit as $r } from "./hooks/useProForm.mjs";
|
|
49
|
+
import { useModelValue as oo } from "./hooks/useModelValue.mjs";
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
C as CoverScrollbarProps,
|
|
52
|
+
Hr as GET_DEPT_TREE_URL,
|
|
53
|
+
Dr as GTE_OPTIONS_URL,
|
|
54
|
+
Ar as GTE_ORGTREE_URL,
|
|
51
55
|
x as KCollapseTranstion,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
_ as KCoverScrollBar,
|
|
57
|
+
Xr as KDeptSelector,
|
|
58
|
+
Z as KIcon,
|
|
55
59
|
ir as KPlusUpload,
|
|
56
|
-
|
|
60
|
+
h as KProArea,
|
|
57
61
|
xr as KProContractView,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
c as KProModal,
|
|
63
|
+
nr as KProOverlay,
|
|
64
|
+
y as KProPicker,
|
|
65
|
+
jr as KProRoleSelector,
|
|
66
|
+
Rr as KProSign,
|
|
67
|
+
H as KProSignature,
|
|
68
|
+
X as KProTable,
|
|
69
|
+
L as KProTag,
|
|
66
70
|
u as KProTitle,
|
|
67
71
|
pr as KProUpload,
|
|
68
72
|
yr as KProUserAvatar,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
sr as KProloading,
|
|
74
|
+
qr as KRoleSelector,
|
|
75
|
+
v as KScaleVirtualList,
|
|
76
|
+
g as KScrollBar,
|
|
77
|
+
wr as KUserAvatar,
|
|
78
|
+
Mr as KUserSelector,
|
|
79
|
+
O as PickerApiEnum,
|
|
80
|
+
B as ProAreaProps,
|
|
81
|
+
V as ProPickerProps,
|
|
82
|
+
q as ProSignatureProps,
|
|
83
|
+
Vr as ProUserSelector,
|
|
84
|
+
K as TitleProps,
|
|
81
85
|
rr as UploadContextKey,
|
|
86
|
+
vr as UserSelectorProps,
|
|
82
87
|
f as collapseProps,
|
|
83
88
|
o as default,
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
Jr as deptSelectorEmits,
|
|
90
|
+
Qr as deptSelectorProps,
|
|
86
91
|
Ur as initProSign,
|
|
87
92
|
Sr as onSignConfirm,
|
|
88
93
|
ur as onSignInit,
|
|
89
94
|
dr as onSignSuccess,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
b as proTagProps,
|
|
96
|
+
Fr as roleSelectorEmits,
|
|
97
|
+
Nr as roleSelectorProps,
|
|
98
|
+
T as scrollbarProps,
|
|
99
|
+
Ir as selectUserContextKey,
|
|
100
|
+
oo as useModelValue,
|
|
101
|
+
F as useProArea,
|
|
96
102
|
fr as useProContractView,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
Zr as useProForm,
|
|
104
|
+
$r as useProFormInit,
|
|
105
|
+
s as useProModal,
|
|
106
|
+
a as useProModalInit,
|
|
107
|
+
Er as useProSign,
|
|
108
|
+
Q as useProTable,
|
|
103
109
|
er as useUpload,
|
|
104
|
-
|
|
110
|
+
Gr as useUserSelector
|
|
105
111
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js"),l=require("./src/dept.js");require("./src/style/index.js");const e=require("./src/types.js"),t=r.withInstall(l.default);exports.deptSelectorEmits=e.deptSelectorEmits;exports.deptSelectorProps=e.deptSelectorProps;exports.KDeptSelector=t;exports.default=t;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js"),l=require("./src/dept.js");require("./src/style/index.js");const e=require("./src/types.js"),t=r.withInstall(l.default);exports.GET_DEPT_TREE_URL=e.GET_DEPT_TREE_URL;exports.deptSelectorEmits=e.deptSelectorEmits;exports.deptSelectorProps=e.deptSelectorProps;exports.KDeptSelector=t;exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),j=require("../../../hooks/use-namespace/index.js");require("../../index.js");const h=require("ant-design-vue"),w=require("./types.js"),H=require("../../pro-modal/index.js"),I=require("../../icon/index.js"),v=j.useNamespace("dept-selector"),J=t.defineComponent({name:"KDeptSelector",props:w.deptSelectorProps,emits:w.deptSelectorEmits,setup(a,{emit:m,attrs:q,slots:E}){const g=t.ref(!0),S=t.ref(!0),y=t.ref([]),f=t.ref([]),i=t.ref([]),T=t.ref(!1),d=t.ref(a.isBuiltInRequest?{children:"children",title:"deptName",key:"id"}:a.fieldNames),V=t.ref(""),o=t.ref([]),s=t.ref(a.treeData),N=t.ref(!1),p=t.ref("");if(a.isBuiltInRequest){if(!a.http)throw new Error("请传入http实例");a.http.get(`${a.prefix}${w.GET_DEPT_TREE_URL}`).then(e=>{e.status===0&&(s.value=e.data)})}const b=()=>{if(a.type==="checkbox"){if(!Array.isArray(a.modelValue))return;const e=a.modelValue.map(l=>l.value);g.value?i.value={checked:e,halfChecked:[]}:i.value=e,y.value=e}else{if(Array.isArray(a.modelValue))return;const e=a.modelValue.value;f.value=[e],y.value=[e]}},K=()=>{if(N.value)return N.value=!1;a.type==="radio"?o.value.length>0&&(V.value=o.value[0][d.value.title]||""):V.value=o.value.map(e=>e[d.value.title]).join(",")};t.watch(()=>a.visible,()=>{a.visible&&b()},{immediate:!0}),t.watch(()=>a.modelValue,()=>{s.value.length>0&&b()},{immediate:!0,deep:!0}),t.watch(s,()=>{s.value.length>0&&b()},{immediate:!0,deep:!0}),t.watch(i,()=>{a.type==="checkbox"&&(g.value?o.value=C(i.value.checked):o.value=C(i.value),K())},{immediate:!0,deep:!0}),t.watch(f,()=>{a.type==="radio"&&(o.value=C(f.value),K())},{immediate:!0,deep:!0}),t.watch(()=>a.treeData,()=>{a.isBuiltInRequest||(s.value=a.treeData)});function _(e){const l=(u,r)=>{for(const n of u){if(n.id===r)return n;if(n.children&&n.children.length){const c=l(n.children,r);if(c)return c}}return null};return l(s.value,e)}function C(e){return e?e.map(l=>_(l)).filter(Boolean):[]}const U=()=>{N.value=!0},A=()=>{N.value=!0},M=()=>{m("update:visible",!1)},O=()=>{a.type==="radio"?m("update:modelValue",{[d.value.key]:f.value[0],[d.value.title]:o.value[0][d.value.title]}):m("update:modelValue",o.value.map(e=>({[d.value.key]:e[d.value.key],[d.value.title]:e[d.value.title]}))),m("update:visible",!1),K()},R=e=>{if(N.value=!0,a.type==="radio")return o.value=[],f.value=[],!1;if(g.value)i.value.checked=i.value.checked.filter(l=>l!==e.id);else{const l=e.parentId,u=i.value.indexOf(l);u!==-1&&i.value.splice(u,1),i.value=i.value.filter(n=>n!==e.id),B(e.children).forEach(n=>{const c=i.value.indexOf(n);c!==-1&&i.value.splice(c,1)})}},B=e=>{const l=[],u=r=>{for(const n of r)l.push(n.id),n.children&&n.children.length&&u(n.children)};return u(e),l},L=()=>t.createVNode(t.Fragment,null,[t.createVNode(H.KProModal,{modelValue:a.visible,modalProps:{cancelText:"取消",okText:"确定",width:"700px",...q},title:"选择部门",onOnCancel:M,onOnConfirm:O},{default:()=>[t.createVNode("div",{class:v.e("modal-content")},[z(),G()],2)]},8,["modelValue","modalProps","onOnCancel","onOnConfirm"])]),k=(e,l)=>{let u;for(let r=0;r<l.length;r++){const n=l[r];n.children&&(n.children.some(c=>c.id===e)?u=n.id:k(e,n.children)&&(u=k(e,n.children)))}return u},F=e=>{if(!e.trim()){y.value=[],p.value="",S.value=!0;return}const l=new Set,u=(r,n)=>{r.forEach(c=>{var P;if((P=c[d.value.title])!=null&&P.includes(n)){let x=k(c.id,s.value);for(;x;)l.add(x),x=k(x,s.value);l.add(c.id)}c.children&&c.children.length>0&&u(c.children,n)})};u(s.value,e),y.value=Array.from(l),p.value=e,S.value=!0},$=e=>{const l=e[d.value.title]||"";if(!p.value)return t.createVNode("span",null,[l]);const u=l.indexOf(p.value);if(u===-1)return t.createVNode("span",null,[l]);const r=l.substring(0,u),n=l.substring(u,u+p.value.length),c=l.substring(u+p.value.length);return t.createVNode("span",null,[r,t.createVNode("span",{style:"color: #f50; font-weight: bold"},[n]),c])},z=()=>t.createVNode("div",{class:v.e("modal-content-left")},[t.createVNode(h.InputSearch,{placeholder:"请输入部门名称",onSearch:F,style:{marginBottom:"10px"},allowClear:!0},null,8,["onSearch","allowClear"]),s.value.length>0?t.createVNode(h.Tree,{expandedKeys:y.value,"onUpdate:expandedKeys":e=>y.value=e,selectedKeys:f.value,"onUpdate:selectedKeys":e=>f.value=e,checkedKeys:i.value,"onUpdate:checkedKeys":e=>i.value=e,checkable:a.type==="checkbox",checkStrictly:g.value,"show-icon":!0,autoExpandParent:S.value,blockNode:!0,defaultExpandAll:!0,fieldNames:d.value,"show-line":T.value,"tree-data":s.value,onCheck:U,onSelect:A,class:v.e("modal-content-left-tree")},{icon:e=>D(e),title:$,_:1},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"]):t.createVNode(h.Empty,{description:"暂无数据",image:h.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2),D=e=>t.createVNode(I.KIcon,{name:e.parentId==="0"?"qiye":"bumen",size:16},null,8,["name"]),G=()=>t.createVNode("div",{class:v.e("modal-content-right")},[o.value.length>0?o.value.map(e=>t.createVNode("div",{class:v.e("modal-content-right-item")},[t.createVNode("div",{class:v.e("modal-content-right-item-label")},[D(e),t.createVNode("span",null,[e[d.value.title]])],2),t.createVNode("div",{class:v.e("modal-content-right-item-del"),onClick:()=>R(e)},[t.createVNode(I.KIcon,{name:"shanchu",size:16},null)],10,["onClick"])],2)):t.createVNode(h.Empty,{description:"暂无数据",image:h.Empty.PRESENTED_IMAGE_SIMPLE},null,8,["image"])],2);return()=>{var e;return t.createVNode("div",{class:v.b()},[(e=E.default)!=null&&e.call(E)?E.default():t.createVNode("div",null,[t.createVNode(h.Input,{style:"width: 100%;",readonly:!0,value:V.value,"onUpdate:value":l=>V.value=l,onClick:()=>m("update:visible",!0)},{suffix:()=>t.createVNode("div",{onClick:()=>m("update:visible",!0)},[t.createVNode(I.KIcon,{style:{cursor:"pointer"},name:"bumen",size:18,color:"#606266"},null)],8,["onClick"]),_:1},8,["readonly","value","onUpdate:value","onClick"])]),L()],2)}}});exports.default=J;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={visible:Boolean,modelValue:{type:[Array,Object],default:()=>[]},type:{type:String,default:"checkbox"},treeData:{type:Array,default:()=>[]}},l={"update:visible":e=>!0,"update:modelValue":e=>!0};exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={visible:Boolean,modelValue:{type:[Array,Object],default:()=>[]},type:{type:String,default:"checkbox"},treeData:{type:Array,default:()=>[]},fieldNames:{type:Object,default:()=>({title:"label",key:"id",children:"children"})},isBuiltInRequest:{type:Boolean,default:!1},http:{type:[Object,Function],default:()=>{}},prefix:String},l="/security/dept/company/tree",a={"update:visible":e=>!0,"update:modelValue":e=>!0};exports.GET_DEPT_TREE_URL=l;exports.deptSelectorEmits=a;exports.deptSelectorProps=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../utils/install.js"),e=require("./src/pro-user.js");require("./style/index.js");const r=require("./src/types.js");require("./src/hooks/index.js");e.default.GTE_ORGTREE_URL="/security/dept/user/tree";const s=t.withInstall(e.default);exports.ProUserSelector=e.default;exports.GTE_ORGTREE_URL=r.GTE_ORGTREE_URL;exports.UserSelectorProps=r.UserSelectorProps;exports.selectUserContextKey=r.selectUserContextKey;exports.KUserSelector=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),D=require("../../../../hooks/use-namespace/index.js");require("../../../index.js");const v=require("ant-design-vue"),k=require("@king-one/utils"),V=require("../utils/orgTree.js"),E=require("../types.js"),T=require("./user.js"),y=require("../../../icon/index.js");function P(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!t.isVNode(n)}const{b:d}=D.useNamespace("pro-user-selector"),R=t.defineComponent({name:"OrgTree",props:{selectUserList:{type:Array,default:()=>[]},keyword:{type:String,default:""},initData:{type:Function,default:()=>Promise.resolve([])}},emits:{"update:selectUserList":n=>n},setup(n,{emit:I,expose:O}){const l=t.inject(E.selectUserContextKey),s=t.ref([]),h=t.ref({}),o=t.ref([]),C=t.ref({}),f=t.ref([]),g=t.ref(!1),L=V.debounce(e=>{const a=[],r=u=>{for(const c of u){if(c.members&&c.members.length>0)for(const i of c.members)i.realName.includes(e)&&a.push(i);c.children&&c.children.length>0&&r(c.children)}};r(s.value),f.value=V.uniqueById(a),g.value=e!==""},300);t.watch(()=>n.keyword,(e,a)=>{if(e===""){L.cancel(),g.value=!1,f.value=[];return}e!==a&&L(e)});const b=e=>{var a;(a=h.value.members)==null||a.forEach(r=>{r.id===e&&(r.checked=!1)}),f.value=f.value.map(r=>(r.id===e&&(r.checked=!1),r))},w=(e,a)=>{if(n.selectUserList.length===(l==null?void 0:l.maxCount)){a.checked=!1,v.Modal.warning({title:"温馨提示",content:`最多只能选择${l.maxCount}个用户`});return}I("update:selectUserList",e?[...n.selectUserList,a]:n.selectUserList.filter(r=>r.id!==a.id))},m=e=>{var a;e.parentId==="root"?o.value.push({id:k.uid(32),deptName:"组织内联系人",children:s.value[0].children,members:s.value[0].members}):o.value.push(e),(a=e.members)==null||a.forEach(r=>{r.checked=n.selectUserList.some(u=>u.id===r.id)}),h.value=e,C.value=e},B=(e,a)=>{var u;let r={};if(C.value.id===e.id){console.log(`当前组织架构树展示的视图已经是《${e.deptName}》部门下面的数据`);return}if(a===0)r={children:s.value},o.value=[{id:k.uid(32),deptName:"联系人",children:s.value}];else if(a===1)r=s.value[0],o.value=o.value.slice(0,2);else{r=e;const c=o.value.findIndex(i=>i.id===e.id);c!==-1&&(o.value=o.value.slice(0,c+1))}(u=r.members)==null||u.forEach(c=>{c.checked=n.selectUserList.some(i=>i.id===c.id)}),h.value=r},U=e=>t.createVNode(t.Fragment,null,[t.createVNode("div",{class:d("org-tree-item-title")},[e.parentId==="root"?t.createVNode(y.KIcon,{name:"zuzhijiagou",size:18,color:"#00d6b9"},null):t.createVNode("div",{class:d("org-tree-dept-icon")},[t.createVNode(y.KIcon,{name:"zuzhijiagou",size:18,color:"#ffffff"},null)],2),t.createVNode("div",{class:d("org-tree-item-title-text")},[e.deptName,e.parentId!=="root"&&t.createVNode(t.Fragment,null,[t.createTextVNode("("),e.members&&e.members.length>0?e.members.length:0,t.createTextVNode(")")])],2)],2),e.parentId==="root"?t.createVNode(y.KIcon,{name:"right",size:14,color:"#bbbfc4"},null):t.createVNode("a",{style:"width: 50px",href:"javascript:void(0)"},[t.createTextVNode("下级")])]),z=e=>{var a;return t.createVNode("div",{class:d("user-list")},[(a=e.members)==null?void 0:a.map(r=>t.createVNode(T.default,{userInfo:r,"onChange-checked":w},null,8,["userInfo","onChange-checked"]))],2)},S=e=>e.parentId==="root"&&o.value.length===1?t.createVNode("div",{class:d("org-tree-item"),onClick:()=>m(e)},[U(e)],10,["onClick"]):t.createVNode(t.Fragment,null,[e.children&&e.children.length>0?e.children.map(a=>t.createVNode("div",{class:d("org-tree-item"),onClick:()=>m(a)},[U(a)],10,["onClick"])):null,z(e)]),x=()=>t.createVNode("div",{class:d("user-list")},[f.value.length>0?f.value.map(e=>t.createVNode(T.default,{userInfo:e,"onChange-checked":w},{name:()=>t.createVNode("div",{style:"font-size: 14px;color: #000;"},[e!=null&&e.realName.includes(n.keyword)?e==null?void 0:e.realName.split(n.keyword).map((a,r)=>t.createVNode(t.Fragment,null,[a,r<(e==null?void 0:e.realName.split(n.keyword).length)-1&&t.createVNode("span",{style:"color: red;"},[n.keyword])])):e==null?void 0:e.realName]),_:1},8,["userInfo","onChange-checked"])):t.createVNode(v.Empty,{description:"暂无数据"},null)],2),N=t.ref(!1);let q;const F=new Promise(e=>{q=e}),_=()=>new Promise((e,a)=>{if(l!=null&&l.isBuiltInRequest){if(!l.http)throw new Error("请传入http实例");l.http.get(`${l.prefix}/${E.GTE_ORGTREE_URL}`).then(r=>{r.status===0&&e(r.data)}).catch(r=>{console.log(r)})}});return t.onMounted(async()=>{try{N.value=!0,l!=null&&l.isBuiltInRequest?s.value=await _():l!=null&&l.initData&&(s.value=await l.initData()),V.formatOrgTree(s.value),N.value=!1,q(s.value),h.value={children:s.value},o.value=[{id:k.uid(32),deptName:"联系人",children:s.value}],m(s.value[0])}finally{N.value=!1}}),O({deleteDeptUser:b,getInitData:(e,a)=>{const r=[],u=c=>{for(const i of c){if(i.members&&i.members.length>0)for(const p of i.members)e.some(K=>K.id===p.id)?(p.checked=!0,r.push(p)):p.checked=!1;i.children&&i.children.length>0&&u(i.children)}};u(a),I("update:selectUserList",V.uniqueById(r))},dataLoadPromise:F}),()=>{let e;return t.createVNode(t.Fragment,null,[t.createVNode("div",{style:"padding:0 16px"},[o.value.length>1&&!g.value?t.createVNode(v.Breadcrumb,{separator:">",class:d("breadcrumb")},P(e=o.value.map((a,r)=>t.createVNode(v.BreadcrumbItem,{onClick:()=>B(a,r)},{default:()=>[r===o.value.length-1?a.deptName:t.createVNode("a",{href:"javascript:void(0)"},[a.deptName])]},8,["onClick"])))?e:{default:()=>[e],_:1},8,["class"]):null]),g.value?t.createVNode(t.Fragment,null,[x()]):t.createVNode("div",{class:d("org-tree")},[N.value?t.createVNode("div",{class:d("org-tree-item"),style:"height: 200px;display: block;"},[t.createVNode(v.Skeleton,{active:!0,avatar:!0},null,8,["active","avatar"]),t.createVNode(v.Skeleton,{active:!0,avatar:!0},null,8,["active","avatar"])],2):S(h.value)],2)])}}});exports.default=R;
|