@aplus-frontend/ui 0.4.6 → 0.4.8
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-field/date-range/index.vue.mjs +46 -42
- package/es/src/ap-field/hooks/use-default-presets.d.ts +11 -0
- package/es/src/ap-field/hooks/use-default-presets.mjs +15 -0
- package/es/src/ap-field/interface.d.ts +2 -1
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-table/ap-table.vue2.mjs +87 -85
- package/es/src/ap-table/components/dynamic-component/diff.d.ts +2 -0
- package/es/src/ap-table/components/dynamic-component/index.vue.d.ts +4 -0
- package/es/src/ap-table/components/dynamic-component/index.vue.mjs +4 -0
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +14 -0
- package/es/src/ap-table/components/interface.d.ts +3 -0
- package/es/src/ap-table/constants.d.ts +7 -7
- package/es/src/ap-table/utils.d.ts +1551 -1541
- package/es/src/ap-table/utils.mjs +115 -104
- package/es/src/ap-upload/components/Picture.vue2.mjs +59 -55
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +220 -108
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +4 -0
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +35 -0
- package/es/src/business/ap-ladder/index.d.ts +31 -4
- package/es/src/business/ap-ladder/interface.d.ts +124 -4
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +33 -25
- package/es/src/business/batch-input-group/form-item.vue.d.ts +0 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +43 -39
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -2
- package/es/src/locale/lang/en.mjs +10 -1
- package/es/src/locale/lang/zh-cn.mjs +10 -1
- package/es/src/utils/data-range-persets.d.ts +87 -0
- package/es/src/utils/data-range-persets.mjs +107 -0
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-default-presets.d.ts +11 -0
- package/lib/src/ap-field/hooks/use-default-presets.js +1 -0
- package/lib/src/ap-field/interface.d.ts +2 -1
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/dynamic-component/diff.d.ts +2 -0
- package/lib/src/ap-table/components/dynamic-component/index.vue.d.ts +4 -0
- package/lib/src/ap-table/components/dynamic-component/index.vue.js +1 -0
- package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -0
- package/lib/src/ap-table/components/interface.d.ts +3 -0
- package/lib/src/ap-table/constants.d.ts +7 -7
- package/lib/src/ap-table/utils.d.ts +1551 -1541
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +1 -0
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +31 -4
- package/lib/src/business/ap-ladder/interface.d.ts +124 -4
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +0 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -2
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/utils/data-range-persets.d.ts +87 -0
- package/lib/src/utils/data-range-persets.js +1 -0
- package/package.json +2 -2
- package/theme/ap-ladder/ap-ladder.css +10 -1
- package/theme/ap-ladder/ap-ladder.less +10 -1
- package/theme/index.css +10 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as t, createVNode as w, Fragment as q, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as S, createSlots as _, withCtx as F, renderList as J, createBlock as Q, resolveDynamicComponent as Be, renderSlot as b, createCommentVNode as X, createElementVNode as
|
|
2
|
-
import { Divider as Pe, Table as
|
|
3
|
-
import { useToken as
|
|
1
|
+
import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as t, createVNode as w, Fragment as q, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as S, createSlots as _, withCtx as F, renderList as J, createBlock as Q, resolveDynamicComponent as Be, renderSlot as b, createCommentVNode as X, createElementVNode as N, normalizeProps as ke, guardReactiveProps as ze } from "vue";
|
|
2
|
+
import { Divider as Pe, Table as Ne } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useToken as Ie } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { ApForm as Ee } from "../ap-form/index.mjs";
|
|
5
5
|
import { noRenderAsFormItemValueList as Y } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as Ke } from "./hooks/use-table-paging-ng.mjs";
|
|
8
8
|
import { isUndefined as m, omit as Z, isBoolean as Oe } from "lodash-unified";
|
|
9
|
-
import { getColumnOrder as ee, updateFormProps as Le, getFieldProps as Ve, getSearchFormItemRenderNode as Ae, recursionApColumns as
|
|
9
|
+
import { getColumnOrder as ee, updateFormProps as Le, getFieldProps as Ve, getSearchFormItemRenderNode as Ae, recursionApColumns as oe, apColumnToColumn as De, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He, falseToUndefined as Ue } from "./utils.mjs";
|
|
10
10
|
import qe from "./hooks/use-table-content-height.mjs";
|
|
11
11
|
import Ge from "./hooks/use-table-row-selection.mjs";
|
|
12
12
|
import { isDef as Me } from "../utils/index.mjs";
|
|
@@ -17,7 +17,7 @@ import { useNamespace as Je } from "../config-provider/hooks/use-namespace.mjs";
|
|
|
17
17
|
import { useGlobalConfig as Qe } from "../config-provider/hooks/use-global-config.mjs";
|
|
18
18
|
import Xe from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
19
19
|
import Ye from "./components/setting/modal/index.vue2.mjs";
|
|
20
|
-
const
|
|
20
|
+
const bo = /* @__PURE__ */ Te({
|
|
21
21
|
name: "ApTable",
|
|
22
22
|
__name: "ap-table",
|
|
23
23
|
props: {
|
|
@@ -141,19 +141,19 @@ const Sa = /* @__PURE__ */ Te({
|
|
|
141
141
|
default: void 0
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
setup(
|
|
144
|
+
setup(ae, {
|
|
145
145
|
expose: re
|
|
146
146
|
}) {
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
const h = Fe(), [, te] =
|
|
147
|
+
const o = ae;
|
|
148
|
+
let I = 0;
|
|
149
|
+
const h = Fe(), [, te] = Ie(), {
|
|
150
150
|
e: x,
|
|
151
151
|
b: i,
|
|
152
152
|
be: E
|
|
153
153
|
} = Je("ap-table"), K = Qe("valueTypeMap"), {
|
|
154
154
|
height: le,
|
|
155
155
|
contentRef: ne
|
|
156
|
-
} = qe(), B = P(
|
|
156
|
+
} = qe(), B = P(o.size), u = P([]), O = P([]);
|
|
157
157
|
_e({
|
|
158
158
|
columns: s(() => u.value),
|
|
159
159
|
columnsBackup: s(() => O.value),
|
|
@@ -167,37 +167,37 @@ const Sa = /* @__PURE__ */ Te({
|
|
|
167
167
|
dataSource: s(() => t(y).records)
|
|
168
168
|
});
|
|
169
169
|
const L = s(() => {
|
|
170
|
-
var e, r,
|
|
171
|
-
return
|
|
170
|
+
var e, r, a;
|
|
171
|
+
return I++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !Y.includes(l.valueType))) == null ? void 0 : r.sort((l, d) => {
|
|
172
172
|
let n = ee(l.order);
|
|
173
173
|
return ee(d.order) - n;
|
|
174
|
-
})) == null ? void 0 :
|
|
174
|
+
})) == null ? void 0 : a.map((l) => {
|
|
175
175
|
const d = Le(l, Ve(l.fieldProps, {})), n = {
|
|
176
176
|
...l,
|
|
177
177
|
fieldProps: {
|
|
178
178
|
label: l.title,
|
|
179
179
|
name: l.dataIndex,
|
|
180
180
|
...d || {},
|
|
181
|
-
_signal:
|
|
181
|
+
_signal: I
|
|
182
182
|
},
|
|
183
183
|
renderNode: void 0
|
|
184
184
|
};
|
|
185
185
|
return n.renderNode = Ae(n, t(K)), n;
|
|
186
186
|
})) || [];
|
|
187
|
-
}), se = s(() =>
|
|
187
|
+
}), se = s(() => oe(t(u), (e) => {
|
|
188
188
|
if (e.sorter === !0)
|
|
189
189
|
return e.key || e.dataIndex;
|
|
190
|
-
}).filter(Boolean)), de = s(() =>
|
|
190
|
+
}).filter(Boolean)), de = s(() => oe(t(u), (e) => {
|
|
191
191
|
if (e.filters && !e.onFilter)
|
|
192
192
|
return e.key || e.dataIndex;
|
|
193
|
-
}).filter(Boolean)), ue = s(() => m(
|
|
194
|
-
rowSelection:
|
|
195
|
-
selectedRows:
|
|
193
|
+
}).filter(Boolean)), ue = s(() => m(o.dataSource) ? y.records : o.dataSource), {
|
|
194
|
+
rowSelection: C,
|
|
195
|
+
selectedRows: R,
|
|
196
196
|
...v
|
|
197
197
|
} = Ge({
|
|
198
198
|
fixed: !0,
|
|
199
|
-
...
|
|
200
|
-
rowKey:
|
|
199
|
+
...o.rowSelection === !0 ? {} : o.rowSelection,
|
|
200
|
+
rowKey: o.rowKey,
|
|
201
201
|
dataSource: ue
|
|
202
202
|
}), {
|
|
203
203
|
formRef: k,
|
|
@@ -210,31 +210,31 @@ const Sa = /* @__PURE__ */ Te({
|
|
|
210
210
|
getColumnSFConfig: pe
|
|
211
211
|
} = Ke({
|
|
212
212
|
async request(e) {
|
|
213
|
-
var
|
|
214
|
-
if (!
|
|
213
|
+
var a, l;
|
|
214
|
+
if (!C.value.preserveSelectedRowKeys && m(o.dataSource) && v.clearAll(), !m(o.dataSource))
|
|
215
215
|
return {
|
|
216
|
-
data:
|
|
217
|
-
total:
|
|
216
|
+
data: o.dataSource || [],
|
|
217
|
+
total: o.dataSource.length || 0
|
|
218
218
|
};
|
|
219
|
-
const r = await ((
|
|
220
|
-
return (l =
|
|
219
|
+
const r = await ((a = o.request) == null ? void 0 : a.call(o, e));
|
|
220
|
+
return (l = o.onLoad) == null || l.call(o, (r == null ? void 0 : r.data) || []), {
|
|
221
221
|
data: (r == null ? void 0 : r.data) || [],
|
|
222
222
|
total: (r == null ? void 0 : r.total) || 0
|
|
223
223
|
};
|
|
224
224
|
},
|
|
225
225
|
filterFields: de,
|
|
226
226
|
sortFields: se,
|
|
227
|
-
defaultParams:
|
|
228
|
-
defaultData:
|
|
229
|
-
manual:
|
|
230
|
-
formatParams:
|
|
231
|
-
pagination:
|
|
227
|
+
defaultParams: o.params,
|
|
228
|
+
defaultData: o.defaultData,
|
|
229
|
+
manual: o.manual,
|
|
230
|
+
formatParams: o.beforeSearchSubmit,
|
|
231
|
+
pagination: o.pagination
|
|
232
232
|
}), fe = () => {
|
|
233
|
-
var
|
|
234
|
-
let e = ((
|
|
233
|
+
var a;
|
|
234
|
+
let e = ((a = o.columns) == null ? void 0 : a.filter((l) => !l.hideInTable)) || [];
|
|
235
235
|
function r(l, d) {
|
|
236
236
|
return l.map((n) => ({
|
|
237
|
-
resizable: Me(n.resizable) ? n.resizable :
|
|
237
|
+
resizable: Me(n.resizable) ? n.resizable : o.columnResizable,
|
|
238
238
|
...Z(De(n), ["ellipsis"]),
|
|
239
239
|
...pe(n),
|
|
240
240
|
fixed: d ? d.fixed : n.fixed,
|
|
@@ -244,19 +244,19 @@ const Sa = /* @__PURE__ */ Te({
|
|
|
244
244
|
...g
|
|
245
245
|
}) {
|
|
246
246
|
var H, U;
|
|
247
|
-
const $ = $e(n),
|
|
247
|
+
const $ = $e(n), Ce = We({
|
|
248
248
|
...n,
|
|
249
249
|
valueType: $
|
|
250
250
|
}, {
|
|
251
251
|
value: c,
|
|
252
252
|
...g
|
|
253
|
-
}),
|
|
253
|
+
}), Re = He($, Ce, g.record, t(K)), W = ((H = n.renderText) == null ? void 0 : H.call(n, {
|
|
254
254
|
value: c,
|
|
255
255
|
...g
|
|
256
256
|
})) || c, ve = n.renderText ? w(q, null, [(U = n.renderText) == null ? void 0 : U.call(n, {
|
|
257
257
|
value: c,
|
|
258
258
|
...g
|
|
259
|
-
})]) :
|
|
259
|
+
})]) : Re;
|
|
260
260
|
let z = we(n, W, ve);
|
|
261
261
|
return n.customRender && (z = n.customRender({
|
|
262
262
|
value: c,
|
|
@@ -276,65 +276,65 @@ const Sa = /* @__PURE__ */ Te({
|
|
|
276
276
|
u.value = e, O.value = e;
|
|
277
277
|
});
|
|
278
278
|
const me = s(() => {
|
|
279
|
-
var r,
|
|
280
|
-
if (
|
|
279
|
+
var r, a;
|
|
280
|
+
if (o.adaptive && (y.total > 0 || ((r = o.dataSource) == null ? void 0 : r.length)))
|
|
281
281
|
return {
|
|
282
282
|
y: t(le),
|
|
283
|
-
x: ((
|
|
283
|
+
x: ((a = o.scroll) == null ? void 0 : a.x) || "100%"
|
|
284
284
|
};
|
|
285
|
-
if (
|
|
286
|
-
return
|
|
285
|
+
if (o.scroll)
|
|
286
|
+
return o.scroll;
|
|
287
287
|
}), ye = s(() => {
|
|
288
288
|
var e;
|
|
289
|
-
if (
|
|
290
|
-
return
|
|
291
|
-
if ((e =
|
|
289
|
+
if (o.tableLayout)
|
|
290
|
+
return o.tableLayout;
|
|
291
|
+
if ((e = o.columns) != null && e.some((r) => r.ellipsis))
|
|
292
292
|
return "fixed";
|
|
293
293
|
}), j = s(() => {
|
|
294
|
-
var
|
|
295
|
-
const e = t(D), r = t(
|
|
294
|
+
var a;
|
|
295
|
+
const e = t(D), r = t(C);
|
|
296
296
|
return {
|
|
297
|
-
...
|
|
297
|
+
...o,
|
|
298
298
|
...e,
|
|
299
|
-
rowSelection:
|
|
299
|
+
rowSelection: o.rowSelection === !0 || ((a = o.rowSelection) == null ? void 0 : a.mode) === "internal" ? {
|
|
300
300
|
...r,
|
|
301
301
|
// tips 如果是前端分页,则默认会走缓存
|
|
302
|
-
preserveSelectedRowKeys: m(
|
|
303
|
-
} : Ue(
|
|
304
|
-
loading: m(
|
|
305
|
-
pagination:
|
|
302
|
+
preserveSelectedRowKeys: m(o.dataSource) ? r.preserveSelectedRowKeys : !0
|
|
303
|
+
} : Ue(o.rowSelection),
|
|
304
|
+
loading: m(o.loading) ? e.loading : o.loading,
|
|
305
|
+
pagination: o.pagination === !1 ? !1 : e.pagination,
|
|
306
306
|
scroll: t(me)
|
|
307
307
|
};
|
|
308
|
-
}), ge = s(() => [i(),
|
|
309
|
-
function we(e, r,
|
|
310
|
-
return Y.includes(e.valueType) ?
|
|
308
|
+
}), ge = s(() => [i(), o.card ? null : i("wrapper"), o.adaptive ? i("adaptive") : null].filter(Boolean));
|
|
309
|
+
function we(e, r, a) {
|
|
310
|
+
return Y.includes(e.valueType) ? a : e.copyable || e.ellipsis ? w(Xe, {
|
|
311
311
|
copyable: e.copyable,
|
|
312
312
|
ellipsis: e.ellipsis ? Oe(e.ellipsis) ? {
|
|
313
|
-
tooltip:
|
|
313
|
+
tooltip: a,
|
|
314
314
|
rows: 1
|
|
315
315
|
} : {
|
|
316
316
|
...e.ellipsis,
|
|
317
|
-
tooltip:
|
|
317
|
+
tooltip: a
|
|
318
318
|
} : !1,
|
|
319
|
-
content:
|
|
320
|
-
}, null) :
|
|
319
|
+
content: a
|
|
320
|
+
}, null) : a;
|
|
321
321
|
}
|
|
322
322
|
G(() => t(y).loading, (e) => {
|
|
323
323
|
var r;
|
|
324
|
-
(r =
|
|
325
|
-
}), G(() =>
|
|
324
|
+
(r = o.onLoadingChange) == null || r.call(o, e);
|
|
325
|
+
}), G(() => o.dataSource, (e) => {
|
|
326
326
|
ce(e);
|
|
327
327
|
}, {
|
|
328
328
|
immediate: !0
|
|
329
329
|
});
|
|
330
330
|
function Se(e) {
|
|
331
|
-
var r,
|
|
332
|
-
(l = (
|
|
331
|
+
var r, a, l;
|
|
332
|
+
(l = (a = (r = k.value) == null ? void 0 : r.apForm) == null ? void 0 : a.setFieldsValue) == null || l.call(a, e);
|
|
333
333
|
}
|
|
334
334
|
function be(e = !1) {
|
|
335
|
-
var
|
|
335
|
+
var a, l, d;
|
|
336
336
|
const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
337
|
-
return (d = (l = (
|
|
337
|
+
return (d = (l = (a = k.value) == null ? void 0 : a.apForm) == null ? void 0 : l[r]) == null ? void 0 : d.call(l, !0);
|
|
338
338
|
}
|
|
339
339
|
function he() {
|
|
340
340
|
return t(u);
|
|
@@ -348,7 +348,7 @@ const Sa = /* @__PURE__ */ Te({
|
|
|
348
348
|
getShownColumns: he,
|
|
349
349
|
dataSource: s(() => t(y).records),
|
|
350
350
|
rowSelection: {
|
|
351
|
-
selectedRows: s(() => t(
|
|
351
|
+
selectedRows: s(() => t(R)),
|
|
352
352
|
...v
|
|
353
353
|
}
|
|
354
354
|
}), (e, r) => (p(), T("div", {
|
|
@@ -365,32 +365,34 @@ const Sa = /* @__PURE__ */ Te({
|
|
|
365
365
|
onSubmit: t(V),
|
|
366
366
|
onReset: t(A)
|
|
367
367
|
}), _({
|
|
368
|
-
default: F(() => [(p(!0), T(q, null, J(L.value, (
|
|
369
|
-
key:
|
|
368
|
+
default: F(() => [(p(!0), T(q, null, J(L.value, (a) => (p(), Q(Be(a.renderNode.Comp), S({
|
|
369
|
+
key: a.dataIndex,
|
|
370
|
+
item: a,
|
|
370
371
|
ref_for: !0
|
|
371
|
-
},
|
|
372
|
-
span:
|
|
373
|
-
|
|
372
|
+
}, a.fieldProps || {}, {
|
|
373
|
+
span: a.span,
|
|
374
|
+
"custom-render": a.renderNode.render
|
|
375
|
+
}), null, 16, ["item", "span", "custom-render"]))), 128))]),
|
|
374
376
|
_: 2
|
|
375
377
|
}, [h.searchFormExtra ? {
|
|
376
378
|
name: "extra",
|
|
377
379
|
fn: F(() => [b(e.$slots, "searchFormExtra")]),
|
|
378
380
|
key: "0"
|
|
379
|
-
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : X("", !0),
|
|
381
|
+
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : X("", !0), N("div", {
|
|
380
382
|
ref_key: "contentRef",
|
|
381
383
|
ref: ne,
|
|
382
384
|
class: f([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
|
|
383
385
|
style: M(e.tableWrapperStyle)
|
|
384
|
-
}, [
|
|
386
|
+
}, [N("div", {
|
|
385
387
|
class: f(t(i)("header-wrapper"))
|
|
386
388
|
}, [e.settings ? (p(), T("div", {
|
|
387
389
|
key: 0,
|
|
388
390
|
class: f(t(i)("header"))
|
|
389
|
-
}, [
|
|
391
|
+
}, [N("div", {
|
|
390
392
|
class: f(t(E)("header", "title"))
|
|
391
393
|
}, [b(e.$slots, "title", S({
|
|
392
|
-
selectedRows: t(
|
|
393
|
-
selectedRowKeys: t(
|
|
394
|
+
selectedRows: t(R),
|
|
395
|
+
selectedRowKeys: t(C).selectedRowKeys,
|
|
394
396
|
shownColumns: u.value
|
|
395
397
|
}, v))], 2), h.title ? (p(), Q(t(Pe), {
|
|
396
398
|
key: 0,
|
|
@@ -399,29 +401,29 @@ const Sa = /* @__PURE__ */ Te({
|
|
|
399
401
|
config: e.settings === !0 ? {} : e.settings
|
|
400
402
|
}, null, 8, ["config"])], 2)) : b(e.$slots, "title", S({
|
|
401
403
|
key: 1,
|
|
402
|
-
selectedRows: t(
|
|
403
|
-
selectedRowKeys: t(
|
|
404
|
+
selectedRows: t(R),
|
|
405
|
+
selectedRowKeys: t(C).selectedRowKeys,
|
|
404
406
|
shownColumns: u.value
|
|
405
|
-
}, v))], 2), w(t(
|
|
407
|
+
}, v))], 2), w(t(Ne), S({
|
|
406
408
|
class: t(i)("table")
|
|
407
409
|
}, j.value, {
|
|
408
410
|
size: B.value,
|
|
409
411
|
"table-layout": ye.value,
|
|
410
412
|
columns: u.value,
|
|
411
|
-
onResizeColumn: r[0] || (r[0] = (
|
|
413
|
+
onResizeColumn: r[0] || (r[0] = (a, l) => l.width = a)
|
|
412
414
|
}), _({
|
|
413
415
|
summary: F(() => [b(e.$slots, "summary", {
|
|
414
416
|
columns: u.value,
|
|
415
417
|
records: j.value.dataSource,
|
|
416
|
-
selectedRows: t(
|
|
418
|
+
selectedRows: t(R)
|
|
417
419
|
})]),
|
|
418
420
|
_: 2
|
|
419
|
-
}, [J(t(Z)(h, ["title", "searchFormExtra", "headerCell", "summary"]), (
|
|
421
|
+
}, [J(t(Z)(h, ["title", "searchFormExtra", "headerCell", "summary"]), (a, l) => ({
|
|
420
422
|
name: l,
|
|
421
423
|
fn: F((d) => [b(e.$slots, l, ke(ze(d || {})))])
|
|
422
424
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
|
|
423
425
|
}
|
|
424
426
|
});
|
|
425
427
|
export {
|
|
426
|
-
|
|
428
|
+
bo as default
|
|
427
429
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ApTableDynamicCompProps } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ApTableDynamicCompProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableDynamicCompProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createBlock as t, resolveDynamicComponent as r } from "vue";
|
|
2
|
+
const c = /* @__PURE__ */ n({
|
|
3
|
+
name: "ApTableDynamicComponent",
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
customRender: { type: Function }
|
|
7
|
+
},
|
|
8
|
+
setup(p) {
|
|
9
|
+
return (e, m) => (o(), t(r(e.customRender(e.$attrs))));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
c as default
|
|
14
|
+
};
|
|
@@ -175,6 +175,7 @@ export declare const apTableFormItemMap: {
|
|
|
175
175
|
readonly class?: unknown;
|
|
176
176
|
readonly style?: unknown;
|
|
177
177
|
readonly size?: ButtonSize;
|
|
178
|
+
readonly step?: ValueType | undefined;
|
|
178
179
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
179
180
|
readonly onChange?: ((value: ValueType) => void) | undefined;
|
|
180
181
|
readonly onFocus?: ((e: FocusEvent) => void) | undefined;
|
|
@@ -193,7 +194,6 @@ export declare const apTableFormItemMap: {
|
|
|
193
194
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
194
195
|
readonly readonly?: boolean | undefined;
|
|
195
196
|
readonly stringMode?: boolean | undefined;
|
|
196
|
-
readonly step?: ValueType | undefined;
|
|
197
197
|
readonly controls?: boolean | undefined;
|
|
198
198
|
readonly parser?: ((displayValue: string) => ValueType) | undefined;
|
|
199
199
|
readonly formatter?: ((value: ValueType, info: {
|
|
@@ -563,12 +563,12 @@ export declare const apTableFormItemMap: {
|
|
|
563
563
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
564
564
|
"update:value": (...args: any[]) => void;
|
|
565
565
|
}, string, {
|
|
566
|
+
step: ValueType;
|
|
566
567
|
disabled: boolean;
|
|
567
568
|
bordered: boolean;
|
|
568
569
|
keyboard: boolean;
|
|
569
570
|
max: ValueType;
|
|
570
571
|
min: ValueType;
|
|
571
|
-
step: ValueType;
|
|
572
572
|
controls: boolean;
|
|
573
573
|
emptyText: string;
|
|
574
574
|
thousands: boolean;
|
|
@@ -593,18 +593,18 @@ export declare const apTableFormItemMap: {
|
|
|
593
593
|
$nextTick: nextTick;
|
|
594
594
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
595
595
|
} & Readonly<{
|
|
596
|
+
step: ValueType;
|
|
596
597
|
disabled: boolean;
|
|
597
598
|
bordered: boolean;
|
|
598
599
|
keyboard: boolean;
|
|
599
600
|
max: ValueType;
|
|
600
601
|
min: ValueType;
|
|
601
|
-
step: ValueType;
|
|
602
602
|
controls: boolean;
|
|
603
603
|
emptyText: string;
|
|
604
604
|
thousands: boolean;
|
|
605
605
|
}> & Omit<Readonly< ApFieldNumberProps> & Readonly<{
|
|
606
606
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
607
|
-
}>, "blur" | "focus" | ("disabled" | "bordered" | "keyboard" | "max" | "min" | "
|
|
607
|
+
}>, "blur" | "focus" | ("step" | "disabled" | "bordered" | "keyboard" | "max" | "min" | "controls" | "emptyText" | "thousands")> & ShallowUnwrapRef<{
|
|
608
608
|
focus: () => void;
|
|
609
609
|
blur: () => void;
|
|
610
610
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -2093,12 +2093,12 @@ export declare const apTableRenderItemMap: {
|
|
|
2093
2093
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2094
2094
|
"update:value": (...args: any[]) => void;
|
|
2095
2095
|
}, PublicProps, {
|
|
2096
|
+
step: ValueType;
|
|
2096
2097
|
disabled: boolean;
|
|
2097
2098
|
bordered: boolean;
|
|
2098
2099
|
keyboard: boolean;
|
|
2099
2100
|
max: ValueType;
|
|
2100
2101
|
min: ValueType;
|
|
2101
|
-
step: ValueType;
|
|
2102
2102
|
controls: boolean;
|
|
2103
2103
|
emptyText: string;
|
|
2104
2104
|
thousands: boolean;
|
|
@@ -2436,12 +2436,12 @@ export declare const apTableRenderItemMap: {
|
|
|
2436
2436
|
focus: () => void;
|
|
2437
2437
|
blur: () => void;
|
|
2438
2438
|
}, {}, {}, {}, {
|
|
2439
|
+
step: ValueType;
|
|
2439
2440
|
disabled: boolean;
|
|
2440
2441
|
bordered: boolean;
|
|
2441
2442
|
keyboard: boolean;
|
|
2442
2443
|
max: ValueType;
|
|
2443
2444
|
min: ValueType;
|
|
2444
|
-
step: ValueType;
|
|
2445
2445
|
controls: boolean;
|
|
2446
2446
|
emptyText: string;
|
|
2447
2447
|
thousands: boolean;
|
|
@@ -2457,12 +2457,12 @@ export declare const apTableRenderItemMap: {
|
|
|
2457
2457
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2458
2458
|
"update:value": (...args: any[]) => void;
|
|
2459
2459
|
}, string, {
|
|
2460
|
+
step: ValueType;
|
|
2460
2461
|
disabled: boolean;
|
|
2461
2462
|
bordered: boolean;
|
|
2462
2463
|
keyboard: boolean;
|
|
2463
2464
|
max: ValueType;
|
|
2464
2465
|
min: ValueType;
|
|
2465
|
-
step: ValueType;
|
|
2466
2466
|
controls: boolean;
|
|
2467
2467
|
emptyText: string;
|
|
2468
2468
|
thousands: boolean;
|