@king-one/antdv 2.3.4 → 2.3.5
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/src/dept.mjs +34 -33
- package/dist/es/components/index.mjs +45 -42
- package/dist/es/components/pro-form-render/src/module/AioArrayInput.vue.mjs +42 -41
- package/dist/es/components/pro-form-render/src/module/AioDatePicker.vue.mjs +1 -1
- package/dist/es/components/pro-form-render/src/module/AioInput.vue.mjs +1 -1
- package/dist/es/components/pro-form-render/src/module/AioInputNumber.vue.mjs +1 -1
- package/dist/es/components/pro-form-render/src/module/AioSelect.vue.mjs +1 -1
- package/dist/es/components/pro-form-render/src/module/AioTextarea.vue.mjs +1 -1
- package/dist/es/components/pro-form-render/src/module/AioTimePicker.vue.mjs +1 -1
- package/dist/es/components/pro-selector/index.mjs +13 -10
- package/dist/es/components/pro-selector/src/components/org-tree.mjs +47 -47
- package/dist/es/components/pro-selector/src/components/user.mjs +22 -12
- package/dist/es/components/pro-selector/src/pro-user.mjs +22 -22
- package/dist/es/components/pro-selector-group/index.mjs +11 -0
- package/dist/es/components/pro-selector-group/src/compoents/dept-tree.vue.mjs +4 -0
- package/dist/es/components/pro-selector-group/src/compoents/dept-tree.vue2.mjs +124 -0
- package/dist/es/components/pro-selector-group/src/compoents/dept.vue.mjs +47 -0
- package/dist/es/components/pro-selector-group/src/compoents/dept.vue2.mjs +4 -0
- package/dist/es/components/pro-selector-group/src/compoents/index.mjs +3 -0
- package/dist/es/components/pro-selector-group/src/compoents/role.vue.mjs +129 -0
- package/dist/es/components/pro-selector-group/src/compoents/role.vue2.mjs +4 -0
- package/dist/es/components/pro-selector-group/src/compoents/select-box.vue.mjs +4 -0
- package/dist/es/components/pro-selector-group/src/compoents/select-box.vue2.mjs +95 -0
- package/dist/es/components/pro-selector-group/src/compoents/user.vue.mjs +148 -0
- package/dist/es/components/pro-selector-group/src/compoents/user.vue2.mjs +4 -0
- package/dist/es/components/pro-selector-group/src/hooks/useApi.mjs +60 -0
- package/dist/es/components/pro-selector-group/src/index.vue.mjs +4 -0
- package/dist/es/components/pro-selector-group/src/index.vue2.mjs +186 -0
- package/dist/es/components/pro-selector-group/src/style/index.mjs +2 -0
- package/dist/es/components/pro-selector-group/src/types.mjs +4 -0
- package/dist/es/components/pro-sign/src/components/add-signature.vue2.mjs +57 -49
- package/dist/es/components/pro-sign/src/components/batch.vue2.mjs +133 -125
- package/dist/es/components/pro-sign/src/components/date.vue.mjs +23 -23
- package/dist/es/components/pro-sign/src/components/loader.vue2.mjs +48 -48
- package/dist/es/components/pro-sign/src/components/middle.vue.mjs +151 -147
- package/dist/es/components/pro-sign/src/components/signature.vue.mjs +39 -39
- package/dist/es/components/pro-sign/src/components/verify.vue2.mjs +50 -42
- package/dist/es/components/pro-table/src/field/field.vue2.mjs +60 -60
- package/dist/es/components/pro-table/src/form-render.vue2.mjs +51 -45
- package/dist/es/components/pro-table/src/pro-table.vue2.mjs +96 -89
- package/dist/es/components/pro-user-avatar/src/index.vue2.mjs +52 -52
- package/dist/es/components/role-selector/src/role.mjs +23 -20
- package/dist/es/components/scale-virtual-list/component/scale-virtual-list.vue2.mjs +19 -19
- package/dist/es/index.mjs +93 -86
- package/dist/lib/components/dept-selector/src/dept.js +1 -1
- package/dist/lib/components/index.js +1 -1
- package/dist/lib/components/pro-form-render/src/module/AioArrayInput.vue.js +1 -1
- package/dist/lib/components/pro-form-render/src/module/AioDatePicker.vue.js +1 -1
- package/dist/lib/components/pro-form-render/src/module/AioInput.vue.js +1 -1
- package/dist/lib/components/pro-form-render/src/module/AioInputNumber.vue.js +1 -1
- package/dist/lib/components/pro-form-render/src/module/AioSelect.vue.js +1 -1
- package/dist/lib/components/pro-form-render/src/module/AioTextarea.vue.js +1 -1
- package/dist/lib/components/pro-form-render/src/module/AioTimePicker.vue.js +1 -1
- package/dist/lib/components/pro-selector/index.js +1 -1
- package/dist/lib/components/pro-selector/src/components/user.js +1 -1
- package/dist/lib/components/pro-selector-group/index.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/dept-tree.vue.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/dept-tree.vue2.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/dept.vue.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/dept.vue2.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/index.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/role.vue.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/role.vue2.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/select-box.vue.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/select-box.vue2.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/user.vue.js +1 -0
- package/dist/lib/components/pro-selector-group/src/compoents/user.vue2.js +1 -0
- package/dist/lib/components/pro-selector-group/src/hooks/useApi.js +1 -0
- package/dist/lib/components/pro-selector-group/src/index.vue.js +1 -0
- package/dist/lib/components/pro-selector-group/src/index.vue2.js +1 -0
- package/dist/lib/components/pro-selector-group/src/style/index.js +1 -0
- package/dist/lib/components/pro-selector-group/src/types.js +1 -0
- package/dist/lib/components/pro-sign/src/components/add-signature.vue2.js +1 -1
- package/dist/lib/components/pro-sign/src/components/batch.vue2.js +1 -1
- package/dist/lib/components/pro-sign/src/components/date.vue.js +1 -1
- package/dist/lib/components/pro-sign/src/components/loader.vue2.js +2 -2
- package/dist/lib/components/pro-sign/src/components/middle.vue.js +1 -1
- package/dist/lib/components/pro-sign/src/components/signature.vue.js +1 -1
- package/dist/lib/components/pro-sign/src/components/verify.vue2.js +1 -1
- package/dist/lib/components/pro-table/src/field/field.vue2.js +1 -1
- package/dist/lib/components/pro-table/src/form-render.vue2.js +1 -1
- package/dist/lib/components/pro-table/src/pro-table.vue2.js +1 -1
- package/dist/lib/components/pro-user-avatar/src/index.vue2.js +1 -1
- package/dist/lib/components/scale-virtual-list/component/scale-virtual-list.vue2.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/theme-chalk/pro-selector-group.css +1 -0
- package/dist/types/components/collapse-transtion/index.d.ts +5 -10
- package/dist/types/components/collapse-transtion/src/collapse-transtion.vue.d.ts +4 -4
- package/dist/types/components/cover-scroll-bar/hooks/use-has-scroll.d.ts +2 -2
- package/dist/types/components/cover-scroll-bar/index.d.ts +9 -9
- package/dist/types/components/cover-scroll-bar/src/cover-scroll-bar.d.ts +9 -9
- package/dist/types/components/dept-selector/index.d.ts +7 -7
- package/dist/types/components/dept-selector/src/dept.d.ts +7 -7
- package/dist/types/components/form/component/form-item.vue.d.ts +4 -4
- package/dist/types/components/form/component/form.vue.d.ts +2 -2
- package/dist/types/components/form/index.d.ts +8 -14
- package/dist/types/components/icon/index.d.ts +5 -5
- package/dist/types/components/icon/src/icon.vue.d.ts +5 -5
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/plus-upload/index.d.ts +12 -46
- package/dist/types/components/plus-upload/src/plus-upload.vue.d.ts +6 -6
- package/dist/types/components/pro-area/hooks/use-pro-area.d.ts +1 -1
- package/dist/types/components/pro-area/index.d.ts +8 -8
- package/dist/types/components/pro-area/src/ProArea.vue.d.ts +8 -8
- package/dist/types/components/pro-cell/index.d.ts +7 -254
- package/dist/types/components/pro-cell/src/index.vue.d.ts +3 -42
- package/dist/types/components/pro-cell-group/index.d.ts +5 -164
- package/dist/types/components/pro-cell-group/src/index.vue.d.ts +2 -11
- package/dist/types/components/pro-contract-view/hooks/use-contract-view.d.ts +20 -0
- package/dist/types/components/pro-contract-view/index.d.ts +76 -5
- package/dist/types/components/pro-contract-view/src/pro-contract-view.vue.d.ts +76 -5
- package/dist/types/components/pro-form-render/index.d.ts +651 -8
- package/dist/types/components/pro-form-render/src/index.vue.d.ts +651 -8
- package/dist/types/components/pro-form-render/src/module/AioArrayInput.vue.d.ts +7 -7
- package/dist/types/components/pro-form-render/src/module/AioDatePicker.vue.d.ts +7 -7
- package/dist/types/components/pro-form-render/src/module/AioInput.vue.d.ts +7 -7
- package/dist/types/components/pro-form-render/src/module/AioInputNumber.vue.d.ts +7 -7
- package/dist/types/components/pro-form-render/src/module/AioSelect.vue.d.ts +7 -7
- package/dist/types/components/pro-form-render/src/module/AioSubForm.vue.d.ts +687 -9
- package/dist/types/components/pro-form-render/src/module/AioSwitch.vue.d.ts +7 -7
- package/dist/types/components/pro-form-render/src/module/AioTextarea.vue.d.ts +7 -7
- package/dist/types/components/pro-form-render/src/module/AioTimePicker.vue.d.ts +7 -7
- package/dist/types/components/pro-modal/hooks/useProModal.d.ts +1 -1
- package/dist/types/components/pro-modal/index.d.ts +12 -28
- package/dist/types/components/pro-modal/src/Modal.d.ts +5 -5
- package/dist/types/components/pro-modal/src/ProModal.vue.d.ts +7 -5
- package/dist/types/components/pro-overlay/index.d.ts +4 -4
- package/dist/types/components/pro-overlay/src/pro-overlay.vue.d.ts +2 -2
- package/dist/types/components/pro-picker/index.d.ts +9 -8
- package/dist/types/components/pro-picker/src/ProPicker.vue.d.ts +9 -8
- package/dist/types/components/pro-selector/index.d.ts +48 -9
- package/dist/types/components/pro-selector/src/components/org-tree.d.ts +6 -6
- package/dist/types/components/pro-selector/src/components/user.d.ts +8 -8
- package/dist/types/components/pro-selector/src/pro-user.d.ts +13 -12
- package/dist/types/components/pro-selector-group/index.d.ts +25 -0
- package/dist/types/components/pro-selector-group/src/compoents/dept-tree.vue.d.ts +13 -0
- package/dist/types/components/pro-selector-group/src/compoents/dept.vue.d.ts +10 -0
- package/dist/types/components/pro-selector-group/src/compoents/index.d.ts +3 -0
- package/dist/types/components/pro-selector-group/src/compoents/role.vue.d.ts +10 -0
- package/dist/types/components/pro-selector-group/src/compoents/select-box.vue.d.ts +16 -0
- package/dist/types/components/pro-selector-group/src/compoents/user.vue.d.ts +10 -0
- package/dist/types/components/pro-selector-group/src/hooks/useApi.d.ts +102 -0
- package/dist/types/components/pro-selector-group/src/index.vue.d.ts +22 -0
- package/dist/types/components/pro-selector-group/src/types.d.ts +30 -0
- package/dist/types/components/pro-selector-group/src/utils/index.d.ts +2 -0
- package/dist/types/components/pro-sign/index.d.ts +4 -4
- package/dist/types/components/pro-sign/src/components/add-signature.vue.d.ts +121 -11
- package/dist/types/components/pro-sign/src/components/batch.vue.d.ts +6 -6
- package/dist/types/components/pro-sign/src/components/date.vue.d.ts +2 -2
- package/dist/types/components/pro-sign/src/components/files.vue.d.ts +2 -2
- package/dist/types/components/pro-sign/src/components/info.vue.d.ts +2 -2
- package/dist/types/components/pro-sign/src/components/loader.vue.d.ts +93 -62
- package/dist/types/components/pro-sign/src/components/middle.vue.d.ts +137 -2
- package/dist/types/components/pro-sign/src/components/pro-sign.vue.d.ts +4 -4
- package/dist/types/components/pro-sign/src/components/seals.vue.d.ts +2 -2
- package/dist/types/components/pro-sign/src/components/signature.vue.d.ts +2 -2
- package/dist/types/components/pro-sign/src/components/verify.vue.d.ts +6 -6
- package/dist/types/components/pro-sign/src/hook/useScrollDetection.d.ts +2 -2
- package/dist/types/components/pro-sign/src/hook/useSms.d.ts +2 -2
- package/dist/types/components/pro-signature/index.d.ts +9 -7
- package/dist/types/components/pro-signature/src/ProSignature.vue.d.ts +9 -7
- package/dist/types/components/pro-table/hooks/use-pro-table.d.ts +1 -1
- package/dist/types/components/pro-table/src/field/field-date-range/field-date-range.vue.d.ts +5 -14
- package/dist/types/components/pro-table/src/field/field-input/field-input.vue.d.ts +5 -14
- package/dist/types/components/pro-table/src/field/field-radio/field-radio.vue.d.ts +5 -14
- package/dist/types/components/pro-table/src/field/field-select/field-select.vue.d.ts +5 -14
- package/dist/types/components/pro-table/src/field/field.vue.d.ts +2 -11
- package/dist/types/components/pro-table/src/form-render.vue.d.ts +646 -3
- package/dist/types/components/pro-table/src/hooks/use-form.d.ts +1 -1
- package/dist/types/components/pro-table/src/pro-table.vue.d.ts +49 -3
- package/dist/types/components/pro-tag/index.d.ts +6 -6
- package/dist/types/components/pro-tag/src/ProTag.vue.d.ts +6 -6
- package/dist/types/components/pro-tag-group/index.d.ts +9 -7
- package/dist/types/components/pro-tag-group/src/ProTagGroup.vue.d.ts +9 -7
- package/dist/types/components/pro-title/index.d.ts +7 -24
- package/dist/types/components/pro-title/src/ProTitle.vue.d.ts +5 -5
- package/dist/types/components/pro-upload/index.d.ts +35 -107
- package/dist/types/components/pro-upload/src/file-list.d.ts +6 -6
- package/dist/types/components/pro-upload/src/gd-upload.d.ts +35 -107
- package/dist/types/components/pro-user-avatar/index.d.ts +18 -106
- package/dist/types/components/pro-user-avatar/src/index.vue.d.ts +9 -34
- package/dist/types/components/role-selector/index.d.ts +13 -13
- package/dist/types/components/role-selector/src/role.d.ts +7 -7
- package/dist/types/components/scale-virtual-list/component/scale-virtual-list.vue.d.ts +10 -29
- package/dist/types/components/scale-virtual-list/index.d.ts +21 -73
- package/dist/types/components/scroll-bar/index.d.ts +12 -12
- package/dist/types/components/scroll-bar/src/scroll-bar.d.ts +12 -12
- package/dist/types/hooks/useModelValue.d.ts +1 -1
- package/dist/types/hooks/useProForm.d.ts +2 -2
- package/global.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,16 +5,16 @@ import { message as W, FormItemRest as X, InputSearch as Y, Tree as Z, Empty as
|
|
|
5
5
|
import { GET_DEPT_TREE_URL as le, deptSelectorEmits as te, deptSelectorProps as ae } from "./types.mjs";
|
|
6
6
|
import { KProModal as ne } from "../../pro-modal/index.mjs";
|
|
7
7
|
import { KIcon as P } from "../../icon/index.mjs";
|
|
8
|
-
const
|
|
8
|
+
const h = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
9
9
|
name: "KDeptSelector",
|
|
10
10
|
props: ae,
|
|
11
11
|
emits: te,
|
|
12
12
|
setup(t, {
|
|
13
|
-
emit:
|
|
13
|
+
emit: f,
|
|
14
14
|
attrs: V,
|
|
15
15
|
slots: g
|
|
16
16
|
}) {
|
|
17
|
-
const x = s(!0),
|
|
17
|
+
const x = s(!0), I = s(!0), y = s([]), m = s([]), d = s([]), A = s(!1), u = s(t.isBuiltInRequest ? {
|
|
18
18
|
children: "children",
|
|
19
19
|
title: "deptName",
|
|
20
20
|
key: "id"
|
|
@@ -26,7 +26,7 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
26
26
|
e.status === 0 && (v.value = e.data);
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const w = () => {
|
|
30
30
|
if (t.type === "checkbox") {
|
|
31
31
|
if (!Array.isArray(t.modelValue)) return;
|
|
32
32
|
const e = t.modelValue.map((l) => l[u.value.key]);
|
|
@@ -39,22 +39,22 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
39
39
|
const e = t.modelValue[u.value.key];
|
|
40
40
|
m.value = [e], y.value = [e];
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, N = (e) => {
|
|
43
43
|
if (E.value)
|
|
44
44
|
return E.value = !1;
|
|
45
45
|
t.type === "radio" ? r.value.length > 0 && (S.value = r.value[0][u.value.title] || "") : S.value = r.value.map((l) => l[u.value.title]).join(",");
|
|
46
46
|
};
|
|
47
47
|
k(() => t.visible, () => {
|
|
48
|
-
t.visible &&
|
|
48
|
+
t.visible && w();
|
|
49
49
|
}, {
|
|
50
50
|
immediate: !0
|
|
51
51
|
}), k(() => t.modelValue, () => {
|
|
52
|
-
v.value.length > 0 &&
|
|
52
|
+
v.value.length > 0 && w();
|
|
53
53
|
}, {
|
|
54
54
|
immediate: !0,
|
|
55
55
|
deep: !0
|
|
56
56
|
}), k(v, () => {
|
|
57
|
-
v.value.length > 0 &&
|
|
57
|
+
v.value.length > 0 && w();
|
|
58
58
|
}, {
|
|
59
59
|
immediate: !0,
|
|
60
60
|
deep: !0
|
|
@@ -77,12 +77,12 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
77
77
|
return e ? e.map((l) => R(l)).filter(Boolean) : [];
|
|
78
78
|
}
|
|
79
79
|
k(d, () => {
|
|
80
|
-
t.type === "checkbox" && (x.value ? r.value = D(d.value.checked) : r.value = D(d.value),
|
|
80
|
+
t.type === "checkbox" && (x.value ? r.value = D(d.value.checked) : r.value = D(d.value), N("watch checkedKeys..."));
|
|
81
81
|
}, {
|
|
82
82
|
immediate: !0,
|
|
83
83
|
deep: !0
|
|
84
84
|
}), k(m, () => {
|
|
85
|
-
t.type === "radio" && (r.value = D(m.value),
|
|
85
|
+
t.type === "radio" && (r.value = D(m.value), N("watch selectedKeys..."));
|
|
86
86
|
}, {
|
|
87
87
|
immediate: !0,
|
|
88
88
|
deep: !0
|
|
@@ -94,19 +94,19 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
94
94
|
}, B = () => {
|
|
95
95
|
E.value = !0;
|
|
96
96
|
}, O = () => {
|
|
97
|
-
|
|
97
|
+
f("update:visible", !1), f("cancel");
|
|
98
98
|
}, F = () => {
|
|
99
99
|
if (!r.value.length) {
|
|
100
100
|
W.warn("请选择部门");
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
|
-
t.type === "radio" ?
|
|
103
|
+
t.type === "radio" ? f("update:modelValue", {
|
|
104
104
|
[u.value.key]: m.value[0],
|
|
105
105
|
[u.value.title]: r.value[0][u.value.title]
|
|
106
|
-
}) :
|
|
106
|
+
}) : f("update:modelValue", r.value.map((e) => ({
|
|
107
107
|
[u.value.key]: e[u.value.key],
|
|
108
108
|
[u.value.title]: e[u.value.title]
|
|
109
|
-
}))),
|
|
109
|
+
}))), f("update:visible", !1), f("confirm", r.value), N("handleConfirm ...");
|
|
110
110
|
}, M = (e) => {
|
|
111
111
|
if (E.value = !0, t.type === "radio")
|
|
112
112
|
return r.value = [], m.value = [], !1;
|
|
@@ -138,9 +138,9 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
138
138
|
onOnConfirm: F
|
|
139
139
|
}, {
|
|
140
140
|
default: () => [n("div", {
|
|
141
|
-
class:
|
|
141
|
+
class: h.e("modal-content")
|
|
142
142
|
}, [$(), j()], 2)]
|
|
143
|
-
}, 8, ["modelValue", "modalProps", "onOnCancel", "onOnConfirm"])]),
|
|
143
|
+
}, 8, ["modelValue", "modalProps", "onOnCancel", "onOnConfirm"])]), K = (e, l) => {
|
|
144
144
|
let i;
|
|
145
145
|
for (let o = 0; o < l.length; o++) {
|
|
146
146
|
const a = l[o];
|
|
@@ -148,27 +148,27 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
148
148
|
if (a.children.some((c) => c[u.value.key] === e)) {
|
|
149
149
|
i = a[u.value.key];
|
|
150
150
|
break;
|
|
151
|
-
} else
|
|
151
|
+
} else K(e, a.children) && (i = K(e, a.children));
|
|
152
152
|
}
|
|
153
153
|
return i;
|
|
154
154
|
}, z = (e) => {
|
|
155
155
|
if (!e.trim()) {
|
|
156
|
-
y.value = [], p.value = "",
|
|
156
|
+
y.value = [], p.value = "", I.value = !0;
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
159
|
const l = /* @__PURE__ */ new Set(), i = (o, a) => {
|
|
160
160
|
o.forEach((c) => {
|
|
161
161
|
var U;
|
|
162
162
|
if ((U = c[u.value.title]) != null && U.includes(a)) {
|
|
163
|
-
let
|
|
164
|
-
for (;
|
|
165
|
-
l.add(
|
|
163
|
+
let b = K(c[u.value.key], v.value);
|
|
164
|
+
for (; b; )
|
|
165
|
+
l.add(b), b = K(b, v.value);
|
|
166
166
|
l.add(c[u.value.key]);
|
|
167
167
|
}
|
|
168
168
|
c.children && c.children.length > 0 && i(c.children, a);
|
|
169
169
|
});
|
|
170
170
|
};
|
|
171
|
-
i(v.value, e), y.value = Array.from(l), p.value = e,
|
|
171
|
+
i(v.value, e), y.value = Array.from(l), p.value = e, I.value = !0;
|
|
172
172
|
}, G = (e) => {
|
|
173
173
|
const l = e[u.value.title] || "";
|
|
174
174
|
if (!p.value)
|
|
@@ -181,7 +181,7 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
181
181
|
style: "color: #f50; font-weight: bold"
|
|
182
182
|
}, [a]), c]);
|
|
183
183
|
}, $ = () => n("div", {
|
|
184
|
-
class:
|
|
184
|
+
class: h.e("modal-content-left")
|
|
185
185
|
}, [n(X, null, {
|
|
186
186
|
default: () => [n(Y, {
|
|
187
187
|
placeholder: "请输入部门名称",
|
|
@@ -201,7 +201,7 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
201
201
|
checkable: t.type === "checkbox",
|
|
202
202
|
checkStrictly: x.value,
|
|
203
203
|
"show-icon": !0,
|
|
204
|
-
autoExpandParent:
|
|
204
|
+
autoExpandParent: I.value,
|
|
205
205
|
blockNode: !0,
|
|
206
206
|
defaultExpandAll: !0,
|
|
207
207
|
fieldNames: u.value,
|
|
@@ -209,7 +209,7 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
209
209
|
"tree-data": v.value,
|
|
210
210
|
onCheck: _,
|
|
211
211
|
onSelect: B,
|
|
212
|
-
class:
|
|
212
|
+
class: h.e("modal-content-left-tree")
|
|
213
213
|
}, {
|
|
214
214
|
icon: (e) => T(e),
|
|
215
215
|
title: G,
|
|
@@ -221,13 +221,13 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
221
221
|
name: e.parentId === "0" ? "qiye" : "bumen",
|
|
222
222
|
size: 16
|
|
223
223
|
}, null, 8, ["name"]), j = () => n("div", {
|
|
224
|
-
class:
|
|
224
|
+
class: h.e("modal-content-right")
|
|
225
225
|
}, [r.value.length > 0 ? r.value.map((e) => n("div", {
|
|
226
|
-
class:
|
|
226
|
+
class: h.e("modal-content-right-item")
|
|
227
227
|
}, [n("div", {
|
|
228
|
-
class:
|
|
228
|
+
class: h.e("modal-content-right-item-label")
|
|
229
229
|
}, [T(e), n("span", null, [e[u.value.title]])], 2), n("div", {
|
|
230
|
-
class:
|
|
230
|
+
class: h.e("modal-content-right-item-del"),
|
|
231
231
|
onClick: () => M(e)
|
|
232
232
|
}, [n(P, {
|
|
233
233
|
name: "shanchu",
|
|
@@ -239,17 +239,18 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
239
239
|
return () => {
|
|
240
240
|
var e;
|
|
241
241
|
return n("div", {
|
|
242
|
-
class:
|
|
242
|
+
class: h.b()
|
|
243
243
|
}, [t.hideSlot ? null : (e = g.default) != null && e.call(g) ? g.default() : n("div", null, [n(ee, {
|
|
244
244
|
style: "width: 100%;",
|
|
245
245
|
readonly: !0,
|
|
246
246
|
value: S.value,
|
|
247
247
|
"onUpdate:value": (l) => S.value = l,
|
|
248
|
-
|
|
248
|
+
onInput: () => {
|
|
249
|
+
},
|
|
249
250
|
placeholder: "请选择部门"
|
|
250
251
|
}, {
|
|
251
252
|
suffix: () => n("div", {
|
|
252
|
-
onClick: () =>
|
|
253
|
+
onClick: () => f("update:visible", !0)
|
|
253
254
|
}, [n(P, {
|
|
254
255
|
style: {
|
|
255
256
|
cursor: "pointer"
|
|
@@ -259,7 +260,7 @@ const f = Q("dept-selector"), ve = /* @__PURE__ */ H({
|
|
|
259
260
|
color: "#606266"
|
|
260
261
|
}, null)], 8, ["onClick"]),
|
|
261
262
|
_: 1
|
|
262
|
-
}, 8, ["readonly", "value", "onUpdate:value", "
|
|
263
|
+
}, 8, ["readonly", "value", "onUpdate:value", "onInput"])]), q()], 2);
|
|
263
264
|
};
|
|
264
265
|
}
|
|
265
266
|
});
|
|
@@ -1,55 +1,58 @@
|
|
|
1
1
|
import { KCollapseTranstion as t } from "./collapse-transtion/index.mjs";
|
|
2
|
-
import { KProModal as
|
|
3
|
-
import { KProTitle as
|
|
4
|
-
import { KScrollBar as
|
|
2
|
+
import { KProModal as K } from "./pro-modal/index.mjs";
|
|
3
|
+
import { KProTitle as l } from "./pro-title/index.mjs";
|
|
4
|
+
import { KScrollBar as f } from "./scroll-bar/index.mjs";
|
|
5
5
|
import { KCoverScrollBar as P } from "./cover-scroll-bar/index.mjs";
|
|
6
|
-
import { KScaleVirtualList as
|
|
7
|
-
import { KProTag as
|
|
6
|
+
import { KScaleVirtualList as S } from "./scale-virtual-list/index.mjs";
|
|
7
|
+
import { KProTag as s } from "./pro-tag/index.mjs";
|
|
8
8
|
import { KProPicker as u } from "./pro-picker/index.mjs";
|
|
9
|
-
import { KProArea as
|
|
9
|
+
import { KProArea as U } from "./pro-area/index.mjs";
|
|
10
10
|
import { KProSignature as d } from "./pro-signature/index.mjs";
|
|
11
11
|
import { KProTable as v } from "./pro-table/index.mjs";
|
|
12
|
-
import { KIcon as
|
|
13
|
-
import { KProUpload as
|
|
14
|
-
import { KProContractView as
|
|
12
|
+
import { KIcon as G } from "./icon/index.mjs";
|
|
13
|
+
import { KProUpload as b } from "./pro-upload/index.mjs";
|
|
14
|
+
import { KProContractView as B } from "./pro-contract-view/index.mjs";
|
|
15
15
|
import "./pro-loading/index.mjs";
|
|
16
|
-
import { KPlusUpload as
|
|
17
|
-
import { KProOverlay as
|
|
18
|
-
import { KProSign as
|
|
19
|
-
import { KUserSelector as M } from "./pro-selector/index.mjs";
|
|
20
|
-
import { KProUserAvatar as
|
|
21
|
-
import { KProRoleSelector as
|
|
22
|
-
import { KDeptSelector as
|
|
23
|
-
import { KProTagGroup as
|
|
24
|
-
import { KFormRender as
|
|
25
|
-
import { KProCell as
|
|
26
|
-
import { KProCellGroup as
|
|
16
|
+
import { KPlusUpload as h } from "./plus-upload/index.mjs";
|
|
17
|
+
import { KProOverlay as y } from "./pro-overlay/index.mjs";
|
|
18
|
+
import { KProSign as F } from "./pro-sign/index.mjs";
|
|
19
|
+
import { KUserSelector as L, KUserSelectorCheckbox as M } from "./pro-selector/index.mjs";
|
|
20
|
+
import { KProUserAvatar as j, KUserAvatar as q } from "./pro-user-avatar/index.mjs";
|
|
21
|
+
import { KProRoleSelector as E, KRoleSelector as H } from "./role-selector/index.mjs";
|
|
22
|
+
import { KDeptSelector as N } from "./dept-selector/index.mjs";
|
|
23
|
+
import { KProTagGroup as W } from "./pro-tag-group/index.mjs";
|
|
24
|
+
import { KFormRender as Y } from "./pro-form-render/index.mjs";
|
|
25
|
+
import { KProCell as _ } from "./pro-cell/index.mjs";
|
|
26
|
+
import { KProCellGroup as rr } from "./pro-cell-group/index.mjs";
|
|
27
|
+
import { KProSelectorGroup as er } from "./pro-selector-group/index.mjs";
|
|
27
28
|
export {
|
|
28
29
|
t as KCollapseTranstion,
|
|
29
30
|
P as KCoverScrollBar,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
N as KDeptSelector,
|
|
32
|
+
Y as KFormRender,
|
|
33
|
+
G as KIcon,
|
|
34
|
+
h as KPlusUpload,
|
|
35
|
+
U as KProArea,
|
|
36
|
+
_ as KProCell,
|
|
37
|
+
rr as KProCellGroup,
|
|
38
|
+
B as KProContractView,
|
|
39
|
+
K as KProModal,
|
|
40
|
+
y as KProOverlay,
|
|
40
41
|
u as KProPicker,
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
E as KProRoleSelector,
|
|
43
|
+
er as KProSelectorGroup,
|
|
44
|
+
F as KProSign,
|
|
43
45
|
d as KProSignature,
|
|
44
46
|
v as KProTable,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
s as KProTag,
|
|
48
|
+
W as KProTagGroup,
|
|
49
|
+
l as KProTitle,
|
|
50
|
+
b as KProUpload,
|
|
51
|
+
j as KProUserAvatar,
|
|
52
|
+
H as KRoleSelector,
|
|
53
|
+
S as KScaleVirtualList,
|
|
54
|
+
f as KScrollBar,
|
|
55
|
+
q as KUserAvatar,
|
|
56
|
+
L as KUserSelector,
|
|
57
|
+
M as KUserSelectorCheckbox
|
|
55
58
|
};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent as v, useModel as y, createElementBlock as m, openBlock as u, createVNode as n, Fragment as I, renderList as g, createBlock as k, unref as o, withCtx as d, createElementVNode as i, mergeProps as h, mergeModels as _ } from "vue";
|
|
2
2
|
import { FormItem as V, Input as C, Button as B } from "ant-design-vue";
|
|
3
3
|
import { KIcon as b } from "../../../icon/index.mjs";
|
|
4
4
|
import { FormItemProps as A } from "../types.mjs";
|
|
5
|
-
const F = { class: "aio-list-input" }, M = { class: "aio-list-input-item" }, q = { class: "aio-list-input-icon" },
|
|
6
|
-
"div",
|
|
7
|
-
{ style: { "font-size": "14px", "padding-left": "6px" } },
|
|
8
|
-
" +新增 ",
|
|
9
|
-
-1
|
|
10
|
-
/* HOISTED */
|
|
11
|
-
), U = /* @__PURE__ */ v({
|
|
5
|
+
const F = { class: "aio-list-input" }, M = { class: "aio-list-input-item" }, q = { class: "aio-list-input-icon" }, P = /* @__PURE__ */ v({
|
|
12
6
|
__name: "AioArrayInput",
|
|
13
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ _(A, {
|
|
14
8
|
modelValue: {
|
|
15
9
|
type: Array,
|
|
16
10
|
default: () => []
|
|
@@ -19,42 +13,43 @@ const F = { class: "aio-list-input" }, M = { class: "aio-list-input-item" }, q =
|
|
|
19
13
|
}),
|
|
20
14
|
emits: ["update:modelValue"],
|
|
21
15
|
setup(p) {
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
|
|
16
|
+
const l = y(p, "modelValue");
|
|
17
|
+
function f() {
|
|
18
|
+
l.value.push({ value: "" });
|
|
25
19
|
}
|
|
26
|
-
function
|
|
27
|
-
e !== 0 &&
|
|
20
|
+
function c(e) {
|
|
21
|
+
e !== 0 && l.value.splice(e, 1);
|
|
28
22
|
}
|
|
29
|
-
return (e,
|
|
30
|
-
(
|
|
31
|
-
|
|
23
|
+
return (e, t) => (u(), m("div", F, [
|
|
24
|
+
(u(!0), m(
|
|
25
|
+
I,
|
|
32
26
|
null,
|
|
33
|
-
|
|
34
|
-
key:
|
|
27
|
+
g(l.value, (r, a) => (u(), k(o(V), {
|
|
28
|
+
key: a,
|
|
35
29
|
label: "",
|
|
36
|
-
name: [e.formItem.key,
|
|
37
|
-
rules:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
name: [e.formItem.key, a, "value"],
|
|
31
|
+
rules: [
|
|
32
|
+
{
|
|
33
|
+
required: e.formItem.required ?? !1,
|
|
34
|
+
message: "请输入内容",
|
|
35
|
+
trigger: "blur"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
42
38
|
}, {
|
|
43
39
|
default: d(() => [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
value:
|
|
47
|
-
"onUpdate:value": (
|
|
48
|
-
placeholder: e.formItem.placeholder
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
u(t(b), {
|
|
40
|
+
i("div", M, [
|
|
41
|
+
n(o(C), h({
|
|
42
|
+
value: r.value,
|
|
43
|
+
"onUpdate:value": (s) => r.value = s,
|
|
44
|
+
placeholder: e.formItem.placeholder || ""
|
|
45
|
+
}, { ref_for: !0 }, e.formItem.properties || {}), null, 16, ["value", "onUpdate:value", "placeholder"]),
|
|
46
|
+
i("div", q, [
|
|
47
|
+
n(o(b), {
|
|
53
48
|
name: "guanbi",
|
|
54
49
|
color: "#f56c6c",
|
|
55
50
|
size: 24,
|
|
56
51
|
style: { cursor: "pointer" },
|
|
57
|
-
onClick: (
|
|
52
|
+
onClick: (s) => c(a)
|
|
58
53
|
}, null, 8, ["onClick"])
|
|
59
54
|
])
|
|
60
55
|
])
|
|
@@ -65,14 +60,20 @@ const F = { class: "aio-list-input" }, M = { class: "aio-list-input-item" }, q =
|
|
|
65
60
|
128
|
|
66
61
|
/* KEYED_FRAGMENT */
|
|
67
62
|
)),
|
|
68
|
-
|
|
63
|
+
n(o(B), {
|
|
69
64
|
type: "dashed",
|
|
70
65
|
style: { width: "100%" },
|
|
71
|
-
onClick:
|
|
66
|
+
onClick: t[0] || (t[0] = (r) => f())
|
|
72
67
|
}, {
|
|
73
|
-
default: d(() => [
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
default: d(() => [...t[1] || (t[1] = [
|
|
69
|
+
i(
|
|
70
|
+
"div",
|
|
71
|
+
{ style: { "font-size": "14px", "padding-left": "6px" } },
|
|
72
|
+
" +新增 ",
|
|
73
|
+
-1
|
|
74
|
+
/* CACHED */
|
|
75
|
+
)
|
|
76
|
+
])]),
|
|
76
77
|
_: 1
|
|
77
78
|
/* STABLE */
|
|
78
79
|
})
|
|
@@ -80,5 +81,5 @@ const F = { class: "aio-list-input" }, M = { class: "aio-list-input-item" }, q =
|
|
|
80
81
|
}
|
|
81
82
|
});
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
P as default
|
|
84
85
|
};
|
|
@@ -16,7 +16,7 @@ const c = "YYYY-MM-DD", D = /* @__PURE__ */ a({
|
|
|
16
16
|
return (o, r) => (p(), u(d(i), n({
|
|
17
17
|
value: e.value,
|
|
18
18
|
"onUpdate:value": r[0] || (r[0] = (t) => e.value = t),
|
|
19
|
-
placeholder: o.formItem.placeholder
|
|
19
|
+
placeholder: o.formItem.placeholder || ""
|
|
20
20
|
}, o.formItem.properties || {}, {
|
|
21
21
|
"value-format": c,
|
|
22
22
|
style: { width: "100%" }
|
|
@@ -16,7 +16,7 @@ const V = /* @__PURE__ */ t({
|
|
|
16
16
|
return (o, l) => (a(), u(d(f), n({
|
|
17
17
|
value: e.value,
|
|
18
18
|
"onUpdate:value": l[0] || (l[0] = (m) => e.value = m),
|
|
19
|
-
placeholder: o.formItem.placeholder
|
|
19
|
+
placeholder: o.formItem.placeholder || ""
|
|
20
20
|
}, o.formItem.properties || {}), null, 16, ["value", "placeholder"]));
|
|
21
21
|
}
|
|
22
22
|
});
|
|
@@ -16,7 +16,7 @@ const V = /* @__PURE__ */ t({
|
|
|
16
16
|
return (o, r) => (a(), p(d(f), n({
|
|
17
17
|
value: e.value,
|
|
18
18
|
"onUpdate:value": r[0] || (r[0] = (m) => e.value = m),
|
|
19
|
-
placeholder: o.formItem.placeholder
|
|
19
|
+
placeholder: o.formItem.placeholder || ""
|
|
20
20
|
}, o.formItem.properties || {}, { style: { width: "100%" } }), null, 16, ["value", "placeholder"]));
|
|
21
21
|
}
|
|
22
22
|
});
|
|
@@ -19,7 +19,7 @@ const C = /* @__PURE__ */ s({
|
|
|
19
19
|
return (e, a) => (o(), u(m(y), f({
|
|
20
20
|
value: r.value,
|
|
21
21
|
"onUpdate:value": a[0] || (a[0] = (t) => r.value = t),
|
|
22
|
-
placeholder: e.formItem.placeholder
|
|
22
|
+
placeholder: e.formItem.placeholder || ""
|
|
23
23
|
}, e.formItem.properties || {}, { style: { width: "100%" } }), {
|
|
24
24
|
default: n(() => [
|
|
25
25
|
(o(!0), v(
|
|
@@ -21,7 +21,7 @@ const x = /* @__PURE__ */ s({
|
|
|
21
21
|
value: t.value,
|
|
22
22
|
"onUpdate:value": o[0] || (o[0] = (a) => t.value = a),
|
|
23
23
|
style: { width: "100%" },
|
|
24
|
-
placeholder: e.formItem.placeholder
|
|
24
|
+
placeholder: e.formItem.placeholder || ""
|
|
25
25
|
}, e.formItem.properties || {}, {
|
|
26
26
|
"auto-size": { minRows: l.value, maxRows: 20 }
|
|
27
27
|
}), null, 16, ["value", "placeholder", "auto-size"]));
|
|
@@ -17,7 +17,7 @@ const c = "HH:mm:ss", V = /* @__PURE__ */ t({
|
|
|
17
17
|
value: e.value,
|
|
18
18
|
"onUpdate:value": r[0] || (r[0] = (m) => e.value = m),
|
|
19
19
|
"value-format": c,
|
|
20
|
-
placeholder: o.formItem.placeholder
|
|
20
|
+
placeholder: o.formItem.placeholder || ""
|
|
21
21
|
}, o.formItem.properties || {}, { style: { width: "100%" } }), null, 16, ["value", "placeholder"]));
|
|
22
22
|
}
|
|
23
23
|
});
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import
|
|
1
|
+
import { withInstall as e } from "../utils/install.mjs";
|
|
2
|
+
import r from "./src/pro-user.mjs";
|
|
3
|
+
import o from "./src/components/user.mjs";
|
|
3
4
|
import "./style/index.mjs";
|
|
4
|
-
import { GTE_ORGTREE_URL as
|
|
5
|
+
import { GTE_ORGTREE_URL as R, UserSelectorProps as S, selectUserContextKey as x, userSelectorEmits as f } from "./src/types.mjs";
|
|
5
6
|
import "./src/hooks/index.mjs";
|
|
6
|
-
|
|
7
|
-
const p = r(
|
|
7
|
+
r.GTE_ORGTREE_URL = "/security/dept/user/tree";
|
|
8
|
+
const p = e(r), i = e(o);
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
R as GTE_ORGTREE_URL,
|
|
10
11
|
p as KUserSelector,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
i as KUserSelectorCheckbox,
|
|
13
|
+
r as ProUserSelector,
|
|
14
|
+
o as ProUserSelectorCheckbox,
|
|
15
|
+
S as UserSelectorProps,
|
|
16
|
+
x as selectUserContextKey,
|
|
17
|
+
f as userSelectorEmits
|
|
15
18
|
};
|