@aplus-frontend/ui 0.3.11 → 0.3.12
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 +175 -173
- package/es/src/ap-form/ap-form.vue.d.ts +12 -31
- package/es/src/ap-form/ap-form.vue2.mjs +135 -118
- package/es/src/ap-form/drawer-form/index.vue.d.ts +22 -40
- package/es/src/ap-form/drawer-form/index.vue.mjs +3 -3
- package/es/src/ap-form/index.d.ts +3 -1
- package/es/src/ap-form/index.mjs +26 -22
- package/es/src/ap-form/interface.d.ts +3 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +23 -41
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -58
- package/es/src/ap-form/provider/context.d.ts +3 -0
- package/es/src/ap-form/provider/context.mjs +17 -0
- package/es/src/ap-form/provider/index.vue.d.ts +19 -0
- package/es/src/ap-form/provider/index.vue.mjs +39 -0
- package/es/src/ap-form/provider/index.vue2.mjs +4 -0
- package/es/src/ap-form/provider/interface.d.ts +22 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +22 -40
- package/es/src/business/ap-table-modal/interface.d.ts +2 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +50 -48
- package/es/src/index.mjs +152 -150
- package/es/src/utils/slot.mjs +6 -8
- package/lib/index.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +12 -31
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +22 -40
- package/lib/src/ap-form/drawer-form/index.vue.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 +3 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +23 -41
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/context.d.ts +3 -0
- package/lib/src/ap-form/provider/context.js +1 -0
- package/lib/src/ap-form/provider/index.vue.d.ts +19 -0
- package/lib/src/ap-form/provider/index.vue.js +1 -0
- package/lib/src/ap-form/provider/index.vue2.js +1 -0
- package/lib/src/ap-form/provider/interface.d.ts +22 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +22 -40
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/utils/slot.js +1 -1
- package/package.json +3 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { message as
|
|
1
|
+
import { defineComponent as U, ref as m, unref as s, computed as q, h as V, openBlock as k, createBlock as T, mergeProps as y, withCtx as h, resolveDynamicComponent as $, createCommentVNode as z, createVNode as S } from "vue";
|
|
2
|
+
import { message as B, Modal as W } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../index.mjs";
|
|
4
|
-
import { cloneDeep as
|
|
5
|
-
import { transformTableParams as
|
|
4
|
+
import { cloneDeep as Y, omit as R } from "lodash-unified";
|
|
5
|
+
import { transformTableParams as J } from "@aplus-frontend/utils";
|
|
6
6
|
import "./modal-title.vue.mjs";
|
|
7
|
-
import { AsyncOpenResultError as
|
|
7
|
+
import { AsyncOpenResultError as b } from "./interface.mjs";
|
|
8
8
|
import "./table-layout/index.vue.mjs";
|
|
9
|
-
import { useGlobalConfig as
|
|
10
|
-
import { useLocale as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { ApTable as
|
|
14
|
-
const
|
|
9
|
+
import { useGlobalConfig as Q } from "../../config-provider/hooks/use-global-config.mjs";
|
|
10
|
+
import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import Z from "./modal-title.vue2.mjs";
|
|
12
|
+
import j from "./table-layout/index.vue2.mjs";
|
|
13
|
+
import { ApTable as ee } from "../../ap-table/index.mjs";
|
|
14
|
+
const pe = /* @__PURE__ */ U({
|
|
15
15
|
__name: "table-modal",
|
|
16
16
|
props: {
|
|
17
17
|
columns: {},
|
|
@@ -24,6 +24,7 @@ const fe = /* @__PURE__ */ F({
|
|
|
24
24
|
disabledCheckbox: { type: [Boolean, Function] },
|
|
25
25
|
rowSelection: {},
|
|
26
26
|
tableLayoutConfig: {},
|
|
27
|
+
renderHeader: {},
|
|
27
28
|
prefixCls: {},
|
|
28
29
|
confirmLoading: { type: Boolean, default: void 0 },
|
|
29
30
|
title: {},
|
|
@@ -61,12 +62,12 @@ const fe = /* @__PURE__ */ F({
|
|
|
61
62
|
mousePosition: {}
|
|
62
63
|
},
|
|
63
64
|
emits: ["finish"],
|
|
64
|
-
setup(
|
|
65
|
-
const e =
|
|
65
|
+
setup(M, { expose: P, emit: K }) {
|
|
66
|
+
const e = M, _ = K, i = m(!1), x = m({}), d = m(null), a = m([]), C = m();
|
|
66
67
|
let c = null, n = null;
|
|
67
|
-
const
|
|
68
|
+
const I = Q("uiMode", "admin"), { t: g } = X(), D = async (o = [], t = {}) => {
|
|
68
69
|
var l, r, u;
|
|
69
|
-
switch (a.value = [...o], i.value = !0,
|
|
70
|
+
switch (a.value = [...o], i.value = !0, x.value = t == null ? void 0 : t.extraParams, C.value = t.apTableDataSources || ((l = e.apTableProps) == null ? void 0 : l.dataSource), t.refreshMode || "reset") {
|
|
70
71
|
case "reset":
|
|
71
72
|
(r = d.value) == null || r.reset();
|
|
72
73
|
break;
|
|
@@ -80,31 +81,31 @@ const fe = /* @__PURE__ */ F({
|
|
|
80
81
|
c = p, n = f;
|
|
81
82
|
});
|
|
82
83
|
}, w = () => {
|
|
83
|
-
i.value = !1, c = null, n == null || n(
|
|
84
|
-
},
|
|
85
|
-
o =
|
|
84
|
+
i.value = !1, c = null, n == null || n(b.ModalCancel), n = null;
|
|
85
|
+
}, L = async (o) => {
|
|
86
|
+
o = J({
|
|
86
87
|
...o,
|
|
87
|
-
...
|
|
88
|
+
...x.value
|
|
88
89
|
});
|
|
89
90
|
const t = e.api, { records: l, total: r } = await t(o);
|
|
90
91
|
return {
|
|
91
92
|
data: l,
|
|
92
93
|
total: r
|
|
93
94
|
};
|
|
94
|
-
},
|
|
95
|
+
}, N = () => {
|
|
95
96
|
if (a.value.length > e.maxCount) {
|
|
96
|
-
n == null || n(
|
|
97
|
+
n == null || n(b.ExceedMaxCount);
|
|
97
98
|
return;
|
|
98
99
|
}
|
|
99
100
|
if (e.getRowKey) {
|
|
100
|
-
const o =
|
|
101
|
-
|
|
101
|
+
const o = Y(s(a)), t = o.map(e.getRowKey);
|
|
102
|
+
_("finish", t, o), c == null || c({ keys: t, rows: o });
|
|
102
103
|
} else {
|
|
103
|
-
n == null || n(
|
|
104
|
+
n == null || n(b.NotFineGetRowKey);
|
|
104
105
|
return;
|
|
105
106
|
}
|
|
106
107
|
i.value = !1;
|
|
107
|
-
}, A =
|
|
108
|
+
}, A = q(() => {
|
|
108
109
|
if (!e.getRowKey) return;
|
|
109
110
|
const o = e.getRowKey;
|
|
110
111
|
return {
|
|
@@ -115,14 +116,14 @@ const fe = /* @__PURE__ */ F({
|
|
|
115
116
|
onSelectAll(t, l) {
|
|
116
117
|
var u, p;
|
|
117
118
|
if (l.length > e.maxCount) {
|
|
118
|
-
|
|
119
|
+
B.warning(
|
|
119
120
|
g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
|
|
120
121
|
);
|
|
121
122
|
return;
|
|
122
123
|
}
|
|
123
124
|
const r = (u = d.value) == null ? void 0 : u.dataSource;
|
|
124
125
|
if (t) {
|
|
125
|
-
const f = s(r).filter((v) => !a.value.some((
|
|
126
|
+
const f = s(r).filter((v) => !a.value.some((F) => o(F) === o(v)));
|
|
126
127
|
a.value = a.value.concat(f);
|
|
127
128
|
} else
|
|
128
129
|
a.value = (p = a.value) == null ? void 0 : p.filter((f) => !r.some((v) => o(v) === o(f)));
|
|
@@ -130,7 +131,7 @@ const fe = /* @__PURE__ */ F({
|
|
|
130
131
|
onSelect(t, l) {
|
|
131
132
|
if (l) {
|
|
132
133
|
if (a.value.length >= e.maxCount) {
|
|
133
|
-
|
|
134
|
+
B.warning(
|
|
134
135
|
g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
|
|
135
136
|
);
|
|
136
137
|
return;
|
|
@@ -149,8 +150,8 @@ const fe = /* @__PURE__ */ F({
|
|
|
149
150
|
}),
|
|
150
151
|
...e.rowSelection || {}
|
|
151
152
|
};
|
|
152
|
-
}),
|
|
153
|
-
|
|
153
|
+
}), O = () => e.isRenderModalTitleSuffix ? V(
|
|
154
|
+
Z,
|
|
154
155
|
{
|
|
155
156
|
title: e.title,
|
|
156
157
|
count: a.value.length || 0,
|
|
@@ -159,9 +160,9 @@ const fe = /* @__PURE__ */ F({
|
|
|
159
160
|
{
|
|
160
161
|
default: e.renderModalTitleSuffix ?? void 0
|
|
161
162
|
}
|
|
162
|
-
) : e.title,
|
|
163
|
+
) : e.title, G = () => d.value, H = () => {
|
|
163
164
|
a.value = [];
|
|
164
|
-
},
|
|
165
|
+
}, E = (o) => {
|
|
165
166
|
const t = e.getRowKey;
|
|
166
167
|
if (!t) return;
|
|
167
168
|
const l = a.value.findIndex(
|
|
@@ -169,16 +170,16 @@ const fe = /* @__PURE__ */ F({
|
|
|
169
170
|
);
|
|
170
171
|
a.value.splice(l, 1);
|
|
171
172
|
};
|
|
172
|
-
return
|
|
173
|
-
open:
|
|
173
|
+
return P({
|
|
174
|
+
open: D,
|
|
174
175
|
close: w,
|
|
175
|
-
getApTableInstance:
|
|
176
|
-
}), (o, t) => (
|
|
176
|
+
getApTableInstance: G
|
|
177
|
+
}), (o, t) => (k(), T(s(W), y(
|
|
177
178
|
{
|
|
178
179
|
open: i.value,
|
|
179
180
|
"onUpdate:open": t[0] || (t[0] = (l) => i.value = l)
|
|
180
181
|
},
|
|
181
|
-
s(
|
|
182
|
+
s(R)(e, [
|
|
182
183
|
"api",
|
|
183
184
|
"getRowKey",
|
|
184
185
|
"centered",
|
|
@@ -193,30 +194,31 @@ const fe = /* @__PURE__ */ F({
|
|
|
193
194
|
"tableLayoutConfig"
|
|
194
195
|
]),
|
|
195
196
|
{
|
|
196
|
-
title:
|
|
197
|
+
title: O(),
|
|
197
198
|
"body-style": { maxHeight: "calc(100vh - 205px)", overflowY: "scroll" },
|
|
198
199
|
centered: e.centered ?? !0,
|
|
199
|
-
onOk:
|
|
200
|
+
onOk: N,
|
|
200
201
|
onCancel: w
|
|
201
202
|
}
|
|
202
203
|
), {
|
|
203
|
-
default:
|
|
204
|
-
|
|
204
|
+
default: h(() => [
|
|
205
|
+
e.renderHeader ? (k(), T($(e.renderHeader), { key: 0 })) : z("", !0),
|
|
206
|
+
S(j, y(e.tableLayoutConfig || {}, {
|
|
205
207
|
"selected-list": a.value,
|
|
206
|
-
onClear:
|
|
207
|
-
onDeleteItem:
|
|
208
|
+
onClear: H,
|
|
209
|
+
onDeleteItem: E
|
|
208
210
|
}), {
|
|
209
|
-
default:
|
|
210
|
-
|
|
211
|
+
default: h(() => [
|
|
212
|
+
S(s(ee), y(s(R)(e.apTableProps, "dataSource"), {
|
|
211
213
|
ref_key: "apTableRef",
|
|
212
214
|
ref: d,
|
|
213
215
|
scroll: { y: "100%" },
|
|
214
216
|
style: { padding: "0px" },
|
|
215
217
|
columns: o.columns,
|
|
216
|
-
request:
|
|
218
|
+
request: L,
|
|
217
219
|
"row-key": o.getRowKey,
|
|
218
220
|
"row-selection": A.value,
|
|
219
|
-
bordered: s(
|
|
221
|
+
bordered: s(I) === "admin",
|
|
220
222
|
"data-source": C.value
|
|
221
223
|
}), null, 16, ["columns", "row-key", "row-selection", "bordered", "data-source"])
|
|
222
224
|
]),
|
|
@@ -228,5 +230,5 @@ const fe = /* @__PURE__ */ F({
|
|
|
228
230
|
}
|
|
229
231
|
});
|
|
230
232
|
export {
|
|
231
|
-
|
|
233
|
+
pe as default
|
|
232
234
|
};
|
package/es/src/index.mjs
CHANGED
|
@@ -12,9 +12,9 @@ import { CheckCard as S } from "./check-card/index.mjs";
|
|
|
12
12
|
import { ApModal as h } from "./ap-modal/index.mjs";
|
|
13
13
|
import "./ap-list/index.mjs";
|
|
14
14
|
import "./ap-button/index.mjs";
|
|
15
|
-
import { ApDrawer as
|
|
15
|
+
import { ApDrawer as P } from "./ap-drawer/index.mjs";
|
|
16
16
|
import "./business/index.mjs";
|
|
17
|
-
import { ApTable as
|
|
17
|
+
import { ApTable as L } from "./ap-table/index.mjs";
|
|
18
18
|
import "./editable-table/index.mjs";
|
|
19
19
|
import "./ap-descriptions/index.mjs";
|
|
20
20
|
import { ApScrollBar as y } from "./ap-scroll-bar/index.mjs";
|
|
@@ -36,118 +36,119 @@ import { default as bo } from "./ap-form/items/checkbox/index.vue.mjs";
|
|
|
36
36
|
import { default as Co } from "./ap-form/items/text/password.vue.mjs";
|
|
37
37
|
import { default as go } from "./ap-form/item/index.vue.mjs";
|
|
38
38
|
import { default as Go } from "./ap-form/item-group/index.vue.mjs";
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
39
|
+
import { default as Eo } from "./ap-form/list/index.vue.mjs";
|
|
40
|
+
import { default as No } from "./ap-form/search-form/index.vue.mjs";
|
|
41
41
|
import { default as Mo } from "./ap-form/modal-form/index.vue.mjs";
|
|
42
42
|
import { default as Ro } from "./ap-form/dependency/index.vue.mjs";
|
|
43
43
|
import { default as vo } from "./ap-form/set/index.vue.mjs";
|
|
44
44
|
import { default as Ko } from "./ap-form/drawer-form/index.vue.mjs";
|
|
45
45
|
import { default as Oo } from "./ap-form/render/control.vue.mjs";
|
|
46
46
|
import { default as _o } from "./ap-form/render/item.vue.mjs";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import { default as Qo } from "./ap-field/
|
|
50
|
-
import { default as Xo } from "./ap-field/
|
|
51
|
-
import { default as Zo } from "./ap-field/
|
|
52
|
-
import { default as oe } from "./ap-field/
|
|
53
|
-
import { default as re } from "./ap-field/
|
|
54
|
-
import { default as pe } from "./ap-field/
|
|
55
|
-
import { default as me } from "./ap-field/
|
|
56
|
-
import { default as le } from "./ap-field/
|
|
57
|
-
import { default as de } from "./ap-field/
|
|
58
|
-
import { default as ue } from "./ap-field/
|
|
59
|
-
import { default as ie } from "./ap-field/
|
|
60
|
-
import { default as ce } from "./ap-
|
|
61
|
-
import { default as Ie } from "./ap-action/item-
|
|
62
|
-
import { default as be } from "./ap-action/item-
|
|
63
|
-
import { default as Ce } from "./ap-action/
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import { default as ye } from "./
|
|
68
|
-
import { default as we } from "./ap-tag/ap-tag
|
|
69
|
-
import { default as ke } from "./ap-
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import { default as je } from "./
|
|
75
|
-
import { default as Je } from "./
|
|
76
|
-
import { default as Ve } from "./ap-
|
|
77
|
-
import { default as Ye } from "./ap-button/ap-
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import { default as ut } from "./business/
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import { default as bt } from "./editable-table/
|
|
113
|
-
import { default as Ct } from "./
|
|
47
|
+
import { default as Ho } from "./ap-form/provider/index.vue.mjs";
|
|
48
|
+
import { ApFieldText as qo } from "./ap-field/text/index.mjs";
|
|
49
|
+
import { default as Qo } from "./ap-field/checkbox/index.vue.mjs";
|
|
50
|
+
import { default as Xo } from "./ap-field/date/index.vue.mjs";
|
|
51
|
+
import { default as Zo } from "./ap-field/number/index.vue.mjs";
|
|
52
|
+
import { default as oe } from "./ap-field/radio/index.vue.mjs";
|
|
53
|
+
import { default as re } from "./ap-field/switch/index.vue.mjs";
|
|
54
|
+
import { default as pe } from "./ap-field/text-area/index.vue.mjs";
|
|
55
|
+
import { default as me } from "./ap-field/date-range/index.vue.mjs";
|
|
56
|
+
import { default as le } from "./ap-field/select/index.vue.mjs";
|
|
57
|
+
import { default as de } from "./ap-field/text/password.vue.mjs";
|
|
58
|
+
import { default as ue } from "./ap-field/slider/index.vue.mjs";
|
|
59
|
+
import { default as ie } from "./ap-field/segmented/index.vue.mjs";
|
|
60
|
+
import { default as ce } from "./ap-field/rate/index.vue.mjs";
|
|
61
|
+
import { default as Ie } from "./ap-action/item-modal/index.vue.mjs";
|
|
62
|
+
import { default as be } from "./ap-action/item-popconfirm/index.vue.mjs";
|
|
63
|
+
import { default as Ce } from "./ap-action/item-dropdown/index.vue.mjs";
|
|
64
|
+
import { default as ge } from "./ap-action/group/index.vue.mjs";
|
|
65
|
+
import { DictCode as Ge, langMap as Pe } from "./work-order-modal/interfaces.mjs";
|
|
66
|
+
import { createWorkOrderModal as Le } from "./work-order-modal/createWorkOrder.mjs";
|
|
67
|
+
import { default as ye } from "./work-order-modal/work-order-modal.vue.mjs";
|
|
68
|
+
import { default as we } from "./ap-tag/ap-tag.vue.mjs";
|
|
69
|
+
import { default as ke } from "./ap-tag/ap-tag-group.vue.mjs";
|
|
70
|
+
import { default as Be } from "./ap-info-layout/ApInfoLayout.vue.mjs";
|
|
71
|
+
import { NeedNameKeyDefault as Ue } from "./ap-upload/apUploadTypes.mjs";
|
|
72
|
+
import { default as We } from "./ap-upload/apUpload.vue.mjs";
|
|
73
|
+
import { ApDownLoadNeedNameKeyDefault as ze } from "./ap-download/interface.mjs";
|
|
74
|
+
import { default as je } from "./ap-download/ap-download.vue.mjs";
|
|
75
|
+
import { default as Je } from "./check-card/group.vue.mjs";
|
|
76
|
+
import { default as Ve } from "./ap-list/index.vue.mjs";
|
|
77
|
+
import { default as Ye } from "./ap-button/ap-button.vue.mjs";
|
|
78
|
+
import { default as $e } from "./ap-button/ap-action-button.vue.mjs";
|
|
79
|
+
import { ApTransformDataHelper as er } from "./utils/ap-trans-data/index.mjs";
|
|
80
|
+
import { default as tr } from "./business/ap-table-modal/index.mjs";
|
|
81
|
+
import { useTableModal as ar } from "./business/ap-table-modal/hooks/use-table-modal.mjs";
|
|
82
|
+
import { useTableSelectModal as fr } from "./business/ap-table-modal/hooks/use-table-select-modal.mjs";
|
|
83
|
+
import { ApAttachment as xr } from "./business/ap-attachment/index.mjs";
|
|
84
|
+
import { ApBatchAction as Ar } from "./business/ap-batch-action/index.mjs";
|
|
85
|
+
import { ApBatchActionGroup as sr } from "./business/ap-batch-action-group/index.mjs";
|
|
86
|
+
import { ApButtonGroup as nr } from "./business/ap-button-group/index.mjs";
|
|
87
|
+
import { ApCard as Fr } from "./business/ap-card/index.mjs";
|
|
88
|
+
import { ApExpandAlert as Tr } from "./business/ap-expand-alert/index.mjs";
|
|
89
|
+
import { ApExportGroupActionType as Dr } from "./business/ap-export-group/interface.mjs";
|
|
90
|
+
import { ApExportGroup as Sr } from "./business/ap-export-group/index.mjs";
|
|
91
|
+
import { handleExportDownload as hr } from "./business/ap-export-group/handleExportDownload.mjs";
|
|
92
|
+
import { convertExportField as Pr } from "./business/ap-export-group/convertExportField.mjs";
|
|
93
|
+
import { ApImage as Lr } from "./business/ap-image/index.mjs";
|
|
94
|
+
import { ApInputRadio as yr } from "./business/ap-input-radio/index.mjs";
|
|
95
|
+
import { ApLabel as wr, ApLabelGroup as Rr } from "./business/ap-label/index.mjs";
|
|
96
|
+
import { locales as vr } from "./business/ap-ladder/interface.mjs";
|
|
97
|
+
import { ApLadder as Kr } from "./business/ap-ladder/index.mjs";
|
|
98
|
+
import { ApSelectLayout as Or } from "./business/ap-select-layout/index.mjs";
|
|
99
|
+
import { ApStatus as _r, ApStatusGroup as zr } from "./business/ap-status/index.mjs";
|
|
100
|
+
import { ApTitle as jr } from "./business/ap-title/index.mjs";
|
|
101
|
+
import { usePageListApTable as Jr } from "./business/hooks/usePageListApTable.mjs";
|
|
102
|
+
import { useTableRefresh as Vr } from "./business/hooks/useTableRefresh.mjs";
|
|
103
|
+
import { computedRecords as Yr, flattenColumns as Zr, formatDataIndex as $r, formatNumber as ot } from "./business/ap-summary/utils.mjs";
|
|
104
|
+
import { ApSummary as rt } from "./business/ap-summary/index.mjs";
|
|
105
|
+
import { ApNeedNameKeyDefault as pt } from "./business/ap-appendix/interface.mjs";
|
|
106
|
+
import { ApAppendix as mt } from "./business/ap-appendix/index.mjs";
|
|
107
|
+
import { ApExtensionSelect as lt, ApGroupSearch as xt, ApPopoverSelect as dt } from "./business/ap-group-search/index.mjs";
|
|
108
|
+
import { default as ut } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
109
|
+
import { default as it } from "./business/batch-input-group/index.vue.mjs";
|
|
110
|
+
import { ApSizeInput as ct } from "./business/ap-size-input/index.mjs";
|
|
111
|
+
import { useTablePaging as It } from "./ap-table/hooks/use-table-paging.mjs";
|
|
112
|
+
import { default as bt } from "./editable-table/index.vue.mjs";
|
|
113
|
+
import { default as Ct } from "./editable-table/form-item.vue.mjs";
|
|
114
|
+
import { default as gt } from "./ap-descriptions/ap-descriptions.vue.mjs";
|
|
114
115
|
export {
|
|
115
116
|
u as APConfigProvider,
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
$e as ApActionButton,
|
|
118
|
+
ge as ApActionGroup,
|
|
118
119
|
D as ApActionItem,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
120
|
+
Ce as ApActionItemDropdown,
|
|
121
|
+
Ie as ApActionItemModal,
|
|
122
|
+
be as ApActionItemPopconfirm,
|
|
123
|
+
mt as ApAppendix,
|
|
124
|
+
xr as ApAttachment,
|
|
125
|
+
Ar as ApBatchAction,
|
|
126
|
+
sr as ApBatchActionGroup,
|
|
127
|
+
Ye as ApButton,
|
|
128
|
+
nr as ApButtonGroup,
|
|
129
|
+
Fr as ApCard,
|
|
130
|
+
gt as ApDescriptions,
|
|
131
|
+
ze as ApDownLoadNeedNameKeyDefault,
|
|
132
|
+
je as ApDownload,
|
|
133
|
+
P as ApDrawer,
|
|
134
|
+
Tr as ApExpandAlert,
|
|
135
|
+
Sr as ApExportGroup,
|
|
136
|
+
Dr as ApExportGroupActionType,
|
|
137
|
+
lt as ApExtensionSelect,
|
|
137
138
|
c as ApField,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
139
|
+
Qo as ApFieldCheckbox,
|
|
140
|
+
Xo as ApFieldDate,
|
|
141
|
+
me as ApFieldDateRange,
|
|
142
|
+
Zo as ApFieldNumber,
|
|
143
|
+
de as ApFieldPassword,
|
|
144
|
+
oe as ApFieldRadio,
|
|
145
|
+
ce as ApFieldRate,
|
|
146
|
+
ie as ApFieldSegmented,
|
|
147
|
+
le as ApFieldSelect,
|
|
148
|
+
ue as ApFieldSlider,
|
|
149
|
+
re as ApFieldSwitch,
|
|
150
|
+
qo as ApFieldText,
|
|
151
|
+
pe as ApFieldTextArea,
|
|
151
152
|
i as ApForm,
|
|
152
153
|
Oo as ApFormControlRender,
|
|
153
154
|
Ro as ApFormDependency,
|
|
@@ -165,65 +166,66 @@ export {
|
|
|
165
166
|
to as ApFormItemText,
|
|
166
167
|
ao as ApFormItemTextArea,
|
|
167
168
|
Co as ApFormItemTextPassword,
|
|
168
|
-
|
|
169
|
+
Eo as ApFormList,
|
|
169
170
|
Mo as ApFormModalForm,
|
|
170
|
-
|
|
171
|
+
Ho as ApFormProvider,
|
|
172
|
+
No as ApFormSearchForm,
|
|
171
173
|
vo as ApFormSet,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
174
|
+
xt as ApGroupSearch,
|
|
175
|
+
Lr as ApImage,
|
|
176
|
+
Be as ApInfoLayout,
|
|
177
|
+
yr as ApInputRadio,
|
|
178
|
+
wr as ApLabel,
|
|
179
|
+
Rr as ApLabelGroup,
|
|
180
|
+
Kr as ApLadder,
|
|
181
|
+
Ve as ApList,
|
|
180
182
|
h as ApModal,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
+
pt as ApNeedNameKeyDefault,
|
|
184
|
+
dt as ApPopoverSelect,
|
|
183
185
|
y as ApScrollBar,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
186
|
+
Or as ApSelectLayout,
|
|
187
|
+
ct as ApSizeInput,
|
|
188
|
+
_r as ApStatus,
|
|
189
|
+
zr as ApStatusGroup,
|
|
190
|
+
rt as ApSummary,
|
|
191
|
+
L as ApTable,
|
|
192
|
+
tr as ApTableModal,
|
|
193
|
+
we as ApTag,
|
|
194
|
+
ke as ApTagGroup,
|
|
195
|
+
jr as ApTitle,
|
|
196
|
+
er as ApTransformDataHelper,
|
|
197
|
+
We as ApUpload,
|
|
198
|
+
ut as ApUploadSingle,
|
|
199
|
+
it as BatchInputGroup,
|
|
198
200
|
S as CheckCard,
|
|
199
|
-
|
|
201
|
+
Je as CheckCardGroup,
|
|
200
202
|
oo as ConfigProvider,
|
|
201
203
|
k as DEFAULT_NAMESPACE,
|
|
202
204
|
v as DEFAULT_UIMODE,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
Ge as DictCode,
|
|
206
|
+
bt as EditableTable,
|
|
207
|
+
Ct as EditableTableFormItem,
|
|
208
|
+
Ue as NeedNameKeyDefault,
|
|
209
|
+
ye as WorkOrderModal,
|
|
208
210
|
I as adminToken,
|
|
209
211
|
T as aplusToken,
|
|
210
212
|
z as buildLocaleContext,
|
|
211
213
|
H as buildTranslator,
|
|
212
|
-
|
|
214
|
+
Yr as computedRecords,
|
|
213
215
|
B as configProviderContextKey,
|
|
214
216
|
w as configProviderProps,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
+
Pr as convertExportField,
|
|
218
|
+
Le as createWorkOrderModal,
|
|
217
219
|
V as defaultNamespace,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
Zr as flattenColumns,
|
|
221
|
+
$r as formatDataIndex,
|
|
222
|
+
ot as formatNumber,
|
|
221
223
|
eo as globalConfigCached,
|
|
222
|
-
|
|
224
|
+
hr as handleExportDownload,
|
|
223
225
|
U as keysOf,
|
|
224
|
-
|
|
226
|
+
Pe as langMap,
|
|
225
227
|
j as localeContextKey,
|
|
226
|
-
|
|
228
|
+
vr as locales,
|
|
227
229
|
X as namespaceContextKey,
|
|
228
230
|
O as provideGlobalConfig,
|
|
229
231
|
q as translate,
|
|
@@ -231,9 +233,9 @@ export {
|
|
|
231
233
|
W as useGlobalConfig,
|
|
232
234
|
J as useLocale,
|
|
233
235
|
Z as useNamespace,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
Jr as usePageListApTable,
|
|
237
|
+
ar as useTableModal,
|
|
238
|
+
It as useTablePaging,
|
|
239
|
+
Vr as useTableRefresh,
|
|
240
|
+
fr as useTableSelectModal
|
|
239
241
|
};
|
package/es/src/utils/slot.mjs
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { isFunction as
|
|
2
|
-
import { isArray as
|
|
1
|
+
import { isFunction as e } from "@fruits-chain/utils";
|
|
2
|
+
import { isArray as i } from "lodash-unified";
|
|
3
3
|
function u(r) {
|
|
4
|
-
if (!r || !
|
|
5
|
-
console.error(`${r} is not a function!`);
|
|
4
|
+
if (!r || !e(r))
|
|
6
5
|
return;
|
|
7
|
-
}
|
|
8
6
|
const t = r();
|
|
9
|
-
return
|
|
7
|
+
return i(t) ? n(t)[0] : t;
|
|
10
8
|
}
|
|
11
|
-
function
|
|
9
|
+
function n(r) {
|
|
12
10
|
return (r || []).filter((t) => t.type !== Symbol.for("v-cmt"));
|
|
13
11
|
}
|
|
14
12
|
export {
|
|
15
13
|
u as getSingleVNode,
|
|
16
|
-
|
|
14
|
+
n as getValidVNodeList
|
|
17
15
|
};
|