@jari-ace/element-plus-component 0.0.2 → 0.1.0
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/lib/index.js
CHANGED
|
@@ -1402,7 +1402,7 @@ const ea = {
|
|
|
1402
1402
|
b(s(me), {
|
|
1403
1403
|
link: "",
|
|
1404
1404
|
icon: s(Je),
|
|
1405
|
-
onClick: (
|
|
1405
|
+
onClick: (C) => o(M),
|
|
1406
1406
|
size: v.size
|
|
1407
1407
|
}, null, 8, ["icon", "onClick", "size"])
|
|
1408
1408
|
], 512), [
|
|
@@ -1421,7 +1421,7 @@ const ea = {
|
|
|
1421
1421
|
return [
|
|
1422
1422
|
Y(j("div", ro, [
|
|
1423
1423
|
b(s(me), {
|
|
1424
|
-
onClick: _[0] || (_[0] = (
|
|
1424
|
+
onClick: _[0] || (_[0] = (C) => d()),
|
|
1425
1425
|
size: v.size,
|
|
1426
1426
|
link: "",
|
|
1427
1427
|
icon: s(De)
|
|
@@ -1718,7 +1718,7 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1718
1718
|
], 2)
|
|
1719
1719
|
]),
|
|
1720
1720
|
default: g(() => {
|
|
1721
|
-
var S, M, k,
|
|
1721
|
+
var S, M, k, C, T, q, H;
|
|
1722
1722
|
return [
|
|
1723
1723
|
Y((w(), N("div", _o, [
|
|
1724
1724
|
j("div", ko, [
|
|
@@ -1766,7 +1766,7 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
|
|
|
1766
1766
|
]),
|
|
1767
1767
|
j("p", $o, [
|
|
1768
1768
|
f[4] || (f[4] = j("span", { class: "label" }, "手机:", -1)),
|
|
1769
|
-
G(" " + ae(!((
|
|
1769
|
+
G(" " + ae(!((C = o.value) != null && C.mobile) || o.value.mobile.length === 0 ? "(未填写手机号)" : (T = o.value) == null ? void 0 : T.mobile) + " ", 1),
|
|
1770
1770
|
f[5] || (f[5] = j("br", null, null, -1)),
|
|
1771
1771
|
f[6] || (f[6] = j("span", { class: "label" }, "邮箱:", -1)),
|
|
1772
1772
|
G(" " + ae(!((q = o.value) != null && q.email) || o.value.email.length === 0 ? "(未填写邮箱号)" : (H = o.value) == null ? void 0 : H.email), 1)
|
|
@@ -1875,7 +1875,7 @@ function wt(e, l, a) {
|
|
|
1875
1875
|
function k() {
|
|
1876
1876
|
return n === void 0 ? u : S(ot());
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1878
|
+
function C() {
|
|
1879
1879
|
var T = ot(), q = y(T);
|
|
1880
1880
|
if (t = arguments, o = this, c = T, q) {
|
|
1881
1881
|
if (n === void 0)
|
|
@@ -1885,7 +1885,7 @@ function wt(e, l, a) {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
return n === void 0 && (n = setTimeout(f, l)), u;
|
|
1887
1887
|
}
|
|
1888
|
-
return
|
|
1888
|
+
return C.cancel = M, C.flush = k, C;
|
|
1889
1889
|
}
|
|
1890
1890
|
function pa(e, l, a, t, o, d) {
|
|
1891
1891
|
const u = h({}), n = h({
|
|
@@ -1930,9 +1930,9 @@ function pa(e, l, a, t, o, d) {
|
|
|
1930
1930
|
M && y.and(f.userGroups.any().group.sortPath.startWith(M.sortPath));
|
|
1931
1931
|
const k = u.value.currentCustomGroup;
|
|
1932
1932
|
k && y.and(f.customGroups.any().customGroup.sortPath.startWith(k.sortPath));
|
|
1933
|
-
const
|
|
1934
|
-
if (
|
|
1935
|
-
const H = "%" +
|
|
1933
|
+
const C = u.value.name;
|
|
1934
|
+
if (C) {
|
|
1935
|
+
const H = "%" + C.split("").join("%") + "%";
|
|
1936
1936
|
y.and(f.username.like(H).or(f.fullName.like(H)).or(f.pinYinName.like(H)).or(f.mobile.like(H)));
|
|
1937
1937
|
}
|
|
1938
1938
|
l && y.and(l(f));
|
|
@@ -2087,14 +2087,14 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2087
2087
|
return (k = m.value) == null ? void 0 : k.id;
|
|
2088
2088
|
},
|
|
2089
2089
|
set(k) {
|
|
2090
|
-
m.value = f.groups.find((
|
|
2090
|
+
m.value = f.groups.find((C) => C.id === k) ?? null;
|
|
2091
2091
|
}
|
|
2092
2092
|
}), [I, y] = ([t, o] = pt(() => Promise.all([
|
|
2093
2093
|
p.getGlobalApp(),
|
|
2094
2094
|
p.getAccessible()
|
|
2095
2095
|
])), t = await t, o(), t);
|
|
2096
2096
|
if (y.unshift(I), !r.showConsoleApp) {
|
|
2097
|
-
const k = y.findIndex((
|
|
2097
|
+
const k = y.findIndex((C) => C.name == "ace-app-manage");
|
|
2098
2098
|
k >= 0 && y.splice(k, 1);
|
|
2099
2099
|
}
|
|
2100
2100
|
v.value || (v.value = I.id);
|
|
@@ -2121,11 +2121,11 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2121
2121
|
}), l({
|
|
2122
2122
|
reload: S,
|
|
2123
2123
|
elTree: d
|
|
2124
|
-
}), S(), (k,
|
|
2124
|
+
}), S(), (k, C) => (w(), N("div", tn, [
|
|
2125
2125
|
r.appId ? de("", !0) : (w(), A(s(Me), {
|
|
2126
2126
|
key: 0,
|
|
2127
2127
|
modelValue: v.value,
|
|
2128
|
-
"onUpdate:modelValue":
|
|
2128
|
+
"onUpdate:modelValue": C[0] || (C[0] = (T) => v.value = T),
|
|
2129
2129
|
style: { width: "100%" }
|
|
2130
2130
|
}, {
|
|
2131
2131
|
default: g(() => [
|
|
@@ -2302,7 +2302,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2302
2302
|
style: "flex:auto"
|
|
2303
2303
|
})]);
|
|
2304
2304
|
}
|
|
2305
|
-
}], M = h(!1), k = h(),
|
|
2305
|
+
}], M = h(!1), k = h(), C = xe(B, 100), T = xe(Z, 100);
|
|
2306
2306
|
P(n, () => {
|
|
2307
2307
|
I.value == "dept" && (f.queryParams.value.currentDept = n.value);
|
|
2308
2308
|
}), P(c, () => {
|
|
@@ -2326,7 +2326,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2326
2326
|
y.value = x;
|
|
2327
2327
|
}
|
|
2328
2328
|
$e(() => {
|
|
2329
|
-
|
|
2329
|
+
C.cancel(), T.cancel();
|
|
2330
2330
|
});
|
|
2331
2331
|
function ye() {
|
|
2332
2332
|
if (Array.isArray(y.value)) {
|
|
@@ -2337,7 +2337,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2337
2337
|
function be() {
|
|
2338
2338
|
Array.isArray(y.value) && (_.clear(), y.value.splice(0));
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function $() {
|
|
2341
2341
|
if (Array.isArray(y.value)) {
|
|
2342
2342
|
const x = f.queryResult.value.users.filter((U) => !q(U));
|
|
2343
2343
|
_.clear(), x.forEach((U) => _.set(U.id, U)), y.value.splice(0), y.value.push(...x);
|
|
@@ -2366,7 +2366,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2366
2366
|
D && D < v.value.length && k.value.scrollToRow(D + 1), D = void 0;
|
|
2367
2367
|
}
|
|
2368
2368
|
function ie(x, U) {
|
|
2369
|
-
M.value = x.buttons > 0, M.value && (D = U,
|
|
2369
|
+
M.value = x.buttons > 0, M.value && (D = U, C());
|
|
2370
2370
|
}
|
|
2371
2371
|
return l({
|
|
2372
2372
|
show() {
|
|
@@ -2543,7 +2543,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
|
|
|
2543
2543
|
link: "",
|
|
2544
2544
|
tooltip: "清除选中项,并选中之前未被选中项",
|
|
2545
2545
|
shortcut: "Ctrl+F",
|
|
2546
|
-
onClick:
|
|
2546
|
+
onClick: $
|
|
2547
2547
|
}, {
|
|
2548
2548
|
default: g(() => U[9] || (U[9] = [G("反选 ")])),
|
|
2549
2549
|
_: 1,
|
|
@@ -2715,14 +2715,14 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2715
2715
|
const a = h(!1), t = se(), o = Ht(t), d = h(), u = {
|
|
2716
2716
|
label: "name",
|
|
2717
2717
|
children: "children",
|
|
2718
|
-
isLeaf: (k,
|
|
2718
|
+
isLeaf: (k, C) => !k.hasChildren,
|
|
2719
2719
|
class: (k) => {
|
|
2720
|
-
var
|
|
2721
|
-
return k.id === ((
|
|
2720
|
+
var C;
|
|
2721
|
+
return k.id === ((C = n.value) == null ? void 0 : C.id) ? "selected-group" : "group";
|
|
2722
2722
|
}
|
|
2723
2723
|
}, n = h(), c = h(!1), p = h(), r = _e(t), i = e, m = {};
|
|
2724
2724
|
async function v() {
|
|
2725
|
-
const k = Pe(await o.getAll()),
|
|
2725
|
+
const k = Pe(await o.getAll()), C = {
|
|
2726
2726
|
id: "-1",
|
|
2727
2727
|
name: "[顶级组]",
|
|
2728
2728
|
children: k,
|
|
@@ -2733,7 +2733,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2733
2733
|
sortIndex: 0,
|
|
2734
2734
|
sortPath: ""
|
|
2735
2735
|
};
|
|
2736
|
-
return d.value = [
|
|
2736
|
+
return d.value = [C], C;
|
|
2737
2737
|
}
|
|
2738
2738
|
async function _() {
|
|
2739
2739
|
n.value = await v();
|
|
@@ -2745,10 +2745,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2745
2745
|
p.value = void 0, c.value = !0;
|
|
2746
2746
|
}
|
|
2747
2747
|
async function f() {
|
|
2748
|
-
var k,
|
|
2748
|
+
var k, C;
|
|
2749
2749
|
await o.create({
|
|
2750
2750
|
name: p.value,
|
|
2751
|
-
parentId: ((k = n.value) == null ? void 0 : k.id) == "-1" || (
|
|
2751
|
+
parentId: ((k = n.value) == null ? void 0 : k.id) == "-1" || (C = n.value) == null ? void 0 : C.id
|
|
2752
2752
|
}), c.value = !1, await v();
|
|
2753
2753
|
}
|
|
2754
2754
|
async function S() {
|
|
@@ -2762,7 +2762,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
await o.setMembers({
|
|
2764
2764
|
id: n.value.id,
|
|
2765
|
-
userIds: ((k = i.users) == null ? void 0 : k.map((
|
|
2765
|
+
userIds: ((k = i.users) == null ? void 0 : k.map((C) => C.id)) ?? []
|
|
2766
2766
|
}, m), a.value = !1;
|
|
2767
2767
|
}
|
|
2768
2768
|
return l({
|
|
@@ -2772,10 +2772,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2772
2772
|
close() {
|
|
2773
2773
|
a.value = !1;
|
|
2774
2774
|
}
|
|
2775
|
-
}), (k,
|
|
2775
|
+
}), (k, C) => (w(), N(re, null, [
|
|
2776
2776
|
b(s(rt), {
|
|
2777
2777
|
modelValue: a.value,
|
|
2778
|
-
"onUpdate:modelValue":
|
|
2778
|
+
"onUpdate:modelValue": C[1] || (C[1] = (T) => a.value = T),
|
|
2779
2779
|
"destroy-on-close": "",
|
|
2780
2780
|
"append-to-body": "",
|
|
2781
2781
|
draggable: "",
|
|
@@ -2790,16 +2790,16 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2790
2790
|
loading: s(r),
|
|
2791
2791
|
onClick: M
|
|
2792
2792
|
}, {
|
|
2793
|
-
default: g(() =>
|
|
2793
|
+
default: g(() => C[6] || (C[6] = [
|
|
2794
2794
|
G("确定 ")
|
|
2795
2795
|
])),
|
|
2796
2796
|
_: 1,
|
|
2797
2797
|
__: [6]
|
|
2798
2798
|
}, 8, ["loading"]),
|
|
2799
2799
|
b(s(me), {
|
|
2800
|
-
onClick:
|
|
2800
|
+
onClick: C[0] || (C[0] = (T) => a.value = !1)
|
|
2801
2801
|
}, {
|
|
2802
|
-
default: g(() =>
|
|
2802
|
+
default: g(() => C[7] || (C[7] = [
|
|
2803
2803
|
G("取消")
|
|
2804
2804
|
])),
|
|
2805
2805
|
_: 1,
|
|
@@ -2811,7 +2811,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2811
2811
|
b(s(ft), null, {
|
|
2812
2812
|
default: g(() => [
|
|
2813
2813
|
b(s(Te), null, {
|
|
2814
|
-
default: g(() =>
|
|
2814
|
+
default: g(() => C[5] || (C[5] = [
|
|
2815
2815
|
G("请创建或选择要保存为的自定义组:")
|
|
2816
2816
|
])),
|
|
2817
2817
|
_: 1,
|
|
@@ -2861,7 +2861,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2861
2861
|
}, 8, ["modelValue"]),
|
|
2862
2862
|
b(s(rt), {
|
|
2863
2863
|
modelValue: c.value,
|
|
2864
|
-
"onUpdate:modelValue":
|
|
2864
|
+
"onUpdate:modelValue": C[4] || (C[4] = (T) => c.value = T),
|
|
2865
2865
|
"destroy-on-close": "",
|
|
2866
2866
|
"append-to-body": "",
|
|
2867
2867
|
title: "添加自定义组",
|
|
@@ -2875,17 +2875,17 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2875
2875
|
loading: s(r),
|
|
2876
2876
|
size: "default"
|
|
2877
2877
|
}, {
|
|
2878
|
-
default: g(() =>
|
|
2878
|
+
default: g(() => C[8] || (C[8] = [
|
|
2879
2879
|
G(" 确定 ")
|
|
2880
2880
|
])),
|
|
2881
2881
|
_: 1,
|
|
2882
2882
|
__: [8]
|
|
2883
2883
|
}, 8, ["loading"]),
|
|
2884
2884
|
b(s(me), {
|
|
2885
|
-
onClick:
|
|
2885
|
+
onClick: C[3] || (C[3] = (T) => c.value = !1),
|
|
2886
2886
|
size: "default"
|
|
2887
2887
|
}, {
|
|
2888
|
-
default: g(() =>
|
|
2888
|
+
default: g(() => C[9] || (C[9] = [
|
|
2889
2889
|
G("取消")
|
|
2890
2890
|
])),
|
|
2891
2891
|
_: 1,
|
|
@@ -2902,7 +2902,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2902
2902
|
default: g(() => [
|
|
2903
2903
|
Y(b(s(we), {
|
|
2904
2904
|
modelValue: p.value,
|
|
2905
|
-
"onUpdate:modelValue":
|
|
2905
|
+
"onUpdate:modelValue": C[2] || (C[2] = (T) => p.value = T),
|
|
2906
2906
|
style: { width: "100%" }
|
|
2907
2907
|
}, null, 8, ["modelValue"]), [
|
|
2908
2908
|
[s(kt)]
|
|
@@ -2945,27 +2945,27 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2945
2945
|
setup(e, { expose: l, emit: a }) {
|
|
2946
2946
|
const t = e, o = h(0), d = h(), u = h(!1), n = ue(e, "modelValue"), c = ue(e, "page"), p = a, i = xe(() => {
|
|
2947
2947
|
var O;
|
|
2948
|
-
const
|
|
2949
|
-
|
|
2948
|
+
const $ = (O = d.value) == null ? void 0 : O.wrapRef;
|
|
2949
|
+
$ && $.scrollHeight - $.scrollTop <= $.clientHeight + tr && c.value < t.total / t.pageSize && c.value++;
|
|
2950
2950
|
}, 200);
|
|
2951
|
-
function m(
|
|
2951
|
+
function m($) {
|
|
2952
2952
|
if (t.multiple) {
|
|
2953
2953
|
if (!Array.isArray(n.value))
|
|
2954
2954
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
2955
|
-
const O = n.value.findIndex((R) => R.id ==
|
|
2956
|
-
O < 0 ? n.value.push(
|
|
2955
|
+
const O = n.value.findIndex((R) => R.id == $.id);
|
|
2956
|
+
O < 0 ? n.value.push($) : n.value.splice(O, 1);
|
|
2957
2957
|
} else
|
|
2958
|
-
n.value =
|
|
2958
|
+
n.value = $;
|
|
2959
2959
|
}
|
|
2960
2960
|
let v;
|
|
2961
|
-
function _(
|
|
2962
|
-
m(
|
|
2961
|
+
function _($) {
|
|
2962
|
+
m($), u.value = !0, v = $;
|
|
2963
2963
|
}
|
|
2964
2964
|
function I() {
|
|
2965
2965
|
u.value = !1, p("itemClicked", v), v = void 0;
|
|
2966
2966
|
}
|
|
2967
|
-
function y(
|
|
2968
|
-
u.value && m(
|
|
2967
|
+
function y($) {
|
|
2968
|
+
u.value && m($);
|
|
2969
2969
|
}
|
|
2970
2970
|
function f() {
|
|
2971
2971
|
o.value < t.users.length - 1 && o.value++, M();
|
|
@@ -2976,38 +2976,38 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
2976
2976
|
const M = () => {
|
|
2977
2977
|
Ie(() => {
|
|
2978
2978
|
var R, X, ee;
|
|
2979
|
-
const
|
|
2980
|
-
if (O &&
|
|
2981
|
-
const E = O.offsetTop, V = O.offsetTop + O.offsetHeight, D =
|
|
2979
|
+
const $ = (R = d.value) == null ? void 0 : R.$refs.wrapRef, O = $ == null ? void 0 : $.querySelectorAll("li")[o.value];
|
|
2980
|
+
if (O && $) {
|
|
2981
|
+
const E = O.offsetTop, V = O.offsetTop + O.offsetHeight, D = $.scrollTop, B = $.scrollTop + $.clientHeight;
|
|
2982
2982
|
V > B ? (X = d.value) == null || X.scrollTo(
|
|
2983
2983
|
0,
|
|
2984
|
-
V -
|
|
2984
|
+
V - $.clientHeight + O.offsetHeight - 38
|
|
2985
2985
|
) : E < D && ((ee = d.value) == null || ee.scrollTo(0, E));
|
|
2986
2986
|
}
|
|
2987
2987
|
});
|
|
2988
|
-
}, k = xe(f, 100),
|
|
2989
|
-
function T(
|
|
2988
|
+
}, k = xe(f, 100), C = xe(S, 100);
|
|
2989
|
+
function T($, O) {
|
|
2990
2990
|
var R;
|
|
2991
|
-
if (o.value = O, u.value =
|
|
2992
|
-
const X = (R = d.value) == null ? void 0 : R.$refs.wrapRef, ee =
|
|
2991
|
+
if (o.value = O, u.value = $.buttons > 0, u.value) {
|
|
2992
|
+
const X = (R = d.value) == null ? void 0 : R.$refs.wrapRef, ee = $.target;
|
|
2993
2993
|
if (ee && X) {
|
|
2994
2994
|
const E = ee.offsetTop, V = ee.offsetTop + ee.offsetHeight, D = X.scrollTop, B = X.scrollTop + X.clientHeight;
|
|
2995
|
-
V + 20 > B ? k() : E < D + 20 &&
|
|
2995
|
+
V + 20 > B ? k() : E < D + 20 && C();
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
|
-
function q(
|
|
3000
|
-
return Z.value.some((O) => O.id ===
|
|
2999
|
+
function q($) {
|
|
3000
|
+
return Z.value.some((O) => O.id === $.id);
|
|
3001
3001
|
}
|
|
3002
|
-
const H = (
|
|
3002
|
+
const H = ($) => Z.value.some((O) => O.id === $.id) ? "autumnOrange" : "skyGray", Z = ge(() => {
|
|
3003
3003
|
if (t.multiple && Array.isArray(n.value))
|
|
3004
3004
|
return n.value;
|
|
3005
3005
|
if (!t.multiple && !Array.isArray(n.value))
|
|
3006
3006
|
return n.value ? [n.value] : [];
|
|
3007
3007
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
3008
3008
|
});
|
|
3009
|
-
function ye(
|
|
3010
|
-
return
|
|
3009
|
+
function ye($) {
|
|
3010
|
+
return $ === o.value ? "active" : "";
|
|
3011
3011
|
}
|
|
3012
3012
|
const be = ge(() => t.loading && t.users.length == 0);
|
|
3013
3013
|
return l({
|
|
@@ -3023,21 +3023,21 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3023
3023
|
}, {
|
|
3024
3024
|
deep: !1
|
|
3025
3025
|
}), $e(() => {
|
|
3026
|
-
k.cancel(),
|
|
3027
|
-
}), (
|
|
3026
|
+
k.cancel(), C.cancel(), i.cancel();
|
|
3027
|
+
}), ($, O) => (w(), N("div", Qn, [
|
|
3028
3028
|
Y((w(), A(s(Ce), {
|
|
3029
|
-
height:
|
|
3029
|
+
height: $.height,
|
|
3030
3030
|
ref_key: "scrollbar",
|
|
3031
3031
|
ref: d,
|
|
3032
3032
|
always: "",
|
|
3033
3033
|
onScroll: s(i)
|
|
3034
3034
|
}, {
|
|
3035
3035
|
default: g(() => [
|
|
3036
|
-
|
|
3036
|
+
$.users.length > 0 ? (w(), N("ul", {
|
|
3037
3037
|
key: 0,
|
|
3038
3038
|
onMouseup: I
|
|
3039
3039
|
}, [
|
|
3040
|
-
(w(!0), N(re, null, W(
|
|
3040
|
+
(w(!0), N(re, null, W($.users, (R, X) => (w(), N("li", {
|
|
3041
3041
|
key: R.id,
|
|
3042
3042
|
class: Ge(ye(X)),
|
|
3043
3043
|
onMouseenter: (ee) => u.value && y(R),
|
|
@@ -3060,18 +3060,18 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3060
3060
|
], 42, Xn))), 128))
|
|
3061
3061
|
], 32)) : (w(), A(s(xt), {
|
|
3062
3062
|
key: 1,
|
|
3063
|
-
description:
|
|
3063
|
+
description: $.emptyText
|
|
3064
3064
|
}, null, 8, ["description"]))
|
|
3065
3065
|
]),
|
|
3066
3066
|
_: 1
|
|
3067
3067
|
}, 8, ["height", "onScroll"])), [
|
|
3068
3068
|
[s(Ae), be.value]
|
|
3069
3069
|
]),
|
|
3070
|
-
|
|
3070
|
+
$.users.length > 0 ? (w(), N("div", Zn, [
|
|
3071
3071
|
Y(j("div", er, null, 512), [
|
|
3072
|
-
[ve,
|
|
3072
|
+
[ve, $.loading]
|
|
3073
3073
|
]),
|
|
3074
|
-
G(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil(
|
|
3074
|
+
G(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil($.total / $.pageSize)) + "页 ", 1)
|
|
3075
3075
|
])) : de("", !0)
|
|
3076
3076
|
]));
|
|
3077
3077
|
}
|
|
@@ -3159,7 +3159,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3159
3159
|
(D = c.value) == null || D.focus();
|
|
3160
3160
|
}, 300);
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function C() {
|
|
3163
3163
|
var V;
|
|
3164
3164
|
(V = _.value) == null || V.$el.focus();
|
|
3165
3165
|
}
|
|
@@ -3189,7 +3189,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3189
3189
|
function be() {
|
|
3190
3190
|
p.value = !0;
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3192
|
+
function $() {
|
|
3193
3193
|
const V = n.value;
|
|
3194
3194
|
V.push(...u.value.filter((D) => !V.some((B) => B.id === D.id)));
|
|
3195
3195
|
}
|
|
@@ -3222,7 +3222,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3222
3222
|
b(s(Nt), {
|
|
3223
3223
|
ref: "bookmarkDropdown",
|
|
3224
3224
|
onShow: k,
|
|
3225
|
-
onHide:
|
|
3225
|
+
onHide: C,
|
|
3226
3226
|
width: "auto",
|
|
3227
3227
|
teleported: "",
|
|
3228
3228
|
visible: p.value,
|
|
@@ -3267,7 +3267,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3267
3267
|
key: 0,
|
|
3268
3268
|
circle: "",
|
|
3269
3269
|
size: "small",
|
|
3270
|
-
onClick:
|
|
3270
|
+
onClick: $,
|
|
3271
3271
|
type: "success",
|
|
3272
3272
|
plain: "",
|
|
3273
3273
|
icon: s(ol),
|
|
@@ -3577,8 +3577,8 @@ const Be = /* @__PURE__ */ new Map(), kt = {
|
|
|
3577
3577
|
return S[M];
|
|
3578
3578
|
const k = S[M].children;
|
|
3579
3579
|
if (k) {
|
|
3580
|
-
const
|
|
3581
|
-
if (
|
|
3580
|
+
const C = y(f, k);
|
|
3581
|
+
if (C) return C;
|
|
3582
3582
|
}
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
@@ -3752,14 +3752,17 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3752
3752
|
prop: "caption",
|
|
3753
3753
|
required: ""
|
|
3754
3754
|
}, {
|
|
3755
|
-
default: g(() =>
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3755
|
+
default: g(() => {
|
|
3756
|
+
var k;
|
|
3757
|
+
return [
|
|
3758
|
+
b(S, {
|
|
3759
|
+
"app-id": (k = v.value) == null ? void 0 : k.id,
|
|
3760
|
+
size: "small",
|
|
3761
|
+
modelValue: u.value.formData.caption,
|
|
3762
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => u.value.formData.caption = C)
|
|
3763
|
+
}, null, 8, ["app-id", "modelValue"])
|
|
3764
|
+
];
|
|
3765
|
+
}),
|
|
3763
3766
|
_: 1
|
|
3764
3767
|
}),
|
|
3765
3768
|
b(s(Le), {
|
|
@@ -3982,7 +3985,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
3982
3985
|
function k(E) {
|
|
3983
3986
|
p.value = E;
|
|
3984
3987
|
}
|
|
3985
|
-
function
|
|
3988
|
+
function C(E) {
|
|
3986
3989
|
return p.value === E ? "active" : "";
|
|
3987
3990
|
}
|
|
3988
3991
|
function T(E) {
|
|
@@ -4012,7 +4015,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4012
4015
|
const E = n.value[p.value];
|
|
4013
4016
|
E && T(E);
|
|
4014
4017
|
}
|
|
4015
|
-
function
|
|
4018
|
+
function $() {
|
|
4016
4019
|
var E;
|
|
4017
4020
|
I.value && I.value.length > 0 || (E = o.value) == null || E.pop();
|
|
4018
4021
|
}
|
|
@@ -4085,7 +4088,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4085
4088
|
onFocus: V[1] || (V[1] = (D) => m.value = !0),
|
|
4086
4089
|
onBlur: V[2] || (V[2] = (D) => m.value = !1),
|
|
4087
4090
|
onKeydown: [
|
|
4088
|
-
Ve(
|
|
4091
|
+
Ve($, ["delete"]),
|
|
4089
4092
|
Ve(Z, ["down"]),
|
|
4090
4093
|
Ve(ye, ["up"]),
|
|
4091
4094
|
Ve(be, ["enter"])
|
|
@@ -4109,7 +4112,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4109
4112
|
key: B.id,
|
|
4110
4113
|
onMouseenter: (x) => k(ie),
|
|
4111
4114
|
onClick: (x) => T(B),
|
|
4112
|
-
class: Ge(
|
|
4115
|
+
class: Ge(C(ie))
|
|
4113
4116
|
}, [
|
|
4114
4117
|
B.dataType === "ENTITY" ? (w(), N("span", zr, ae(M(B)), 1)) : (w(), N("span", Br, ae(M(B)), 1))
|
|
4115
4118
|
], 42, Ur))), 128))
|
|
@@ -4263,7 +4266,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4263
4266
|
type: "textarea",
|
|
4264
4267
|
rows: 4,
|
|
4265
4268
|
modelValue: r.value[k],
|
|
4266
|
-
"onUpdate:modelValue": (
|
|
4269
|
+
"onUpdate:modelValue": (C) => r.value[k] = C
|
|
4267
4270
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4268
4271
|
]),
|
|
4269
4272
|
_: 2
|
|
@@ -4294,47 +4297,47 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4294
4297
|
async setup(e, { expose: l, emit: a }) {
|
|
4295
4298
|
let t, o;
|
|
4296
4299
|
const d = e, u = ue(e, "modelValue"), n = Qa(), c = Kt(n), p = Xe().locale, r = h(), i = h(!1), m = h(!1), v = h(), _ = h(""), I = ([t, o] = pt(() => Vt()), t = await t, o(), t), y = h(""), f = h(""), S = h(), M = a, k = wt(T, 500);
|
|
4297
|
-
let
|
|
4298
|
-
async function T(
|
|
4299
|
-
if (
|
|
4300
|
+
let C;
|
|
4301
|
+
async function T($) {
|
|
4302
|
+
if ($ || ($ = u.value), !d.appId) return;
|
|
4300
4303
|
const O = await I.getById(d.appId);
|
|
4301
|
-
if (_.value = O.name,
|
|
4304
|
+
if (_.value = O.name, !$ || !_.value) {
|
|
4302
4305
|
f.value = "";
|
|
4303
4306
|
return;
|
|
4304
4307
|
}
|
|
4305
|
-
f.value =
|
|
4306
|
-
let R =
|
|
4307
|
-
|
|
4308
|
+
f.value = $;
|
|
4309
|
+
let R = $;
|
|
4310
|
+
$ && $.length > 0 && (R = Hn(R), R.startsWith("{") && R.endsWith("}") && (R = R.substring(1, R.length - 1)));
|
|
4308
4311
|
const ee = (await c.getByKey(_.value, R, {
|
|
4309
4312
|
cancelDuplicatedRequest: !1
|
|
4310
4313
|
})).find((E) => E.locale === p);
|
|
4311
4314
|
ee && (f.value = ee.message);
|
|
4312
4315
|
}
|
|
4313
|
-
async function q(
|
|
4314
|
-
y.value =
|
|
4316
|
+
async function q($) {
|
|
4317
|
+
y.value = $, r.value = await c.searchKeys(_.value, $);
|
|
4315
4318
|
}
|
|
4316
4319
|
async function H() {
|
|
4317
|
-
var
|
|
4318
|
-
i.value = !0, await Ie(), M("focus"), (
|
|
4320
|
+
var $;
|
|
4321
|
+
i.value = !0, await Ie(), M("focus"), ($ = v.value) == null || $.focus();
|
|
4319
4322
|
}
|
|
4320
4323
|
function Z() {
|
|
4321
|
-
|
|
4324
|
+
C = setTimeout(() => {
|
|
4322
4325
|
i.value = !1;
|
|
4323
4326
|
}, 200), M("blur");
|
|
4324
4327
|
}
|
|
4325
4328
|
$e(() => {
|
|
4326
|
-
k.cancel(),
|
|
4329
|
+
k.cancel(), C && clearTimeout(C);
|
|
4327
4330
|
}), P(u, () => {
|
|
4328
4331
|
k();
|
|
4329
4332
|
}, {
|
|
4330
4333
|
deep: !0,
|
|
4331
4334
|
immediate: !0
|
|
4332
4335
|
});
|
|
4333
|
-
function ye(
|
|
4334
|
-
M("change",
|
|
4336
|
+
function ye($) {
|
|
4337
|
+
M("change", $);
|
|
4335
4338
|
}
|
|
4336
|
-
async function be(
|
|
4337
|
-
await q(y.value), u.value = "{" +
|
|
4339
|
+
async function be($) {
|
|
4340
|
+
await q(y.value), u.value = "{" + $ + "}", S.value.focus;
|
|
4338
4341
|
}
|
|
4339
4342
|
return l({
|
|
4340
4343
|
focus() {
|
|
@@ -4343,16 +4346,16 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4343
4346
|
blur() {
|
|
4344
4347
|
v == null || v.value.blur();
|
|
4345
4348
|
}
|
|
4346
|
-
}), (
|
|
4349
|
+
}), ($, O) => (w(), N(re, null, [
|
|
4347
4350
|
Y(b(s(we), {
|
|
4348
4351
|
ref_key: "selectI18n",
|
|
4349
4352
|
ref: S,
|
|
4350
4353
|
onFocus: H,
|
|
4351
4354
|
modelValue: f.value,
|
|
4352
4355
|
"onUpdate:modelValue": O[0] || (O[0] = (R) => f.value = R),
|
|
4353
|
-
size:
|
|
4354
|
-
disabled:
|
|
4355
|
-
type:
|
|
4356
|
+
size: $.size,
|
|
4357
|
+
disabled: $.disabled,
|
|
4358
|
+
type: $.textarea ? "textarea" : void 0
|
|
4356
4359
|
}, null, 8, ["modelValue", "size", "disabled", "type"]), [
|
|
4357
4360
|
[ve, !i.value]
|
|
4358
4361
|
]),
|
|
@@ -4362,11 +4365,11 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4362
4365
|
filterable: "",
|
|
4363
4366
|
remote: "",
|
|
4364
4367
|
"remote-method": q,
|
|
4365
|
-
disabled:
|
|
4368
|
+
disabled: $.disabled,
|
|
4366
4369
|
"default-first-option": "",
|
|
4367
4370
|
"remote-show-suffix": "",
|
|
4368
4371
|
onChange: ye,
|
|
4369
|
-
size:
|
|
4372
|
+
size: $.size,
|
|
4370
4373
|
"allow-create": "",
|
|
4371
4374
|
clearable: "",
|
|
4372
4375
|
onBlur: Z,
|
|
@@ -4400,7 +4403,7 @@ const Ir = /* @__PURE__ */ z({
|
|
|
4400
4403
|
[ve, i.value]
|
|
4401
4404
|
]),
|
|
4402
4405
|
b(Or, {
|
|
4403
|
-
"app-id":
|
|
4406
|
+
"app-id": $.appId,
|
|
4404
4407
|
"pre-key": y.value,
|
|
4405
4408
|
modelValue: m.value,
|
|
4406
4409
|
"onUpdate:modelValue": O[3] || (O[3] = (R) => m.value = R),
|