@aplus-frontend/ui 0.5.0-beta.2 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +13 -0
- package/es/src/ap-grid/constants.d.ts +4 -4
- package/es/src/ap-grid/constants.mjs +8 -8
- package/es/src/ap-grid/index.vue.mjs +169 -154
- package/es/src/ap-table/ap-table.vue2.mjs +148 -144
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -0
- package/es/src/business/ap-ladder/index.d.ts +39 -0
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +36 -38
- package/es/src/business/ap-table-modal/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider.mjs +23 -23
- package/es/src/utils/config-provider-preset.d.ts +41 -0
- package/es/src/utils/config-provider-preset.mjs +24 -15
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +13 -0
- package/lib/src/ap-grid/constants.d.ts +4 -4
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -0
- package/lib/src/business/ap-ladder/index.d.ts +39 -0
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +41 -0
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/package.json +3 -3
- package/theme/ap-grid/index.css +2 -1
- package/theme/ap-grid/index.less +2 -1
- package/theme/index.css +2 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as Ne, useSlots as Ie, ref as h, computed as s, unref as t,
|
|
2
|
-
import { Divider as
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { ApForm as
|
|
5
|
-
import { noRenderAsFormItemValueList as
|
|
1
|
+
import { defineComponent as Ne, useSlots as Ie, ref as h, computed as s, unref as t, watch as I, createElementBlock as k, openBlock as f, normalizeStyle as K, normalizeClass as m, createCommentVNode as Y, createElementVNode as E, createVNode as y, mergeProps as w, createSlots as Z, withCtx as v, Fragment as ee, renderList as oe, createBlock as re, resolveDynamicComponent as Ke, renderSlot as R, normalizeProps as Ee, guardReactiveProps as Oe } from "vue";
|
|
2
|
+
import { Divider as Ve, Table as Le } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useToken as $e } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { ApForm as Ae } from "../ap-form/index.mjs";
|
|
5
|
+
import { noRenderAsFormItemValueList as ae } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { useTablePaging as
|
|
8
|
-
import { isUndefined as
|
|
9
|
-
import { getColumnOrder as le, updateFormProps as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { getScrollbarSize as
|
|
7
|
+
import { useTablePaging as De } from "./hooks/use-table-paging-ng.mjs";
|
|
8
|
+
import { isUndefined as b, omit as te, isBoolean as We } from "lodash-unified";
|
|
9
|
+
import { getColumnOrder as le, updateFormProps as je, getFieldProps as _e, getSearchFormItemRenderNode as He, recursionApColumns as ne, falseToUndefined as Ue, getTableTitle as qe, getTableRenderType as Me, getTableRenderProps as Ge, getTableCellRenderNode as Je, apColumnToColumn as Qe } from "./utils.mjs";
|
|
10
|
+
import Xe from "./hooks/use-table-content-height.mjs";
|
|
11
|
+
import Ye from "./hooks/use-table-row-selection.mjs";
|
|
12
|
+
import { getScrollbarSize as Ze, isDef as eo } from "../utils/index.mjs";
|
|
13
13
|
import "./components/setting/modal/index.vue.mjs";
|
|
14
14
|
import "./components/paragraph-ellipsis/index.vue.mjs";
|
|
15
|
-
import { useProvideApTable as
|
|
15
|
+
import { useProvideApTable as oo } from "./context.mjs";
|
|
16
16
|
import "../scroll-bar/index.mjs";
|
|
17
17
|
import { useStickyScroll as ro } from "./hooks/use-sticky-scroll.mjs";
|
|
18
|
-
import { useNamespace as
|
|
19
|
-
import { useGlobalConfig as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
const
|
|
18
|
+
import { useNamespace as ao } from "../config-provider/hooks/use-namespace.mjs";
|
|
19
|
+
import { useGlobalConfig as to } from "../config-provider/hooks/use-global-config.mjs";
|
|
20
|
+
import lo from "./components/setting/modal/index.vue2.mjs";
|
|
21
|
+
import no from "../scroll-bar/index.vue.mjs";
|
|
22
|
+
import so from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
23
|
+
const No = /* @__PURE__ */ Ne({
|
|
24
24
|
name: "ApTable",
|
|
25
25
|
__name: "ap-table",
|
|
26
26
|
props: {
|
|
@@ -148,23 +148,23 @@ const Io = /* @__PURE__ */ Ne({
|
|
|
148
148
|
expose: de
|
|
149
149
|
}) {
|
|
150
150
|
const o = se;
|
|
151
|
-
let
|
|
152
|
-
const C = Ie(), [, ue] =
|
|
151
|
+
let O = 0;
|
|
152
|
+
const C = Ie(), [, ue] = $e(), {
|
|
153
153
|
e: B,
|
|
154
154
|
b: c,
|
|
155
|
-
be:
|
|
155
|
+
be: V,
|
|
156
156
|
m: ie,
|
|
157
157
|
cssVar: ce
|
|
158
|
-
} =
|
|
159
|
-
height:
|
|
160
|
-
contentRef:
|
|
161
|
-
} =
|
|
162
|
-
isStickyMode:
|
|
158
|
+
} = ao("ap-table"), L = to("valueTypeMap"), {
|
|
159
|
+
height: pe,
|
|
160
|
+
contentRef: fe
|
|
161
|
+
} = Xe(), $ = h(), A = h(), {
|
|
162
|
+
isStickyMode: D,
|
|
163
163
|
scrollBarRef: i
|
|
164
|
-
} = ro(
|
|
165
|
-
|
|
164
|
+
} = ro($), z = h(o.size), u = h([]), W = h([]), j = Ze();
|
|
165
|
+
oo({
|
|
166
166
|
columns: s(() => u.value),
|
|
167
|
-
columnsBackup: s(() =>
|
|
167
|
+
columnsBackup: s(() => W.value),
|
|
168
168
|
size: s(() => z.value),
|
|
169
169
|
updateColumns(e) {
|
|
170
170
|
u.value = e;
|
|
@@ -172,25 +172,25 @@ const Io = /* @__PURE__ */ Ne({
|
|
|
172
172
|
updateSize(e) {
|
|
173
173
|
z.value = e;
|
|
174
174
|
},
|
|
175
|
-
dataSource: s(() => t(
|
|
175
|
+
dataSource: s(() => t(g).records)
|
|
176
176
|
});
|
|
177
|
-
const
|
|
178
|
-
var e,
|
|
179
|
-
return
|
|
177
|
+
const _ = s(() => {
|
|
178
|
+
var e, a, r;
|
|
179
|
+
return O++, ((r = (a = (e = o.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !ae.includes(l.valueType))) == null ? void 0 : a.sort((l, d) => {
|
|
180
180
|
let n = le(l.order);
|
|
181
181
|
return le(d.order) - n;
|
|
182
|
-
})) == null ? void 0 :
|
|
183
|
-
const d =
|
|
182
|
+
})) == null ? void 0 : r.map((l) => {
|
|
183
|
+
const d = je(l, _e(l.fieldProps, {})), n = {
|
|
184
184
|
...l,
|
|
185
185
|
fieldProps: {
|
|
186
186
|
label: l.title,
|
|
187
187
|
name: l.dataIndex,
|
|
188
188
|
...d || {},
|
|
189
|
-
_signal:
|
|
189
|
+
_signal: O
|
|
190
190
|
},
|
|
191
191
|
renderNode: void 0
|
|
192
192
|
};
|
|
193
|
-
return n.renderNode =
|
|
193
|
+
return n.renderNode = He(n, t(L)), n;
|
|
194
194
|
})) || [];
|
|
195
195
|
}), me = s(() => ne(t(u), (e) => {
|
|
196
196
|
if (e.sorter === !0)
|
|
@@ -198,36 +198,36 @@ const Io = /* @__PURE__ */ Ne({
|
|
|
198
198
|
}).filter(Boolean)), ye = s(() => ne(t(u), (e) => {
|
|
199
199
|
if (e.filters && !e.onFilter)
|
|
200
200
|
return e.key || e.dataIndex;
|
|
201
|
-
}).filter(Boolean)),
|
|
201
|
+
}).filter(Boolean)), be = s(() => b(o.dataSource) ? g.records : o.dataSource), {
|
|
202
202
|
rowSelection: T,
|
|
203
203
|
selectedRows: F,
|
|
204
204
|
...x
|
|
205
|
-
} =
|
|
205
|
+
} = Ye({
|
|
206
206
|
fixed: !0,
|
|
207
207
|
...o.rowSelection === !0 ? {} : o.rowSelection,
|
|
208
208
|
rowKey: o.rowKey,
|
|
209
|
-
dataSource:
|
|
209
|
+
dataSource: be
|
|
210
210
|
}), {
|
|
211
211
|
formRef: P,
|
|
212
|
-
submit:
|
|
213
|
-
reset:
|
|
214
|
-
tableProps:
|
|
215
|
-
refresh:
|
|
216
|
-
data:
|
|
212
|
+
submit: H,
|
|
213
|
+
reset: U,
|
|
214
|
+
tableProps: q,
|
|
215
|
+
refresh: ge,
|
|
216
|
+
data: g,
|
|
217
217
|
setDataSource: Se,
|
|
218
218
|
getColumnSFConfig: he
|
|
219
|
-
} =
|
|
219
|
+
} = De({
|
|
220
220
|
async request(e) {
|
|
221
|
-
var
|
|
222
|
-
if (!T.value.preserveSelectedRowKeys &&
|
|
221
|
+
var r, l;
|
|
222
|
+
if (!T.value.preserveSelectedRowKeys && b(o.dataSource) && x.clearAll(), !b(o.dataSource))
|
|
223
223
|
return {
|
|
224
224
|
data: o.dataSource || [],
|
|
225
225
|
total: o.dataSource.length || 0
|
|
226
226
|
};
|
|
227
|
-
const
|
|
228
|
-
return (l = o.onLoad) == null || l.call(o, (
|
|
229
|
-
data: (
|
|
230
|
-
total: (
|
|
227
|
+
const a = await ((r = o.request) == null ? void 0 : r.call(o, e));
|
|
228
|
+
return (l = o.onLoad) == null || l.call(o, (a == null ? void 0 : a.data) || []), {
|
|
229
|
+
data: (a == null ? void 0 : a.data) || [],
|
|
230
|
+
total: (a == null ? void 0 : a.total) || 0
|
|
231
231
|
};
|
|
232
232
|
},
|
|
233
233
|
filterFields: ye,
|
|
@@ -238,57 +238,61 @@ const Io = /* @__PURE__ */ Ne({
|
|
|
238
238
|
formatParams: o.beforeSearchSubmit,
|
|
239
239
|
pagination: o.pagination
|
|
240
240
|
}), we = () => {
|
|
241
|
-
var
|
|
242
|
-
let e = ((
|
|
243
|
-
function
|
|
241
|
+
var r;
|
|
242
|
+
let e = ((r = o.columns) == null ? void 0 : r.filter((l) => !l.hideInTable)) || [];
|
|
243
|
+
function a(l, d) {
|
|
244
244
|
return l.map((n) => ({
|
|
245
|
-
resizable:
|
|
246
|
-
...te(
|
|
245
|
+
resizable: eo(n.resizable) ? n.resizable : o.columnResizable,
|
|
246
|
+
...te(Qe(n), ["ellipsis"]),
|
|
247
|
+
// tips: 此函数内部依赖查询&筛选的相应式值
|
|
247
248
|
...he(n),
|
|
248
249
|
fixed: d ? d.fixed : n.fixed,
|
|
249
|
-
title:
|
|
250
|
+
title: qe(n, V("table-header", "title"), C.headerCell, t(ue).colorPrimary),
|
|
250
251
|
customRender({
|
|
251
|
-
value:
|
|
252
|
+
value: p,
|
|
252
253
|
...S
|
|
253
254
|
}) {
|
|
254
|
-
var
|
|
255
|
-
const
|
|
255
|
+
var Q, X;
|
|
256
|
+
const G = Me(n), Be = Ge({
|
|
256
257
|
...n,
|
|
257
|
-
valueType:
|
|
258
|
+
valueType: G
|
|
258
259
|
}, {
|
|
259
|
-
value:
|
|
260
|
+
value: p,
|
|
260
261
|
...S
|
|
261
|
-
}), ze =
|
|
262
|
-
value:
|
|
262
|
+
}), ze = Je(G, Be, S.record, t(L)), J = ((Q = n.renderText) == null ? void 0 : Q.call(n, {
|
|
263
|
+
value: p,
|
|
263
264
|
...S
|
|
264
|
-
})) ||
|
|
265
|
-
value:
|
|
265
|
+
})) || p, Pe = n.renderText ? y(ee, null, [(X = n.renderText) == null ? void 0 : X.call(n, {
|
|
266
|
+
value: p,
|
|
266
267
|
...S
|
|
267
268
|
})]) : ze;
|
|
268
|
-
let N = Te(n,
|
|
269
|
+
let N = Te(n, J, Pe);
|
|
269
270
|
return n.customRender && (N = n.customRender({
|
|
270
|
-
value:
|
|
271
|
+
value: p,
|
|
271
272
|
...S,
|
|
272
273
|
column: n,
|
|
273
274
|
originalNode: N,
|
|
274
|
-
originalText:
|
|
275
|
+
originalText: J
|
|
275
276
|
})), N;
|
|
276
277
|
},
|
|
277
|
-
children:
|
|
278
|
+
children: a(n.children || [], d || n)
|
|
278
279
|
}));
|
|
279
280
|
}
|
|
280
|
-
return
|
|
281
|
+
return a(e);
|
|
281
282
|
};
|
|
282
|
-
|
|
283
|
+
I(() => [o.columnResizable, o.columns], () => {
|
|
283
284
|
const e = we();
|
|
284
|
-
u.value = e,
|
|
285
|
+
u.value = e, W.value = e;
|
|
286
|
+
}, {
|
|
287
|
+
deep: !0,
|
|
288
|
+
immediate: !0
|
|
285
289
|
});
|
|
286
290
|
const ve = s(() => {
|
|
287
|
-
var
|
|
288
|
-
if (o.adaptive && (
|
|
291
|
+
var a, r;
|
|
292
|
+
if (o.adaptive && (g.total > 0 || ((a = o.dataSource) == null ? void 0 : a.length)))
|
|
289
293
|
return {
|
|
290
|
-
y: t(
|
|
291
|
-
x: ((
|
|
294
|
+
y: t(pe),
|
|
295
|
+
x: ((r = o.scroll) == null ? void 0 : r.x) || "100%"
|
|
292
296
|
};
|
|
293
297
|
if (o.scroll)
|
|
294
298
|
return o.scroll;
|
|
@@ -296,68 +300,68 @@ const Io = /* @__PURE__ */ Ne({
|
|
|
296
300
|
var e;
|
|
297
301
|
if (o.tableLayout)
|
|
298
302
|
return o.tableLayout;
|
|
299
|
-
if ((e = o.columns) != null && e.some((
|
|
303
|
+
if ((e = o.columns) != null && e.some((a) => a.ellipsis))
|
|
300
304
|
return "fixed";
|
|
301
|
-
}),
|
|
302
|
-
var
|
|
303
|
-
const e = t(
|
|
305
|
+
}), M = s(() => {
|
|
306
|
+
var r;
|
|
307
|
+
const e = t(q), a = t(T);
|
|
304
308
|
return {
|
|
305
309
|
...o,
|
|
306
310
|
...e,
|
|
307
|
-
rowSelection: o.rowSelection === !0 || ((
|
|
308
|
-
...
|
|
311
|
+
rowSelection: o.rowSelection === !0 || ((r = o.rowSelection) == null ? void 0 : r.mode) === "internal" ? {
|
|
312
|
+
...a,
|
|
309
313
|
// tips 如果是前端分页,则默认会走缓存
|
|
310
|
-
preserveSelectedRowKeys:
|
|
311
|
-
} :
|
|
312
|
-
loading:
|
|
314
|
+
preserveSelectedRowKeys: b(o.dataSource) ? a.preserveSelectedRowKeys : !0
|
|
315
|
+
} : Ue(o.rowSelection),
|
|
316
|
+
loading: b(o.loading) ? e.loading : o.loading,
|
|
313
317
|
pagination: o.pagination === !1 ? !1 : e.pagination,
|
|
314
318
|
scroll: t(ve)
|
|
315
319
|
};
|
|
316
320
|
}), Ce = s(() => {
|
|
317
321
|
var e;
|
|
318
|
-
return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null,
|
|
322
|
+
return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, D.value && ((e = i.value) != null && e.visible) ? ie(`sticky-${j === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
|
|
319
323
|
});
|
|
320
|
-
function Te(e,
|
|
321
|
-
return
|
|
324
|
+
function Te(e, a, r) {
|
|
325
|
+
return ae.includes(e.valueType) ? r : e.copyable || e.ellipsis ? y(so, {
|
|
322
326
|
copyable: e.copyable,
|
|
323
|
-
ellipsis: e.ellipsis ?
|
|
324
|
-
tooltip:
|
|
327
|
+
ellipsis: e.ellipsis ? We(e.ellipsis) ? {
|
|
328
|
+
tooltip: r,
|
|
325
329
|
rows: 1
|
|
326
330
|
} : {
|
|
327
331
|
...e.ellipsis,
|
|
328
|
-
tooltip:
|
|
332
|
+
tooltip: r
|
|
329
333
|
} : !1,
|
|
330
|
-
content:
|
|
331
|
-
}, null) :
|
|
334
|
+
content: r
|
|
335
|
+
}, null) : r;
|
|
332
336
|
}
|
|
333
|
-
|
|
334
|
-
var
|
|
335
|
-
(
|
|
336
|
-
}),
|
|
337
|
+
I(() => t(g).loading, (e) => {
|
|
338
|
+
var a;
|
|
339
|
+
(a = o.onLoadingChange) == null || a.call(o, e);
|
|
340
|
+
}), I(() => o.dataSource, (e) => {
|
|
337
341
|
Se(e);
|
|
338
342
|
}, {
|
|
339
343
|
immediate: !0
|
|
340
344
|
});
|
|
341
345
|
function Fe(e) {
|
|
342
|
-
var
|
|
343
|
-
(l = (
|
|
346
|
+
var a, r, l;
|
|
347
|
+
(l = (r = (a = P.value) == null ? void 0 : a.apForm) == null ? void 0 : r.setFieldsValue) == null || l.call(r, e);
|
|
344
348
|
}
|
|
345
349
|
function xe(e = !1) {
|
|
346
|
-
var
|
|
347
|
-
const
|
|
348
|
-
return (d = (l = (
|
|
350
|
+
var r, l, d;
|
|
351
|
+
const a = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
352
|
+
return (d = (l = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : l[a]) == null ? void 0 : d.call(l, !0);
|
|
349
353
|
}
|
|
350
354
|
function ke() {
|
|
351
355
|
return t(u);
|
|
352
356
|
}
|
|
353
357
|
return de({
|
|
354
|
-
submit: () =>
|
|
355
|
-
reset: () =>
|
|
356
|
-
refresh: () =>
|
|
358
|
+
submit: () => H(),
|
|
359
|
+
reset: () => U(),
|
|
360
|
+
refresh: () => ge(),
|
|
357
361
|
setSearchFormValues: Fe,
|
|
358
362
|
getSearchFormValues: xe,
|
|
359
363
|
getShownColumns: ke,
|
|
360
|
-
dataSource: s(() => t(
|
|
364
|
+
dataSource: s(() => t(g).records),
|
|
361
365
|
rowSelection: {
|
|
362
366
|
selectedRows: s(() => t(F)),
|
|
363
367
|
...x
|
|
@@ -369,38 +373,38 @@ const Io = /* @__PURE__ */ Ne({
|
|
|
369
373
|
return ((e = i == null ? void 0 : i.value) == null ? void 0 : e.currentScroll) ?? 0;
|
|
370
374
|
},
|
|
371
375
|
scroll: (e) => {
|
|
372
|
-
var
|
|
373
|
-
return (
|
|
376
|
+
var a, r;
|
|
377
|
+
return (r = (a = i == null ? void 0 : i.value) == null ? void 0 : a.scroll) == null ? void 0 : r.call(a, e);
|
|
374
378
|
}
|
|
375
379
|
},
|
|
376
380
|
y: void 0
|
|
377
381
|
}
|
|
378
|
-
}), (e,
|
|
382
|
+
}), (e, a) => (f(), k("div", {
|
|
379
383
|
ref_key: "tableWrapperRef",
|
|
380
|
-
ref:
|
|
384
|
+
ref: $,
|
|
381
385
|
class: m(Ce.value),
|
|
382
|
-
style:
|
|
383
|
-
"scroll-bar-width": `${t(
|
|
386
|
+
style: K(t(ce)({
|
|
387
|
+
"scroll-bar-width": `${t(j)}px`
|
|
384
388
|
}))
|
|
385
|
-
}, [t(
|
|
389
|
+
}, [t(b)(e.dataSource) && e.searchForm !== !1 && _.value.length > 0 ? (f(), k("div", {
|
|
386
390
|
key: 0,
|
|
387
391
|
class: m(e.card ? t(B)("search-wrapper") : null),
|
|
388
|
-
style:
|
|
389
|
-
}, [y(t(
|
|
392
|
+
style: K(e.searchFormWrapperStyle)
|
|
393
|
+
}, [y(t(Ae).SearchForm, w(e.searchForm || {}, {
|
|
390
394
|
ref_key: "formRef",
|
|
391
395
|
ref: P,
|
|
392
396
|
"custom-reset": "",
|
|
393
|
-
"submit-loading": t(
|
|
394
|
-
onSubmit: t(
|
|
395
|
-
onReset: t(
|
|
397
|
+
"submit-loading": t(q).loading,
|
|
398
|
+
onSubmit: t(H),
|
|
399
|
+
onReset: t(U)
|
|
396
400
|
}), Z({
|
|
397
|
-
default: v(() => [(
|
|
398
|
-
key:
|
|
399
|
-
item:
|
|
401
|
+
default: v(() => [(f(!0), k(ee, null, oe(_.value, (r) => (f(), re(Ke(r.renderNode.Comp), w({
|
|
402
|
+
key: r.dataIndex,
|
|
403
|
+
item: r,
|
|
400
404
|
ref_for: !0
|
|
401
|
-
},
|
|
402
|
-
span:
|
|
403
|
-
"custom-render":
|
|
405
|
+
}, r.fieldProps || {}, {
|
|
406
|
+
span: r.span,
|
|
407
|
+
"custom-render": r.renderNode.render
|
|
404
408
|
}), null, 16, ["item", "span", "custom-render"]))), 128))]),
|
|
405
409
|
_: 2
|
|
406
410
|
}, [C.searchFormExtra ? {
|
|
@@ -409,64 +413,64 @@ const Io = /* @__PURE__ */ Ne({
|
|
|
409
413
|
key: "0"
|
|
410
414
|
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : Y("", !0), E("div", {
|
|
411
415
|
ref_key: "contentRef",
|
|
412
|
-
ref:
|
|
416
|
+
ref: fe,
|
|
413
417
|
class: m([t(B)("table-wrapper"), e.card ? t(B)("table-wrapper-card") : null]),
|
|
414
|
-
style:
|
|
418
|
+
style: K(e.tableWrapperStyle)
|
|
415
419
|
}, [E("div", {
|
|
416
420
|
class: m(t(c)("header-wrapper"))
|
|
417
|
-
}, [e.settings ? (
|
|
421
|
+
}, [e.settings ? (f(), k("div", {
|
|
418
422
|
key: 0,
|
|
419
423
|
class: m(t(c)("header"))
|
|
420
424
|
}, [E("div", {
|
|
421
|
-
class: m(t(
|
|
425
|
+
class: m(t(V)("header", "title"))
|
|
422
426
|
}, [R(e.$slots, "title", w({
|
|
423
427
|
selectedRows: t(F),
|
|
424
428
|
selectedRowKeys: t(T).selectedRowKeys,
|
|
425
429
|
shownColumns: u.value
|
|
426
|
-
}, x))], 2), C.title ? (
|
|
430
|
+
}, x))], 2), C.title ? (f(), re(t(Ve), {
|
|
427
431
|
key: 0,
|
|
428
432
|
type: "vertical"
|
|
429
|
-
})) : Y("", !0), y(
|
|
433
|
+
})) : Y("", !0), y(lo, {
|
|
430
434
|
config: e.settings === !0 ? {} : e.settings
|
|
431
435
|
}, null, 8, ["config"])], 2)) : R(e.$slots, "title", w({
|
|
432
436
|
key: 1,
|
|
433
437
|
selectedRows: t(F),
|
|
434
438
|
selectedRowKeys: t(T).selectedRowKeys,
|
|
435
439
|
shownColumns: u.value
|
|
436
|
-
}, x))], 2), y(t(
|
|
440
|
+
}, x))], 2), y(t(Le), w({
|
|
437
441
|
ref_key: "antdTableRef",
|
|
438
|
-
ref:
|
|
442
|
+
ref: A,
|
|
439
443
|
class: t(c)("table")
|
|
440
|
-
},
|
|
444
|
+
}, M.value, {
|
|
441
445
|
size: z.value,
|
|
442
446
|
"table-layout": Re.value,
|
|
443
447
|
columns: u.value,
|
|
444
|
-
onResizeColumn:
|
|
448
|
+
onResizeColumn: a[0] || (a[0] = (r, l) => l.width = r)
|
|
445
449
|
}), Z({
|
|
446
450
|
summary: v(() => [R(e.$slots, "summary", {
|
|
447
451
|
columns: u.value,
|
|
448
|
-
records:
|
|
452
|
+
records: M.value.dataSource,
|
|
449
453
|
selectedRows: t(F)
|
|
450
454
|
})]),
|
|
451
455
|
_: 2
|
|
452
|
-
}, [t(
|
|
456
|
+
}, [t(D) ? {
|
|
453
457
|
name: "bottomPaginationTop",
|
|
454
458
|
fn: v(() => {
|
|
455
|
-
var
|
|
456
|
-
return [y(t(
|
|
459
|
+
var r, l;
|
|
460
|
+
return [y(t(no), {
|
|
457
461
|
ref_key: "scrollBarRef",
|
|
458
462
|
ref: i,
|
|
459
|
-
"scroll-container": (l = (
|
|
463
|
+
"scroll-container": (l = (r = A.value) == null ? void 0 : r.table) == null ? void 0 : l.scrollBodyRef,
|
|
460
464
|
direction: "horizontal"
|
|
461
465
|
}, null, 8, ["scroll-container"])];
|
|
462
466
|
}),
|
|
463
467
|
key: "0"
|
|
464
|
-
} : void 0, oe(t(te)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (
|
|
468
|
+
} : void 0, oe(t(te)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (r, l) => ({
|
|
465
469
|
name: l,
|
|
466
|
-
fn: v((d) => [R(e.$slots, l, Oe(
|
|
470
|
+
fn: v((d) => [R(e.$slots, l, Ee(Oe(d || {})))])
|
|
467
471
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
|
|
468
472
|
}
|
|
469
473
|
});
|
|
470
474
|
export {
|
|
471
|
-
|
|
475
|
+
No as default
|
|
472
476
|
};
|
|
@@ -81,6 +81,19 @@ declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, Co
|
|
|
81
81
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
82
82
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
83
83
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
84
|
+
mask: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
maskStyle: {
|
|
89
|
+
type: PropType<CSSProperties>;
|
|
90
|
+
default: CSSProperties;
|
|
91
|
+
};
|
|
92
|
+
maskTransitionName: StringConstructor;
|
|
93
|
+
maskClosable: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
84
97
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
85
98
|
major: string;
|
|
86
99
|
minor: string;
|
|
@@ -73,6 +73,19 @@ declare const ApLadder: {
|
|
|
73
73
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
74
74
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
75
75
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
76
|
+
mask: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
maskStyle: {
|
|
81
|
+
type: PropType<CSSProperties>;
|
|
82
|
+
default: CSSProperties;
|
|
83
|
+
};
|
|
84
|
+
maskTransitionName: StringConstructor;
|
|
85
|
+
maskClosable: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
76
89
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
77
90
|
major: string;
|
|
78
91
|
minor: string;
|
|
@@ -162,6 +175,19 @@ declare const ApLadder: {
|
|
|
162
175
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
163
176
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
164
177
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
178
|
+
mask: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
maskStyle: {
|
|
183
|
+
type: PropType<CSSProperties>;
|
|
184
|
+
default: CSSProperties;
|
|
185
|
+
};
|
|
186
|
+
maskTransitionName: StringConstructor;
|
|
187
|
+
maskClosable: {
|
|
188
|
+
type: BooleanConstructor;
|
|
189
|
+
default: boolean;
|
|
190
|
+
};
|
|
165
191
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
166
192
|
major: string;
|
|
167
193
|
minor: string;
|
|
@@ -245,6 +271,19 @@ declare const ApLadder: {
|
|
|
245
271
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
246
272
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
247
273
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
274
|
+
mask: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
default: boolean;
|
|
277
|
+
};
|
|
278
|
+
maskStyle: {
|
|
279
|
+
type: PropType<CSSProperties>;
|
|
280
|
+
default: CSSProperties;
|
|
281
|
+
};
|
|
282
|
+
maskTransitionName: StringConstructor;
|
|
283
|
+
maskClosable: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
default: boolean;
|
|
286
|
+
};
|
|
248
287
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
249
288
|
major: string;
|
|
250
289
|
minor: string;
|