@aplus-frontend/ui 0.6.7 → 6.9.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/es/index.mjs +187 -193
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +10 -5
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +42 -36
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +5 -0
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +24 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +1 -0
- package/es/src/ap-form/search-form/index.vue.mjs +53 -48
- package/es/src/ap-grid/hooks/use-row-selection.mjs +57 -62
- package/es/src/ap-grid/utils/renderer.mjs +9 -9
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
- package/es/src/business/ap-radio-group/index.d.ts +3 -3
- package/es/src/business/ap-summary/interface.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +122 -118
- package/es/src/business/ap-view/index.d.ts +3 -0
- package/es/src/business/ap-view/interface.d.ts +4 -0
- package/es/src/business/hooks/useKeepAliveFlag.d.ts +14 -0
- package/es/src/business/hooks/useKeepAliveFlag.mjs +18 -0
- package/es/src/business/hooks/usePageListApGrid.d.ts +4 -0
- package/es/src/business/hooks/usePageListApGrid.mjs +52 -48
- package/es/src/business/index.d.ts +0 -1
- package/es/src/business/index.mjs +42 -46
- package/es/src/index.d.ts +0 -1
- package/es/src/index.mjs +274 -281
- package/es/src/locale/lang/en.mjs +0 -7
- package/es/src/locale/lang/zh-cn.mjs +0 -7
- package/es/src/path-map.mjs +0 -2
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-form/interface.d.ts +10 -5
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +5 -0
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +1 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/utils/renderer.js +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +3 -3
- package/lib/src/business/ap-summary/interface.d.ts +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/index.d.ts +3 -0
- package/lib/src/business/ap-view/interface.d.ts +4 -0
- package/lib/src/business/hooks/useKeepAliveFlag.d.ts +14 -0
- package/lib/src/business/hooks/useKeepAliveFlag.js +1 -0
- package/lib/src/business/hooks/usePageListApGrid.d.ts +4 -0
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/index.d.ts +0 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/index.d.ts +0 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -10
- package/theme/ap-form/index.css +16 -0
- package/theme/ap-form/search-form.css +16 -0
- package/theme/ap-form/search-form.less +16 -0
- package/theme/ap-grid/index.css +20 -0
- package/theme/ap-grid/index.less +4 -0
- package/theme/ap-table/ap-table.css +16 -0
- package/theme/ap-table-modal/index.css +16 -0
- package/theme/editable-table/index.css +16 -0
- package/theme/index.css +20 -0
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +0 -73
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +0 -46
- package/es/src/ap-info-layout/ApInfoLayout.vue2.mjs +0 -4
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +0 -29
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +0 -4
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +0 -41
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +0 -30
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +0 -4
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +0 -71
- package/es/src/ap-info-layout/index.d.ts +0 -3
- package/es/src/ap-info-layout/index.mjs +0 -2
- package/es/src/ap-info-layout/interface.d.ts +0 -10
- package/es/src/ap-info-layout/interface.mjs +0 -1
- package/es/src/ap-info-layout/style/css.d.ts +0 -0
- package/es/src/ap-info-layout/style/css.js +0 -1
- package/es/src/ap-info-layout/style/index.d.ts +0 -0
- package/es/src/ap-info-layout/style/index.js +0 -1
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +0 -35
- package/es/src/business/ap-group-search/ap-group-search.vue.mjs +0 -4
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +0 -202
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +0 -14
- package/es/src/business/ap-group-search/extension-select/index.vue.mjs +0 -4
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +0 -135
- package/es/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/extension-select/style/css.js +0 -1
- package/es/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/extension-select/style/index.js +0 -1
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +0 -3
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +0 -28
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +0 -3
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +0 -45
- package/es/src/business/ap-group-search/index.d.ts +0 -1536
- package/es/src/business/ap-group-search/index.mjs +0 -14
- package/es/src/business/ap-group-search/interface.d.ts +0 -11
- package/es/src/business/ap-group-search/interface.mjs +0 -1
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +0 -424
- package/es/src/business/ap-group-search/popover-select/index.vue.mjs +0 -4
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +0 -193
- package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/popover-select/style/css.js +0 -1
- package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/popover-select/style/index.js +0 -1
- package/es/src/business/ap-group-search/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/style/css.js +0 -1
- package/es/src/business/ap-group-search/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/style/index.js +0 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +0 -73
- package/lib/src/ap-info-layout/ApInfoLayout.vue.js +0 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue2.js +0 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +0 -29
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +0 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +0 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +0 -30
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.js +0 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +0 -1
- package/lib/src/ap-info-layout/index.d.ts +0 -3
- package/lib/src/ap-info-layout/index.js +0 -1
- package/lib/src/ap-info-layout/interface.d.ts +0 -10
- package/lib/src/ap-info-layout/interface.js +0 -1
- package/lib/src/ap-info-layout/style/css.cjs +0 -1
- package/lib/src/ap-info-layout/style/css.d.ts +0 -0
- package/lib/src/ap-info-layout/style/index.cjs +0 -1
- package/lib/src/ap-info-layout/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +0 -35
- package/lib/src/business/ap-group-search/ap-group-search.vue.js +0 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +0 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +0 -14
- package/lib/src/business/ap-group-search/extension-select/index.vue.js +0 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +0 -1
- package/lib/src/business/ap-group-search/extension-select/style/css.cjs +0 -1
- package/lib/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/extension-select/style/index.cjs +0 -1
- package/lib/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +0 -3
- package/lib/src/business/ap-group-search/images/icon-down.vue.js +0 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +0 -3
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +0 -1
- package/lib/src/business/ap-group-search/index.d.ts +0 -1536
- package/lib/src/business/ap-group-search/index.js +0 -1
- package/lib/src/business/ap-group-search/interface.d.ts +0 -11
- package/lib/src/business/ap-group-search/interface.js +0 -1
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +0 -424
- package/lib/src/business/ap-group-search/popover-select/index.vue.js +0 -1
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +0 -2
- package/lib/src/business/ap-group-search/popover-select/style/css.cjs +0 -1
- package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/popover-select/style/index.cjs +0 -1
- package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/style/css.cjs +0 -1
- package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/style/index.cjs +0 -1
- package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import { IconApFilterOutlined as
|
|
1
|
+
import { defineComponent as h, ref as y, toRef as w, createBlock as u, openBlock as s, unref as e, withCtx as o, createVNode as t, normalizeClass as a, withDirectives as x, createElementVNode as f, toDisplayString as g, vShow as R, createElementBlock as S, Fragment as D, renderList as L, resolveDynamicComponent as N, createTextVNode as b } from "vue";
|
|
2
|
+
import { Popover as P, Tooltip as T, Button as d, Row as V, Col as z, Divider as A, Flex as E } from "@aplus-frontend/antdv";
|
|
3
|
+
import { IconApFilterOutlined as I } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
5
|
+
import { useCollapseInputCount as j } from "../hooks/use-collapse-input-count.mjs";
|
|
6
|
+
import { useNamespace as O } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { useLocale as U } from "../../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
const Q = /* @__PURE__ */ h({
|
|
8
9
|
name: "ApFormSearchFormPopoverFilter",
|
|
9
10
|
__name: "popover-filter",
|
|
10
11
|
props: {
|
|
@@ -12,35 +13,35 @@ const U = /* @__PURE__ */ C({
|
|
|
12
13
|
onSubmit: { type: Function },
|
|
13
14
|
submitLoading: { type: Boolean }
|
|
14
15
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const k =
|
|
17
|
-
function
|
|
16
|
+
setup(k) {
|
|
17
|
+
const C = k, F = y(), { e: i, b: c } = O("ap-form-search-form"), { t: m } = U(), p = y(!1), B = w(() => C.config), { count: v } = j(B);
|
|
18
|
+
function _(r) {
|
|
18
19
|
return (r == null ? void 0 : r.closest(".ant-form")) || document.body;
|
|
19
20
|
}
|
|
20
|
-
return (r,
|
|
21
|
-
open:
|
|
22
|
-
"onUpdate:open":
|
|
23
|
-
"overlay-class-name": e(
|
|
21
|
+
return (r, l) => (s(), u(e(P), {
|
|
22
|
+
open: p.value,
|
|
23
|
+
"onUpdate:open": l[1] || (l[1] = (n) => p.value = n),
|
|
24
|
+
"overlay-class-name": e(i)("popover"),
|
|
24
25
|
trigger: "click",
|
|
25
26
|
placement: "bottom",
|
|
26
27
|
mask: "",
|
|
27
28
|
"mask-style": { backgroundColor: "transparent" },
|
|
28
|
-
"get-popup-container":
|
|
29
|
+
"get-popup-container": _,
|
|
29
30
|
"force-render": !0
|
|
30
31
|
}, {
|
|
31
32
|
content: o(() => [
|
|
32
|
-
|
|
33
|
-
class:
|
|
33
|
+
f("div", {
|
|
34
|
+
class: a([e(i)("popover-content")]),
|
|
34
35
|
style: { paddingBottom: "4px", width: "825px" }
|
|
35
36
|
}, [
|
|
36
|
-
t(e(
|
|
37
|
+
t(e(V), { gutter: 8 }, {
|
|
37
38
|
default: o(() => [
|
|
38
|
-
(
|
|
39
|
+
(s(!0), S(D, null, L(r.config, (n) => (s(), u(e(z), {
|
|
39
40
|
key: n.key,
|
|
40
41
|
span: 8
|
|
41
42
|
}, {
|
|
42
43
|
default: o(() => [
|
|
43
|
-
(
|
|
44
|
+
(s(), u(N(n.node)))
|
|
44
45
|
]),
|
|
45
46
|
_: 2
|
|
46
47
|
}, 1024))), 128))
|
|
@@ -48,28 +49,28 @@ const U = /* @__PURE__ */ C({
|
|
|
48
49
|
_: 1
|
|
49
50
|
})
|
|
50
51
|
], 2),
|
|
51
|
-
t(e(
|
|
52
|
-
|
|
53
|
-
class:
|
|
52
|
+
t(e(A), { style: { margin: "0" } }),
|
|
53
|
+
f("div", {
|
|
54
|
+
class: a(e(i)("popover-footer"))
|
|
54
55
|
}, [
|
|
55
|
-
t(e(
|
|
56
|
+
t(e(E), { justify: "end" }, {
|
|
56
57
|
default: o(() => [
|
|
57
|
-
t(e(
|
|
58
|
-
onClick:
|
|
58
|
+
t(e(d), {
|
|
59
|
+
onClick: l[0] || (l[0] = (n) => p.value = !1)
|
|
59
60
|
}, {
|
|
60
61
|
default: o(() => [
|
|
61
|
-
|
|
62
|
+
b(g(e(m)("ap.common.cancelText")), 1)
|
|
62
63
|
]),
|
|
63
64
|
_: 1
|
|
64
65
|
}),
|
|
65
|
-
t(e(
|
|
66
|
-
class:
|
|
66
|
+
t(e(d), {
|
|
67
|
+
class: a(e(i)("popover-footer-confirm-btn")),
|
|
67
68
|
type: "primary",
|
|
68
69
|
loading: r.submitLoading,
|
|
69
70
|
onClick: r.onSubmit
|
|
70
71
|
}, {
|
|
71
72
|
default: o(() => [
|
|
72
|
-
|
|
73
|
+
b(g(e(m)("ap.apForm.search.search")), 1)
|
|
73
74
|
]),
|
|
74
75
|
_: 1
|
|
75
76
|
}, 8, ["class", "loading", "onClick"])
|
|
@@ -79,18 +80,23 @@ const U = /* @__PURE__ */ C({
|
|
|
79
80
|
], 2)
|
|
80
81
|
]),
|
|
81
82
|
default: o(() => [
|
|
82
|
-
t(e(
|
|
83
|
-
title: e(
|
|
83
|
+
t(e(T), {
|
|
84
|
+
title: e(m)("ap.apForm.search.moreFilter"),
|
|
84
85
|
placement: "top"
|
|
85
86
|
}, {
|
|
86
87
|
default: o(() => [
|
|
87
|
-
t(e(
|
|
88
|
+
t(e(d), {
|
|
88
89
|
ref_key: "triggerBtnRef",
|
|
89
|
-
ref:
|
|
90
|
-
class:
|
|
90
|
+
ref: F,
|
|
91
|
+
class: a([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: p.value }])
|
|
91
92
|
}, {
|
|
92
93
|
icon: o(() => [
|
|
93
|
-
|
|
94
|
+
x(f("sup", {
|
|
95
|
+
class: a(e(c)("trigger-btn-badge"))
|
|
96
|
+
}, g(e(v)), 3), [
|
|
97
|
+
[R, e(v) !== 0]
|
|
98
|
+
]),
|
|
99
|
+
t(e(I), { size: 14 })
|
|
94
100
|
]),
|
|
95
101
|
_: 1
|
|
96
102
|
}, 8, ["class"])
|
|
@@ -103,5 +109,5 @@ const U = /* @__PURE__ */ C({
|
|
|
103
109
|
}
|
|
104
110
|
});
|
|
105
111
|
export {
|
|
106
|
-
|
|
112
|
+
Q as default
|
|
107
113
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { computed as s } from "vue";
|
|
2
|
+
import { useInjectForm as f } from "../../context.mjs";
|
|
3
|
+
import { isArray as e, isObject as a } from "lodash-unified";
|
|
4
|
+
function p(t, r) {
|
|
5
|
+
return e(r) ? r.reduce((n, o) => n == null ? void 0 : n[o], t) : t == null ? void 0 : t[r];
|
|
6
|
+
}
|
|
7
|
+
function g(t) {
|
|
8
|
+
return t == null ? !1 : typeof t == "string" ? t.trim() !== "" : e(t) ? t.length > 0 : a(t) ? Object.keys(t).length > 0 : !0;
|
|
9
|
+
}
|
|
10
|
+
const b = (t) => {
|
|
11
|
+
const { model: r } = f();
|
|
12
|
+
return {
|
|
13
|
+
count: s(() => {
|
|
14
|
+
let o = 0;
|
|
15
|
+
return t.value.forEach((u) => {
|
|
16
|
+
const i = [u.node.props.name].flat(1), c = p(r == null ? void 0 : r.value, i);
|
|
17
|
+
g(c) && (o += 1);
|
|
18
|
+
}), o;
|
|
19
|
+
})
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
b as useCollapseInputCount
|
|
24
|
+
};
|
|
@@ -858,6 +858,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
858
858
|
forceExpand: boolean;
|
|
859
859
|
maxRows: number;
|
|
860
860
|
sortable: boolean;
|
|
861
|
+
loadingDelay: number;
|
|
861
862
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
862
863
|
apForm: ({
|
|
863
864
|
$: ComponentInternalInstance;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isVNode as le, defineComponent as re, useSlots as se, ref as
|
|
2
|
-
import { Col as w, Flex as N, Button as
|
|
1
|
+
import { isVNode as le, defineComponent as re, useSlots as se, ref as D, shallowRef as U, computed as S, unref as n, watch as W, createVNode as o, Fragment as _, createBlock as g, openBlock as d, mergeProps as ie, withCtx as B, resolveDynamicComponent as I, createElementBlock as ue, renderList as ce } from "vue";
|
|
2
|
+
import { Col as w, Flex as N, Button as M, Row as pe } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
5
|
-
import { genRealChildren as
|
|
5
|
+
import { genRealChildren as z } from "../item-group/helper.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { isArray as de, isBoolean as
|
|
7
|
+
import { isArray as de, isBoolean as fe, omit as me } from "lodash-unified";
|
|
8
8
|
import { isDef as q } from "../../utils/index.mjs";
|
|
9
9
|
import { execFunc as H, diffFormItem as he } from "./utils.mjs";
|
|
10
10
|
import "./components/popover-filter.vue.mjs";
|
|
@@ -17,10 +17,10 @@ import G from "../item/index.vue.mjs";
|
|
|
17
17
|
import Ce from "./components/popover-filter.vue2.mjs";
|
|
18
18
|
import Se from "./components/popover-sorter/index.vue2.mjs";
|
|
19
19
|
import _e from "../ap-form.vue2.mjs";
|
|
20
|
-
function we(
|
|
21
|
-
return typeof
|
|
20
|
+
function we(f) {
|
|
21
|
+
return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !le(f);
|
|
22
22
|
}
|
|
23
|
-
const s = 24,
|
|
23
|
+
const s = 24, ze = /* @__PURE__ */ re({
|
|
24
24
|
name: "ApFormSearchForm",
|
|
25
25
|
__name: "index",
|
|
26
26
|
props: {
|
|
@@ -110,36 +110,39 @@ const s = 24, De = /* @__PURE__ */ re({
|
|
|
110
110
|
type: Boolean,
|
|
111
111
|
default: !0
|
|
112
112
|
},
|
|
113
|
-
resizeTarget: {}
|
|
113
|
+
resizeTarget: {},
|
|
114
|
+
loadingDelay: {
|
|
115
|
+
default: 300
|
|
116
|
+
}
|
|
114
117
|
},
|
|
115
|
-
setup(
|
|
118
|
+
setup(f, {
|
|
116
119
|
expose: J
|
|
117
120
|
}) {
|
|
118
121
|
var L;
|
|
119
|
-
const i = se(),
|
|
120
|
-
b:
|
|
122
|
+
const i = se(), t = f, {
|
|
123
|
+
b: m
|
|
121
124
|
} = ye("ap-form-search-form"), {
|
|
122
125
|
t: k
|
|
123
|
-
} = ve(), K = xe(
|
|
126
|
+
} = ve(), K = xe(t), y = D(), Q = D();
|
|
124
127
|
function T() {
|
|
125
128
|
var a;
|
|
126
129
|
const e = (a = y.value) == null ? void 0 : a.getFieldsValueTransformed(!0);
|
|
127
|
-
H(
|
|
130
|
+
H(t.onSubmit, e);
|
|
128
131
|
}
|
|
129
132
|
function X() {
|
|
130
133
|
var e, a;
|
|
131
|
-
|
|
134
|
+
t.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), H(t.onReset);
|
|
132
135
|
}
|
|
133
136
|
const Y = (e) => q(e) ? (de(e) ? e : [e]).join("") : Date.now();
|
|
134
137
|
let E = [];
|
|
135
|
-
const h =
|
|
138
|
+
const h = U(z(i.default())), c = U((L = i.extra) == null ? void 0 : L.call(i)), P = S(() => Math.floor(s / n(K))), {
|
|
136
139
|
items: R,
|
|
137
140
|
sorted: O,
|
|
138
141
|
handleClickConfirm: b
|
|
139
142
|
} = ge(h);
|
|
140
|
-
|
|
141
|
-
E = h.value, h.value = he(E,
|
|
142
|
-
}),
|
|
143
|
+
W(() => i.default(), (e) => {
|
|
144
|
+
E = h.value, h.value = he(E, z(e)), O.value = !1;
|
|
145
|
+
}), W(() => {
|
|
143
146
|
var e;
|
|
144
147
|
return (e = i.extra) == null ? void 0 : e.call(i);
|
|
145
148
|
}, (e) => {
|
|
@@ -148,10 +151,10 @@ const s = 24, De = /* @__PURE__ */ re({
|
|
|
148
151
|
const l = S(() => {
|
|
149
152
|
const e = h.value, a = [], r = [], x = [], u = n(P);
|
|
150
153
|
let v = 0, F = 0;
|
|
151
|
-
const te = s *
|
|
154
|
+
const te = s * t.maxRows - u * (n(c) && !t.extraInAction ? 2 : 1);
|
|
152
155
|
e.forEach((A, ne) => {
|
|
153
156
|
const p = A.props;
|
|
154
|
-
if (
|
|
157
|
+
if (fe(p.hidden) ? !!p.hidden : q(p.hidden))
|
|
155
158
|
a.push(A);
|
|
156
159
|
else {
|
|
157
160
|
let C = p.span || u;
|
|
@@ -165,7 +168,7 @@ const s = 24, De = /* @__PURE__ */ re({
|
|
|
165
168
|
});
|
|
166
169
|
const $ = s - (F + u) % s, oe = F % s < u, ae = $ < u ? s : $;
|
|
167
170
|
return {
|
|
168
|
-
hideNode:
|
|
171
|
+
hideNode: o(_, null, [a]),
|
|
169
172
|
nodes: x,
|
|
170
173
|
collapseNodes: r,
|
|
171
174
|
extraSpan: ae,
|
|
@@ -173,63 +176,65 @@ const s = 24, De = /* @__PURE__ */ re({
|
|
|
173
176
|
};
|
|
174
177
|
}), Z = S(() => {
|
|
175
178
|
let e;
|
|
176
|
-
const a = l.value.collapseNodes.length ||
|
|
179
|
+
const a = l.value.collapseNodes.length || t.sortable && h.value.length, r = o(w, {
|
|
177
180
|
span: n(P),
|
|
178
181
|
key: "actionWrapper"
|
|
179
182
|
}, {
|
|
180
|
-
default: () => [
|
|
181
|
-
default: () => [
|
|
183
|
+
default: () => [o(G, null, {
|
|
184
|
+
default: () => [o(N, {
|
|
182
185
|
wrap: "wrap",
|
|
183
|
-
justify: l.value.lastRowOnlyIncludeActionAndExtra && !(n(c) &&
|
|
186
|
+
justify: l.value.lastRowOnlyIncludeActionAndExtra && !(n(c) && t.extraInAction) ? "flex-end" : "space-between"
|
|
184
187
|
}, {
|
|
185
|
-
default: () => [
|
|
188
|
+
default: () => [o(N, {
|
|
186
189
|
gap: 8,
|
|
187
190
|
wrap: "wrap"
|
|
188
191
|
}, {
|
|
189
|
-
default: () => [a ?
|
|
190
|
-
class:
|
|
191
|
-
}, [l.value.collapseNodes.length ?
|
|
192
|
+
default: () => [a ? o("div", {
|
|
193
|
+
class: m("column-setting-trigger-wrapper")
|
|
194
|
+
}, [l.value.collapseNodes.length ? o(Ce, {
|
|
192
195
|
onSubmit: T,
|
|
193
196
|
config: l.value.collapseNodes,
|
|
194
|
-
submitLoading:
|
|
195
|
-
}, null) : null,
|
|
197
|
+
submitLoading: t.submitLoading
|
|
198
|
+
}, null) : null, t.sortable && R.value.length ? o(Se, {
|
|
196
199
|
ref: "sorterIns",
|
|
197
200
|
items: R.value,
|
|
198
201
|
onClickConfirm: b,
|
|
199
202
|
sorted: O.value
|
|
200
|
-
}, null) : null]) : null,
|
|
203
|
+
}, null) : null]) : null, o(M, {
|
|
201
204
|
type: "primary",
|
|
202
205
|
onClick: T,
|
|
203
|
-
loading:
|
|
206
|
+
loading: t.submitLoading ? {
|
|
207
|
+
delay: t.loadingDelay
|
|
208
|
+
} : !1,
|
|
204
209
|
htmlType: "submit",
|
|
205
|
-
class:
|
|
210
|
+
class: m("action-btn")
|
|
206
211
|
}, {
|
|
207
|
-
default: () => [
|
|
208
|
-
}),
|
|
212
|
+
default: () => [t.searchText || k("ap.apForm.search.search")]
|
|
213
|
+
}), o(M, {
|
|
209
214
|
onClick: X,
|
|
210
215
|
type: "text",
|
|
211
|
-
class: [
|
|
216
|
+
class: [m("action-btn"), m("action-btn-reset")]
|
|
212
217
|
}, {
|
|
213
|
-
default: () => [
|
|
218
|
+
default: () => [t.resetText || k("ap.apForm.search.reset")]
|
|
214
219
|
})]
|
|
215
|
-
}),
|
|
220
|
+
}), t.extraInAction ? n(c) : null]
|
|
216
221
|
})]
|
|
217
222
|
})]
|
|
218
|
-
}), x = !
|
|
223
|
+
}), x = !t.extraInAction && n(c) ? o(w, {
|
|
219
224
|
span: l.value.extraSpan,
|
|
220
225
|
key: "extraNode"
|
|
221
226
|
}, {
|
|
222
|
-
default: () => [
|
|
223
|
-
default: () => [
|
|
227
|
+
default: () => [o(G, null, {
|
|
228
|
+
default: () => [o(N, {
|
|
224
229
|
justify: l.value.extraSpan === s || l.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
|
|
225
230
|
}, we(e = n(c)) ? e : {
|
|
226
231
|
default: () => [e]
|
|
227
232
|
})]
|
|
228
233
|
})]
|
|
229
|
-
}) : null, u =
|
|
234
|
+
}) : null, u = o(w, {
|
|
230
235
|
span: l.value.extraSpan
|
|
231
236
|
}, null);
|
|
232
|
-
return l.value.lastRowOnlyIncludeActionAndExtra ?
|
|
237
|
+
return l.value.lastRowOnlyIncludeActionAndExtra ? o(_, null, [x || u, r]) : o(_, null, [r, x]);
|
|
233
238
|
});
|
|
234
239
|
function ee() {
|
|
235
240
|
var a;
|
|
@@ -244,9 +249,9 @@ const s = 24, De = /* @__PURE__ */ re({
|
|
|
244
249
|
}), (e, a) => (d(), g(_e, ie({
|
|
245
250
|
ref_key: "apForm",
|
|
246
251
|
ref: y,
|
|
247
|
-
class: n(
|
|
248
|
-
}, n(
|
|
249
|
-
default: B(() => [(d(), g(I(l.value.hideNode))),
|
|
252
|
+
class: n(m)()
|
|
253
|
+
}, n(me)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
254
|
+
default: B(() => [(d(), g(I(l.value.hideNode))), o(n(pe), {
|
|
250
255
|
gutter: 8
|
|
251
256
|
}, {
|
|
252
257
|
default: B(() => [(d(!0), ue(_, null, ce(l.value.nodes, (r) => (d(), g(n(w), {
|
|
@@ -263,5 +268,5 @@ const s = 24, De = /* @__PURE__ */ re({
|
|
|
263
268
|
}
|
|
264
269
|
});
|
|
265
270
|
export {
|
|
266
|
-
|
|
271
|
+
ze as default
|
|
267
272
|
};
|
|
@@ -1,115 +1,110 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isFunction as i, cloneDeep as
|
|
3
|
-
function
|
|
4
|
-
return !(c != null && c.length) || i(
|
|
1
|
+
import { ref as I, computed as v, unref as o } from "vue";
|
|
2
|
+
import { isFunction as i, cloneDeep as _ } from "lodash-unified";
|
|
3
|
+
function b(a, c) {
|
|
4
|
+
return !(c != null && c.length) || i(a) ? [] : c.map((f) => ({ [a]: f }));
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const c =
|
|
9
|
-
|
|
6
|
+
const F = (a) => {
|
|
7
|
+
a.defaultSelectedRowKeys;
|
|
8
|
+
const c = I(
|
|
9
|
+
b(a.rowKey, a.defaultSelectedRowKeys)
|
|
10
10
|
);
|
|
11
11
|
function f(e, t) {
|
|
12
12
|
c.value = t;
|
|
13
13
|
}
|
|
14
|
-
const l = (e) => i(
|
|
14
|
+
const l = (e) => i(a.rowKey) ? a.rowKey(e) : e[a.rowKey], s = v(() => {
|
|
15
15
|
const e = /* @__PURE__ */ new Map();
|
|
16
|
-
return
|
|
16
|
+
return o(c).forEach((t) => {
|
|
17
17
|
e.set(l(t), t);
|
|
18
18
|
}), e;
|
|
19
19
|
});
|
|
20
|
-
function
|
|
21
|
-
return
|
|
20
|
+
function M(e) {
|
|
21
|
+
return o(s).has(l(e));
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const t =
|
|
23
|
+
function g(e) {
|
|
24
|
+
const t = o(s);
|
|
25
25
|
t.set(l(e), e), c.value = [...t.values()];
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const t =
|
|
27
|
+
function h(e) {
|
|
28
|
+
const t = o(s);
|
|
29
29
|
for (const n of e)
|
|
30
30
|
t.set(l(n), n);
|
|
31
31
|
c.value = [...t.values()];
|
|
32
32
|
}
|
|
33
33
|
function w(e) {
|
|
34
|
-
if (i(
|
|
34
|
+
if (i(a.rowKey))
|
|
35
35
|
return;
|
|
36
|
-
const t =
|
|
36
|
+
const t = o(s);
|
|
37
37
|
for (const n of e) {
|
|
38
|
-
const
|
|
39
|
-
(
|
|
40
|
-
), S = { [
|
|
41
|
-
t.set(String(n),
|
|
38
|
+
const u = o(a.dataSource).find(
|
|
39
|
+
(r) => l(r) === n
|
|
40
|
+
), S = { [a.rowKey]: n };
|
|
41
|
+
t.set(String(n), u || S);
|
|
42
42
|
}
|
|
43
43
|
c.value = [...t.values()];
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
const t =
|
|
45
|
+
function x(e) {
|
|
46
|
+
const t = o(s);
|
|
47
47
|
t.delete(l(e)), c.value = [...t.values()];
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const t =
|
|
49
|
+
function y(e) {
|
|
50
|
+
const t = o(s);
|
|
51
51
|
for (const n of e)
|
|
52
52
|
t.delete(l(n));
|
|
53
53
|
c.value = [...t.values()];
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function d(e, t) {
|
|
56
56
|
const n = e;
|
|
57
|
-
for (const
|
|
58
|
-
n.set(l(
|
|
57
|
+
for (const u of t)
|
|
58
|
+
n.set(l(u), u);
|
|
59
59
|
return n;
|
|
60
60
|
}
|
|
61
61
|
function K(e, t, n) {
|
|
62
|
-
const
|
|
63
|
-
t ?
|
|
62
|
+
const u = o(s);
|
|
63
|
+
t ? u.set(l(e), e) : u.delete(l(e)), d(u, n), c.value = [...u.values()];
|
|
64
64
|
}
|
|
65
65
|
function A(e, t) {
|
|
66
|
-
|
|
67
|
-
e ? a(u.dataSource).forEach((o) => {
|
|
68
|
-
n.set(l(o), o);
|
|
69
|
-
}) : a(u.dataSource).forEach((o) => {
|
|
70
|
-
n.delete(l(o));
|
|
71
|
-
}), r(n, t), c.value = [...n.values()];
|
|
66
|
+
c.value = [...t];
|
|
72
67
|
}
|
|
73
68
|
function C(e, t) {
|
|
74
|
-
const n =
|
|
75
|
-
a
|
|
76
|
-
e.find((
|
|
77
|
-
}),
|
|
69
|
+
const n = _(o(s));
|
|
70
|
+
o(a.dataSource).forEach((u) => {
|
|
71
|
+
e.find((r) => l(r) === l(u)) ? n.set(l(u), u) : n.delete(l(u));
|
|
72
|
+
}), d(n, t), c.value = [...n.values()];
|
|
78
73
|
}
|
|
79
|
-
function
|
|
80
|
-
const e =
|
|
81
|
-
a
|
|
74
|
+
function E() {
|
|
75
|
+
const e = o(s);
|
|
76
|
+
o(a.dataSource).forEach((t) => {
|
|
82
77
|
e.set(l(t), t);
|
|
83
78
|
}), c.value = [...e.values()];
|
|
84
79
|
}
|
|
85
|
-
function
|
|
86
|
-
const t =
|
|
80
|
+
function R(e) {
|
|
81
|
+
const t = o(s), n = l(e);
|
|
87
82
|
t.has(n) ? t.delete(n) : t.set(n, e), c.value = [...t.values()];
|
|
88
83
|
}
|
|
89
|
-
function
|
|
90
|
-
const e =
|
|
91
|
-
a
|
|
84
|
+
function D() {
|
|
85
|
+
const e = o(s);
|
|
86
|
+
o(a.dataSource).forEach((t) => {
|
|
92
87
|
e.delete(l(t));
|
|
93
88
|
}), c.value = [...e.values()];
|
|
94
89
|
}
|
|
95
|
-
function
|
|
90
|
+
function m() {
|
|
96
91
|
c.value = [];
|
|
97
92
|
}
|
|
98
93
|
return {
|
|
99
|
-
select:
|
|
100
|
-
unSelect:
|
|
101
|
-
isSelected:
|
|
102
|
-
selectAll:
|
|
103
|
-
unSelectAll:
|
|
104
|
-
clearAll:
|
|
105
|
-
toggleSelect:
|
|
94
|
+
select: g,
|
|
95
|
+
unSelect: x,
|
|
96
|
+
isSelected: M,
|
|
97
|
+
selectAll: E,
|
|
98
|
+
unSelectAll: D,
|
|
99
|
+
clearAll: m,
|
|
100
|
+
toggleSelect: R,
|
|
106
101
|
selectedRows: c,
|
|
107
|
-
selectMulti:
|
|
108
|
-
unSelectMulti:
|
|
102
|
+
selectMulti: h,
|
|
103
|
+
unSelectMulti: y,
|
|
109
104
|
rowSelection: v(() => ({
|
|
110
|
-
...
|
|
105
|
+
...a,
|
|
111
106
|
onChange: f,
|
|
112
|
-
selectedRowKeys:
|
|
107
|
+
selectedRowKeys: o(c).map((e) => l(e))
|
|
113
108
|
})),
|
|
114
109
|
selectChange: K,
|
|
115
110
|
selectAllChange: A,
|
|
@@ -118,5 +113,5 @@ const T = (u) => {
|
|
|
118
113
|
};
|
|
119
114
|
};
|
|
120
115
|
export {
|
|
121
|
-
|
|
116
|
+
F as default
|
|
122
117
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { createVNode as
|
|
1
|
+
import { createVNode as m } from "vue";
|
|
2
2
|
import { VxeColumn as u, VxeColgroup as p } from "vxe-table";
|
|
3
|
-
import { transformCol as
|
|
3
|
+
import { transformCol as d } from "./col.mjs";
|
|
4
4
|
function n(r) {
|
|
5
5
|
var e;
|
|
6
|
-
return (e = r.children) != null && e.length ?
|
|
6
|
+
return (e = r.children) != null && e.length ? m(p, r, {
|
|
7
7
|
...r.slots || {},
|
|
8
8
|
default: () => {
|
|
9
|
-
var
|
|
10
|
-
return (
|
|
9
|
+
var t;
|
|
10
|
+
return (t = r.children) == null ? void 0 : t.map((o) => n(o));
|
|
11
11
|
}
|
|
12
|
-
}) : (
|
|
12
|
+
}) : m(u, r, {
|
|
13
13
|
...r.slots || {}
|
|
14
|
-
})
|
|
14
|
+
});
|
|
15
15
|
}
|
|
16
|
-
function C(r, e,
|
|
17
|
-
return r.map((
|
|
16
|
+
function C(r, e, t, o) {
|
|
17
|
+
return r.map((l) => n(d(l, e, t, o)));
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
20
|
C as renderWithColumns
|
|
@@ -128,8 +128,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
128
128
|
placement: TooltipPlacement;
|
|
129
129
|
show: boolean;
|
|
130
130
|
dot: boolean;
|
|
131
|
-
iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
|
|
132
131
|
count: any;
|
|
132
|
+
iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
|
|
133
133
|
showZero: boolean;
|
|
134
134
|
overflowCount: number;
|
|
135
135
|
numberStyle: CSSProperties;
|
|
@@ -70,8 +70,8 @@ declare const ApLabel: {
|
|
|
70
70
|
placement: TooltipPlacement;
|
|
71
71
|
show: boolean;
|
|
72
72
|
dot: boolean;
|
|
73
|
-
iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
|
|
74
73
|
count: any;
|
|
74
|
+
iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
|
|
75
75
|
showZero: boolean;
|
|
76
76
|
overflowCount: number;
|
|
77
77
|
numberStyle: CSSProperties;
|
|
@@ -152,8 +152,8 @@ declare const ApLabel: {
|
|
|
152
152
|
placement: TooltipPlacement;
|
|
153
153
|
show: boolean;
|
|
154
154
|
dot: boolean;
|
|
155
|
-
iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
|
|
156
155
|
count: any;
|
|
156
|
+
iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
|
|
157
157
|
showZero: boolean;
|
|
158
158
|
overflowCount: number;
|
|
159
159
|
numberStyle: CSSProperties;
|
|
@@ -231,8 +231,8 @@ declare const ApLabel: {
|
|
|
231
231
|
placement: TooltipPlacement;
|
|
232
232
|
show: boolean;
|
|
233
233
|
dot: boolean;
|
|
234
|
-
iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
|
|
235
234
|
count: any;
|
|
235
|
+
iconType: "ellipsis" | "success" | "warning" | "question" | "line-warning" | undefined;
|
|
236
236
|
showZero: boolean;
|
|
237
237
|
overflowCount: number;
|
|
238
238
|
numberStyle: CSSProperties;
|
|
@@ -14,8 +14,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
14
14
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
value: string | number;
|
|
17
|
-
options: RadioOptionType[];
|
|
18
17
|
delay: number;
|
|
18
|
+
options: RadioOptionType[];
|
|
19
19
|
optionStyle: RadioOptionStyleType;
|
|
20
20
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
21
|
export default _default;
|