@aplus-frontend/ui 0.4.24 → 0.4.26
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-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +157 -154
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/business/ap-attachment/ApAttachment.mjs +31 -31
- package/es/src/business/ap-attachment/interface.d.ts +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +36 -32
- package/es/src/business/ap-batch-action-group/index.d.ts +16 -7
- package/es/src/business/ap-batch-action-group/interface.d.ts +5 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/config-provider/config-provider.d.ts +0 -3
- package/es/src/config-provider/css-var.d.ts +0 -4
- package/es/src/config-provider/css-var.mjs +14 -22
- package/es/src/config-provider/index.d.ts +0 -15
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/locale/lang/en.mjs +4 -2
- package/es/src/locale/lang/zh-cn.mjs +3 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
- package/es/src/work-order-modal/work-order-modal.vue.mjs +24 -21
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +2 -2
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +6 -2
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +16 -7
- package/lib/src/business/ap-batch-action-group/interface.d.ts +5 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/config-provider/config-provider.d.ts +0 -3
- package/lib/src/config-provider/css-var.d.ts +0 -4
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +0 -15
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -4
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
- package/theme/ap-scroll-bar/index.css +31 -0
- package/theme/ap-scroll-bar/index.less +39 -0
- package/theme/ap-table/ap-table.css +2 -2
- package/theme/ap-table/ap-table.less +5 -2
- package/theme/ap-table-modal/index.css +2 -2
- package/theme/index.css +2 -2
- package/index.ts +0 -19
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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, createVNode as p, Fragment as X, watchEffect as Ee, watch as Y, openBlock as m, createElementBlock as k, normalizeClass as y, normalizeStyle as I, mergeProps as w, createSlots as Z, withCtx as v, renderList as ee, createBlock as oe, resolveDynamicComponent as Ke, renderSlot as R, createCommentVNode as ae, createElementVNode as E, normalizeProps as Oe, guardReactiveProps as Ve } from "vue";
|
|
2
|
+
import { Divider as Le, Table as $e } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useToken as Ae } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { ApForm as De } from "../ap-form/index.mjs";
|
|
5
|
+
import { noRenderAsFormItemValueList as re } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { useTablePaging as
|
|
8
|
-
import { isUndefined as g, omit as
|
|
9
|
-
import { getColumnOrder as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { isDef as
|
|
7
|
+
import { useTablePaging as We } from "./hooks/use-table-paging-ng.mjs";
|
|
8
|
+
import { isUndefined as g, omit as te, isBoolean as je } from "lodash-unified";
|
|
9
|
+
import { getColumnOrder as le, updateFormProps as _e, getFieldProps as He, getSearchFormItemRenderNode as Ue, recursionApColumns as ne, apColumnToColumn as qe, getTableTitle as Me, getTableRenderType as Ge, getTableRenderProps as Je, getTableCellRenderNode as Qe, falseToUndefined as Xe } from "./utils.mjs";
|
|
10
|
+
import Ye from "./hooks/use-table-content-height.mjs";
|
|
11
|
+
import Ze from "./hooks/use-table-row-selection.mjs";
|
|
12
|
+
import { getScrollbarSize as eo, isDef as oo } 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 ao } from "./context.mjs";
|
|
16
16
|
import "../scroll-bar/index.mjs";
|
|
17
|
-
import { useStickyScroll as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
const No = /* @__PURE__ */ ze({
|
|
17
|
+
import { useStickyScroll as ro } from "./hooks/use-sticky-scroll.mjs";
|
|
18
|
+
import { useNamespace as to } from "../config-provider/hooks/use-namespace.mjs";
|
|
19
|
+
import { useGlobalConfig as lo } from "../config-provider/hooks/use-global-config.mjs";
|
|
20
|
+
import no from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
21
|
+
import so from "./components/setting/modal/index.vue2.mjs";
|
|
22
|
+
import uo from "../scroll-bar/index.vue.mjs";
|
|
23
|
+
const Io = /* @__PURE__ */ Ne({
|
|
25
24
|
name: "ApTable",
|
|
26
25
|
__name: "ap-table",
|
|
27
26
|
props: {
|
|
@@ -145,24 +144,25 @@ const No = /* @__PURE__ */ ze({
|
|
|
145
144
|
default: void 0
|
|
146
145
|
}
|
|
147
146
|
},
|
|
148
|
-
setup(
|
|
149
|
-
expose:
|
|
147
|
+
setup(se, {
|
|
148
|
+
expose: de
|
|
150
149
|
}) {
|
|
151
|
-
const o =
|
|
152
|
-
let
|
|
153
|
-
const C =
|
|
150
|
+
const o = se;
|
|
151
|
+
let K = 0;
|
|
152
|
+
const C = Ie(), [, ue] = Ae(), {
|
|
154
153
|
e: B,
|
|
155
154
|
b: c,
|
|
156
|
-
be:
|
|
157
|
-
m:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
be: O,
|
|
156
|
+
m: ie,
|
|
157
|
+
cssVar: ce
|
|
158
|
+
} = to("ap-table"), V = lo("valueTypeMap"), {
|
|
159
|
+
height: fe,
|
|
160
|
+
contentRef: pe
|
|
161
|
+
} = Ye(), L = h(), $ = h(), {
|
|
162
162
|
isStickyMode: A,
|
|
163
163
|
scrollBarRef: i
|
|
164
|
-
} =
|
|
165
|
-
|
|
164
|
+
} = ro(L), z = h(o.size), u = h([]), D = h([]), W = eo();
|
|
165
|
+
ao({
|
|
166
166
|
columns: s(() => u.value),
|
|
167
167
|
columnsBackup: s(() => D.value),
|
|
168
168
|
size: s(() => z.value),
|
|
@@ -172,106 +172,106 @@ const No = /* @__PURE__ */ ze({
|
|
|
172
172
|
updateSize(e) {
|
|
173
173
|
z.value = e;
|
|
174
174
|
},
|
|
175
|
-
dataSource: s(() =>
|
|
175
|
+
dataSource: s(() => t(b).records)
|
|
176
176
|
});
|
|
177
|
-
const
|
|
177
|
+
const j = s(() => {
|
|
178
178
|
var e, r, a;
|
|
179
|
-
return
|
|
180
|
-
let n =
|
|
181
|
-
return
|
|
182
|
-
})) == null ? void 0 : a.map((
|
|
183
|
-
const d =
|
|
184
|
-
...
|
|
179
|
+
return K++, ((a = (r = (e = o.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !re.includes(l.valueType))) == null ? void 0 : r.sort((l, d) => {
|
|
180
|
+
let n = le(l.order);
|
|
181
|
+
return le(d.order) - n;
|
|
182
|
+
})) == null ? void 0 : a.map((l) => {
|
|
183
|
+
const d = _e(l, He(l.fieldProps, {})), n = {
|
|
184
|
+
...l,
|
|
185
185
|
fieldProps: {
|
|
186
|
-
label:
|
|
187
|
-
name:
|
|
186
|
+
label: l.title,
|
|
187
|
+
name: l.dataIndex,
|
|
188
188
|
...d || {},
|
|
189
|
-
_signal:
|
|
189
|
+
_signal: K
|
|
190
190
|
},
|
|
191
191
|
renderNode: void 0
|
|
192
192
|
};
|
|
193
|
-
return n.renderNode =
|
|
193
|
+
return n.renderNode = Ue(n, t(V)), n;
|
|
194
194
|
})) || [];
|
|
195
|
-
}),
|
|
195
|
+
}), me = s(() => ne(t(u), (e) => {
|
|
196
196
|
if (e.sorter === !0)
|
|
197
197
|
return e.key || e.dataIndex;
|
|
198
|
-
}).filter(Boolean)),
|
|
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)), ge = s(() => g(o.dataSource) ? b.records : o.dataSource), {
|
|
202
202
|
rowSelection: T,
|
|
203
203
|
selectedRows: F,
|
|
204
204
|
...x
|
|
205
|
-
} =
|
|
205
|
+
} = Ze({
|
|
206
206
|
fixed: !0,
|
|
207
207
|
...o.rowSelection === !0 ? {} : o.rowSelection,
|
|
208
208
|
rowKey: o.rowKey,
|
|
209
|
-
dataSource:
|
|
209
|
+
dataSource: ge
|
|
210
210
|
}), {
|
|
211
211
|
formRef: P,
|
|
212
|
-
submit:
|
|
213
|
-
reset:
|
|
214
|
-
tableProps:
|
|
215
|
-
refresh:
|
|
212
|
+
submit: _,
|
|
213
|
+
reset: H,
|
|
214
|
+
tableProps: U,
|
|
215
|
+
refresh: be,
|
|
216
216
|
data: b,
|
|
217
|
-
setDataSource:
|
|
218
|
-
getColumnSFConfig:
|
|
219
|
-
} =
|
|
217
|
+
setDataSource: Se,
|
|
218
|
+
getColumnSFConfig: he
|
|
219
|
+
} = We({
|
|
220
220
|
async request(e) {
|
|
221
|
-
var a,
|
|
221
|
+
var a, l;
|
|
222
222
|
if (!T.value.preserveSelectedRowKeys && g(o.dataSource) && x.clearAll(), !g(o.dataSource))
|
|
223
223
|
return {
|
|
224
224
|
data: o.dataSource || [],
|
|
225
225
|
total: o.dataSource.length || 0
|
|
226
226
|
};
|
|
227
227
|
const r = await ((a = o.request) == null ? void 0 : a.call(o, e));
|
|
228
|
-
return (
|
|
228
|
+
return (l = o.onLoad) == null || l.call(o, (r == null ? void 0 : r.data) || []), {
|
|
229
229
|
data: (r == null ? void 0 : r.data) || [],
|
|
230
230
|
total: (r == null ? void 0 : r.total) || 0
|
|
231
231
|
};
|
|
232
232
|
},
|
|
233
|
-
filterFields:
|
|
234
|
-
sortFields:
|
|
233
|
+
filterFields: ye,
|
|
234
|
+
sortFields: me,
|
|
235
235
|
defaultParams: o.params,
|
|
236
236
|
defaultData: o.defaultData,
|
|
237
237
|
manual: o.manual,
|
|
238
238
|
formatParams: o.beforeSearchSubmit,
|
|
239
239
|
pagination: o.pagination
|
|
240
|
-
}),
|
|
240
|
+
}), we = () => {
|
|
241
241
|
var a;
|
|
242
|
-
let e = ((a = o.columns) == null ? void 0 : a.filter((
|
|
243
|
-
function r(
|
|
244
|
-
return
|
|
245
|
-
resizable:
|
|
246
|
-
...
|
|
247
|
-
...
|
|
242
|
+
let e = ((a = o.columns) == null ? void 0 : a.filter((l) => !l.hideInTable)) || [];
|
|
243
|
+
function r(l, d) {
|
|
244
|
+
return l.map((n) => ({
|
|
245
|
+
resizable: oo(n.resizable) ? n.resizable : o.columnResizable,
|
|
246
|
+
...te(qe(n), ["ellipsis"]),
|
|
247
|
+
...he(n),
|
|
248
248
|
fixed: d ? d.fixed : n.fixed,
|
|
249
|
-
title:
|
|
249
|
+
title: Me(n, O("table-header", "title"), C.headerCell, t(ue).colorPrimary),
|
|
250
250
|
customRender({
|
|
251
251
|
value: f,
|
|
252
252
|
...S
|
|
253
253
|
}) {
|
|
254
|
-
var
|
|
255
|
-
const
|
|
254
|
+
var J, Q;
|
|
255
|
+
const M = Ge(n), Be = Je({
|
|
256
256
|
...n,
|
|
257
|
-
valueType:
|
|
257
|
+
valueType: M
|
|
258
258
|
}, {
|
|
259
259
|
value: f,
|
|
260
260
|
...S
|
|
261
|
-
}),
|
|
261
|
+
}), ze = Qe(M, Be, S.record, t(V)), G = ((J = n.renderText) == null ? void 0 : J.call(n, {
|
|
262
262
|
value: f,
|
|
263
263
|
...S
|
|
264
|
-
})) || f,
|
|
264
|
+
})) || f, Pe = n.renderText ? p(X, null, [(Q = n.renderText) == null ? void 0 : Q.call(n, {
|
|
265
265
|
value: f,
|
|
266
266
|
...S
|
|
267
|
-
})]) :
|
|
268
|
-
let N =
|
|
267
|
+
})]) : ze;
|
|
268
|
+
let N = Te(n, G, Pe);
|
|
269
269
|
return n.customRender && (N = n.customRender({
|
|
270
270
|
value: f,
|
|
271
271
|
...S,
|
|
272
272
|
column: n,
|
|
273
273
|
originalNode: N,
|
|
274
|
-
originalText:
|
|
274
|
+
originalText: G
|
|
275
275
|
})), N;
|
|
276
276
|
},
|
|
277
277
|
children: r(n.children || [], d || n)
|
|
@@ -279,28 +279,28 @@ const No = /* @__PURE__ */ ze({
|
|
|
279
279
|
}
|
|
280
280
|
return r(e);
|
|
281
281
|
};
|
|
282
|
-
|
|
283
|
-
const e =
|
|
282
|
+
Ee(() => {
|
|
283
|
+
const e = we();
|
|
284
284
|
u.value = e, D.value = e;
|
|
285
285
|
});
|
|
286
|
-
const
|
|
286
|
+
const ve = s(() => {
|
|
287
287
|
var r, a;
|
|
288
288
|
if (o.adaptive && (b.total > 0 || ((r = o.dataSource) == null ? void 0 : r.length)))
|
|
289
289
|
return {
|
|
290
|
-
y:
|
|
290
|
+
y: t(fe),
|
|
291
291
|
x: ((a = o.scroll) == null ? void 0 : a.x) || "100%"
|
|
292
292
|
};
|
|
293
293
|
if (o.scroll)
|
|
294
294
|
return o.scroll;
|
|
295
|
-
}),
|
|
295
|
+
}), Re = s(() => {
|
|
296
296
|
var e;
|
|
297
297
|
if (o.tableLayout)
|
|
298
298
|
return o.tableLayout;
|
|
299
299
|
if ((e = o.columns) != null && e.some((r) => r.ellipsis))
|
|
300
300
|
return "fixed";
|
|
301
|
-
}),
|
|
301
|
+
}), q = s(() => {
|
|
302
302
|
var a;
|
|
303
|
-
const e =
|
|
303
|
+
const e = t(U), r = t(T);
|
|
304
304
|
return {
|
|
305
305
|
...o,
|
|
306
306
|
...e,
|
|
@@ -308,19 +308,19 @@ const No = /* @__PURE__ */ ze({
|
|
|
308
308
|
...r,
|
|
309
309
|
// tips 如果是前端分页,则默认会走缓存
|
|
310
310
|
preserveSelectedRowKeys: g(o.dataSource) ? r.preserveSelectedRowKeys : !0
|
|
311
|
-
} :
|
|
311
|
+
} : Xe(o.rowSelection),
|
|
312
312
|
loading: g(o.loading) ? e.loading : o.loading,
|
|
313
313
|
pagination: o.pagination === !1 ? !1 : e.pagination,
|
|
314
|
-
scroll:
|
|
314
|
+
scroll: t(ve)
|
|
315
315
|
};
|
|
316
|
-
}),
|
|
316
|
+
}), Ce = s(() => {
|
|
317
317
|
var e;
|
|
318
|
-
return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, A.value && ((e = i.value) != null && e.visible) ?
|
|
318
|
+
return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, A.value && ((e = i.value) != null && e.visible) ? ie(`sticky-${W === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
|
|
319
319
|
});
|
|
320
|
-
function
|
|
321
|
-
return
|
|
320
|
+
function Te(e, r, a) {
|
|
321
|
+
return re.includes(e.valueType) ? a : e.copyable || e.ellipsis ? p(no, {
|
|
322
322
|
copyable: e.copyable,
|
|
323
|
-
ellipsis: e.ellipsis ?
|
|
323
|
+
ellipsis: e.ellipsis ? je(e.ellipsis) ? {
|
|
324
324
|
tooltip: a,
|
|
325
325
|
rows: 1
|
|
326
326
|
} : {
|
|
@@ -330,36 +330,36 @@ const No = /* @__PURE__ */ ze({
|
|
|
330
330
|
content: a
|
|
331
331
|
}, null) : a;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
Y(() => t(b).loading, (e) => {
|
|
334
334
|
var r;
|
|
335
335
|
(r = o.onLoadingChange) == null || r.call(o, e);
|
|
336
|
-
}),
|
|
337
|
-
|
|
336
|
+
}), Y(() => o.dataSource, (e) => {
|
|
337
|
+
Se(e);
|
|
338
338
|
}, {
|
|
339
339
|
immediate: !0
|
|
340
340
|
});
|
|
341
|
-
function
|
|
342
|
-
var r, a,
|
|
343
|
-
(
|
|
341
|
+
function Fe(e) {
|
|
342
|
+
var r, a, l;
|
|
343
|
+
(l = (a = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : a.setFieldsValue) == null || l.call(a, e);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
var a,
|
|
345
|
+
function xe(e = !1) {
|
|
346
|
+
var a, l, d;
|
|
347
347
|
const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
348
|
-
return (d = (
|
|
348
|
+
return (d = (l = (a = P.value) == null ? void 0 : a.apForm) == null ? void 0 : l[r]) == null ? void 0 : d.call(l, !0);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
function ke() {
|
|
351
|
+
return t(u);
|
|
352
352
|
}
|
|
353
|
-
return
|
|
354
|
-
submit: () =>
|
|
355
|
-
reset: () =>
|
|
356
|
-
refresh: () =>
|
|
357
|
-
setSearchFormValues:
|
|
358
|
-
getSearchFormValues:
|
|
359
|
-
getShownColumns:
|
|
360
|
-
dataSource: s(() =>
|
|
353
|
+
return de({
|
|
354
|
+
submit: () => _(),
|
|
355
|
+
reset: () => H(),
|
|
356
|
+
refresh: () => be(),
|
|
357
|
+
setSearchFormValues: Fe,
|
|
358
|
+
getSearchFormValues: xe,
|
|
359
|
+
getShownColumns: ke,
|
|
360
|
+
dataSource: s(() => t(b).records),
|
|
361
361
|
rowSelection: {
|
|
362
|
-
selectedRows: s(() =>
|
|
362
|
+
selectedRows: s(() => t(F)),
|
|
363
363
|
...x
|
|
364
364
|
},
|
|
365
365
|
scrollBar: {
|
|
@@ -378,20 +378,23 @@ const No = /* @__PURE__ */ ze({
|
|
|
378
378
|
}), (e, r) => (m(), k("div", {
|
|
379
379
|
ref_key: "tableWrapperRef",
|
|
380
380
|
ref: L,
|
|
381
|
-
class: y(
|
|
382
|
-
|
|
381
|
+
class: y(Ce.value),
|
|
382
|
+
style: I(t(ce)({
|
|
383
|
+
"scroll-bar-width": `${t(W)}px`
|
|
384
|
+
}))
|
|
385
|
+
}, [t(g)(e.dataSource) && e.searchForm !== !1 && j.value.length > 0 ? (m(), k("div", {
|
|
383
386
|
key: 0,
|
|
384
|
-
class: y(e.card ?
|
|
385
|
-
style:
|
|
386
|
-
}, [p(
|
|
387
|
+
class: y(e.card ? t(B)("search-wrapper") : null),
|
|
388
|
+
style: I(e.searchFormWrapperStyle)
|
|
389
|
+
}, [p(t(De).SearchForm, w(e.searchForm || {}, {
|
|
387
390
|
ref_key: "formRef",
|
|
388
391
|
ref: P,
|
|
389
392
|
"custom-reset": "",
|
|
390
|
-
"submit-loading":
|
|
391
|
-
onSubmit:
|
|
392
|
-
onReset:
|
|
393
|
-
}),
|
|
394
|
-
default: v(() => [(m(!0), k(
|
|
393
|
+
"submit-loading": t(U).loading,
|
|
394
|
+
onSubmit: t(_),
|
|
395
|
+
onReset: t(H)
|
|
396
|
+
}), Z({
|
|
397
|
+
default: v(() => [(m(!0), k(X, null, ee(j.value, (a) => (m(), oe(Ke(a.renderNode.Comp), w({
|
|
395
398
|
key: a.dataIndex,
|
|
396
399
|
item: a,
|
|
397
400
|
ref_for: !0
|
|
@@ -404,66 +407,66 @@ const No = /* @__PURE__ */ ze({
|
|
|
404
407
|
name: "extra",
|
|
405
408
|
fn: v(() => [R(e.$slots, "searchFormExtra")]),
|
|
406
409
|
key: "0"
|
|
407
|
-
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) :
|
|
410
|
+
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : ae("", !0), E("div", {
|
|
408
411
|
ref_key: "contentRef",
|
|
409
|
-
ref:
|
|
410
|
-
class: y([
|
|
411
|
-
style:
|
|
412
|
-
}, [
|
|
413
|
-
class: y(
|
|
412
|
+
ref: pe,
|
|
413
|
+
class: y([t(B)("table-wrapper"), e.card ? t(B)("table-wrapper-card") : null]),
|
|
414
|
+
style: I(e.tableWrapperStyle)
|
|
415
|
+
}, [E("div", {
|
|
416
|
+
class: y(t(c)("header-wrapper"))
|
|
414
417
|
}, [e.settings ? (m(), k("div", {
|
|
415
418
|
key: 0,
|
|
416
|
-
class: y(
|
|
417
|
-
}, [
|
|
418
|
-
class: y(
|
|
419
|
+
class: y(t(c)("header"))
|
|
420
|
+
}, [E("div", {
|
|
421
|
+
class: y(t(O)("header", "title"))
|
|
419
422
|
}, [R(e.$slots, "title", w({
|
|
420
|
-
selectedRows:
|
|
421
|
-
selectedRowKeys:
|
|
423
|
+
selectedRows: t(F),
|
|
424
|
+
selectedRowKeys: t(T).selectedRowKeys,
|
|
422
425
|
shownColumns: u.value
|
|
423
|
-
}, x))], 2), C.title ? (m(),
|
|
426
|
+
}, x))], 2), C.title ? (m(), oe(t(Le), {
|
|
424
427
|
key: 0,
|
|
425
428
|
type: "vertical"
|
|
426
|
-
})) :
|
|
429
|
+
})) : ae("", !0), p(so, {
|
|
427
430
|
config: e.settings === !0 ? {} : e.settings
|
|
428
431
|
}, null, 8, ["config"])], 2)) : R(e.$slots, "title", w({
|
|
429
432
|
key: 1,
|
|
430
|
-
selectedRows:
|
|
431
|
-
selectedRowKeys:
|
|
433
|
+
selectedRows: t(F),
|
|
434
|
+
selectedRowKeys: t(T).selectedRowKeys,
|
|
432
435
|
shownColumns: u.value
|
|
433
|
-
}, x))], 2), p(
|
|
436
|
+
}, x))], 2), p(t($e), w({
|
|
434
437
|
ref_key: "antdTableRef",
|
|
435
|
-
ref:
|
|
436
|
-
class:
|
|
437
|
-
},
|
|
438
|
+
ref: $,
|
|
439
|
+
class: t(c)("table")
|
|
440
|
+
}, q.value, {
|
|
438
441
|
size: z.value,
|
|
439
|
-
"table-layout":
|
|
442
|
+
"table-layout": Re.value,
|
|
440
443
|
columns: u.value,
|
|
441
|
-
onResizeColumn: r[0] || (r[0] = (a,
|
|
442
|
-
}),
|
|
444
|
+
onResizeColumn: r[0] || (r[0] = (a, l) => l.width = a)
|
|
445
|
+
}), Z({
|
|
443
446
|
summary: v(() => [R(e.$slots, "summary", {
|
|
444
447
|
columns: u.value,
|
|
445
|
-
records:
|
|
446
|
-
selectedRows:
|
|
448
|
+
records: q.value.dataSource,
|
|
449
|
+
selectedRows: t(F)
|
|
447
450
|
})]),
|
|
448
451
|
_: 2
|
|
449
|
-
}, [
|
|
452
|
+
}, [t(A) ? {
|
|
450
453
|
name: "bottomPaginationTop",
|
|
451
454
|
fn: v(() => {
|
|
452
|
-
var a,
|
|
453
|
-
return [p(
|
|
455
|
+
var a, l;
|
|
456
|
+
return [p(t(uo), {
|
|
454
457
|
ref_key: "scrollBarRef",
|
|
455
458
|
ref: i,
|
|
456
|
-
"scroll-container": (
|
|
459
|
+
"scroll-container": (l = (a = $.value) == null ? void 0 : a.table) == null ? void 0 : l.scrollBodyRef,
|
|
457
460
|
direction: "horizontal"
|
|
458
461
|
}, null, 8, ["scroll-container"])];
|
|
459
462
|
}),
|
|
460
463
|
key: "0"
|
|
461
|
-
} : void 0,
|
|
462
|
-
name:
|
|
463
|
-
fn: v((d) => [R(e.$slots,
|
|
464
|
-
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)],
|
|
464
|
+
} : void 0, ee(t(te)(C, ["title", "searchFormExtra", "headerCell", "summary"]), (a, l) => ({
|
|
465
|
+
name: l,
|
|
466
|
+
fn: v((d) => [R(e.$slots, l, Oe(Ve(d || {})))])
|
|
467
|
+
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
|
|
465
468
|
}
|
|
466
469
|
});
|
|
467
470
|
export {
|
|
468
|
-
|
|
471
|
+
Io as default
|
|
469
472
|
};
|
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?:
|
|
7
|
+
fixed?: "left" | "right" | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?: any[] | undefined;
|
|
10
|
+
children?: /*elided*/ any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?:
|
|
15
|
+
fixed?: "left" | "right" | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
-
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface,
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
4
|
import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
5
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Oss } from '../hooks/useOss';
|
|
2
|
+
import { actionResponse } from '@aplus-frontend/oss';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
4
|
declare function setValue(val?: (string | Record<string, any>)[]): void;
|
|
4
5
|
interface UploadFile extends File {
|
|
@@ -17,13 +18,7 @@ declare function __VLS_template(): {
|
|
|
17
18
|
pictureContext?(_: {
|
|
18
19
|
fileList: {
|
|
19
20
|
oss: {
|
|
20
|
-
pauseUpload: (() => Promise<
|
|
21
|
-
status: number;
|
|
22
|
-
previewUrl?: string;
|
|
23
|
-
saveUrl?: string;
|
|
24
|
-
originalFileName?: string;
|
|
25
|
-
message: string;
|
|
26
|
-
}>) | undefined;
|
|
21
|
+
pauseUpload: (() => Promise< actionResponse>) | undefined;
|
|
27
22
|
};
|
|
28
23
|
}[];
|
|
29
24
|
remove: typeof handleRemove;
|