@aplus-frontend/ui 6.12.0 → 6.13.1
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/src/ap-descriptions/interface.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +118 -108
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +8 -1
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -18
- package/es/src/ap-form/search-form/hooks/use-sorter.mjs +31 -30
- package/es/src/ap-form/search-form/index.vue.mjs +42 -41
- package/es/src/ap-grid/index.vue.mjs +221 -225
- package/es/src/ap-modal/interface.d.ts +8 -0
- package/es/src/ap-modal/utils/createModalStream.mjs +69 -66
- package/es/src/ap-table/ap-table.vue2.mjs +107 -111
- package/es/src/ap-table/constants.d.ts +5 -5
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +6 -5
- package/es/src/ap-table/utils.d.ts +5 -3247
- package/es/src/ap-table/utils.mjs +107 -121
- package/es/src/business/ap-view/ap-view.vue2.mjs +76 -74
- package/es/src/business/ap-view/interface.d.ts +1 -0
- package/es/src/business/batch-input-group/index.vue.d.ts +2 -1
- package/es/src/business/batch-input-group/index.vue.mjs +56 -52
- package/es/src/business/batch-input-group/interface.d.ts +5 -0
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +36 -32
- package/es/src/business/batch-input-group/utils.d.ts +8 -0
- package/es/src/business/batch-input-group/utils.mjs +10 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +8 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +8 -0
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +5 -5
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +5 -3247
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +1 -0
- package/lib/src/business/batch-input-group/index.vue.d.ts +2 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +5 -0
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -2
- package/lib/src/business/batch-input-group/utils.d.ts +8 -0
- package/lib/src/business/batch-input-group/utils.js +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/theme/ap-grid/index.css +3 -0
- package/theme/ap-grid/index.less +3 -4
- package/theme/index.css +3 -0
- package/es/src/ap-table/components/dynamic-component/index.vue.d.ts +0 -4
- package/es/src/ap-table/components/dynamic-component/index.vue.mjs +0 -4
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +0 -15
- package/lib/src/ap-table/components/dynamic-component/index.vue.d.ts +0 -4
- package/lib/src/ap-table/components/dynamic-component/index.vue.js +0 -1
- package/lib/src/ap-table/components/dynamic-component/index.vue2.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, ref as g, computed as r, unref as l, createElementBlock as $, openBlock as B, normalizeStyle as b, normalizeClass as K, createVNode as c, withCtx as A, createBlock as M, createCommentVNode as D, mergeProps as G } from "vue";
|
|
2
2
|
import "../../ap-field/index.mjs";
|
|
3
3
|
import { Space as q } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -7,13 +7,14 @@ import "./popover-input/index.vue.mjs";
|
|
|
7
7
|
import "../../hooks/index.mjs";
|
|
8
8
|
import { isDef as J } from "../../utils/index.mjs";
|
|
9
9
|
import { useDefaultPlaceholder as Q } from "../../ap-field/hooks/use-default-placeholder.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import ee from "../../
|
|
14
|
-
import
|
|
15
|
-
import oe from "
|
|
16
|
-
|
|
10
|
+
import { splitValue as W } from "./utils.mjs";
|
|
11
|
+
import { useControllableValue as X } from "../../hooks/useControllableValue.mjs";
|
|
12
|
+
import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import { useNamespace as ee } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
import te from "../../ap-field/select/index.vue.mjs";
|
|
15
|
+
import { ApFieldText as oe } from "../../ap-field/text/index.mjs";
|
|
16
|
+
import ne from "./popover-input/index.vue2.mjs";
|
|
17
|
+
const m = "GROUP_SEARCH_ALL", be = /* @__PURE__ */ T({
|
|
17
18
|
name: "BatchInputGroup",
|
|
18
19
|
__name: "index",
|
|
19
20
|
props: {
|
|
@@ -24,6 +25,7 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
24
25
|
value: {},
|
|
25
26
|
"onUpdate:value": {},
|
|
26
27
|
popoverPlacement: { default: "left" },
|
|
28
|
+
maxNum: { default: 200 },
|
|
27
29
|
mode: { default: "edit" },
|
|
28
30
|
class: {},
|
|
29
31
|
id: {},
|
|
@@ -72,38 +74,38 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
72
74
|
beforeInput: {}
|
|
73
75
|
},
|
|
74
76
|
emits: ["update:value"],
|
|
75
|
-
setup(V, { emit:
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
), i = g(), f = g(), { t:
|
|
80
|
-
const e =
|
|
77
|
+
setup(V, { emit: x }) {
|
|
78
|
+
const n = V, C = Q("Text", n), S = x, { value: a, updateValue: p } = X(
|
|
79
|
+
n,
|
|
80
|
+
S
|
|
81
|
+
), i = g(), f = g(), { t: I } = Z(), { b: U, cssVar: w } = ee("batch-input-group"), P = r(() => {
|
|
82
|
+
const e = n.popoverPlacement;
|
|
81
83
|
return {
|
|
82
84
|
"popover-left": H(e) ? `${e}px` : e === "left" ? "0px" : "unset",
|
|
83
85
|
"popover-right": e === "right" ? "0px" : "unset"
|
|
84
86
|
};
|
|
85
|
-
}), k =
|
|
86
|
-
{ value:
|
|
87
|
-
...
|
|
88
|
-
] :
|
|
87
|
+
}), k = r(() => n.options ? n.options.length > 1 && n.hasAll ? [
|
|
88
|
+
{ value: m, label: I("ap.common.all") },
|
|
89
|
+
...n.options
|
|
90
|
+
] : n.options : []), R = r(() => n.options ? n.options.map((e) => e.value) : []), N = r(() => {
|
|
89
91
|
var e, t;
|
|
90
|
-
return (t = (e =
|
|
91
|
-
}), j =
|
|
92
|
+
return (t = (e = l(a)) == null ? void 0 : e.value) != null && t.length ? l(a).value.join(",") : "";
|
|
93
|
+
}), j = r(() => {
|
|
92
94
|
var e, t;
|
|
93
|
-
return (t = (e =
|
|
95
|
+
return (t = (e = l(a)) == null ? void 0 : e.value) != null && t.length ? l(a).value.join(`
|
|
94
96
|
`) : "";
|
|
95
|
-
}), E =
|
|
97
|
+
}), E = r(() => {
|
|
96
98
|
var t;
|
|
97
|
-
const e = (t =
|
|
99
|
+
const e = (t = l(a)) == null ? void 0 : t.key;
|
|
98
100
|
if (e != null && e.length)
|
|
99
|
-
return e.length === 1 || !
|
|
100
|
-
}), F =
|
|
101
|
+
return e.length === 1 || !n.hasAll ? e[0] : m;
|
|
102
|
+
}), F = r(() => {
|
|
101
103
|
var o;
|
|
102
|
-
const e = (o =
|
|
103
|
-
return !e || (e == null ? void 0 : e.length) <= 1 ?
|
|
104
|
+
const e = (o = l(a)) == null ? void 0 : o.key;
|
|
105
|
+
return !e || (e == null ? void 0 : e.length) <= 1 ? l(C) : (n.options || []).filter((u) => e.includes(u.value)).map((u) => u.label).join("/");
|
|
104
106
|
});
|
|
105
107
|
function L(e) {
|
|
106
|
-
const t =
|
|
108
|
+
const t = l(a) || {}, o = e === m ? l(R) : J(e) ? [e] : [];
|
|
107
109
|
p({
|
|
108
110
|
...t,
|
|
109
111
|
key: o
|
|
@@ -111,52 +113,53 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
111
113
|
}
|
|
112
114
|
function O(e) {
|
|
113
115
|
var v, y;
|
|
114
|
-
const t =
|
|
115
|
-
|
|
116
|
+
const t = l(a) || {}, o = e.target.value || "";
|
|
117
|
+
let u = W(o, ",", ",", n.maxNum);
|
|
118
|
+
if (o !== u) {
|
|
116
119
|
const h = (y = (v = f.value) == null ? void 0 : v.$el) == null ? void 0 : y.querySelector("input");
|
|
117
|
-
h && (h.value =
|
|
120
|
+
h && (h.value = u);
|
|
118
121
|
}
|
|
119
|
-
let s =
|
|
122
|
+
let s = u.split(",");
|
|
120
123
|
s.length === 1 && s[0] === "" && (s = []), p({
|
|
121
124
|
...t,
|
|
122
125
|
value: s
|
|
123
126
|
});
|
|
124
127
|
}
|
|
125
|
-
function
|
|
126
|
-
const t =
|
|
128
|
+
function _(e) {
|
|
129
|
+
const t = l(a) || {};
|
|
127
130
|
let o = e.split(/,|\n/);
|
|
128
131
|
p({
|
|
129
132
|
...t,
|
|
130
133
|
value: o
|
|
131
134
|
});
|
|
132
135
|
}
|
|
133
|
-
function
|
|
136
|
+
function d() {
|
|
134
137
|
var o;
|
|
135
|
-
const e =
|
|
138
|
+
const e = l(a) || {}, t = (o = e.value) == null ? void 0 : o.filter(Boolean);
|
|
136
139
|
p({
|
|
137
140
|
...e,
|
|
138
141
|
value: t
|
|
139
142
|
});
|
|
140
143
|
}
|
|
141
|
-
function
|
|
144
|
+
function z(e) {
|
|
142
145
|
var t;
|
|
143
|
-
|
|
146
|
+
d(), (t = n.onBlur) == null || t.call(n, e);
|
|
144
147
|
}
|
|
145
148
|
return (e, t) => (B(), $("div", {
|
|
146
149
|
ref_key: "containerRef",
|
|
147
150
|
ref: i,
|
|
148
|
-
class: K(
|
|
149
|
-
style: b(
|
|
151
|
+
class: K(l(U)()),
|
|
152
|
+
style: b(l(w)(P.value)),
|
|
150
153
|
onFocus: t[0] || (t[0] = //@ts-ignore
|
|
151
154
|
(...o) => e.onFocus && e.onFocus(...o)),
|
|
152
155
|
onBlur: t[1] || (t[1] = //@ts-ignore
|
|
153
156
|
(...o) => e.onBlur && e.onBlur(...o))
|
|
154
157
|
}, [
|
|
155
|
-
c(
|
|
158
|
+
c(l(q).Compact, { block: "" }, {
|
|
156
159
|
default: A(() => {
|
|
157
160
|
var o;
|
|
158
161
|
return [
|
|
159
|
-
(o = e.options) != null && o.length ? (B(), M(
|
|
162
|
+
(o = e.options) != null && o.length ? (B(), M(l(te), {
|
|
160
163
|
key: 0,
|
|
161
164
|
style: b(e.style),
|
|
162
165
|
options: k.value,
|
|
@@ -167,8 +170,8 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
167
170
|
"get-popup-container": () => i.value,
|
|
168
171
|
"onUpdate:value": L
|
|
169
172
|
}, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : D("", !0),
|
|
170
|
-
c(
|
|
171
|
-
|
|
173
|
+
c(l(oe), G(
|
|
174
|
+
l(Y)(n, [
|
|
172
175
|
"style",
|
|
173
176
|
"value",
|
|
174
177
|
"onUpdate:value",
|
|
@@ -181,21 +184,22 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
181
184
|
ref_key: "inputRef",
|
|
182
185
|
ref: f,
|
|
183
186
|
style: e.inputStyle,
|
|
184
|
-
value:
|
|
187
|
+
value: N.value,
|
|
185
188
|
placeholder: F.value,
|
|
186
189
|
onInput: O,
|
|
187
|
-
onBlur:
|
|
190
|
+
onBlur: z
|
|
188
191
|
}
|
|
189
192
|
), {
|
|
190
193
|
suffix: A(() => [
|
|
191
|
-
c(
|
|
194
|
+
c(ne, {
|
|
192
195
|
_parent: i.value,
|
|
193
196
|
value: j.value,
|
|
194
197
|
disabled: e.disabled,
|
|
195
|
-
placement:
|
|
196
|
-
"
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
placement: n.popoverPlacement,
|
|
199
|
+
"max-num": e.maxNum,
|
|
200
|
+
"onUpdate:value": _,
|
|
201
|
+
onClose: d
|
|
202
|
+
}, null, 8, ["_parent", "value", "disabled", "placement", "max-num"])
|
|
199
203
|
]),
|
|
200
204
|
_: 1
|
|
201
205
|
}, 16, ["style", "value", "placeholder"])
|
|
@@ -207,5 +211,5 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
207
211
|
}
|
|
208
212
|
});
|
|
209
213
|
export {
|
|
210
|
-
|
|
214
|
+
be as default
|
|
211
215
|
};
|
|
@@ -32,11 +32,16 @@ export interface BatchInputGroupProps extends Omit<ApFieldTextProps, 'value' | '
|
|
|
32
32
|
* 设置弹出层弹出的位置,默认为`left`
|
|
33
33
|
*/
|
|
34
34
|
popoverPlacement?: 'left' | 'right' | number;
|
|
35
|
+
/**
|
|
36
|
+
* 最大输入条数,默认为200
|
|
37
|
+
*/
|
|
38
|
+
maxNum?: number;
|
|
35
39
|
}
|
|
36
40
|
export interface BatchInputGroupPopoverInputProps extends Pick<ApFieldTextAreaProps, 'value' | 'onUpdate:value'> {
|
|
37
41
|
_parent?: HTMLElement;
|
|
38
42
|
onClose?: () => void;
|
|
39
43
|
disabled?: boolean;
|
|
44
|
+
maxNum?: number;
|
|
40
45
|
}
|
|
41
46
|
export type ApFormItemBatchInputProps = ApFormItemProps & {
|
|
42
47
|
field?: Omit<BatchInputGroupProps, 'value' | 'onUpdate:value'>;
|
|
@@ -1,71 +1,75 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
1
|
+
import { defineComponent as k, ref as m, createElementBlock as A, openBlock as w, normalizeClass as p, unref as e, createVNode as u, withCtx as f, createElementVNode as B } from "vue";
|
|
2
|
+
import { Popover as L, Textarea as P } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
4
|
import { IconApAdLineScreen as z } from "@aplus-frontend/icon";
|
|
5
5
|
import "../../../hooks/index.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import { splitValue as E } from "../utils.mjs";
|
|
7
|
+
import { useControllableValue as F } from "../../../hooks/useControllableValue.mjs";
|
|
8
|
+
import { useLocale as O } from "../../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useNamespace as R } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
const J = /* @__PURE__ */ k({
|
|
10
11
|
__name: "index",
|
|
11
12
|
props: {
|
|
12
13
|
_parent: {},
|
|
13
14
|
onClose: { type: Function },
|
|
14
15
|
disabled: { type: Boolean },
|
|
16
|
+
maxNum: {},
|
|
15
17
|
value: {},
|
|
16
18
|
"onUpdate:value": { type: Function }
|
|
17
19
|
},
|
|
18
20
|
emits: ["update:value"],
|
|
19
|
-
setup(
|
|
20
|
-
const o =
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
const a = t.target.value || ""
|
|
24
|
-
`
|
|
21
|
+
setup(d, { emit: v }) {
|
|
22
|
+
const o = d, g = v, { value: b, updateValue: h } = F(o, g), n = m(!1), l = m(), x = (t) => o._parent || t, { t: C } = O();
|
|
23
|
+
function _(t) {
|
|
24
|
+
var c;
|
|
25
|
+
const a = t.target.value || "";
|
|
26
|
+
let r = E(a, `
|
|
27
|
+
,`, `
|
|
28
|
+
`, o.maxNum);
|
|
25
29
|
if (r !== a) {
|
|
26
|
-
const i = ((
|
|
30
|
+
const i = ((c = l.value) == null ? void 0 : c.$el) || l.value;
|
|
27
31
|
i && (i.value = r);
|
|
28
32
|
}
|
|
29
33
|
h(r);
|
|
30
34
|
}
|
|
31
|
-
function
|
|
35
|
+
function V(t) {
|
|
32
36
|
var a;
|
|
33
37
|
o.disabled ? n.value = !1 : n.value = t, !t && ((a = o.onClose) == null || a.call(o));
|
|
34
38
|
}
|
|
35
|
-
const { b:
|
|
36
|
-
return (t, a) => (
|
|
37
|
-
class: p(e(
|
|
39
|
+
const { b: s, e: y, em: I, bm: N } = R("batch-input-group-popover-input");
|
|
40
|
+
return (t, a) => (w(), A("div", {
|
|
41
|
+
class: p(e(s)())
|
|
38
42
|
}, [
|
|
39
|
-
|
|
40
|
-
"overlay-class-name": e(
|
|
41
|
-
"get-popup-container":
|
|
43
|
+
u(e(L), {
|
|
44
|
+
"overlay-class-name": e(y)("popover"),
|
|
45
|
+
"get-popup-container": x,
|
|
42
46
|
trigger: "click",
|
|
43
47
|
placement: "bottomLeft",
|
|
44
48
|
open: n.value,
|
|
45
|
-
onOpenChange:
|
|
49
|
+
onOpenChange: V
|
|
46
50
|
}, {
|
|
47
|
-
content:
|
|
48
|
-
|
|
49
|
-
class: p(e(
|
|
51
|
+
content: f(() => [
|
|
52
|
+
B("div", {
|
|
53
|
+
class: p(e(I)("popover", "content"))
|
|
50
54
|
}, [
|
|
51
|
-
|
|
55
|
+
u(e(P), {
|
|
52
56
|
ref_key: "textAreaRef",
|
|
53
57
|
ref: l,
|
|
54
|
-
placeholder: e(
|
|
58
|
+
placeholder: e(C)("ap.batchInputGroup.popoverInputPlaceholder"),
|
|
55
59
|
bordered: !1,
|
|
56
60
|
rows: 10,
|
|
57
61
|
value: e(b),
|
|
58
62
|
"allow-clear": !1,
|
|
59
63
|
"auto-size": !1,
|
|
60
|
-
onInput:
|
|
64
|
+
onInput: _
|
|
61
65
|
}, null, 8, ["placeholder", "value"])
|
|
62
66
|
], 2)
|
|
63
67
|
]),
|
|
64
|
-
default:
|
|
65
|
-
|
|
68
|
+
default: f(() => [
|
|
69
|
+
u(e(z), {
|
|
66
70
|
class: p([
|
|
67
|
-
e(
|
|
68
|
-
t.disabled ? e(
|
|
71
|
+
e(s)("trigger-icon"),
|
|
72
|
+
t.disabled ? e(N)("trigger-icon", "disabled") : null
|
|
69
73
|
])
|
|
70
74
|
}, null, 8, ["class"])
|
|
71
75
|
]),
|
|
@@ -75,5 +79,5 @@ const D = /* @__PURE__ */ A({
|
|
|
75
79
|
}
|
|
76
80
|
});
|
|
77
81
|
export {
|
|
78
|
-
|
|
82
|
+
J as default
|
|
79
83
|
};
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.
|
|
1
|
+
declare const _default: "6.13.1";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -21,7 +21,7 @@ type AllKeys<T, P extends string = '', Level extends unknown[] = []> = Level['le
|
|
|
21
21
|
/** 基本描述类型 */
|
|
22
22
|
export interface ItemSchema<T extends Recordable = Recordable> {
|
|
23
23
|
label: VNodeChild | VNode;
|
|
24
|
-
field: Extract<AllKeys<T>, string> | string[];
|
|
24
|
+
field: Extract<AllKeys<T>, string> | (string & {}) | string[];
|
|
25
25
|
span?: number;
|
|
26
26
|
prefix?: VNodeChild | VNode;
|
|
27
27
|
suffix?: VNodeChild | VNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),H=require("@aplus-frontend/antdv"),J=require("./context.js"),l=require("lodash-unified"),Q=require("@vueuse/core"),X=require("./constant.js"),V=require("../utils/index.js"),Y=require("./utils/set.js"),p=require("./utils/params.js"),Z=require("./provider/context.js"),z=i.defineComponent({name:"ApForm",__name:"ap-form",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function],default:!1},syncToUrlPriority:{type:Boolean}},setup(j,{expose:w}){function b(e,t){return l.isArray(t)?t.reduce((r,n)=>r==null?void 0:r[n],e):e==null?void 0:e[t]}const s=j;function m(e,t,r=!0,n){var a;if(l.isArray(e)){let u=o;for(let g=0;g<e.length-1;g++)e[g]in u||(u[e[g]]={}),u=u[e[g]];n?n(u,e[e.length-1]):u[e[e.length-1]]=t}else n?n(o,e):o[e]=t;let f=l.isArray(e)?e[0]:e;if(r){const u={[f]:o[f]};P.triggerFormChange(s.name,u),(a=s.onValuesChange)==null||a.call(s,u,o,e)}v()}const c=i.ref(),I=Q.useUrlSearchParams(V.getRouteType()),P=Z.useInjectFormProvider(),U=i.ref(s.syncToUrl?p.genParams(s.syncToUrl,I,"get"):{});let h=l.cloneDeep(M()),F={};const o=i.reactive(M());let y=[];function M(){const e=s.initialValues||{};return s.syncToUrlPriority?{...e,...i.unref(U)}:{...i.unref(U),...e}}function B(e){var r;const t=T(e,F);P.triggerFormFinish(s.name,e),s.syncToUrl&&p.setToParams(I,p.genParams(s.syncToUrl,t,"set")),(r=s.onFinish)==null||r.call(s,t)}const x=async()=>{var e;(e=c.value)==null||e.resetFields(),await i.nextTick(()=>{Object.keys(o).forEach(t=>delete o[t]),Object.assign(o,h),v(),s.syncToUrl&&p.setToParams(I,p.genParams(s.syncToUrl,T(h,F),"set"))})},E=e=>{var t;(t=c.value)==null||t.clearValidate(e)},S=(e,t)=>{var r;return(r=c.value)==null?void 0:r.validateFields(e,t)},C=async(e,t)=>{var n;const r=await((n=c.value)==null?void 0:n.validateFields(e,t));return T(r,F)},R=e=>{var t;return e===!0?i.toRaw(o):(t=c.value)==null?void 0:t.getFieldsValue(e)},D=e=>{const t=R(e);return T(t,F)},N=(e,t)=>{var r;return(r=c.value)==null?void 0:r.validate(e,t)},W=(e,t={})=>{var r;(r=c.value)==null||r.scrollToField(e,t)},$=e=>{Object.assign(o,e),v()},q=(e,t,r=!0,n)=>{m(e,t,r,n),v()};function A(e,t){return t||e(i.toRaw(o)),y.push(e),()=>{y=y.filter(r=>r!==e)}}function k(e,t){if(l.isArray(e)){let r=h;for(let n=0;n<e.length-1;n++)V.isDef(r[e[n]])||(r[e[n]]={}),r=r[e[n]];r[e[e.length-1]]=t}else h[e]=t}function K(e,t){if(!V.isDef(e)||!V.isDef(t))return;const r=b(h,t);if(l.isEqual(r,e))return;const n=b(i.unref(U),t);V.isDef(n)&&s.syncToUrlPriority||(m(t,e,!1),k(t,e))}function L(e,t){t&&(F=Y.default(F,[e].flat(1),t,!0))}function _({initialValue:e,name:t,transform:r}){K(e,t),L(t,r)}function G(e){if(e!==X.INTERNAL_FORM_INSTANCE_MARK){console.warn("getInternalInstance should only used at internal");return}return{registerField:_,registerWatch:A,setFieldValue:q}}function v(){if(y.length){const e=i.toRaw(o);y.forEach(t=>{t(e)})}}function T(e,t){if(e==null)return;let r=l.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const f=e[n],a=t==null?void 0:t[n],u=l.isFunction(a)?a:a==null?void 0:a.transformer,g=l.isFunction(a)?!0:a==null?void 0:a.flat;if(l.isFunction(u)){const d=u(f);g?l.isArray(d)&&l.isArray(r)?r=[...r,...d]:l.isPlainObject(d)&&l.isPlainObject(r)?r={...r,...d}:r[n]=d:r[n]=d}else if(l.isPlainObject(f)||l.isArray(f)){const d=T(f,a);r[n]=d}else r[n]=f}),r}const O={resetFields:x,clearValidate:E,validateFields:S,getFieldsValue:R,validate:N,scrollToField:W,setFieldsValue:$,setFieldValue:q,registerWatch:A,validateFieldsReturnTransformed:C,getFieldsValueTransformed:D,getInternalInstance:G};return i.watch(()=>s.name,e=>{e&&(P.registerForm(e,O),i.onWatcherCleanup(()=>{P.unregisterForm(s.name)}))},{immediate:!0}),J.useProvideForm({model:i.computed(()=>o),updateModel:m,internalInstance:{registerWatch:A,registerField:_,setFieldValue:q}}),w(O),(e,t)=>(i.openBlock(),i.createBlock(i.unref(H.Form),i.mergeProps({ref_key:"formRef",ref:c},i.unref(l.omit)(s,["initialValues","onValuesChange","onFinish","syncToUrl","syncToUrlPriority"]),{model:o,"data-form-name":e.name,onFinish:B}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16,["model","data-form-name"]))}});exports.default=z;
|
|
@@ -66,8 +66,8 @@ declare function __VLS_template(): {
|
|
|
66
66
|
readonly type?: string | undefined;
|
|
67
67
|
readonly name?: string | undefined;
|
|
68
68
|
readonly suffix?: any;
|
|
69
|
-
readonly placeholder?: string | undefined;
|
|
70
69
|
readonly id?: string | undefined;
|
|
70
|
+
readonly placeholder?: string | undefined;
|
|
71
71
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
72
72
|
readonly addonBefore?: any;
|
|
73
73
|
readonly addonAfter?: any;
|
|
@@ -539,8 +539,8 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
539
539
|
readonly type?: string | undefined;
|
|
540
540
|
readonly name?: string | undefined;
|
|
541
541
|
readonly suffix?: any;
|
|
542
|
-
readonly placeholder?: string | undefined;
|
|
543
542
|
readonly id?: string | undefined;
|
|
543
|
+
readonly placeholder?: string | undefined;
|
|
544
544
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
545
545
|
readonly addonBefore?: any;
|
|
546
546
|
readonly addonAfter?: any;
|
|
@@ -74,9 +74,9 @@ declare function __VLS_template(): {
|
|
|
74
74
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
75
75
|
readonly virtual?: boolean | undefined;
|
|
76
76
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
77
|
-
readonly placeholder?: any;
|
|
78
77
|
readonly defaultValue?: SelectValue;
|
|
79
78
|
readonly id?: string | undefined;
|
|
79
|
+
readonly placeholder?: any;
|
|
80
80
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
81
81
|
readonly clearIcon?: any;
|
|
82
82
|
readonly allowClear?: boolean | undefined;
|
|
@@ -705,9 +705,9 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
705
705
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
706
706
|
readonly virtual?: boolean | undefined;
|
|
707
707
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
708
|
-
readonly placeholder?: any;
|
|
709
708
|
readonly defaultValue?: SelectValue;
|
|
710
709
|
readonly id?: string | undefined;
|
|
710
|
+
readonly placeholder?: any;
|
|
711
711
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
712
712
|
readonly clearIcon?: any;
|
|
713
713
|
readonly allowClear?: boolean | undefined;
|
|
@@ -54,9 +54,9 @@ declare function __VLS_template(): {
|
|
|
54
54
|
readonly suffix?: any;
|
|
55
55
|
readonly focused?: boolean | undefined;
|
|
56
56
|
readonly handleReset?: MouseEventHandler | undefined;
|
|
57
|
-
readonly placeholder?: string | number | undefined;
|
|
58
57
|
readonly defaultValue?: string | number | undefined;
|
|
59
58
|
readonly id?: string | undefined;
|
|
59
|
+
readonly placeholder?: string | number | undefined;
|
|
60
60
|
readonly autocomplete?: string | undefined;
|
|
61
61
|
readonly maxlength?: number | undefined;
|
|
62
62
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
@@ -210,9 +210,9 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
|
|
|
210
210
|
readonly suffix?: any;
|
|
211
211
|
readonly focused?: boolean | undefined;
|
|
212
212
|
readonly handleReset?: MouseEventHandler | undefined;
|
|
213
|
-
readonly placeholder?: string | number | undefined;
|
|
214
213
|
readonly defaultValue?: string | number | undefined;
|
|
215
214
|
readonly id?: string | undefined;
|
|
215
|
+
readonly placeholder?: string | number | undefined;
|
|
216
216
|
readonly autocomplete?: string | undefined;
|
|
217
217
|
readonly maxlength?: number | undefined;
|
|
218
218
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
@@ -55,9 +55,9 @@ declare function __VLS_template(): {
|
|
|
55
55
|
readonly suffix?: any;
|
|
56
56
|
readonly focused?: boolean | undefined;
|
|
57
57
|
readonly handleReset?: MouseEventHandler | undefined;
|
|
58
|
-
readonly placeholder?: string | number | undefined;
|
|
59
58
|
readonly defaultValue?: string | number | undefined;
|
|
60
59
|
readonly id?: string | undefined;
|
|
60
|
+
readonly placeholder?: string | number | undefined;
|
|
61
61
|
readonly autocomplete?: string | undefined;
|
|
62
62
|
readonly maxlength?: number | undefined;
|
|
63
63
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
@@ -217,9 +217,9 @@ declare const __VLS_component: DefineComponent<ApFormItemTextPasswordProps, {
|
|
|
217
217
|
readonly suffix?: any;
|
|
218
218
|
readonly focused?: boolean | undefined;
|
|
219
219
|
readonly handleReset?: MouseEventHandler | undefined;
|
|
220
|
-
readonly placeholder?: string | number | undefined;
|
|
221
220
|
readonly defaultValue?: string | number | undefined;
|
|
222
221
|
readonly id?: string | undefined;
|
|
222
|
+
readonly placeholder?: string | number | undefined;
|
|
223
223
|
readonly autocomplete?: string | undefined;
|
|
224
224
|
readonly maxlength?: number | undefined;
|
|
225
225
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
@@ -79,9 +79,9 @@ declare function __VLS_template(): {
|
|
|
79
79
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
80
80
|
readonly virtual?: boolean | undefined;
|
|
81
81
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
82
|
-
readonly placeholder?: any;
|
|
83
82
|
readonly defaultValue?: unknown;
|
|
84
83
|
readonly id?: string | undefined;
|
|
84
|
+
readonly placeholder?: any;
|
|
85
85
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
86
86
|
readonly clearIcon?: any;
|
|
87
87
|
readonly allowClear?: boolean | undefined;
|
|
@@ -853,9 +853,9 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
853
853
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
854
854
|
readonly virtual?: boolean | undefined;
|
|
855
855
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
856
|
-
readonly placeholder?: any;
|
|
857
856
|
readonly defaultValue?: unknown;
|
|
858
857
|
readonly id?: string | undefined;
|
|
858
|
+
readonly placeholder?: any;
|
|
859
859
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
860
860
|
readonly clearIcon?: any;
|
|
861
861
|
readonly allowClear?: boolean | undefined;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { Ref, ComputedRef } from 'vue';
|
|
1
|
+
import { Ref, VNode, ComputedRef } from 'vue';
|
|
2
2
|
import { SearchFormRenderNodeConfig } from '../../interface';
|
|
3
|
+
/**
|
|
4
|
+
* 默认用于判断当前值是否是空值的判断函数
|
|
5
|
+
* @param value
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function defaultFilled(value: any): boolean;
|
|
9
|
+
export declare function getTargetNode(node: VNode): any;
|
|
3
10
|
export declare const useCollapseInputCount: (config: Ref<SearchFormRenderNodeConfig[]>) => {
|
|
4
11
|
count: ComputedRef<number>;
|
|
5
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),y=require("../../context.js"),i=require("lodash-unified");require("../../../config-provider/index.js");const h=require("../../../config-provider/hooks/use-global-config.js");function C(t,e){return i.isArray(e)?e.reduce((n,u)=>n==null?void 0:n[u],t):t==null?void 0:t[e]}function s(t){if(t==null)return!1;if(typeof t=="string")return t.trim()!=="";if(i.isArray(t))return t.some(n=>s(n));if(i.isObject(t)){const e=Object.keys(t);if(e.length===0)return!1;for(const n of e)if(s(t[n]))return!0;return!1}return!0}function d(t){return i.isFunction(t.type)?t.type():t}const b=t=>{const{model:e}=y.useInjectForm(),n=h.useGlobalConfig("searchForm");return{count:p.computed(()=>{let c=0;return t.value.forEach(F=>{var a;const r=d(F.node),g=[r.props.name].flat(1),l=C(e==null?void 0:e.value,g),f=r.props.customFilled||r.props["custom-filled"],o=(a=n.value)==null?void 0:a.customFilled;!f&&o?o!=null&&o(r,l)&&(c+=1):(f||s)(l)&&(c+=1)}),c})}};exports.defaultFilled=s;exports.getTargetNode=d;exports.useCollapseInputCount=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("lodash-unified"),d=require("vue"),c=require("../../item-group/helper.js"),f=require("../../../utils/index.js"),l=require("./use-collapse-input-count.js");function g(o,s){var u;const i=new Set(o.map(e=>e.name)),a=new Map;for(const e of s){const n=String(c.getStringName((u=l.getTargetNode(e).props)==null?void 0:u.name));n&&i.has(n)&&a.set(n,e)}const r=new Set,t=[];for(const e of o){const n=a.get(e.name);n&&(t.push(n),r.add(n))}for(const e of s)r.has(e)||t.push(e);return t}const m=o=>{const s=d.ref(!1),i=d.computed(()=>(o.value||[]).map(t=>{const e=l.getTargetNode(t).props;return{label:e.description||e.label||e.placeholder,name:c.getStringName(e.name),isHidden:p.isBoolean(e.hidden)?!!e.hidden:f.isDef(e.hidden)}}));function a(r){const t=g(r||[],o.value||[]);s.value=!0,o.value=t}return{items:i,handleClickConfirm:a,sorted:s}};exports.useSorter=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");const T=require("../item-group/helper.js");require("../../config-provider/index.js");const w=require("lodash-unified"),P=require("../../utils/index.js"),S=require("./utils.js");require("./components/popover-filter.vue.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");const T=require("../item-group/helper.js");require("../../config-provider/index.js");const w=require("lodash-unified"),P=require("../../utils/index.js"),S=require("./utils.js");require("./components/popover-filter.vue.js");const G=require("./hooks/use-count-per-row.js");require("./components/popover-sorter/index.vue.js");const J=require("./hooks/use-sorter.js"),K=require("./hooks/use-collapse-input-count.js"),Q=require("../../config-provider/hooks/use-namespace.js"),X=require("../../config-provider/hooks/use-locale.js"),E=require("../item/index.vue.js"),Y=require("./components/popover-filter.vue2.js"),Z=require("./components/popover-sorter/index.vue2.js"),ee=require("../ap-form.vue2.js");function te(p){return typeof p=="function"||Object.prototype.toString.call(p)==="[object Object]"&&!e.isVNode(p)}const s=24,oe=e.defineComponent({name:"ApFormSearchForm",__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},collapse:{type:Boolean,default:void 0},defaultCollapse:{type:Boolean,default:!0},"onUpdate:collapse":{},searchText:{},resetText:{},onReset:{},customReset:{type:Boolean,default:!1},extraInAction:{type:Boolean,default:!1},forceExpand:{type:Boolean,default:!1},countPerRow:{default:4},submitLoading:{type:Boolean},maxRows:{default:2},sortable:{type:Boolean,default:!0},resizeTarget:{},loadingDelay:{default:300}},setup(p,{expose:O}){var q;const u=e.useSlots(),o=p,{b:f}=Q.useNamespace("ap-form-search-form"),{t:B}=X.useLocale(),D=G.useCountPerRow(o),g=e.ref(),L=e.ref();function F(){var a;const t=(a=g.value)==null?void 0:a.getFieldsValueTransformed(!0);S.execFunc(o.onSubmit,t)}function j(){var t,a;o.customReset||(a=(t=g.value)==null?void 0:t.resetFields)==null||a.call(t),S.execFunc(o.onReset)}const M=t=>P.isDef(t)?(w.isArray(t)?t:[t]).join(""):Date.now();let R=[];const m=e.shallowRef(T.genRealChildren(u.default())),i=e.shallowRef((q=u.extra)==null?void 0:q.call(u)),b=e.computed(()=>Math.floor(s/e.unref(D))),{items:y,sorted:k,handleClickConfirm:v}=J.useSorter(m);e.watch(()=>u.default(),t=>{R=m.value,m.value=S.diffFormItem(R,T.genRealChildren(t)),k.value=!1}),e.watch(()=>{var t;return(t=u.extra)==null?void 0:t.call(u)},t=>{i.value=t});const n=e.computed(()=>{const t=m.value,a=[],l=[],h=[],c=e.unref(b);let x=0,C=0;const z=s*o.maxRows-c*(e.unref(i)&&!o.extraInAction?2:1);t.forEach(N=>{const d=K.getTargetNode(N).props;if(w.isBoolean(d.hidden)?!!d.hidden:P.isDef(d.hidden))a.push(N);else{let _=d.span||c;const A={node:N,span:_,key:`ApFormSearchFormItem-${M(d.name)}-${d._signal}`},I=s-x%s;I<_&&(_+=I),x+=_,x>z?l.push(A):(C=x,h.push(A))}});const V=s-(C+c)%s,$=C%s<c,H=V<c?s:V;return{hideNode:e.createVNode(e.Fragment,null,[a]),nodes:h,collapseNodes:l,extraSpan:H,lastRowOnlyIncludeActionAndExtra:$}}),U=e.computed(()=>{let t;const a=n.value.collapseNodes.length||o.sortable&&m.value.length,l=e.createVNode(r.Col,{span:e.unref(b),key:"actionWrapper"},{default:()=>[e.createVNode(E.default,null,{default:()=>[e.createVNode(r.Flex,{wrap:"wrap",justify:n.value.lastRowOnlyIncludeActionAndExtra&&!(e.unref(i)&&o.extraInAction)?"flex-end":"space-between"},{default:()=>[e.createVNode(r.Flex,{gap:8,wrap:"wrap"},{default:()=>[a?e.createVNode("div",{class:f("column-setting-trigger-wrapper")},[n.value.collapseNodes.length?e.createVNode(Y.default,{onSubmit:F,config:n.value.collapseNodes,submitLoading:o.submitLoading},null):null,o.sortable&&y.value.length?e.createVNode(Z.default,{ref:"sorterIns",items:y.value,onClickConfirm:v,sorted:k.value},null):null]):null,e.createVNode(r.Button,{type:"primary",onClick:F,loading:o.submitLoading?{delay:o.loadingDelay}:!1,htmlType:"submit",class:f("action-btn")},{default:()=>[o.searchText||B("ap.apForm.search.search")]}),e.createVNode(r.Button,{onClick:j,type:"text",class:[f("action-btn"),f("action-btn-reset")]},{default:()=>[o.resetText||B("ap.apForm.search.reset")]})]}),o.extraInAction?e.unref(i):null]})]})]}),h=!o.extraInAction&&e.unref(i)?e.createVNode(r.Col,{span:n.value.extraSpan,key:"extraNode"},{default:()=>[e.createVNode(E.default,null,{default:()=>[e.createVNode(r.Flex,{justify:n.value.extraSpan===s||n.value.lastRowOnlyIncludeActionAndExtra?"start":"flex-end"},te(t=e.unref(i))?t:{default:()=>[t]})]})]}):null,c=e.createVNode(r.Col,{span:n.value.extraSpan},null);return n.value.lastRowOnlyIncludeActionAndExtra?e.createVNode(e.Fragment,null,[h||c,l]):e.createVNode(e.Fragment,null,[l,h])});function W(){var a;const t=(a=L.value)==null?void 0:a.getCachedList();v(t)}return O({apForm:e.computed(()=>e.unref(g)),getSorterItems:()=>y.value,setSorterItems:v,resetSorterItems:W}),(t,a)=>(e.openBlock(),e.createBlock(ee.default,e.mergeProps({ref_key:"apForm",ref:g,class:e.unref(f)()},e.unref(w.omit)(o,["collapse","defaultCollapse","onUpdate:collapse","searchText","resetText","onSubmit","onReset","extraInAction","forceExpand","countPerRow"])),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value.hideNode))),e.createVNode(e.unref(r.Row),{gutter:8},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value.nodes,l=>(e.openBlock(),e.createBlock(e.unref(r.Col),{key:l.key,span:l.span},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.node)))]),_:2},1032,["span"]))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(U.value)))]),_:1})]),_:1},16,["class"]))}});exports.default=oe;
|