@aplus-frontend/ui 0.1.35 → 0.1.37
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 +136 -133
- package/es/src/ap-button/ap-action-button.vue.d.ts +5 -0
- package/es/src/ap-button/ap-action-button.vue.mjs +8 -8
- package/es/src/ap-form/ap-form.vue2.mjs +93 -93
- package/es/src/ap-form/index.d.ts +3 -1
- package/es/src/ap-form/index.mjs +5 -1
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/set/index.vue.d.ts +43 -0
- package/es/src/ap-form/set/index.vue.mjs +35 -0
- package/es/src/ap-form/set/index.vue2.mjs +4 -0
- package/es/src/ap-table/ap-table.vue.d.ts +1 -0
- package/es/src/ap-table/ap-table.vue.mjs +109 -107
- package/es/src/ap-table/components/setting/utils.d.ts +1 -1
- package/es/src/ap-table/components/setting/utils.mjs +12 -21
- package/es/src/ap-table/components/style/setting/modal.css +15 -3
- package/es/src/ap-table/interface.d.ts +5 -0
- package/es/src/ap-table/utils.mjs +14 -13
- package/es/src/ap-upload/apUpload.vue.mjs +40 -39
- package/es/src/business/ap-button-group/ApButtonGroup.vue.d.ts +21 -0
- package/es/src/business/ap-button-group/ApButtonGroup.vue.mjs +4 -0
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +71 -0
- package/es/src/business/ap-button-group/interface.d.ts +29 -0
- package/es/src/business/ap-button-group/interface.mjs +1 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +11 -11
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -0
- package/es/src/business/index.d.ts +607 -4
- package/es/src/business/index.mjs +27 -23
- package/es/src/editable-table/form-item.vue.mjs +76 -97
- package/es/src/editable-table/hooks/use-get-columns.mjs +41 -35
- package/es/src/editable-table/index.vue.mjs +79 -100
- package/es/src/editable-table/style/index.css +12 -0
- package/es/src/editable-table/utils.d.ts +8 -1
- package/es/src/editable-table/utils.mjs +103 -69
- package/es/src/index.mjs +220 -217
- package/es/src/theme/ap-table/setting/modal.css +15 -3
- package/es/src/theme/editable-table/index.css +12 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +5 -0
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/index.d.ts +3 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/set/index.vue.d.ts +43 -0
- package/lib/src/ap-form/set/index.vue.js +1 -0
- package/lib/src/ap-form/set/index.vue2.js +1 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/utils.d.ts +1 -1
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/components/style/setting/modal.css +15 -3
- package/lib/src/ap-table/interface.d.ts +5 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-button-group/ApButtonGroup.vue.d.ts +21 -0
- package/lib/src/business/ap-button-group/ApButtonGroup.vue.js +1 -0
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -0
- package/lib/src/business/ap-button-group/interface.d.ts +29 -0
- package/lib/src/business/ap-button-group/interface.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -0
- package/lib/src/business/index.d.ts +607 -4
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/style/index.css +12 -0
- package/lib/src/editable-table/utils.d.ts +8 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-table/setting/modal.css +15 -3
- package/lib/src/theme/editable-table/index.css +12 -0
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as D, ref as L, reactive as k, nextTick as K, toRaw as
|
|
1
|
+
import { defineComponent as D, ref as L, reactive as k, nextTick as K, toRaw as b, computed as $, openBlock as G, createBlock as H, unref as B, mergeProps as J, withCtx as Q, renderSlot as U } from "vue";
|
|
2
2
|
import { Form as X } from "ant-design-vue";
|
|
3
3
|
import { useProvideForm as Y } from "./context.mjs";
|
|
4
|
-
import { isArray as
|
|
4
|
+
import { isArray as f, cloneDeep as I, isFunction as m, isPlainObject as _, omit as Z } from "lodash-unified";
|
|
5
5
|
import { INTERNAL_FORM_INSTANCE_MARK as ee } from "./constant.mjs";
|
|
6
|
-
import { isDef as
|
|
6
|
+
import { isDef as y } from "../utils/index.mjs";
|
|
7
7
|
import te from "./utils/set.mjs";
|
|
8
8
|
const ue = /* @__PURE__ */ D({
|
|
9
9
|
__name: "ap-form",
|
|
@@ -33,153 +33,153 @@ const ue = /* @__PURE__ */ D({
|
|
|
33
33
|
onValidate: {},
|
|
34
34
|
initialValues: {}
|
|
35
35
|
},
|
|
36
|
-
setup(
|
|
37
|
-
const a =
|
|
38
|
-
function
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
let
|
|
36
|
+
setup(M, { expose: O }) {
|
|
37
|
+
const a = M;
|
|
38
|
+
function g(e, t, l = !0) {
|
|
39
|
+
var s;
|
|
40
|
+
if (f(e)) {
|
|
41
|
+
let o = r;
|
|
42
42
|
for (let u = 0; u < e.length - 1; u++)
|
|
43
|
-
e[u] in
|
|
44
|
-
|
|
43
|
+
e[u] in o || (o[e[u]] = {}), o = o[e[u]];
|
|
44
|
+
o[e[e.length - 1]] = t;
|
|
45
45
|
} else
|
|
46
|
-
|
|
47
|
-
let
|
|
48
|
-
l && ((
|
|
46
|
+
r[e] = t;
|
|
47
|
+
let i = f(e) ? e[0] : e;
|
|
48
|
+
l && ((s = a.onValuesChange) == null || s.call(a, { [i]: r[i] }, r)), h();
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function w(e) {
|
|
51
51
|
var l;
|
|
52
|
-
const t =
|
|
52
|
+
const t = p(e, c);
|
|
53
53
|
(l = a.onFinish) == null || l.call(a, t);
|
|
54
54
|
}
|
|
55
55
|
const n = L();
|
|
56
|
-
let
|
|
57
|
-
const
|
|
58
|
-
let
|
|
59
|
-
const
|
|
56
|
+
let v = a.initialValues ? I(a.initialValues) : {}, c = {};
|
|
57
|
+
const r = k(a.initialValues || {});
|
|
58
|
+
let F = [];
|
|
59
|
+
const E = async () => {
|
|
60
60
|
var e;
|
|
61
61
|
(e = n.value) == null || e.resetFields(), await K(() => {
|
|
62
|
-
Object.keys(
|
|
62
|
+
Object.keys(r).forEach((t) => delete r[t]), Object.assign(r, I(v)), h();
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, j = (e) => {
|
|
65
65
|
var t;
|
|
66
66
|
(t = n.value) == null || t.clearValidate(e);
|
|
67
|
-
},
|
|
67
|
+
}, x = (e, t) => {
|
|
68
68
|
var l;
|
|
69
69
|
return (l = n.value) == null ? void 0 : l.validateFields(e, t);
|
|
70
|
-
},
|
|
71
|
-
var
|
|
72
|
-
const l = await ((
|
|
70
|
+
}, A = async (e, t) => {
|
|
71
|
+
var i;
|
|
72
|
+
const l = await ((i = n.value) == null ? void 0 : i.validateFields(
|
|
73
73
|
e,
|
|
74
74
|
t
|
|
75
75
|
));
|
|
76
|
-
return
|
|
77
|
-
},
|
|
76
|
+
return p(l, c);
|
|
77
|
+
}, N = (e) => {
|
|
78
78
|
var t;
|
|
79
79
|
return (t = n.value) == null ? void 0 : t.getFieldsValue(e);
|
|
80
|
-
},
|
|
80
|
+
}, P = (e) => {
|
|
81
81
|
var l;
|
|
82
82
|
const t = (l = n.value) == null ? void 0 : l.getFieldsValue(e);
|
|
83
|
-
return
|
|
84
|
-
},
|
|
83
|
+
return p(t, c);
|
|
84
|
+
}, S = (e, t) => {
|
|
85
85
|
var l;
|
|
86
86
|
return (l = n.value) == null ? void 0 : l.validate(e, t);
|
|
87
|
-
},
|
|
87
|
+
}, W = (e, t = {}) => {
|
|
88
88
|
var l;
|
|
89
89
|
(l = n.value) == null || l.scrollToField(e, t);
|
|
90
|
-
},
|
|
91
|
-
Object.assign(
|
|
92
|
-
},
|
|
93
|
-
|
|
90
|
+
}, q = (e) => {
|
|
91
|
+
Object.assign(r, e), h();
|
|
92
|
+
}, R = (e, t) => {
|
|
93
|
+
g(e, t), h();
|
|
94
94
|
};
|
|
95
|
-
function
|
|
96
|
-
return t || e(
|
|
97
|
-
|
|
95
|
+
function V(e, t) {
|
|
96
|
+
return t || e(b(r)), F.push(e), () => {
|
|
97
|
+
F = F.filter((l) => l !== e);
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
if (
|
|
102
|
-
if (
|
|
103
|
-
let
|
|
104
|
-
for (let
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
function T({ initialValue: e, name: t, transform: l }) {
|
|
101
|
+
if (y(e) && y(t))
|
|
102
|
+
if (g(t, e, !1), f(t)) {
|
|
103
|
+
let i = v;
|
|
104
|
+
for (let s = 0; s < t.length - 1; s++)
|
|
105
|
+
y(i[t[s]]) || (i[t[s]] = {}), i = i[t[s]];
|
|
106
|
+
i[t[t.length - 1]] = e;
|
|
107
107
|
} else
|
|
108
|
-
|
|
109
|
-
c = te(
|
|
108
|
+
v[t] = e;
|
|
109
|
+
l && (c = te(
|
|
110
110
|
c,
|
|
111
111
|
[t].flat(1),
|
|
112
112
|
l,
|
|
113
113
|
!0
|
|
114
|
-
);
|
|
114
|
+
));
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function z(e) {
|
|
117
117
|
if (e !== ee) {
|
|
118
118
|
console.warn("getInternalInstance should only used at internal");
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
return {
|
|
122
|
-
registerField:
|
|
123
|
-
registerWatch:
|
|
122
|
+
registerField: T,
|
|
123
|
+
registerWatch: V
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
if (
|
|
128
|
-
const e =
|
|
129
|
-
|
|
126
|
+
function h() {
|
|
127
|
+
if (F.length) {
|
|
128
|
+
const e = b(r);
|
|
129
|
+
F.forEach((t) => {
|
|
130
130
|
t(e);
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function p(e, t) {
|
|
135
135
|
if (e == null)
|
|
136
136
|
return;
|
|
137
|
-
let l =
|
|
138
|
-
return Object.keys(e).forEach((
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
142
|
-
|
|
137
|
+
let l = f(e) ? [] : {};
|
|
138
|
+
return Object.keys(e).forEach((i) => {
|
|
139
|
+
const s = e[i], o = t == null ? void 0 : t[i], u = m(o) ? o : o == null ? void 0 : o.transformer, C = m(o) ? !0 : o == null ? void 0 : o.flat;
|
|
140
|
+
if (m(u)) {
|
|
141
|
+
const d = u(s);
|
|
142
|
+
C ? f(d) && f(l) ? l = [...l, ...d] : _(d) && _(l) ? l = {
|
|
143
143
|
...l,
|
|
144
|
-
...
|
|
145
|
-
} : l[
|
|
146
|
-
} else if (
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
...d
|
|
145
|
+
} : l[i] = d : l[i] = d;
|
|
146
|
+
} else if (_(s) || f(s)) {
|
|
147
|
+
const d = p(
|
|
148
|
+
s,
|
|
149
|
+
o
|
|
150
150
|
);
|
|
151
|
-
l[
|
|
151
|
+
l[i] = d;
|
|
152
152
|
} else
|
|
153
|
-
l[
|
|
153
|
+
l[i] = s;
|
|
154
154
|
}), l;
|
|
155
155
|
}
|
|
156
156
|
return Y({
|
|
157
|
-
model: $(() =>
|
|
158
|
-
updateModel:
|
|
157
|
+
model: $(() => r),
|
|
158
|
+
updateModel: g,
|
|
159
159
|
internalInstance: {
|
|
160
|
-
registerWatch:
|
|
161
|
-
registerField:
|
|
162
|
-
setFieldValue:
|
|
160
|
+
registerWatch: V,
|
|
161
|
+
registerField: T,
|
|
162
|
+
setFieldValue: R
|
|
163
163
|
}
|
|
164
|
-
}),
|
|
165
|
-
resetFields:
|
|
166
|
-
clearValidate:
|
|
167
|
-
validateFields:
|
|
168
|
-
getFieldsValue:
|
|
169
|
-
validate:
|
|
170
|
-
scrollToField:
|
|
171
|
-
setFieldsValue:
|
|
172
|
-
setFieldValue:
|
|
173
|
-
registerWatch:
|
|
174
|
-
validateFieldsReturnTransformed:
|
|
175
|
-
getFieldsValueTransformed:
|
|
176
|
-
getInternalInstance:
|
|
177
|
-
}), (e, t) => (G(), H(
|
|
164
|
+
}), O({
|
|
165
|
+
resetFields: E,
|
|
166
|
+
clearValidate: j,
|
|
167
|
+
validateFields: x,
|
|
168
|
+
getFieldsValue: N,
|
|
169
|
+
validate: S,
|
|
170
|
+
scrollToField: W,
|
|
171
|
+
setFieldsValue: q,
|
|
172
|
+
setFieldValue: R,
|
|
173
|
+
registerWatch: V,
|
|
174
|
+
validateFieldsReturnTransformed: A,
|
|
175
|
+
getFieldsValueTransformed: P,
|
|
176
|
+
getInternalInstance: z
|
|
177
|
+
}), (e, t) => (G(), H(B(X), J({
|
|
178
178
|
ref_key: "formRef",
|
|
179
179
|
ref: n
|
|
180
|
-
},
|
|
181
|
-
onFinish:
|
|
182
|
-
model:
|
|
180
|
+
}, B(Z)(a, ["initialValues", "onValuesChange", "onFinish"]), {
|
|
181
|
+
onFinish: w,
|
|
182
|
+
model: r
|
|
183
183
|
}), {
|
|
184
184
|
default: Q(() => [
|
|
185
185
|
U(e.$slots, "default")
|
|
@@ -6,6 +6,7 @@ import { default as ApFormSearchForm } from './search-form/index.vue';
|
|
|
6
6
|
import { default as ApFormModalForm } from './modal-form/index.vue';
|
|
7
7
|
import { default as useWatch } from './hooks/use-watch';
|
|
8
8
|
import { default as ApFormDependency } from './dependency/index.vue';
|
|
9
|
+
import { default as ApFormSet } from './set/index.vue';
|
|
9
10
|
type ApFormMixedProps = typeof _ApForm & {
|
|
10
11
|
FormItem: typeof ApFormItem;
|
|
11
12
|
FormItemGroup: typeof ApFormItemGroup;
|
|
@@ -14,8 +15,9 @@ type ApFormMixedProps = typeof _ApForm & {
|
|
|
14
15
|
ModalForm: typeof ApFormModalForm;
|
|
15
16
|
useWatch: typeof useWatch;
|
|
16
17
|
Dependency: typeof ApFormDependency;
|
|
18
|
+
Set: typeof ApFormSet;
|
|
17
19
|
};
|
|
18
20
|
declare const ApForm: ApFormMixedProps;
|
|
19
21
|
export * from './items';
|
|
20
22
|
export * from './interface';
|
|
21
|
-
export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm, ApFormDependency };
|
|
23
|
+
export { ApForm, ApFormItem, ApFormItemGroup, ApFormList, ApFormSearchForm, ApFormModalForm, ApFormDependency, ApFormSet };
|
package/es/src/ap-form/index.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import "./search-form/index.vue2.mjs";
|
|
|
6
6
|
import "./modal-form/index.vue2.mjs";
|
|
7
7
|
import o from "./hooks/use-watch.mjs";
|
|
8
8
|
import "./dependency/index.vue2.mjs";
|
|
9
|
+
import "./set/index.vue2.mjs";
|
|
9
10
|
import "./items/index.mjs";
|
|
10
11
|
import "./interface.mjs";
|
|
11
12
|
import r from "./ap-form.vue2.mjs";
|
|
@@ -15,6 +16,7 @@ import i from "./ap-form-list.vue.mjs";
|
|
|
15
16
|
import a from "./search-form/index.vue.mjs";
|
|
16
17
|
import s from "./modal-form/index.vue.mjs";
|
|
17
18
|
import e from "./dependency/index.vue.mjs";
|
|
19
|
+
import f from "./set/index.vue.mjs";
|
|
18
20
|
const m = r;
|
|
19
21
|
m.FormItem = p;
|
|
20
22
|
m.FormItemGroup = t;
|
|
@@ -23,6 +25,7 @@ m.SearchForm = a;
|
|
|
23
25
|
m.ModalForm = s;
|
|
24
26
|
m.useWatch = o;
|
|
25
27
|
m.Dependency = e;
|
|
28
|
+
m.Set = f;
|
|
26
29
|
export {
|
|
27
30
|
m as ApForm,
|
|
28
31
|
e as ApFormDependency,
|
|
@@ -30,5 +33,6 @@ export {
|
|
|
30
33
|
t as ApFormItemGroup,
|
|
31
34
|
i as ApFormList,
|
|
32
35
|
s as ApFormModalForm,
|
|
33
|
-
a as ApFormSearchForm
|
|
36
|
+
a as ApFormSearchForm,
|
|
37
|
+
f as ApFormSet
|
|
34
38
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ApFormSetProps } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
default: any;
|
|
6
|
+
}> & {
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormSetProps>, {
|
|
14
|
+
as: string;
|
|
15
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormSetProps>, {
|
|
16
|
+
as: string;
|
|
17
|
+
}>>>, {
|
|
18
|
+
as: "array" | "object";
|
|
19
|
+
}, {}>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithDefaults<P, D> = {
|
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
24
|
+
default: D[K];
|
|
25
|
+
}> : P[K];
|
|
26
|
+
};
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToOption<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as c, useSlots as u, ref as f, watchEffect as p, cloneVNode as d, onMounted as V, openBlock as m, createElementBlock as _, Fragment as y, renderList as k, createBlock as F, resolveDynamicComponent as h } from "vue";
|
|
2
|
+
import { useInjectForm as v } from "../context.mjs";
|
|
3
|
+
import { isFunction as w, cloneDeep as x } from "lodash-unified";
|
|
4
|
+
import { isPromise as B } from "@fruits-chain/utils";
|
|
5
|
+
const j = /* @__PURE__ */ c({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
name: {},
|
|
9
|
+
as: { default: "array" },
|
|
10
|
+
initialValue: {},
|
|
11
|
+
transform: {}
|
|
12
|
+
},
|
|
13
|
+
setup(s) {
|
|
14
|
+
const { internalInstance: t } = v(), a = u(), e = s, l = f([]);
|
|
15
|
+
return p(() => {
|
|
16
|
+
if (a != null && a.default) {
|
|
17
|
+
const n = a.default();
|
|
18
|
+
l.value = n.map((r, o) => {
|
|
19
|
+
const i = e.as === "array" ? [e.name, o] : [e.name, r.props.name];
|
|
20
|
+
return d(r, { name: i });
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}), V(async () => {
|
|
24
|
+
let n = w(e.initialValue) ? e.initialValue() : e.initialValue;
|
|
25
|
+
B(n) && (n = await n), t == null || t.registerField({
|
|
26
|
+
name: e.name,
|
|
27
|
+
initialValue: x(n),
|
|
28
|
+
transform: e.transform
|
|
29
|
+
});
|
|
30
|
+
}), (n, r) => (m(!0), _(y, null, k(l.value, (o, i) => (m(), F(h(o), { key: i }))), 128));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
j as default
|
|
35
|
+
};
|
|
@@ -7,6 +7,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
submit: () => void;
|
|
9
9
|
reset: () => void;
|
|
10
|
+
refresh: () => void;
|
|
10
11
|
setSearchFormValues: (fields: any) => void;
|
|
11
12
|
getSearchFormValues: () => Partial<any> | undefined;
|
|
12
13
|
getShownColumns: () => ColumnsType<RecordType>;
|