@aplus-frontend/ui 0.2.1 → 0.2.3
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/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/index.mjs +151 -147
- package/es/src/ap-button/ap-action-button.vue.d.ts +3 -0
- package/es/src/ap-button/ap-action-button.vue.mjs +5 -5
- package/es/src/ap-download/ap-download.vue.mjs +4 -4
- package/es/src/ap-table/ap-table.vue2.mjs +103 -97
- package/es/src/ap-table/utils.d.ts +2 -0
- package/es/src/ap-table/utils.mjs +36 -26
- package/es/src/ap-upload/apUpload.vue.d.ts +2 -2
- package/es/src/ap-upload/components/Picture.vue2.mjs +10 -10
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +45 -0
- package/es/src/business/ap-appendix/ap-appendix.vue.mjs +4 -0
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +156 -0
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +3 -0
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +18 -0
- package/es/src/business/ap-appendix/index.d.ts +136 -0
- package/es/src/business/ap-appendix/index.mjs +9 -0
- package/es/src/business/ap-appendix/interface.d.ts +57 -0
- package/es/src/business/ap-appendix/interface.mjs +4 -0
- package/es/src/business/ap-appendix/style/css.d.ts +0 -0
- package/es/src/business/ap-appendix/style/css.js +1 -0
- package/es/src/business/ap-appendix/style/index.d.ts +0 -0
- package/es/src/business/ap-appendix/style/index.js +1 -0
- package/es/src/business/ap-appendix/utils/index.d.ts +8 -0
- package/es/src/business/ap-appendix/utils/index.mjs +63 -0
- package/es/src/business/ap-summary/style/css.js +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +37 -37
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +8 -6
- package/es/src/config-provider/config-provider.d.ts +11 -0
- package/es/src/config-provider/css-var.d.ts +11 -0
- package/es/src/config-provider/css-var.mjs +31 -9
- package/es/src/config-provider/index.d.ts +66 -0
- package/es/src/editable-table/interface.d.ts +2 -2
- package/es/src/index.mjs +41 -37
- package/es/src/locale/lang/en.mjs +5 -0
- package/es/src/locale/lang/zh-cn.mjs +5 -0
- package/es/src/path-map.mjs +2 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +3 -0
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/utils.d.ts +2 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +45 -0
- package/lib/src/business/ap-appendix/ap-appendix.vue.js +1 -0
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -0
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-appendix/icons/file-icon.vue.js +1 -0
- package/lib/src/business/ap-appendix/index.d.ts +136 -0
- package/lib/src/business/ap-appendix/index.js +1 -0
- package/lib/src/business/ap-appendix/interface.d.ts +57 -0
- package/lib/src/business/ap-appendix/interface.js +1 -0
- package/lib/src/business/ap-appendix/style/css.d.ts +0 -0
- package/lib/src/business/ap-appendix/style/css.js +1 -0
- package/lib/src/business/ap-appendix/style/index.d.ts +0 -0
- package/lib/src/business/ap-appendix/style/index.js +1 -0
- package/lib/src/business/ap-appendix/utils/index.d.ts +8 -0
- package/lib/src/business/ap-appendix/utils/index.js +1 -0
- package/lib/src/business/ap-summary/style/css.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +11 -0
- package/lib/src/config-provider/css-var.d.ts +11 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +66 -0
- package/lib/src/editable-table/interface.d.ts +2 -2
- 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/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, ref as m, unref as
|
|
1
|
+
import { defineComponent as F, ref as m, unref as s, computed as U, h as q, openBlock as $, createBlock as z, mergeProps as b, withCtx as k, createVNode as T } from "vue";
|
|
2
2
|
import { message as h, Modal as H } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../index.mjs";
|
|
4
4
|
import { cloneDeep as V, omit as S } from "lodash-unified";
|
|
@@ -64,14 +64,14 @@ const fe = /* @__PURE__ */ F({
|
|
|
64
64
|
setup(B, { expose: R, emit: M }) {
|
|
65
65
|
const e = B, P = M, i = m(!1), y = m({}), d = m(null), a = m([]), C = m();
|
|
66
66
|
let c = null, n = null;
|
|
67
|
-
const K = Y("uiMode", "admin"), { t: g } = J(), _ = async (
|
|
68
|
-
var l, r,
|
|
69
|
-
switch (a.value = [...
|
|
67
|
+
const K = Y("uiMode", "admin"), { t: g } = J(), _ = async (o = [], t = {}) => {
|
|
68
|
+
var l, r, u;
|
|
69
|
+
switch (a.value = [...o], i.value = !0, y.value = t == null ? void 0 : t.extraParams, C.value = t.apTableDataSources || ((l = e.apTableProps) == null ? void 0 : l.dataSource), t.refreshMode || "reset") {
|
|
70
70
|
case "reset":
|
|
71
71
|
(r = d.value) == null || r.reset();
|
|
72
72
|
break;
|
|
73
73
|
case "submit":
|
|
74
|
-
(
|
|
74
|
+
(u = d.value) == null || u.submit();
|
|
75
75
|
break;
|
|
76
76
|
case "none":
|
|
77
77
|
break;
|
|
@@ -81,13 +81,13 @@ const fe = /* @__PURE__ */ F({
|
|
|
81
81
|
});
|
|
82
82
|
}, w = () => {
|
|
83
83
|
i.value = !1, c = null, n == null || n(x.ModalCancel), n = null;
|
|
84
|
-
}, I = async (
|
|
85
|
-
|
|
86
|
-
...
|
|
84
|
+
}, I = async (o) => {
|
|
85
|
+
o = W({
|
|
86
|
+
...o,
|
|
87
87
|
...y.value
|
|
88
88
|
});
|
|
89
|
-
const
|
|
90
|
-
return
|
|
89
|
+
const t = e.api, { records: l, total: r } = await t(o);
|
|
90
|
+
return {
|
|
91
91
|
data: l,
|
|
92
92
|
total: r
|
|
93
93
|
};
|
|
@@ -97,8 +97,8 @@ const fe = /* @__PURE__ */ F({
|
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
if (e.getRowKey) {
|
|
100
|
-
const
|
|
101
|
-
P("finish",
|
|
100
|
+
const o = V(s(a)), t = o.map(e.getRowKey);
|
|
101
|
+
P("finish", t, o), c == null || c({ keys: t, rows: o });
|
|
102
102
|
} else {
|
|
103
103
|
n == null || n(x.NotFineGetRowKey);
|
|
104
104
|
return;
|
|
@@ -106,28 +106,28 @@ const fe = /* @__PURE__ */ F({
|
|
|
106
106
|
i.value = !1;
|
|
107
107
|
}, A = U(() => {
|
|
108
108
|
if (!e.getRowKey) return;
|
|
109
|
-
const
|
|
109
|
+
const o = e.getRowKey;
|
|
110
110
|
return {
|
|
111
111
|
fixed: !0,
|
|
112
|
-
selectedRowKeys: a.value.map(
|
|
112
|
+
selectedRowKeys: a.value.map(o),
|
|
113
113
|
columnWidth: 50,
|
|
114
114
|
preserveSelectedRowKeys: !0,
|
|
115
|
-
onSelectAll(
|
|
116
|
-
var
|
|
115
|
+
onSelectAll(t, l) {
|
|
116
|
+
var u, p;
|
|
117
117
|
if (l.length > e.maxCount) {
|
|
118
118
|
h.warning(
|
|
119
119
|
g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
|
|
120
120
|
);
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
const r = (
|
|
124
|
-
if (
|
|
125
|
-
const f =
|
|
123
|
+
const r = (u = d.value) == null ? void 0 : u.dataSource;
|
|
124
|
+
if (t) {
|
|
125
|
+
const f = s(r).filter((v) => !a.value.some((E) => o(E) === o(v)));
|
|
126
126
|
a.value = a.value.concat(f);
|
|
127
127
|
} else
|
|
128
|
-
a.value = (p = a.value) == null ? void 0 : p.filter((f) => !r.some((v) =>
|
|
128
|
+
a.value = (p = a.value) == null ? void 0 : p.filter((f) => !r.some((v) => o(v) === o(f)));
|
|
129
129
|
},
|
|
130
|
-
onSelect(
|
|
130
|
+
onSelect(t, l) {
|
|
131
131
|
if (l) {
|
|
132
132
|
if (a.value.length >= e.maxCount) {
|
|
133
133
|
h.warning(
|
|
@@ -135,16 +135,16 @@ const fe = /* @__PURE__ */ F({
|
|
|
135
135
|
);
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
a.value.push(
|
|
138
|
+
a.value.push(t);
|
|
139
139
|
} else {
|
|
140
140
|
const r = a.value.findIndex(
|
|
141
|
-
(
|
|
141
|
+
(u) => o(t) === o(u)
|
|
142
142
|
);
|
|
143
143
|
a.value.splice(r, 1);
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
|
-
getCheckboxProps: (
|
|
147
|
-
disabled: typeof e.disabledCheckbox == "function" ? e.disabledCheckbox(
|
|
146
|
+
getCheckboxProps: (t) => ({
|
|
147
|
+
disabled: typeof e.disabledCheckbox == "function" ? e.disabledCheckbox(t, a.value) : e.disabledCheckbox
|
|
148
148
|
// Column configuration not to be checked
|
|
149
149
|
}),
|
|
150
150
|
...e.rowSelection || {}
|
|
@@ -161,11 +161,11 @@ const fe = /* @__PURE__ */ F({
|
|
|
161
161
|
}
|
|
162
162
|
) : e.title, N = () => d.value, O = () => {
|
|
163
163
|
a.value = [];
|
|
164
|
-
}, G = (
|
|
165
|
-
const
|
|
166
|
-
if (!
|
|
164
|
+
}, G = (o) => {
|
|
165
|
+
const t = e.getRowKey;
|
|
166
|
+
if (!t) return;
|
|
167
167
|
const l = a.value.findIndex(
|
|
168
|
-
(r) => o
|
|
168
|
+
(r) => t(o) === t(r)
|
|
169
169
|
);
|
|
170
170
|
a.value.splice(l, 1);
|
|
171
171
|
};
|
|
@@ -173,14 +173,14 @@ const fe = /* @__PURE__ */ F({
|
|
|
173
173
|
open: _,
|
|
174
174
|
close: w,
|
|
175
175
|
getApTableInstance: N
|
|
176
|
-
}), (
|
|
176
|
+
}), (o, t) => ($(), z(s(H), b(
|
|
177
177
|
{
|
|
178
178
|
onOk: L,
|
|
179
179
|
onCancel: w,
|
|
180
180
|
open: i.value,
|
|
181
|
-
"onUpdate:open":
|
|
181
|
+
"onUpdate:open": t[0] || (t[0] = (l) => i.value = l)
|
|
182
182
|
},
|
|
183
|
-
|
|
183
|
+
s(S)(e, [
|
|
184
184
|
"api",
|
|
185
185
|
"getRowKey",
|
|
186
186
|
"centered",
|
|
@@ -207,15 +207,15 @@ const fe = /* @__PURE__ */ F({
|
|
|
207
207
|
onDeleteItem: G
|
|
208
208
|
}), {
|
|
209
209
|
default: k(() => [
|
|
210
|
-
T(
|
|
210
|
+
T(s(Z), b({
|
|
211
211
|
scroll: { y: "100%" },
|
|
212
212
|
style: { padding: "0px" },
|
|
213
|
-
columns:
|
|
213
|
+
columns: o.columns,
|
|
214
214
|
request: I,
|
|
215
|
-
"row-key":
|
|
215
|
+
"row-key": o.getRowKey,
|
|
216
216
|
"row-selection": A.value,
|
|
217
|
-
bordered:
|
|
218
|
-
},
|
|
217
|
+
bordered: s(K) === "admin"
|
|
218
|
+
}, s(S)(e.apTableProps, "dataSource"), {
|
|
219
219
|
ref_key: "apTableRef",
|
|
220
220
|
ref: d,
|
|
221
221
|
"data-source": C.value
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as t } from "./ap-table-modal/index.mjs";
|
|
2
|
-
import { ApAttachment as
|
|
2
|
+
import { ApAttachment as A } from "./ap-attachment/index.mjs";
|
|
3
3
|
import { ApBatchAction as a } from "./ap-batch-action/index.mjs";
|
|
4
|
-
import { ApBatchActionGroup as
|
|
4
|
+
import { ApBatchActionGroup as f } from "./ap-batch-action-group/index.mjs";
|
|
5
5
|
import { ApButtonGroup as l } from "./ap-button-group/index.mjs";
|
|
6
6
|
import { ApCard as n } from "./ap-card/index.mjs";
|
|
7
7
|
import { ApExpandAlert as i } from "./ap-expand-alert/index.mjs";
|
|
@@ -15,11 +15,13 @@ import { ApStatus as H, ApStatusGroup as M } from "./ap-status/index.mjs";
|
|
|
15
15
|
import { ApTitle as j } from "./ap-title/index.mjs";
|
|
16
16
|
import "./hooks/index.mjs";
|
|
17
17
|
import { ApSummary as q } from "./ap-summary/index.mjs";
|
|
18
|
-
import {
|
|
18
|
+
import { ApAppendix as w } from "./ap-appendix/index.mjs";
|
|
19
|
+
import { ApTransformDataHelper as F } from "../utils/ap-trans-data/index.mjs";
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
w as ApAppendix,
|
|
22
|
+
A as ApAttachment,
|
|
21
23
|
a as ApBatchAction,
|
|
22
|
-
|
|
24
|
+
f as ApBatchActionGroup,
|
|
23
25
|
l as ApButtonGroup,
|
|
24
26
|
n as ApCard,
|
|
25
27
|
i as ApExpandAlert,
|
|
@@ -35,5 +37,5 @@ export {
|
|
|
35
37
|
q as ApSummary,
|
|
36
38
|
t as ApTableModal,
|
|
37
39
|
j as ApTitle,
|
|
38
|
-
|
|
40
|
+
F as ApTransformDataHelper
|
|
39
41
|
};
|
|
@@ -425,6 +425,17 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
425
425
|
'padding-bottom': string;
|
|
426
426
|
};
|
|
427
427
|
};
|
|
428
|
+
'ap-appendix': {
|
|
429
|
+
area: {
|
|
430
|
+
color: {
|
|
431
|
+
border: string;
|
|
432
|
+
font: string;
|
|
433
|
+
'font-hover': string;
|
|
434
|
+
'font-disabled': string;
|
|
435
|
+
icon: string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
};
|
|
428
439
|
}>;
|
|
429
440
|
}, {}>;
|
|
430
441
|
export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
|
|
@@ -76,6 +76,17 @@ declare const aplusCssVarObj: {
|
|
|
76
76
|
'padding-bottom': string;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
|
+
'ap-appendix': {
|
|
80
|
+
area: {
|
|
81
|
+
color: {
|
|
82
|
+
border: string;
|
|
83
|
+
font: string;
|
|
84
|
+
'font-hover': string;
|
|
85
|
+
'font-disabled': string;
|
|
86
|
+
icon: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
79
90
|
};
|
|
80
91
|
export type CssVarType = RecursivePartial<typeof aplusCssVarObj>;
|
|
81
92
|
export declare function generateCssVar(cssVarRawObj: CssVarType): Record<string, any>;
|
|
@@ -74,6 +74,17 @@ const F = {
|
|
|
74
74
|
"last-row-item": {
|
|
75
75
|
"padding-bottom": "0px"
|
|
76
76
|
}
|
|
77
|
+
},
|
|
78
|
+
"ap-appendix": {
|
|
79
|
+
area: {
|
|
80
|
+
color: {
|
|
81
|
+
border: "#DEE4ED",
|
|
82
|
+
font: "#182948",
|
|
83
|
+
"font-hover": "#0070FF",
|
|
84
|
+
"font-disabled": "#ABB7CC",
|
|
85
|
+
icon: "#ABB7CC"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
77
88
|
}
|
|
78
89
|
}, b = {
|
|
79
90
|
"ap-form": {
|
|
@@ -151,28 +162,39 @@ const F = {
|
|
|
151
162
|
"last-row-item": {
|
|
152
163
|
"padding-bottom": "0px"
|
|
153
164
|
}
|
|
165
|
+
},
|
|
166
|
+
"ap-appendix": {
|
|
167
|
+
area: {
|
|
168
|
+
color: {
|
|
169
|
+
border: "#D9D9D9",
|
|
170
|
+
font: "#333333",
|
|
171
|
+
"font-hover": "#1890FF",
|
|
172
|
+
"font-disabled": "#BFBFBF",
|
|
173
|
+
icon: "#BFBFBF"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
154
176
|
}
|
|
155
177
|
};
|
|
156
|
-
function
|
|
178
|
+
function i(e) {
|
|
157
179
|
const o = {};
|
|
158
|
-
function
|
|
180
|
+
function r(a, s) {
|
|
159
181
|
const l = Object.keys(a);
|
|
160
182
|
for (const c of l) {
|
|
161
|
-
const
|
|
162
|
-
|
|
183
|
+
const t = a[c], n = [...s, c];
|
|
184
|
+
t !== null && typeof t == "object" ? r(t, n) : o[`--${n.join("-")}`] = t;
|
|
163
185
|
}
|
|
164
186
|
}
|
|
165
|
-
return
|
|
187
|
+
return r(e, []), o;
|
|
166
188
|
}
|
|
167
|
-
const d =
|
|
189
|
+
const d = i(F), p = i(b);
|
|
168
190
|
function u(e) {
|
|
169
|
-
Object.entries(e).forEach(([o,
|
|
170
|
-
document.documentElement.style.setProperty(o,
|
|
191
|
+
Object.entries(e).forEach(([o, r]) => {
|
|
192
|
+
document.documentElement.style.setProperty(o, r);
|
|
171
193
|
});
|
|
172
194
|
}
|
|
173
195
|
export {
|
|
174
196
|
p as adminCssVar,
|
|
175
197
|
d as aplusCssVar,
|
|
176
|
-
|
|
198
|
+
i as generateCssVar,
|
|
177
199
|
u as setCSSVariables
|
|
178
200
|
};
|
|
@@ -240,6 +240,17 @@ export declare const APConfigProvider: {
|
|
|
240
240
|
'padding-bottom': string;
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
|
+
'ap-appendix': {
|
|
244
|
+
area: {
|
|
245
|
+
color: {
|
|
246
|
+
border: string;
|
|
247
|
+
font: string;
|
|
248
|
+
'font-hover': string;
|
|
249
|
+
'font-disabled': string;
|
|
250
|
+
icon: string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
243
254
|
}>>;
|
|
244
255
|
default: () => {};
|
|
245
256
|
};
|
|
@@ -465,6 +476,17 @@ export declare const APConfigProvider: {
|
|
|
465
476
|
'padding-bottom': string;
|
|
466
477
|
};
|
|
467
478
|
};
|
|
479
|
+
'ap-appendix': {
|
|
480
|
+
area: {
|
|
481
|
+
color: {
|
|
482
|
+
border: string;
|
|
483
|
+
font: string;
|
|
484
|
+
'font-hover': string;
|
|
485
|
+
'font-disabled': string;
|
|
486
|
+
icon: string;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
468
490
|
}>>;
|
|
469
491
|
default: () => {};
|
|
470
492
|
};
|
|
@@ -584,6 +606,17 @@ export declare const APConfigProvider: {
|
|
|
584
606
|
'padding-bottom': string;
|
|
585
607
|
};
|
|
586
608
|
};
|
|
609
|
+
'ap-appendix': {
|
|
610
|
+
area: {
|
|
611
|
+
color: {
|
|
612
|
+
border: string;
|
|
613
|
+
font: string;
|
|
614
|
+
'font-hover': string;
|
|
615
|
+
'font-disabled': string;
|
|
616
|
+
icon: string;
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
};
|
|
587
620
|
}>;
|
|
588
621
|
}, true, {}, {}, {
|
|
589
622
|
P: {};
|
|
@@ -814,6 +847,17 @@ export declare const APConfigProvider: {
|
|
|
814
847
|
'padding-bottom': string;
|
|
815
848
|
};
|
|
816
849
|
};
|
|
850
|
+
'ap-appendix': {
|
|
851
|
+
area: {
|
|
852
|
+
color: {
|
|
853
|
+
border: string;
|
|
854
|
+
font: string;
|
|
855
|
+
'font-hover': string;
|
|
856
|
+
'font-disabled': string;
|
|
857
|
+
icon: string;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
};
|
|
817
861
|
}>>;
|
|
818
862
|
default: () => {};
|
|
819
863
|
};
|
|
@@ -933,6 +977,17 @@ export declare const APConfigProvider: {
|
|
|
933
977
|
'padding-bottom': string;
|
|
934
978
|
};
|
|
935
979
|
};
|
|
980
|
+
'ap-appendix': {
|
|
981
|
+
area: {
|
|
982
|
+
color: {
|
|
983
|
+
border: string;
|
|
984
|
+
font: string;
|
|
985
|
+
'font-hover': string;
|
|
986
|
+
'font-disabled': string;
|
|
987
|
+
icon: string;
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
936
991
|
}>;
|
|
937
992
|
}>;
|
|
938
993
|
__isFragment?: never;
|
|
@@ -1202,6 +1257,17 @@ export declare const APConfigProvider: {
|
|
|
1202
1257
|
'padding-bottom': string;
|
|
1203
1258
|
};
|
|
1204
1259
|
};
|
|
1260
|
+
'ap-appendix': {
|
|
1261
|
+
area: {
|
|
1262
|
+
color: {
|
|
1263
|
+
border: string;
|
|
1264
|
+
font: string;
|
|
1265
|
+
'font-hover': string;
|
|
1266
|
+
'font-disabled': string;
|
|
1267
|
+
icon: string;
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1205
1271
|
}>;
|
|
1206
1272
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
1207
1273
|
$props: {
|
|
@@ -2,11 +2,11 @@ import { ColumnType, TableProps } from '@aplus-frontend/antdv/es/table';
|
|
|
2
2
|
import { ApTableValueFields, ApTableValueTypes, CommonFieldReturnType, FieldPropsType, ValueEnum } from '../ap-table';
|
|
3
3
|
import { NamePath, ValidateOptions } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { DataIndex } from '@aplus-frontend/antdv/es/vc-table/interface';
|
|
5
|
-
import { FormItemProps } from '@aplus-frontend/antdv';
|
|
6
5
|
import { VNode } from 'vue';
|
|
7
6
|
import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
|
|
8
7
|
import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
|
|
9
8
|
import { Recordable } from '../type';
|
|
9
|
+
import { ApFormItemProps } from '../ap-form';
|
|
10
10
|
export type EditableColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<ColumnType<RecordType>, 'children' | 'customRender' | 'ellipsis'> & {
|
|
11
11
|
children?: EditableColumnType<RecordType, ExtraValueType, ValueType, MergedValueType>[];
|
|
12
12
|
/**
|
|
@@ -100,7 +100,7 @@ export type EditableTableFormItemProps<RecordType = any> = Omit<EditableTablePro
|
|
|
100
100
|
/**
|
|
101
101
|
* 额外的表单项配置属性
|
|
102
102
|
*/
|
|
103
|
-
formItem?: Partial<Omit<
|
|
103
|
+
formItem?: Partial<Omit<ApFormItemProps, 'name' | 'label'>>;
|
|
104
104
|
};
|
|
105
105
|
export type EditableTableExpose<ModelType = any, RecordType = any> = {
|
|
106
106
|
/**
|
package/es/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APConfigProvider as
|
|
1
|
+
import { APConfigProvider as u } from "./config-provider/index.mjs";
|
|
2
2
|
import { ApForm as i } from "./ap-form/index.mjs";
|
|
3
3
|
import { ApField as c } from "./ap-field/index.mjs";
|
|
4
4
|
import { adminToken as b, aplusToken as T } from "./design-token/index.mjs";
|
|
@@ -16,10 +16,10 @@ import "./business/index.mjs";
|
|
|
16
16
|
import { ApTable as y } from "./ap-table/index.mjs";
|
|
17
17
|
import "./editable-table/index.mjs";
|
|
18
18
|
import "./ap-descriptions/index.mjs";
|
|
19
|
-
import { configProviderProps as
|
|
19
|
+
import { configProviderProps as L } from "./config-provider/config-provider-props.mjs";
|
|
20
20
|
import { configProviderContextKey as k } from "./config-provider/constants.mjs";
|
|
21
21
|
import { keysOf as M, provideGlobalConfig as R, useGlobalConfig as v } from "./config-provider/hooks/use-global-config.mjs";
|
|
22
|
-
import { buildLocaleContext as
|
|
22
|
+
import { buildLocaleContext as K, buildTranslator as B, localeContextKey as O, translate as W, useLocale as H } from "./config-provider/hooks/use-locale.mjs";
|
|
23
23
|
import { defaultNamespace as j, namespaceContextKey as q, useGetDerivedNamespace as z, useNamespace as J } from "./config-provider/hooks/use-namespace.mjs";
|
|
24
24
|
import { ConfigProvider as V, globalConfigCached as X } from "./config-provider/config-provider.mjs";
|
|
25
25
|
import { ApFormItemText as Z } from "./ap-form/items/text/index.mjs";
|
|
@@ -29,7 +29,7 @@ import { default as to } from "./ap-form/items/date/index.vue.mjs";
|
|
|
29
29
|
import { default as ao } from "./ap-form/items/date-range/index.vue.mjs";
|
|
30
30
|
import { default as fo } from "./ap-form/items/radio/index.vue.mjs";
|
|
31
31
|
import { default as xo } from "./ap-form/items/select/index.vue.mjs";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as uo } from "./ap-form/items/switch/index.vue.mjs";
|
|
33
33
|
import { default as io } from "./ap-form/items/checkbox/index.vue.mjs";
|
|
34
34
|
import { default as co } from "./ap-form/items/text/password.vue.mjs";
|
|
35
35
|
import { default as bo } from "./ap-form/item/index.vue.mjs";
|
|
@@ -37,12 +37,12 @@ import { default as Io } from "./ap-form/item-group/index.vue.mjs";
|
|
|
37
37
|
import { default as go } from "./ap-form/list/index.vue.mjs";
|
|
38
38
|
import { default as ho } from "./ap-form/search-form/index.vue.mjs";
|
|
39
39
|
import { default as So } from "./ap-form/modal-form/index.vue.mjs";
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
40
|
+
import { default as No } from "./ap-form/dependency/index.vue.mjs";
|
|
41
|
+
import { default as Po } from "./ap-form/set/index.vue.mjs";
|
|
42
42
|
import { default as wo } from "./ap-form/drawer-form/index.vue.mjs";
|
|
43
43
|
import { ApFieldText as Ro } from "./ap-field/text/index.mjs";
|
|
44
44
|
import { default as Eo } from "./ap-field/checkbox/index.vue.mjs";
|
|
45
|
-
import { default as
|
|
45
|
+
import { default as Bo } from "./ap-field/date/index.vue.mjs";
|
|
46
46
|
import { default as Wo } from "./ap-field/number/index.vue.mjs";
|
|
47
47
|
import { default as Uo } from "./ap-field/radio/index.vue.mjs";
|
|
48
48
|
import { default as qo } from "./ap-field/switch/index.vue.mjs";
|
|
@@ -56,7 +56,7 @@ import { default as pe } from "./ap-field/rate/index.vue.mjs";
|
|
|
56
56
|
import { default as me } from "./ap-action/item-modal/index.vue.mjs";
|
|
57
57
|
import { default as le } from "./ap-action/item-popconfirm/index.vue.mjs";
|
|
58
58
|
import { default as xe } from "./ap-action/item-dropdown/index.vue.mjs";
|
|
59
|
-
import { default as
|
|
59
|
+
import { default as ue } from "./ap-action/group/index.vue.mjs";
|
|
60
60
|
import { DictCode as ie, langMap as ne } from "./work-order-modal/interfaces.mjs";
|
|
61
61
|
import { createWorkOrderModal as Fe } from "./work-order-modal/createWorkOrder.mjs";
|
|
62
62
|
import { default as Te } from "./work-order-modal/work-order-modal.vue.mjs";
|
|
@@ -64,11 +64,11 @@ import { default as Ce } from "./ap-tag/ap-tag.vue.mjs";
|
|
|
64
64
|
import { default as De } from "./ap-tag/ap-tag-group.vue.mjs";
|
|
65
65
|
import { default as Ge } from "./ap-info-layout/ApInfoLayout.vue.mjs";
|
|
66
66
|
import { NeedNameKeyDefault as ye } from "./ap-upload/apUploadTypes.mjs";
|
|
67
|
-
import { default as
|
|
67
|
+
import { default as Le } from "./ap-upload/apUpload.vue.mjs";
|
|
68
68
|
import { ApDownLoadNeedNameKeyDefault as ke } from "./ap-download/interface.mjs";
|
|
69
69
|
import { default as Me } from "./ap-download/ap-download.vue.mjs";
|
|
70
70
|
import { default as ve } from "./check-card/group.vue.mjs";
|
|
71
|
-
import { default as
|
|
71
|
+
import { default as Ke } from "./ap-list/index.vue.mjs";
|
|
72
72
|
import { default as Oe } from "./ap-button/ap-button.vue.mjs";
|
|
73
73
|
import { default as He } from "./ap-button/ap-action-button.vue.mjs";
|
|
74
74
|
import { ApTransformDataHelper as je } from "./utils/ap-trans-data/index.mjs";
|
|
@@ -82,7 +82,7 @@ import { ApButtonGroup as tr } from "./business/ap-button-group/index.mjs";
|
|
|
82
82
|
import { ApCard as ar } from "./business/ap-card/index.mjs";
|
|
83
83
|
import { ApExpandAlert as fr } from "./business/ap-expand-alert/index.mjs";
|
|
84
84
|
import { ApExportGroupActionType as dr } from "./business/ap-export-group/interface.mjs";
|
|
85
|
-
import { ApExportGroup as
|
|
85
|
+
import { ApExportGroup as Ar } from "./business/ap-export-group/index.mjs";
|
|
86
86
|
import { handleExportDownload as sr } from "./business/ap-export-group/handleExportDownload.mjs";
|
|
87
87
|
import { ApImage as nr } from "./business/ap-image/index.mjs";
|
|
88
88
|
import { ApInputRadio as Fr } from "./business/ap-input-radio/index.mjs";
|
|
@@ -90,39 +90,42 @@ import { ApLabel as Tr, ApLabelGroup as Ir } from "./business/ap-label/index.mjs
|
|
|
90
90
|
import { locales as gr } from "./business/ap-ladder/interface.mjs";
|
|
91
91
|
import { ApLadder as hr } from "./business/ap-ladder/index.mjs";
|
|
92
92
|
import { ApSelectLayout as Sr } from "./business/ap-select-layout/index.mjs";
|
|
93
|
-
import { ApStatus as
|
|
93
|
+
import { ApStatus as Nr, ApStatusGroup as Lr } from "./business/ap-status/index.mjs";
|
|
94
94
|
import { ApTitle as kr } from "./business/ap-title/index.mjs";
|
|
95
95
|
import { usePageListApTable as Mr } from "./business/hooks/usePageListApTable.mjs";
|
|
96
96
|
import { useTableRefresh as vr } from "./business/hooks/useTableRefresh.mjs";
|
|
97
|
-
import { computedRecords as
|
|
97
|
+
import { computedRecords as Kr, flattenColumns as Br, formatDataIndex as Or, formatNumber as Wr } from "./business/ap-summary/utils.mjs";
|
|
98
98
|
import { ApSummary as Ur } from "./business/ap-summary/index.mjs";
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import { default as Yr } from "./
|
|
99
|
+
import { ApNeedNameKeyDefault as qr } from "./business/ap-appendix/interface.mjs";
|
|
100
|
+
import { ApAppendix as Jr } from "./business/ap-appendix/index.mjs";
|
|
101
|
+
import { useTablePaging as Vr } from "./ap-table/hooks/use-table-paging.mjs";
|
|
102
|
+
import { default as Yr } from "./editable-table/index.vue.mjs";
|
|
103
|
+
import { default as _r } from "./editable-table/form-item.vue.mjs";
|
|
104
|
+
import { default as ot } from "./ap-descriptions/ap-descriptions.vue.mjs";
|
|
103
105
|
export {
|
|
104
|
-
|
|
106
|
+
u as APConfigProvider,
|
|
105
107
|
He as ApActionButton,
|
|
106
|
-
|
|
108
|
+
ue as ApActionGroup,
|
|
107
109
|
C as ApActionItem,
|
|
108
110
|
xe as ApActionItemDropdown,
|
|
109
111
|
me as ApActionItemModal,
|
|
110
112
|
le as ApActionItemPopconfirm,
|
|
113
|
+
Jr as ApAppendix,
|
|
111
114
|
Ze as ApAttachment,
|
|
112
115
|
$e as ApBatchAction,
|
|
113
116
|
er as ApBatchActionGroup,
|
|
114
117
|
Oe as ApButton,
|
|
115
118
|
tr as ApButtonGroup,
|
|
116
119
|
ar as ApCard,
|
|
117
|
-
|
|
120
|
+
ot as ApDescriptions,
|
|
118
121
|
ke as ApDownLoadNeedNameKeyDefault,
|
|
119
122
|
Me as ApDownload,
|
|
120
123
|
fr as ApExpandAlert,
|
|
121
|
-
|
|
124
|
+
Ar as ApExportGroup,
|
|
122
125
|
dr as ApExportGroupActionType,
|
|
123
126
|
c as ApField,
|
|
124
127
|
Eo as ApFieldCheckbox,
|
|
125
|
-
|
|
128
|
+
Bo as ApFieldDate,
|
|
126
129
|
Vo as ApFieldDateRange,
|
|
127
130
|
Wo as ApFieldNumber,
|
|
128
131
|
_o as ApFieldPassword,
|
|
@@ -135,7 +138,7 @@ export {
|
|
|
135
138
|
Ro as ApFieldText,
|
|
136
139
|
Jo as ApFieldTextArea,
|
|
137
140
|
i as ApForm,
|
|
138
|
-
|
|
141
|
+
No as ApFormDependency,
|
|
139
142
|
wo as ApFormDrawerForm,
|
|
140
143
|
bo as ApFormItem,
|
|
141
144
|
io as ApFormItemCheckbox,
|
|
@@ -145,25 +148,26 @@ export {
|
|
|
145
148
|
eo as ApFormItemNumber,
|
|
146
149
|
fo as ApFormItemRadio,
|
|
147
150
|
xo as ApFormItemSelect,
|
|
148
|
-
|
|
151
|
+
uo as ApFormItemSwitch,
|
|
149
152
|
Z as ApFormItemText,
|
|
150
153
|
$ as ApFormItemTextArea,
|
|
151
154
|
co as ApFormItemTextPassword,
|
|
152
155
|
go as ApFormList,
|
|
153
156
|
So as ApFormModalForm,
|
|
154
157
|
ho as ApFormSearchForm,
|
|
155
|
-
|
|
158
|
+
Po as ApFormSet,
|
|
156
159
|
nr as ApImage,
|
|
157
160
|
Ge as ApInfoLayout,
|
|
158
161
|
Fr as ApInputRadio,
|
|
159
162
|
Tr as ApLabel,
|
|
160
163
|
Ir as ApLabelGroup,
|
|
161
164
|
hr as ApLadder,
|
|
162
|
-
|
|
165
|
+
Ke as ApList,
|
|
163
166
|
G as ApModal,
|
|
167
|
+
qr as ApNeedNameKeyDefault,
|
|
164
168
|
Sr as ApSelectLayout,
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
Nr as ApStatus,
|
|
170
|
+
Lr as ApStatusGroup,
|
|
167
171
|
Ur as ApSummary,
|
|
168
172
|
y as ApTable,
|
|
169
173
|
ze as ApTableModal,
|
|
@@ -171,25 +175,25 @@ export {
|
|
|
171
175
|
De as ApTagGroup,
|
|
172
176
|
kr as ApTitle,
|
|
173
177
|
je as ApTransformDataHelper,
|
|
174
|
-
|
|
178
|
+
Le as ApUpload,
|
|
175
179
|
D as CheckCard,
|
|
176
180
|
ve as CheckCardGroup,
|
|
177
181
|
V as ConfigProvider,
|
|
178
182
|
ie as DictCode,
|
|
179
|
-
|
|
180
|
-
|
|
183
|
+
Yr as EditableTable,
|
|
184
|
+
_r as EditableTableFormItem,
|
|
181
185
|
ye as NeedNameKeyDefault,
|
|
182
186
|
Te as WorkOrderModal,
|
|
183
187
|
b as adminToken,
|
|
184
188
|
T as aplusToken,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
189
|
+
K as buildLocaleContext,
|
|
190
|
+
B as buildTranslator,
|
|
191
|
+
Kr as computedRecords,
|
|
188
192
|
k as configProviderContextKey,
|
|
189
|
-
|
|
193
|
+
L as configProviderProps,
|
|
190
194
|
Fe as createWorkOrderModal,
|
|
191
195
|
j as defaultNamespace,
|
|
192
|
-
|
|
196
|
+
Br as flattenColumns,
|
|
193
197
|
Or as formatDataIndex,
|
|
194
198
|
Wr as formatNumber,
|
|
195
199
|
X as globalConfigCached,
|
|
@@ -207,7 +211,7 @@ export {
|
|
|
207
211
|
J as useNamespace,
|
|
208
212
|
Mr as usePageListApTable,
|
|
209
213
|
Qe as useTableModal,
|
|
210
|
-
|
|
214
|
+
Vr as useTablePaging,
|
|
211
215
|
vr as useTableRefresh,
|
|
212
216
|
Xe as useTableSelectModal
|
|
213
217
|
};
|