@aplus-frontend/ui 0.5.9 → 0.5.11
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-descriptions/ap-descriptions.vue.mjs +70 -54
- package/es/src/ap-descriptions/formatter/index.d.ts +2 -1
- package/es/src/ap-descriptions/formatter/index.mjs +92 -76
- package/es/src/ap-descriptions/helper.d.ts +3 -4
- package/es/src/ap-descriptions/helper.mjs +15 -13
- package/es/src/ap-descriptions/interface.d.ts +6 -0
- package/es/src/ap-field/select/index.vue.d.ts +12 -12
- package/es/src/ap-grid/utils/col.mjs +32 -31
- package/es/src/ap-table/ap-table.vue2.mjs +49 -45
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -0
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +33 -33
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-group-search/index.d.ts +18 -18
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +6 -6
- package/es/src/business/hooks/usePageListApGrid.mjs +9 -10
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +27 -27
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.d.ts +2 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/helper.d.ts +3 -4
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +6 -0
- package/lib/src/ap-field/select/index.vue.d.ts +12 -12
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -0
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-group-search/index.d.ts +18 -18
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +6 -6
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +5 -5
- package/theme/ap-descriptions/ap-descriptions.css +10 -0
- package/theme/ap-descriptions/ap-descriptions.less +13 -0
- package/theme/ap-tag/ap-tag.css +6 -6
- package/theme/ap-tag/ap-tag.less +1 -2
- package/theme/index.css +16 -6
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createVNode as
|
|
2
|
-
import { isUndefined as
|
|
3
|
-
import { valueEnumToArray as
|
|
1
|
+
import { createVNode as v, Fragment as S } from "vue";
|
|
2
|
+
import { isUndefined as $, isArray as M, isString as x, isBoolean as c, isNumber as V, pick as A } from "lodash-unified";
|
|
3
|
+
import { valueEnumToArray as j, objectToString as B, getTableTitle as R, getTableRenderType as N, getTableRenderProps as W, getTableCellRenderNode as _ } from "../../ap-table/utils.mjs";
|
|
4
4
|
import { noRenderAsFormItemValueList as k } from "../../ap-table/constants.mjs";
|
|
5
5
|
import "../../ap-table/components/paragraph-ellipsis/index.vue.mjs";
|
|
6
6
|
import z from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
|
|
7
|
-
function
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
7
|
+
function b(e) {
|
|
8
|
+
if (!$(e))
|
|
9
|
+
return M(e) ? e.reduce((r, t) => x(t) ? `${r}.${t}` : `${r}[${t}]`, "") : String(e);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function w(e) {
|
|
12
12
|
if (e)
|
|
13
13
|
return e === !0 ? "left" : e;
|
|
14
14
|
}
|
|
15
15
|
function G(e) {
|
|
16
|
-
return
|
|
16
|
+
return c(e) ? {
|
|
17
17
|
sortable: e
|
|
18
18
|
} : e ? {
|
|
19
19
|
sortable: !0,
|
|
@@ -25,8 +25,8 @@ function G(e) {
|
|
|
25
25
|
}
|
|
26
26
|
function I(e) {
|
|
27
27
|
let r;
|
|
28
|
-
return
|
|
29
|
-
label:
|
|
28
|
+
return c(e.filters) && e.valueEnum ? r = j(e.valueEnum) : r = e.filters, r == null ? void 0 : r.map((t) => ({
|
|
29
|
+
label: x(t.text) ? t.text : "",
|
|
30
30
|
value: t.value
|
|
31
31
|
}));
|
|
32
32
|
}
|
|
@@ -35,7 +35,7 @@ function L(e) {
|
|
|
35
35
|
return (r) => e(r.value, r.row);
|
|
36
36
|
}
|
|
37
37
|
function U(e, r) {
|
|
38
|
-
return e ?
|
|
38
|
+
return e ? V(e) ? {
|
|
39
39
|
tooltip: r,
|
|
40
40
|
rows: e
|
|
41
41
|
} : e === !0 || e === "tooltip" ? {
|
|
@@ -47,12 +47,13 @@ function U(e, r) {
|
|
|
47
47
|
htmlTitle: e === "title" ? r : ""
|
|
48
48
|
} : !1;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function q(e, r, t) {
|
|
51
51
|
if (k.includes(e.valueType))
|
|
52
52
|
return t;
|
|
53
53
|
if (e.copyable || e.ellipsis) {
|
|
54
|
-
const n = U(e.ellipsis, r);
|
|
55
|
-
return
|
|
54
|
+
const n = U(e.ellipsis, r), i = B(r);
|
|
55
|
+
return v(z, {
|
|
56
|
+
rawValue: i,
|
|
56
57
|
copyable: e.copyable,
|
|
57
58
|
ellipsis: n,
|
|
58
59
|
content: t
|
|
@@ -61,33 +62,33 @@ function V(e, r, t) {
|
|
|
61
62
|
return t;
|
|
62
63
|
}
|
|
63
64
|
function y(e, r, t) {
|
|
64
|
-
const n =
|
|
65
|
-
return n.field =
|
|
66
|
-
header: () =>
|
|
65
|
+
const n = A(e, ["width", "minWidth", "align"]);
|
|
66
|
+
return n.field = b(e.dataIndex), n.fixed = w(e.fixed), n.slots = {
|
|
67
|
+
header: () => R(e, t, void 0, r)
|
|
67
68
|
}, n.headerAlign = e.align, n.showOverflow = !1, n.showFooterOverflow = !1, n;
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
const i =
|
|
71
|
-
i.field =
|
|
70
|
+
function F(e, r, t, n) {
|
|
71
|
+
const i = A(e, ["width", "minWidth", "align", "resizable"]);
|
|
72
|
+
i.field = b(e.dataIndex), i.fixed = w(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, G(e.sorter)), i.filters = I(e), i.filterMultiple = e.filterMultiple, i.filterMethod = L(e.onFilter);
|
|
72
73
|
const a = ({
|
|
73
74
|
value: d,
|
|
74
75
|
...l
|
|
75
76
|
}) => {
|
|
76
77
|
var T, o;
|
|
77
|
-
const f =
|
|
78
|
+
const f = N(e), u = W({
|
|
78
79
|
...e,
|
|
79
80
|
valueType: f
|
|
80
81
|
}, {
|
|
81
82
|
value: d,
|
|
82
83
|
...l
|
|
83
|
-
}),
|
|
84
|
+
}), E = _(f, u, l.record, n), h = ((T = e.renderText) == null ? void 0 : T.call(e, {
|
|
84
85
|
value: d,
|
|
85
86
|
...l
|
|
86
|
-
})) || d,
|
|
87
|
+
})) || d, O = e.renderText ? v(S, null, [(o = e.renderText) == null ? void 0 : o.call(e, {
|
|
87
88
|
value: d,
|
|
88
89
|
...l
|
|
89
|
-
})]) :
|
|
90
|
-
let p =
|
|
90
|
+
})]) : E;
|
|
91
|
+
let p = q(e, h, O);
|
|
91
92
|
return e.customRender && (p = e.customRender({
|
|
92
93
|
value: d,
|
|
93
94
|
...l,
|
|
@@ -107,15 +108,15 @@ function x(e, r, t, n) {
|
|
|
107
108
|
column: e
|
|
108
109
|
});
|
|
109
110
|
return i.slots = {
|
|
110
|
-
header: () =>
|
|
111
|
+
header: () => R(e, t, void 0, r),
|
|
111
112
|
default: s,
|
|
112
113
|
footer: s
|
|
113
114
|
}, i;
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
+
function Y(e, r, t, n) {
|
|
116
117
|
var s;
|
|
117
118
|
if (!((s = e.children) != null && s.length))
|
|
118
|
-
return
|
|
119
|
+
return F(e, r, t, n);
|
|
119
120
|
function i(d) {
|
|
120
121
|
return d.map((l) => {
|
|
121
122
|
var f;
|
|
@@ -123,14 +124,14 @@ function X(e, r, t, n) {
|
|
|
123
124
|
const u = y(l, r, t);
|
|
124
125
|
return u.children = i(l.children), u;
|
|
125
126
|
}
|
|
126
|
-
return
|
|
127
|
+
return F(l, r, t, n);
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
130
|
const a = y(e, r, t);
|
|
130
131
|
return a.children = i(e.children), a;
|
|
131
132
|
}
|
|
132
133
|
export {
|
|
133
|
-
|
|
134
|
+
Y as transformCol,
|
|
134
135
|
y as transformToColGroup,
|
|
135
|
-
|
|
136
|
+
F as transformToColumn
|
|
136
137
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Ke, useSlots as Ee, ref as h, computed as s, unref as l, watch as k, createElementBlock as B, openBlock as p, normalizeStyle as V, normalizeClass as m, createCommentVNode as Z, createElementVNode as K, createVNode as y, mergeProps as w, createSlots as ee, withCtx as v, Fragment as oe, renderList as re, createBlock as ae, resolveDynamicComponent as Oe, renderSlot as R, normalizeProps as Le, guardReactiveProps as $e } from "vue";
|
|
2
2
|
import { Divider as Ae, Table as De } from "@aplus-frontend/antdv";
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { ApForm as
|
|
3
|
+
import { useToken as je } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { ApForm as We } from "../ap-form/index.mjs";
|
|
5
5
|
import { noRenderAsFormItemValueList as te } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as _e } from "./hooks/use-table-paging-ng.mjs";
|
|
8
8
|
import { isUndefined as g, omit as le, isBoolean as He } from "lodash-unified";
|
|
9
|
-
import { getColumnOrder as ne, updateFormProps as Ue, getFieldProps as qe, getSearchFormItemRenderNode as Me, recursionApColumns as se, falseToUndefined as Ge, getTableTitle as Je, getTableRenderType as Qe, getTableRenderProps as Xe, getTableCellRenderNode as Ye, apColumnToColumn as Ze } from "./utils.mjs";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { getScrollbarSize as
|
|
9
|
+
import { getColumnOrder as ne, updateFormProps as Ue, getFieldProps as qe, getSearchFormItemRenderNode as Me, recursionApColumns as se, falseToUndefined as Ge, getTableTitle as Je, getTableRenderType as Qe, getTableRenderProps as Xe, getTableCellRenderNode as Ye, apColumnToColumn as Ze, objectToString as eo } from "./utils.mjs";
|
|
10
|
+
import oo from "./hooks/use-table-content-height.mjs";
|
|
11
|
+
import ro from "./hooks/use-table-row-selection.mjs";
|
|
12
|
+
import { getScrollbarSize as ao, isDef as to } 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 lo } from "./context.mjs";
|
|
16
16
|
import "../scroll-bar/index.mjs";
|
|
17
|
-
import { useStickyScroll as
|
|
18
|
-
import { useNamespace as
|
|
19
|
-
import { useGlobalConfig as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
const Eo = /* @__PURE__ */
|
|
17
|
+
import { useStickyScroll as no } from "./hooks/use-sticky-scroll.mjs";
|
|
18
|
+
import { useNamespace as so } from "../config-provider/hooks/use-namespace.mjs";
|
|
19
|
+
import { useGlobalConfig as uo } from "../config-provider/hooks/use-global-config.mjs";
|
|
20
|
+
import io from "./components/setting/modal/index.vue2.mjs";
|
|
21
|
+
import co from "../scroll-bar/index.vue.mjs";
|
|
22
|
+
import fo from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
23
|
+
const Eo = /* @__PURE__ */ Ke({
|
|
24
24
|
name: "ApTable",
|
|
25
25
|
__name: "ap-table",
|
|
26
26
|
props: {
|
|
@@ -148,23 +148,23 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
148
148
|
expose: ue
|
|
149
149
|
}) {
|
|
150
150
|
const o = de;
|
|
151
|
-
let
|
|
152
|
-
const C =
|
|
151
|
+
let E = 0;
|
|
152
|
+
const C = Ee(), [, ie] = je(), {
|
|
153
153
|
e: z,
|
|
154
154
|
b: c,
|
|
155
|
-
be:
|
|
155
|
+
be: O,
|
|
156
156
|
m: ce,
|
|
157
157
|
cssVar: fe
|
|
158
|
-
} =
|
|
158
|
+
} = so("ap-table"), L = uo("valueTypeMap"), {
|
|
159
159
|
height: pe,
|
|
160
160
|
contentRef: me
|
|
161
|
-
} =
|
|
161
|
+
} = oo(), $ = h(), A = h(), {
|
|
162
162
|
isStickyMode: D,
|
|
163
163
|
scrollBarRef: i
|
|
164
|
-
} =
|
|
165
|
-
|
|
164
|
+
} = no($), P = h(o.size), u = h([]), j = h([]), W = ao();
|
|
165
|
+
lo({
|
|
166
166
|
columns: s(() => u.value),
|
|
167
|
-
columnsBackup: s(() =>
|
|
167
|
+
columnsBackup: s(() => j.value),
|
|
168
168
|
size: s(() => P.value),
|
|
169
169
|
updateColumns(e) {
|
|
170
170
|
u.value = e;
|
|
@@ -176,7 +176,7 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
176
176
|
});
|
|
177
177
|
const _ = s(() => {
|
|
178
178
|
var e, a, r;
|
|
179
|
-
return
|
|
179
|
+
return E++, ((r = (a = (e = o.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !te.includes(t.valueType))) == null ? void 0 : a.sort((t, d) => {
|
|
180
180
|
let n = ne(t.order);
|
|
181
181
|
return ne(d.order) - n;
|
|
182
182
|
})) == null ? void 0 : r.map((t) => {
|
|
@@ -186,7 +186,7 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
186
186
|
label: t.title,
|
|
187
187
|
name: t.dataIndex,
|
|
188
188
|
...d || {},
|
|
189
|
-
_signal:
|
|
189
|
+
_signal: E
|
|
190
190
|
},
|
|
191
191
|
renderNode: void 0
|
|
192
192
|
};
|
|
@@ -202,7 +202,7 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
202
202
|
rowSelection: T,
|
|
203
203
|
selectedRows: F,
|
|
204
204
|
...x
|
|
205
|
-
} =
|
|
205
|
+
} = ro({
|
|
206
206
|
fixed: !0,
|
|
207
207
|
...o.rowSelection === !0 ? {} : o.rowSelection,
|
|
208
208
|
rowKey: o.rowKey,
|
|
@@ -244,12 +244,12 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
244
244
|
let e = ((r = o.columns) == null ? void 0 : r.filter((t) => !t.hideInTable)) || [];
|
|
245
245
|
function a(t, d) {
|
|
246
246
|
return t.map((n) => ({
|
|
247
|
-
resizable:
|
|
247
|
+
resizable: to(n.resizable) ? n.resizable : o.columnResizable,
|
|
248
248
|
...le(Ze(n), ["ellipsis"]),
|
|
249
249
|
// tips: 此函数内部依赖查询&筛选的相应式值
|
|
250
250
|
...M(n),
|
|
251
251
|
fixed: d ? d.fixed : n.fixed,
|
|
252
|
-
title: Je(n,
|
|
252
|
+
title: Je(n, O("table-header", "title"), C.headerCell, l(ie).colorPrimary),
|
|
253
253
|
customRender({
|
|
254
254
|
value: f,
|
|
255
255
|
...S
|
|
@@ -264,11 +264,11 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
264
264
|
}), Ne = Ye(J, Ie, S.record, l(L)), Q = ((X = n.renderText) == null ? void 0 : X.call(n, {
|
|
265
265
|
value: f,
|
|
266
266
|
...S
|
|
267
|
-
})) || f,
|
|
267
|
+
})) || f, Ve = n.renderText ? y(oe, null, [(Y = n.renderText) == null ? void 0 : Y.call(n, {
|
|
268
268
|
value: f,
|
|
269
269
|
...S
|
|
270
270
|
})]) : Ne;
|
|
271
|
-
let N = ke(n, Q,
|
|
271
|
+
let N = ke(n, Q, Ve);
|
|
272
272
|
return n.customRender && (N = n.customRender({
|
|
273
273
|
value: f,
|
|
274
274
|
...S,
|
|
@@ -291,7 +291,7 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
291
291
|
};
|
|
292
292
|
k(() => [o.columns, o.columnResizable], () => {
|
|
293
293
|
const e = Re();
|
|
294
|
-
u.value = e,
|
|
294
|
+
u.value = e, j.value = e;
|
|
295
295
|
}, {
|
|
296
296
|
deep: !0,
|
|
297
297
|
immediate: !0
|
|
@@ -332,11 +332,15 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
332
332
|
};
|
|
333
333
|
}), xe = s(() => {
|
|
334
334
|
var e;
|
|
335
|
-
return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, D.value && ((e = i.value) != null && e.visible) ? ce(`sticky-${
|
|
335
|
+
return [c(), o.card ? null : c("wrapper"), o.adaptive ? c("adaptive") : null, D.value && ((e = i.value) != null && e.visible) ? ce(`sticky-${W === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
|
|
336
336
|
});
|
|
337
337
|
function ke(e, a, r) {
|
|
338
|
-
|
|
338
|
+
if (te.includes(e.valueType))
|
|
339
|
+
return r;
|
|
340
|
+
const t = eo(a);
|
|
341
|
+
return e.copyable || e.ellipsis ? y(fo, {
|
|
339
342
|
copyable: e.copyable,
|
|
343
|
+
rawValue: t,
|
|
340
344
|
ellipsis: e.ellipsis ? He(e.ellipsis) ? {
|
|
341
345
|
tooltip: r,
|
|
342
346
|
rows: 1
|
|
@@ -396,14 +400,14 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
396
400
|
ref_key: "tableWrapperRef",
|
|
397
401
|
ref: $,
|
|
398
402
|
class: m(xe.value),
|
|
399
|
-
style:
|
|
400
|
-
"scroll-bar-width": `${l(
|
|
403
|
+
style: V(l(fe)({
|
|
404
|
+
"scroll-bar-width": `${l(W)}px`
|
|
401
405
|
}))
|
|
402
406
|
}, [l(g)(e.dataSource) && e.searchForm !== !1 && _.value.length > 0 ? (p(), B("div", {
|
|
403
407
|
key: 0,
|
|
404
408
|
class: m(e.card ? l(z)("search-wrapper") : null),
|
|
405
|
-
style:
|
|
406
|
-
}, [y(l(
|
|
409
|
+
style: V(e.searchFormWrapperStyle)
|
|
410
|
+
}, [y(l(We).SearchForm, w(e.searchForm || {}, {
|
|
407
411
|
ref_key: "formRef",
|
|
408
412
|
ref: I,
|
|
409
413
|
"custom-reset": "",
|
|
@@ -411,7 +415,7 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
411
415
|
onSubmit: l(H),
|
|
412
416
|
onReset: l(U)
|
|
413
417
|
}), ee({
|
|
414
|
-
default: v(() => [(p(!0), B(oe, null, re(_.value, (r) => (p(), ae(
|
|
418
|
+
default: v(() => [(p(!0), B(oe, null, re(_.value, (r) => (p(), ae(Oe(r.renderNode.Comp), w({
|
|
415
419
|
key: r.dataIndex,
|
|
416
420
|
item: r,
|
|
417
421
|
ref_for: !0
|
|
@@ -424,18 +428,18 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
424
428
|
name: "extra",
|
|
425
429
|
fn: v(() => [R(e.$slots, "searchFormExtra")]),
|
|
426
430
|
key: "0"
|
|
427
|
-
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : Z("", !0),
|
|
431
|
+
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : Z("", !0), K("div", {
|
|
428
432
|
ref_key: "contentRef",
|
|
429
433
|
ref: me,
|
|
430
434
|
class: m([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
|
|
431
|
-
style:
|
|
432
|
-
}, [
|
|
435
|
+
style: V(e.tableWrapperStyle)
|
|
436
|
+
}, [K("div", {
|
|
433
437
|
class: m(l(c)("header-wrapper"))
|
|
434
438
|
}, [e.settings ? (p(), B("div", {
|
|
435
439
|
key: 0,
|
|
436
440
|
class: m(l(c)("header"))
|
|
437
|
-
}, [
|
|
438
|
-
class: m(l(
|
|
441
|
+
}, [K("div", {
|
|
442
|
+
class: m(l(O)("header", "title"))
|
|
439
443
|
}, [R(e.$slots, "title", w({
|
|
440
444
|
selectedRows: l(F),
|
|
441
445
|
selectedRowKeys: l(T).selectedRowKeys,
|
|
@@ -443,7 +447,7 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
443
447
|
}, x))], 2), C.title ? (p(), ae(l(Ae), {
|
|
444
448
|
key: 0,
|
|
445
449
|
type: "vertical"
|
|
446
|
-
})) : Z("", !0), y(
|
|
450
|
+
})) : Z("", !0), y(io, {
|
|
447
451
|
config: e.settings === !0 ? {} : e.settings
|
|
448
452
|
}, null, 8, ["config"])], 2)) : R(e.$slots, "title", w({
|
|
449
453
|
key: 1,
|
|
@@ -470,7 +474,7 @@ const Eo = /* @__PURE__ */ Ee({
|
|
|
470
474
|
name: "bottomPaginationTop",
|
|
471
475
|
fn: v(() => {
|
|
472
476
|
var r, t;
|
|
473
|
-
return [y(l(
|
|
477
|
+
return [y(l(co), {
|
|
474
478
|
ref_key: "scrollBarRef",
|
|
475
479
|
ref: i,
|
|
476
480
|
"scroll-container": (t = (r = A.value) == null ? void 0 : r.table) == null ? void 0 : t.scrollBodyRef,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as x, ref as _, computed as B, createElementBlock as f, openBlock as i, mergeProps as E, unref as
|
|
1
|
+
import { defineComponent as x, ref as _, computed as B, createElementBlock as f, openBlock as i, mergeProps as E, unref as o, createElementVNode as O, createCommentVNode as N, normalizeClass as y, createVNode as b, createSlots as V, withCtx as m, createBlock as c, resolveDynamicComponent as v, h as w } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { CopyOutlined as
|
|
3
|
+
import { Tooltip as h } from "@aplus-frontend/antdv";
|
|
4
|
+
import { CopyOutlined as j, CheckOutlined as S } from "@ant-design/icons-vue";
|
|
5
5
|
import { useNamespace as A } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
6
|
import { useLocale as P } from "../../../config-provider/hooks/use-locale.mjs";
|
|
7
7
|
const G = /* @__PURE__ */ x({
|
|
@@ -10,32 +10,33 @@ const G = /* @__PURE__ */ x({
|
|
|
10
10
|
props: {
|
|
11
11
|
copyable: { type: Boolean },
|
|
12
12
|
content: { type: [Object, String, Number, Boolean, null, Array] },
|
|
13
|
+
rawValue: {},
|
|
13
14
|
ellipsis: { type: [Boolean, Object] }
|
|
14
15
|
},
|
|
15
16
|
setup(C) {
|
|
16
|
-
const { b: u } = A("ap-table-paragraph-ellipsis"), { t: d } = P(),
|
|
17
|
+
const { b: u } = A("ap-table-paragraph-ellipsis"), { t: d } = P(), l = C, n = _(!1), p = B(() => l.ellipsis === !0 ? {
|
|
17
18
|
rows: 1,
|
|
18
|
-
tooltip:
|
|
19
|
+
tooltip: l.content,
|
|
19
20
|
htmlTitle: ""
|
|
20
|
-
} : typeof
|
|
21
|
+
} : typeof l.ellipsis == "object" ? Object.assign(
|
|
21
22
|
{
|
|
22
23
|
rows: 1,
|
|
23
|
-
tooltip:
|
|
24
|
+
tooltip: l.content,
|
|
24
25
|
htmlTitle: ""
|
|
25
26
|
},
|
|
26
|
-
|
|
27
|
+
l.ellipsis
|
|
27
28
|
) : {});
|
|
28
29
|
function T() {
|
|
29
30
|
return (window.top !== window ? window.top : window) ?? window;
|
|
30
31
|
}
|
|
31
|
-
function g(
|
|
32
|
-
var
|
|
32
|
+
function g(a) {
|
|
33
|
+
var r;
|
|
33
34
|
const e = T();
|
|
34
|
-
if ((
|
|
35
|
-
e.navigator.clipboard.writeText(
|
|
35
|
+
if ((r = e == null ? void 0 : e.navigator) != null && r.clipboard)
|
|
36
|
+
e.navigator.clipboard.writeText(a);
|
|
36
37
|
else if (e.document) {
|
|
37
38
|
const t = e.document.createElement("textarea");
|
|
38
|
-
t.value =
|
|
39
|
+
t.value = a, t.style.position = "fixed", t.style.top = "-1000px", e.document.body.appendChild(t), t.focus(), t.select();
|
|
39
40
|
try {
|
|
40
41
|
e.document.execCommand("copy");
|
|
41
42
|
} catch (s) {
|
|
@@ -45,56 +46,55 @@ const G = /* @__PURE__ */ x({
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
function k() {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
p.value = !1;
|
|
49
|
+
const a = l.rawValue || "";
|
|
50
|
+
g(a), n.value || (n.value = !0, setTimeout(() => {
|
|
51
|
+
n.value = !1;
|
|
52
52
|
}, 2200));
|
|
53
53
|
}
|
|
54
|
-
return (
|
|
55
|
-
var
|
|
54
|
+
return (a, e) => {
|
|
55
|
+
var r, t;
|
|
56
56
|
return i(), f("div", E({
|
|
57
|
-
class: [
|
|
57
|
+
class: [o(u)()]
|
|
58
58
|
}, {
|
|
59
|
-
...
|
|
59
|
+
...a.$attrs
|
|
60
60
|
}, {
|
|
61
61
|
style: {
|
|
62
|
-
"--ap-table-paragraph-ellipsis-rows": (
|
|
62
|
+
"--ap-table-paragraph-ellipsis-rows": (r = p.value) == null ? void 0 : r.rows
|
|
63
63
|
}
|
|
64
64
|
}), [
|
|
65
65
|
O("div", {
|
|
66
|
-
class: y([
|
|
66
|
+
class: y([o(u)("content")])
|
|
67
67
|
}, [
|
|
68
|
-
|
|
68
|
+
b(o(h), null, V({
|
|
69
69
|
default: m(() => {
|
|
70
70
|
var s;
|
|
71
71
|
return [
|
|
72
|
-
(i(), c(
|
|
73
|
-
|
|
72
|
+
(i(), c(v(
|
|
73
|
+
w("span", { title: (s = p.value) == null ? void 0 : s.htmlTitle }, [l.content])
|
|
74
74
|
)))
|
|
75
75
|
];
|
|
76
76
|
}),
|
|
77
77
|
_: 2
|
|
78
78
|
}, [
|
|
79
|
-
(t =
|
|
79
|
+
(t = p.value) != null && t.tooltip ? {
|
|
80
80
|
name: "title",
|
|
81
81
|
fn: m(() => [
|
|
82
|
-
(i(), c(
|
|
82
|
+
(i(), c(v(w("div", [p.value.tooltip]))))
|
|
83
83
|
]),
|
|
84
84
|
key: "0"
|
|
85
85
|
} : void 0
|
|
86
86
|
]), 1024)
|
|
87
87
|
], 2),
|
|
88
|
-
|
|
88
|
+
l.copyable ? (i(), f("div", {
|
|
89
89
|
key: 0,
|
|
90
|
-
class: y([
|
|
90
|
+
class: y([o(u)("copyable")]),
|
|
91
91
|
onClick: k
|
|
92
92
|
}, [
|
|
93
|
-
|
|
94
|
-
title:
|
|
93
|
+
b(o(h), {
|
|
94
|
+
title: n.value ? o(d)("ap.apTable.paragraphEllipsis.copySuccess") : o(d)("ap.apTable.paragraphEllipsis.copy")
|
|
95
95
|
}, {
|
|
96
96
|
default: m(() => [
|
|
97
|
-
|
|
97
|
+
n.value ? (i(), c(o(S), { key: 1 })) : (i(), c(o(j), { key: 0 }))
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["title"])
|
|
@@ -2649,8 +2649,8 @@ export declare const apTableRenderItemMap: {
|
|
|
2649
2649
|
popupClassName: StringConstructor;
|
|
2650
2650
|
dropdownClassName: StringConstructor;
|
|
2651
2651
|
placement: {
|
|
2652
|
-
type: PropType<"
|
|
2653
|
-
default: "
|
|
2652
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
2653
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
2654
2654
|
};
|
|
2655
2655
|
status: {
|
|
2656
2656
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -2796,7 +2796,7 @@ export declare const apTableRenderItemMap: {
|
|
|
2796
2796
|
status: "" | "error" | "warning";
|
|
2797
2797
|
defaultValue: SelectValue;
|
|
2798
2798
|
'onUpdate:value': (val: SelectValue) => void;
|
|
2799
|
-
placement: "
|
|
2799
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
2800
2800
|
loading: boolean;
|
|
2801
2801
|
bordered: boolean;
|
|
2802
2802
|
allowClear: boolean;
|
|
@@ -2860,8 +2860,8 @@ export declare const apTableRenderItemMap: {
|
|
|
2860
2860
|
popupClassName: StringConstructor;
|
|
2861
2861
|
dropdownClassName: StringConstructor;
|
|
2862
2862
|
placement: {
|
|
2863
|
-
type: PropType<"
|
|
2864
|
-
default: "
|
|
2863
|
+
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
2864
|
+
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
2865
2865
|
};
|
|
2866
2866
|
status: {
|
|
2867
2867
|
type: PropType<"" | "error" | "warning">;
|
|
@@ -3007,7 +3007,7 @@ export declare const apTableRenderItemMap: {
|
|
|
3007
3007
|
status: "" | "error" | "warning";
|
|
3008
3008
|
defaultValue: SelectValue;
|
|
3009
3009
|
'onUpdate:value': (val: SelectValue) => void;
|
|
3010
|
-
placement: "
|
|
3010
|
+
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
3011
3011
|
loading: boolean;
|
|
3012
3012
|
bordered: boolean;
|
|
3013
3013
|
allowClear: boolean;
|
|
@@ -264,7 +264,7 @@ declare const ApBatchActionGroup: {
|
|
|
264
264
|
};
|
|
265
265
|
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
266
266
|
transitionName: StringConstructor;
|
|
267
|
-
placement: PropType<"top" | "bottom" | "
|
|
267
|
+
placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
|
|
268
268
|
overlayClassName: StringConstructor;
|
|
269
269
|
overlayStyle: {
|
|
270
270
|
type: PropType<CSSProperties>;
|
|
@@ -565,7 +565,7 @@ declare const ApBatchActionGroup: {
|
|
|
565
565
|
};
|
|
566
566
|
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
567
567
|
transitionName: StringConstructor;
|
|
568
|
-
placement: PropType<"top" | "bottom" | "
|
|
568
|
+
placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
|
|
569
569
|
overlayClassName: StringConstructor;
|
|
570
570
|
overlayStyle: {
|
|
571
571
|
type: PropType<CSSProperties>;
|
|
@@ -863,7 +863,7 @@ declare const ApBatchActionGroup: {
|
|
|
863
863
|
};
|
|
864
864
|
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
865
865
|
transitionName: StringConstructor;
|
|
866
|
-
placement: PropType<"top" | "bottom" | "
|
|
866
|
+
placement: PropType<"top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter">;
|
|
867
867
|
overlayClassName: StringConstructor;
|
|
868
868
|
overlayStyle: {
|
|
869
869
|
type: PropType<CSSProperties>;
|