@aplus-frontend/ui 0.2.0 → 0.2.2
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 +1 -1
- package/es/src/ap-button/ap-action-button.vue.mjs +1 -0
- package/es/src/ap-button/ap-button.vue.d.ts +3 -0
- package/es/src/ap-button/ap-button.vue.mjs +47 -66
- package/es/src/ap-button/interface.d.ts +1 -0
- package/es/src/ap-button/utils/index.d.ts +3 -0
- package/es/src/ap-button/utils/index.mjs +33 -0
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
- package/es/src/ap-descriptions/interface.d.ts +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +23 -22
- package/es/src/ap-field/hooks/use-options.d.ts +8 -0
- package/es/src/ap-field/hooks/use-options.mjs +22 -0
- package/es/src/ap-field/radio/index.vue.mjs +25 -24
- package/es/src/ap-field/segmented/index.vue.mjs +37 -33
- package/es/src/ap-field/select/index.vue.mjs +74 -73
- package/es/src/ap-table/ap-table.vue.mjs +2 -428
- package/es/src/ap-table/ap-table.vue2.mjs +428 -2
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +22 -20
- package/es/src/ap-table/hooks/use-table-column-state.mjs +72 -69
- package/es/src/ap-table/index.d.ts +6 -1
- package/es/src/ap-table/index.mjs +9 -3
- 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-batch-action/ApBatchAction.vue.d.ts +8 -3
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +42 -29
- package/es/src/business/ap-batch-action/index.d.ts +8 -3
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +14 -13
- package/es/src/business/ap-batch-action-group/index.d.ts +4 -0
- package/es/src/business/ap-button-group/index.d.ts +8 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +42 -40
- package/es/src/business/ap-summary/style/css.js +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +38 -1
- package/es/src/business/ap-table-modal/interface.d.ts +17 -2
- package/es/src/business/ap-table-modal/style/css.js +1 -1
- package/es/src/business/ap-table-modal/style/index.js +1 -1
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
- package/es/src/business/ap-table-modal/table-layout/index.vue.mjs +4 -0
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +74 -0
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +134 -79
- package/es/src/config-provider/config-provider.d.ts +1 -0
- package/es/src/config-provider/css-var.d.ts +1 -0
- package/es/src/config-provider/css-var.mjs +7 -5
- package/es/src/config-provider/index.d.ts +6 -0
- package/es/src/editable-table/interface.d.ts +2 -2
- package/es/src/index.mjs +201 -202
- package/es/src/locale/lang/en.mjs +3 -1
- package/es/src/locale/lang/zh-cn.mjs +3 -1
- package/es/src/path-map.mjs +2 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +3 -0
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -0
- package/lib/src/ap-button/utils/index.d.ts +3 -0
- package/lib/src/ap-button/utils/index.js +1 -0
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
- package/lib/src/ap-descriptions/interface.d.ts +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-options.d.ts +8 -0
- package/lib/src/ap-field/hooks/use-options.js +1 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/index.d.ts +6 -1
- package/lib/src/ap-table/index.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-batch-action/ApBatchAction.vue.d.ts +8 -3
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +8 -3
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +4 -0
- package/lib/src/business/ap-button-group/index.d.ts +8 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-summary/style/css.js +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +38 -1
- package/lib/src/business/ap-table-modal/interface.d.ts +17 -2
- package/lib/src/business/ap-table-modal/style/css.js +1 -1
- package/lib/src/business/ap-table-modal/style/index.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
- package/lib/src/business/ap-table-modal/table-layout/index.vue.js +1 -0
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -0
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +1 -0
- package/lib/src/config-provider/css-var.d.ts +1 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +6 -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 +2 -2
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { message 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
|
+
import { message as h, Modal as H } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../index.mjs";
|
|
4
|
-
import { cloneDeep as
|
|
5
|
-
import { transformTableParams as
|
|
4
|
+
import { cloneDeep as V, omit as S } from "lodash-unified";
|
|
5
|
+
import { transformTableParams as W } from "@aplus-frontend/utils";
|
|
6
6
|
import "./modal-title.vue.mjs";
|
|
7
|
-
import { AsyncOpenResultError as
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
7
|
+
import { AsyncOpenResultError as x } from "./interface.mjs";
|
|
8
|
+
import "./table-layout/index.vue.mjs";
|
|
9
|
+
import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
|
|
10
|
+
import { useLocale as J } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import Q from "./modal-title.vue2.mjs";
|
|
12
|
+
import X from "./table-layout/index.vue2.mjs";
|
|
13
|
+
import { ApTable as Z } from "../../ap-table/index.mjs";
|
|
14
|
+
const fe = /* @__PURE__ */ F({
|
|
13
15
|
__name: "table-modal",
|
|
14
16
|
props: {
|
|
15
17
|
columns: {},
|
|
@@ -19,6 +21,9 @@ const le = /* @__PURE__ */ I({
|
|
|
19
21
|
maxCount: { default: 1 / 0 },
|
|
20
22
|
isRenderModalTitleSuffix: { type: Boolean, default: !0 },
|
|
21
23
|
renderModalTitleSuffix: {},
|
|
24
|
+
disabledCheckbox: { type: [Boolean, Function] },
|
|
25
|
+
rowSelection: {},
|
|
26
|
+
tableLayoutConfig: {},
|
|
22
27
|
prefixCls: {},
|
|
23
28
|
confirmLoading: { type: Boolean, default: void 0 },
|
|
24
29
|
title: {},
|
|
@@ -56,89 +61,126 @@ const le = /* @__PURE__ */ I({
|
|
|
56
61
|
mousePosition: {}
|
|
57
62
|
},
|
|
58
63
|
emits: ["finish"],
|
|
59
|
-
setup(
|
|
60
|
-
const e =
|
|
61
|
-
let
|
|
62
|
-
const
|
|
63
|
-
var l,
|
|
64
|
-
switch (
|
|
64
|
+
setup(B, { expose: R, emit: M }) {
|
|
65
|
+
const e = B, P = M, i = m(!1), y = m({}), d = m(null), a = m([]), C = m();
|
|
66
|
+
let c = null, n = null;
|
|
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") {
|
|
65
70
|
case "reset":
|
|
66
|
-
(
|
|
71
|
+
(r = d.value) == null || r.reset();
|
|
67
72
|
break;
|
|
68
73
|
case "submit":
|
|
69
|
-
(
|
|
74
|
+
(u = d.value) == null || u.submit();
|
|
70
75
|
break;
|
|
71
76
|
case "none":
|
|
72
77
|
break;
|
|
73
78
|
}
|
|
74
|
-
return new Promise((
|
|
75
|
-
|
|
79
|
+
return new Promise((p, f) => {
|
|
80
|
+
c = p, n = f;
|
|
76
81
|
});
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
...
|
|
82
|
-
...
|
|
82
|
+
}, w = () => {
|
|
83
|
+
i.value = !1, c = null, n == null || n(x.ModalCancel), n = null;
|
|
84
|
+
}, I = async (o) => {
|
|
85
|
+
o = W({
|
|
86
|
+
...o,
|
|
87
|
+
...y.value
|
|
83
88
|
});
|
|
84
|
-
const
|
|
89
|
+
const t = e.api, { records: l, total: r } = await t(o);
|
|
85
90
|
return {
|
|
86
91
|
data: l,
|
|
87
|
-
total:
|
|
92
|
+
total: r
|
|
88
93
|
};
|
|
89
|
-
},
|
|
90
|
-
if (
|
|
91
|
-
|
|
94
|
+
}, L = () => {
|
|
95
|
+
if (a.value.length > e.maxCount) {
|
|
96
|
+
n == null || n(x.ExceedMaxCount);
|
|
92
97
|
return;
|
|
93
98
|
}
|
|
94
99
|
if (e.getRowKey) {
|
|
95
|
-
const
|
|
96
|
-
|
|
100
|
+
const o = V(s(a)), t = o.map(e.getRowKey);
|
|
101
|
+
P("finish", t, o), c == null || c({ keys: t, rows: o });
|
|
97
102
|
} else {
|
|
98
|
-
|
|
103
|
+
n == null || n(x.NotFineGetRowKey);
|
|
99
104
|
return;
|
|
100
105
|
}
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
if (e.getRowKey)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
i.value = !1;
|
|
107
|
+
}, A = U(() => {
|
|
108
|
+
if (!e.getRowKey) return;
|
|
109
|
+
const o = e.getRowKey;
|
|
110
|
+
return {
|
|
111
|
+
fixed: !0,
|
|
112
|
+
selectedRowKeys: a.value.map(o),
|
|
113
|
+
columnWidth: 50,
|
|
114
|
+
preserveSelectedRowKeys: !0,
|
|
115
|
+
onSelectAll(t, l) {
|
|
116
|
+
var u, p;
|
|
117
|
+
if (l.length > e.maxCount) {
|
|
118
|
+
h.warning(
|
|
119
|
+
g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
|
|
120
|
+
);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
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
|
+
a.value = a.value.concat(f);
|
|
127
|
+
} else
|
|
128
|
+
a.value = (p = a.value) == null ? void 0 : p.filter((f) => !r.some((v) => o(v) === o(f)));
|
|
129
|
+
},
|
|
130
|
+
onSelect(t, l) {
|
|
131
|
+
if (l) {
|
|
132
|
+
if (a.value.length >= e.maxCount) {
|
|
133
|
+
h.warning(
|
|
134
|
+
g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
|
|
113
135
|
);
|
|
114
136
|
return;
|
|
115
137
|
}
|
|
116
|
-
|
|
138
|
+
a.value.push(t);
|
|
139
|
+
} else {
|
|
140
|
+
const r = a.value.findIndex(
|
|
141
|
+
(u) => o(t) === o(u)
|
|
142
|
+
);
|
|
143
|
+
a.value.splice(r, 1);
|
|
117
144
|
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
145
|
+
},
|
|
146
|
+
getCheckboxProps: (t) => ({
|
|
147
|
+
disabled: typeof e.disabledCheckbox == "function" ? e.disabledCheckbox(t, a.value) : e.disabledCheckbox
|
|
148
|
+
// Column configuration not to be checked
|
|
149
|
+
}),
|
|
150
|
+
...e.rowSelection || {}
|
|
151
|
+
};
|
|
152
|
+
}), D = () => e.isRenderModalTitleSuffix ? q(
|
|
153
|
+
Q,
|
|
121
154
|
{
|
|
122
155
|
title: e.title,
|
|
123
|
-
count:
|
|
156
|
+
count: a.value.length || 0,
|
|
124
157
|
maxCount: e.maxCount
|
|
125
158
|
},
|
|
126
159
|
{
|
|
127
160
|
default: e.renderModalTitleSuffix ?? void 0
|
|
128
161
|
}
|
|
129
|
-
) : e.title
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
162
|
+
) : e.title, N = () => d.value, O = () => {
|
|
163
|
+
a.value = [];
|
|
164
|
+
}, G = (o) => {
|
|
165
|
+
const t = e.getRowKey;
|
|
166
|
+
if (!t) return;
|
|
167
|
+
const l = a.value.findIndex(
|
|
168
|
+
(r) => t(o) === t(r)
|
|
169
|
+
);
|
|
170
|
+
a.value.splice(l, 1);
|
|
171
|
+
};
|
|
172
|
+
return R({
|
|
173
|
+
open: _,
|
|
174
|
+
close: w,
|
|
175
|
+
getApTableInstance: N
|
|
176
|
+
}), (o, t) => ($(), z(s(H), b(
|
|
135
177
|
{
|
|
136
|
-
onOk:
|
|
137
|
-
onCancel:
|
|
138
|
-
open:
|
|
139
|
-
"onUpdate:open":
|
|
178
|
+
onOk: L,
|
|
179
|
+
onCancel: w,
|
|
180
|
+
open: i.value,
|
|
181
|
+
"onUpdate:open": t[0] || (t[0] = (l) => i.value = l)
|
|
140
182
|
},
|
|
141
|
-
|
|
183
|
+
s(S)(e, [
|
|
142
184
|
"api",
|
|
143
185
|
"getRowKey",
|
|
144
186
|
"centered",
|
|
@@ -147,32 +189,45 @@ const le = /* @__PURE__ */ I({
|
|
|
147
189
|
"maxCount",
|
|
148
190
|
"title",
|
|
149
191
|
"renderModalTitleSuffix",
|
|
150
|
-
"isRenderModalTitleSuffix"
|
|
192
|
+
"isRenderModalTitleSuffix",
|
|
193
|
+
"rowSelection",
|
|
194
|
+
"disabledCheckbox",
|
|
195
|
+
"tableLayoutConfig"
|
|
151
196
|
]),
|
|
152
197
|
{
|
|
153
|
-
title:
|
|
198
|
+
title: D(),
|
|
199
|
+
"body-style": { maxHeight: "calc(100vh - 205px)", overflowY: "scroll" },
|
|
154
200
|
centered: e.centered ?? !0
|
|
155
201
|
}
|
|
156
202
|
), {
|
|
157
|
-
default:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
203
|
+
default: k(() => [
|
|
204
|
+
T(X, b(e.tableLayoutConfig || {}, {
|
|
205
|
+
onClear: O,
|
|
206
|
+
"selected-list": a.value,
|
|
207
|
+
onDeleteItem: G
|
|
208
|
+
}), {
|
|
209
|
+
default: k(() => [
|
|
210
|
+
T(s(Z), b({
|
|
211
|
+
scroll: { y: "100%" },
|
|
212
|
+
style: { padding: "0px" },
|
|
213
|
+
columns: o.columns,
|
|
214
|
+
request: I,
|
|
215
|
+
"row-key": o.getRowKey,
|
|
216
|
+
"row-selection": A.value,
|
|
217
|
+
bordered: s(K) === "admin"
|
|
218
|
+
}, s(S)(e.apTableProps, "dataSource"), {
|
|
219
|
+
ref_key: "apTableRef",
|
|
220
|
+
ref: d,
|
|
221
|
+
"data-source": C.value
|
|
222
|
+
}), null, 16, ["columns", "row-key", "row-selection", "bordered", "data-source"])
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 16, ["selected-list"])
|
|
171
226
|
]),
|
|
172
227
|
_: 1
|
|
173
228
|
}, 16, ["open", "title", "centered"]));
|
|
174
229
|
}
|
|
175
230
|
});
|
|
176
231
|
export {
|
|
177
|
-
|
|
232
|
+
fe as default
|
|
178
233
|
};
|
|
@@ -57,7 +57,8 @@ const F = {
|
|
|
57
57
|
"ap-batch-action": {
|
|
58
58
|
color: {
|
|
59
59
|
font: "#8896B0",
|
|
60
|
-
active: "#0070FF"
|
|
60
|
+
active: "#0070FF",
|
|
61
|
+
border: "#E9EDF3"
|
|
61
62
|
}
|
|
62
63
|
},
|
|
63
64
|
basic: {
|
|
@@ -133,7 +134,8 @@ const F = {
|
|
|
133
134
|
"ap-batch-action": {
|
|
134
135
|
color: {
|
|
135
136
|
font: "#999999",
|
|
136
|
-
active: "#34B77C"
|
|
137
|
+
active: "#34B77C",
|
|
138
|
+
border: "#E9E9E9"
|
|
137
139
|
}
|
|
138
140
|
},
|
|
139
141
|
basic: {
|
|
@@ -162,15 +164,15 @@ function s(e) {
|
|
|
162
164
|
}
|
|
163
165
|
return t(e, []), o;
|
|
164
166
|
}
|
|
165
|
-
const
|
|
167
|
+
const d = s(F), p = s(b);
|
|
166
168
|
function u(e) {
|
|
167
169
|
Object.entries(e).forEach(([o, t]) => {
|
|
168
170
|
document.documentElement.style.setProperty(o, t);
|
|
169
171
|
});
|
|
170
172
|
}
|
|
171
173
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
p as adminCssVar,
|
|
175
|
+
d as aplusCssVar,
|
|
174
176
|
s as generateCssVar,
|
|
175
177
|
u as setCSSVariables
|
|
176
178
|
};
|
|
@@ -223,6 +223,7 @@ export declare const APConfigProvider: {
|
|
|
223
223
|
color: {
|
|
224
224
|
font: string;
|
|
225
225
|
active: string;
|
|
226
|
+
border: string;
|
|
226
227
|
};
|
|
227
228
|
};
|
|
228
229
|
basic: {
|
|
@@ -447,6 +448,7 @@ export declare const APConfigProvider: {
|
|
|
447
448
|
color: {
|
|
448
449
|
font: string;
|
|
449
450
|
active: string;
|
|
451
|
+
border: string;
|
|
450
452
|
};
|
|
451
453
|
};
|
|
452
454
|
basic: {
|
|
@@ -565,6 +567,7 @@ export declare const APConfigProvider: {
|
|
|
565
567
|
color: {
|
|
566
568
|
font: string;
|
|
567
569
|
active: string;
|
|
570
|
+
border: string;
|
|
568
571
|
};
|
|
569
572
|
};
|
|
570
573
|
basic: {
|
|
@@ -794,6 +797,7 @@ export declare const APConfigProvider: {
|
|
|
794
797
|
color: {
|
|
795
798
|
font: string;
|
|
796
799
|
active: string;
|
|
800
|
+
border: string;
|
|
797
801
|
};
|
|
798
802
|
};
|
|
799
803
|
basic: {
|
|
@@ -912,6 +916,7 @@ export declare const APConfigProvider: {
|
|
|
912
916
|
color: {
|
|
913
917
|
font: string;
|
|
914
918
|
active: string;
|
|
919
|
+
border: string;
|
|
915
920
|
};
|
|
916
921
|
};
|
|
917
922
|
basic: {
|
|
@@ -1180,6 +1185,7 @@ export declare const APConfigProvider: {
|
|
|
1180
1185
|
color: {
|
|
1181
1186
|
font: string;
|
|
1182
1187
|
active: string;
|
|
1188
|
+
border: string;
|
|
1183
1189
|
};
|
|
1184
1190
|
};
|
|
1185
1191
|
basic: {
|
|
@@ -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
|
/**
|