@aplus-frontend/ui 0.4.34 → 0.5.0-beta.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/index.mjs +14 -12
- package/es/src/ap-grid/constants.d.ts +9 -0
- package/es/src/ap-grid/constants.mjs +12 -0
- package/es/src/ap-grid/hooks/use-inner-params.d.ts +10 -0
- package/es/src/ap-grid/hooks/use-inner-params.mjs +41 -0
- package/es/src/ap-grid/hooks/use-render-columns.d.ts +6 -0
- package/es/src/ap-grid/hooks/use-render-columns.mjs +29 -0
- package/es/src/ap-grid/index.d.ts +3 -0
- package/es/src/ap-grid/index.mjs +2 -0
- package/es/src/ap-grid/index.vue.d.ts +44 -0
- package/es/src/ap-grid/index.vue.mjs +356 -0
- package/es/src/ap-grid/index.vue2.mjs +4 -0
- package/es/src/ap-grid/interface.d.ts +264 -0
- package/es/src/ap-grid/interface.mjs +1 -0
- package/es/src/ap-grid/style/css.d.ts +0 -0
- package/es/src/ap-grid/style/css.js +1 -0
- package/es/src/ap-grid/style/index.d.ts +0 -0
- package/es/src/ap-grid/style/index.js +1 -0
- package/es/src/ap-grid/utils/col.d.ts +20 -0
- package/es/src/ap-grid/utils/col.mjs +106 -0
- package/es/src/ap-grid/utils/renderer.d.ts +3 -0
- package/es/src/ap-grid/utils/renderer.mjs +21 -0
- package/es/src/ap-grid/utils/table.d.ts +13 -0
- package/es/src/ap-grid/utils/table.mjs +64 -0
- package/es/src/ap-table/ap-table.vue.d.ts +2 -0
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +38 -38
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +9 -9
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +21 -21
- package/es/src/ap-table/components/setting/utils.d.ts +15 -3
- package/es/src/ap-table/components/setting/utils.mjs +49 -38
- package/es/src/ap-table/context.d.ts +2 -1
- package/es/src/ap-table/context.mjs +8 -7
- package/es/src/ap-table/hooks/use-table-column-state.mjs +79 -70
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +8 -2
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +43 -40
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +12 -0
- package/es/src/ap-table/hooks/use-table-row-selection.mjs +41 -27
- package/es/src/ap-table/interface.d.ts +4 -0
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +2 -0
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +2 -0
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +2 -0
- package/es/src/business/ap-table-modal/index.d.ts +8 -0
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +4 -0
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +244 -241
- package/es/src/path-map.mjs +2 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +9 -0
- package/lib/src/ap-grid/constants.js +1 -0
- package/lib/src/ap-grid/hooks/use-inner-params.d.ts +10 -0
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -0
- package/lib/src/ap-grid/hooks/use-render-columns.d.ts +6 -0
- package/lib/src/ap-grid/hooks/use-render-columns.js +1 -0
- package/lib/src/ap-grid/index.d.ts +3 -0
- package/lib/src/ap-grid/index.js +1 -0
- package/lib/src/ap-grid/index.vue.d.ts +44 -0
- package/lib/src/ap-grid/index.vue.js +1 -0
- package/lib/src/ap-grid/index.vue2.js +1 -0
- package/lib/src/ap-grid/interface.d.ts +264 -0
- package/lib/src/ap-grid/interface.js +1 -0
- package/lib/src/ap-grid/style/css.cjs +1 -0
- package/lib/src/ap-grid/style/css.d.ts +0 -0
- package/lib/src/ap-grid/style/index.cjs +1 -0
- package/lib/src/ap-grid/style/index.d.ts +0 -0
- package/lib/src/ap-grid/utils/col.d.ts +20 -0
- package/lib/src/ap-grid/utils/col.js +1 -0
- package/lib/src/ap-grid/utils/renderer.d.ts +3 -0
- package/lib/src/ap-grid/utils/renderer.js +1 -0
- package/lib/src/ap-grid/utils/table.d.ts +13 -0
- package/lib/src/ap-grid/utils/table.js +1 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -0
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.d.ts +15 -3
- package/lib/src/ap-table/components/setting/utils.js +1 -1
- package/lib/src/ap-table/context.d.ts +2 -1
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +8 -2
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +12 -0
- package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -1
- package/lib/src/ap-table/interface.d.ts +4 -0
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +2 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +2 -0
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +2 -0
- package/lib/src/business/ap-table-modal/index.d.ts +8 -0
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +4 -0
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +3 -1
- package/theme/ap-grid/index.css +302 -0
- package/theme/ap-grid/index.less +65 -0
- package/theme/index.css +51 -0
- package/theme/index.less +1 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useTableSortedAndFiltered as
|
|
1
|
+
import { ref as te, reactive as I, unref as h, nextTick as re, onMounted as oe, watch as ne, computed as A, createVNode as C } from "vue";
|
|
2
|
+
import { useTableSortedAndFiltered as ae } from "./use-sorted-filtered.mjs";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { parseFieldValue as
|
|
5
|
-
import { isArray as N, isEqualWith as
|
|
6
|
-
import { useLocale as
|
|
7
|
-
import { useNamespace as
|
|
4
|
+
import { parseFieldValue as se, dataIndexToStr as ce, isEqualCustom as ie } from "../utils.mjs";
|
|
5
|
+
import { isArray as N, isEqualWith as le } from "lodash-unified";
|
|
6
|
+
import { useLocale as ue } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
8
|
const S = 1, L = 10;
|
|
9
|
-
function
|
|
9
|
+
function ge(g) {
|
|
10
10
|
const l = {};
|
|
11
11
|
return g && (g === !0 ? (l.current = S, l.pageSize = L) : (l.current = g.defaultCurrent || S, l.pageSize = g.defaultPageSize || L)), l;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Pe = ({
|
|
14
14
|
manual: g = !1,
|
|
15
15
|
request: l,
|
|
16
16
|
defaultParams: v = {},
|
|
@@ -20,6 +20,7 @@ const Te = ({
|
|
|
20
20
|
resetFieldsIgnores: V,
|
|
21
21
|
filterFields: U,
|
|
22
22
|
sortFields: B,
|
|
23
|
+
namespace: K = "ap-table",
|
|
23
24
|
pagination: p = {
|
|
24
25
|
defaultCurrent: S,
|
|
25
26
|
defaultPageSize: L,
|
|
@@ -28,15 +29,15 @@ const Te = ({
|
|
|
28
29
|
}
|
|
29
30
|
}) => {
|
|
30
31
|
let b = 0, s = {};
|
|
31
|
-
const
|
|
32
|
-
getColumnSFConfig:
|
|
33
|
-
setSF:
|
|
34
|
-
clearAll:
|
|
35
|
-
} =
|
|
32
|
+
const M = p ?? {}, $ = (e) => D ? D(e) : e, z = te(), c = I(ge(p)), {
|
|
33
|
+
getColumnSFConfig: G,
|
|
34
|
+
setSF: J,
|
|
35
|
+
clearAll: Q
|
|
36
|
+
} = ae(), {
|
|
36
37
|
t: T
|
|
37
|
-
} =
|
|
38
|
+
} = ue(), {
|
|
38
39
|
b: P
|
|
39
|
-
} =
|
|
40
|
+
} = fe(K), o = I({
|
|
40
41
|
total: y.length,
|
|
41
42
|
records: y,
|
|
42
43
|
loading: !1
|
|
@@ -45,7 +46,7 @@ const Te = ({
|
|
|
45
46
|
return ((t = (e = z.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
|
|
46
47
|
}, O = async (e) => {
|
|
47
48
|
var n;
|
|
48
|
-
const t =
|
|
49
|
+
const t = $(e), r = Date.now();
|
|
49
50
|
b = r, o.loading = !0;
|
|
50
51
|
try {
|
|
51
52
|
const a = await l({
|
|
@@ -63,22 +64,22 @@ const Te = ({
|
|
|
63
64
|
return Object.entries(e).forEach(([r, n]) => {
|
|
64
65
|
if (t[r] = n, R && n) {
|
|
65
66
|
const a = R[r];
|
|
66
|
-
a && (t[r] =
|
|
67
|
+
a && (t[r] = se(a, n));
|
|
67
68
|
}
|
|
68
69
|
}), t;
|
|
69
|
-
},
|
|
70
|
+
}, W = async (e) => {
|
|
70
71
|
var n, a, u, f, d;
|
|
71
72
|
const t = F(), r = {};
|
|
72
73
|
Object.entries(t).forEach(([m, x]) => {
|
|
73
74
|
V && V.indexOf(m) > -1 && (r[m] = x);
|
|
74
|
-
}), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r),
|
|
75
|
+
}), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r), re(() => {
|
|
75
76
|
e == null || e();
|
|
76
77
|
});
|
|
77
78
|
}, w = (e) => {
|
|
78
79
|
s = e;
|
|
79
80
|
const t = _(e);
|
|
80
81
|
O(t);
|
|
81
|
-
},
|
|
82
|
+
}, Z = (e) => {
|
|
82
83
|
w({
|
|
83
84
|
...s,
|
|
84
85
|
...e
|
|
@@ -92,11 +93,11 @@ const Te = ({
|
|
|
92
93
|
current: p ? S : void 0,
|
|
93
94
|
pageSize: p ? s.pageSize || c.pageSize : void 0
|
|
94
95
|
});
|
|
95
|
-
},
|
|
96
|
-
|
|
96
|
+
}, H = () => {
|
|
97
|
+
Q(), s.sort = {}, s.filter = {}, W(E);
|
|
97
98
|
}, j = () => {
|
|
98
99
|
w(s);
|
|
99
|
-
},
|
|
100
|
+
}, X = (e) => {
|
|
100
101
|
if (!p)
|
|
101
102
|
j();
|
|
102
103
|
else {
|
|
@@ -104,17 +105,17 @@ const Te = ({
|
|
|
104
105
|
current: t,
|
|
105
106
|
pageSize: r
|
|
106
107
|
} = c, n = o.total - e, a = Math.ceil(n / r), u = t > a ? a : t;
|
|
107
|
-
|
|
108
|
+
Z({
|
|
108
109
|
current: u > 0 ? u : 1
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
112
|
}, q = (e, t, r) => {
|
|
112
113
|
var m, x;
|
|
113
114
|
const n = F();
|
|
114
|
-
c.current = e.current, c.pageSize = e.pageSize,
|
|
115
|
+
c.current = e.current, c.pageSize = e.pageSize, J(t, r);
|
|
115
116
|
const a = N(r) ? [...r] : [r], u = {};
|
|
116
117
|
for (const i of a)
|
|
117
|
-
(m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[
|
|
118
|
+
(m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[ce(i.columnKey || i.field)] = i.order);
|
|
118
119
|
const f = {};
|
|
119
120
|
for (const i of Object.keys(t))
|
|
120
121
|
(x = h(U)) != null && x.includes(i) && t[i] && (f[i] = t[i]);
|
|
@@ -125,9 +126,9 @@ const Te = ({
|
|
|
125
126
|
current: e.current,
|
|
126
127
|
pageSize: e.pageSize
|
|
127
128
|
};
|
|
128
|
-
|
|
129
|
+
le(s, d, ie) || w(d);
|
|
129
130
|
};
|
|
130
|
-
|
|
131
|
+
oe(() => {
|
|
131
132
|
const e = F(), {
|
|
132
133
|
current: t,
|
|
133
134
|
pageSize: r
|
|
@@ -142,12 +143,12 @@ const Te = ({
|
|
|
142
143
|
const n = _(s);
|
|
143
144
|
O(n);
|
|
144
145
|
}
|
|
145
|
-
}),
|
|
146
|
+
}), ne(() => h(v), () => {
|
|
146
147
|
E();
|
|
147
148
|
}, {
|
|
148
149
|
deep: !0
|
|
149
150
|
});
|
|
150
|
-
const
|
|
151
|
+
const Y = A(() => {
|
|
151
152
|
if (o.total === 0)
|
|
152
153
|
return "-";
|
|
153
154
|
const {
|
|
@@ -156,14 +157,14 @@ const Te = ({
|
|
|
156
157
|
} = c;
|
|
157
158
|
return `${e}/${Math.ceil(o.total / t)}`;
|
|
158
159
|
});
|
|
159
|
-
function
|
|
160
|
+
function k(e) {
|
|
160
161
|
N(e) && (o.records = e, o.total = e.length);
|
|
161
162
|
}
|
|
162
|
-
const
|
|
163
|
+
const ee = A(() => {
|
|
163
164
|
const {
|
|
164
165
|
showLessItems: e,
|
|
165
166
|
showTotal: t
|
|
166
|
-
} =
|
|
167
|
+
} = M;
|
|
167
168
|
return {
|
|
168
169
|
loading: o.loading,
|
|
169
170
|
pagination: {
|
|
@@ -182,7 +183,7 @@ const Te = ({
|
|
|
182
183
|
class: P("pagination--total-right")
|
|
183
184
|
}, [T("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
|
|
184
185
|
class: P("pagination-count-text")
|
|
185
|
-
}, [h(
|
|
186
|
+
}, [h(Y)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
186
187
|
},
|
|
187
188
|
onChange: q,
|
|
188
189
|
dataSource: o.records
|
|
@@ -191,19 +192,21 @@ const Te = ({
|
|
|
191
192
|
return {
|
|
192
193
|
formRef: z,
|
|
193
194
|
submit: E,
|
|
194
|
-
reset:
|
|
195
|
+
reset: H,
|
|
195
196
|
refresh: j,
|
|
196
|
-
refreshByDelete:
|
|
197
|
+
refreshByDelete: X,
|
|
197
198
|
data: o,
|
|
198
199
|
current: c.current,
|
|
199
200
|
pageSize: c.pageSize,
|
|
200
201
|
handleTableChange: q,
|
|
201
|
-
tableProps:
|
|
202
|
+
tableProps: ee,
|
|
202
203
|
dataSource: A(() => o.records),
|
|
203
|
-
setDataSource:
|
|
204
|
-
getColumnSFConfig:
|
|
204
|
+
setDataSource: k,
|
|
205
|
+
getColumnSFConfig: G
|
|
205
206
|
};
|
|
206
207
|
};
|
|
207
208
|
export {
|
|
208
|
-
|
|
209
|
+
S as DEFAULT_CURRENT,
|
|
210
|
+
L as DEFAULT_PAGE_SIZE,
|
|
211
|
+
Pe as useTablePaging
|
|
209
212
|
};
|
|
@@ -44,6 +44,18 @@ export interface RowSelectionReturnType<RecordType = any> {
|
|
|
44
44
|
* @returns
|
|
45
45
|
*/
|
|
46
46
|
toggleSelect: (item: RecordType) => void;
|
|
47
|
+
/**
|
|
48
|
+
* 多项选中
|
|
49
|
+
* @param items
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
selectMulti: (items: RecordType[]) => void;
|
|
53
|
+
/**
|
|
54
|
+
* 多项反选
|
|
55
|
+
* @param items
|
|
56
|
+
* @returns
|
|
57
|
+
*/
|
|
58
|
+
unSelectMulti: (items: RecordType[]) => void;
|
|
47
59
|
}
|
|
48
60
|
type RowSelectionParams<T> = Omit<ApTableRowSelection<T>, 'mode'> & {
|
|
49
61
|
/**
|
|
@@ -1,62 +1,76 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { isFunction as
|
|
3
|
-
const
|
|
4
|
-
const n =
|
|
5
|
-
function
|
|
1
|
+
import { ref as y, computed as s, unref as c } from "vue";
|
|
2
|
+
import { isFunction as K } from "lodash-unified";
|
|
3
|
+
const m = (a) => {
|
|
4
|
+
const n = y([]);
|
|
5
|
+
function f(e, t) {
|
|
6
6
|
n.value = t;
|
|
7
7
|
}
|
|
8
|
-
const l = (e) =>
|
|
8
|
+
const l = (e) => K(a.rowKey) ? a.rowKey(e) : e[a.rowKey], o = s(() => {
|
|
9
9
|
const e = /* @__PURE__ */ new Map();
|
|
10
10
|
return c(n).forEach((t) => {
|
|
11
11
|
e.set(l(t), t);
|
|
12
12
|
}), e;
|
|
13
13
|
});
|
|
14
|
-
function
|
|
15
|
-
return c(
|
|
14
|
+
function r(e) {
|
|
15
|
+
return c(o).has(l(e));
|
|
16
16
|
}
|
|
17
17
|
function d(e) {
|
|
18
|
-
const t = c(
|
|
18
|
+
const t = c(o);
|
|
19
19
|
t.set(l(e), e), n.value = [...t.values()];
|
|
20
20
|
}
|
|
21
|
+
function i(e) {
|
|
22
|
+
const t = c(o);
|
|
23
|
+
for (const u of e)
|
|
24
|
+
t.set(l(u), u);
|
|
25
|
+
n.value = [...t.values()];
|
|
26
|
+
}
|
|
21
27
|
function S(e) {
|
|
22
|
-
const t = c(
|
|
28
|
+
const t = c(o);
|
|
23
29
|
t.delete(l(e)), n.value = [...t.values()];
|
|
24
30
|
}
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
|
|
31
|
+
function v(e) {
|
|
32
|
+
const t = c(o);
|
|
33
|
+
for (const u of e)
|
|
34
|
+
t.delete(l(u));
|
|
35
|
+
n.value = [...t.values()];
|
|
36
|
+
}
|
|
37
|
+
function M() {
|
|
38
|
+
const e = c(o);
|
|
39
|
+
c(a.dataSource).forEach((t) => {
|
|
28
40
|
e.set(l(t), t);
|
|
29
41
|
}), n.value = [...e.values()];
|
|
30
42
|
}
|
|
31
|
-
function
|
|
32
|
-
const t = c(
|
|
43
|
+
function w(e) {
|
|
44
|
+
const t = c(o), u = l(e);
|
|
33
45
|
t.has(u) ? t.delete(u) : t.set(u, e), n.value = [...t.values()];
|
|
34
46
|
}
|
|
35
|
-
function
|
|
36
|
-
const e = c(
|
|
37
|
-
c(
|
|
47
|
+
function x() {
|
|
48
|
+
const e = c(o);
|
|
49
|
+
c(a.dataSource).forEach((t) => {
|
|
38
50
|
e.delete(l(t));
|
|
39
51
|
}), n.value = [...e.values()];
|
|
40
52
|
}
|
|
41
|
-
function
|
|
53
|
+
function h() {
|
|
42
54
|
n.value = [];
|
|
43
55
|
}
|
|
44
56
|
return {
|
|
45
57
|
select: d,
|
|
46
58
|
unSelect: S,
|
|
47
|
-
isSelected:
|
|
48
|
-
selectAll:
|
|
49
|
-
unSelectAll:
|
|
50
|
-
clearAll:
|
|
51
|
-
toggleSelect:
|
|
59
|
+
isSelected: r,
|
|
60
|
+
selectAll: M,
|
|
61
|
+
unSelectAll: x,
|
|
62
|
+
clearAll: h,
|
|
63
|
+
toggleSelect: w,
|
|
52
64
|
selectedRows: n,
|
|
65
|
+
selectMulti: i,
|
|
66
|
+
unSelectMulti: v,
|
|
53
67
|
rowSelection: s(() => ({
|
|
54
|
-
...
|
|
55
|
-
onChange:
|
|
68
|
+
...a,
|
|
69
|
+
onChange: f,
|
|
56
70
|
selectedRowKeys: c(n).map((e) => l(e))
|
|
57
71
|
}))
|
|
58
72
|
};
|
|
59
73
|
};
|
|
60
74
|
export {
|
|
61
|
-
|
|
75
|
+
m as default
|
|
62
76
|
};
|
|
@@ -1891,7 +1891,7 @@ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassN
|
|
|
1891
1891
|
}) => any, tooltipColor?: string): number | boolean | void | VNodeArrayChildren | VNode< RendererNode, RendererElement, {
|
|
1892
1892
|
[key: string]: any;
|
|
1893
1893
|
}> | ((props: ColumnTitleProps<any>) => VNodeArrayChildren | VueNode) | null;
|
|
1894
|
-
export declare function recursionApColumns<ReturnType = any>
|
|
1894
|
+
export declare function recursionApColumns<ReturnType = any, ColumnsType extends Array<any> = (ColumnType | ColumnGroupType<any>)[]>(columns: ColumnsType, handler: (column: ColumnsType[0]) => ReturnType): ReturnType[];
|
|
1895
1895
|
export declare function isEqualCustom(value: any, other: any): boolean | undefined;
|
|
1896
1896
|
export declare function falseToUndefined(obj: any): any;
|
|
1897
1897
|
export {};
|
|
@@ -23,6 +23,8 @@ export declare function useCreateTableModal(props: UseCreateTableModalProps): {
|
|
|
23
23
|
isSelected: (item: any) => boolean;
|
|
24
24
|
clearAll: () => void;
|
|
25
25
|
toggleSelect: (item: any) => void;
|
|
26
|
+
selectMulti: (items: any[]) => void;
|
|
27
|
+
unSelectMulti: (items: any[]) => void;
|
|
26
28
|
} | undefined;
|
|
27
29
|
getShownColumns: () => TableColumnsType<any>;
|
|
28
30
|
scrollBar: {
|
|
@@ -21,6 +21,8 @@ export declare function useTableModal<TableRowType = Record<string, any>>(props:
|
|
|
21
21
|
isSelected: (item: any) => boolean;
|
|
22
22
|
clearAll: () => void;
|
|
23
23
|
toggleSelect: (item: any) => void;
|
|
24
|
+
selectMulti: (items: any[]) => void;
|
|
25
|
+
unSelectMulti: (items: any[]) => void;
|
|
24
26
|
} | undefined;
|
|
25
27
|
getShownColumns: () => TableColumnsType<any>;
|
|
26
28
|
scrollBar: {
|
|
@@ -20,6 +20,8 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
|
|
|
20
20
|
isSelected: (item: any) => boolean;
|
|
21
21
|
clearAll: () => void;
|
|
22
22
|
toggleSelect: (item: any) => void;
|
|
23
|
+
selectMulti: (items: any[]) => void;
|
|
24
|
+
unSelectMulti: (items: any[]) => void;
|
|
23
25
|
} | undefined;
|
|
24
26
|
getShownColumns: () => TableColumnsType<any>;
|
|
25
27
|
scrollBar: {
|
|
@@ -29,6 +29,8 @@ declare const ApTableModal: {
|
|
|
29
29
|
isSelected: (item: any) => boolean;
|
|
30
30
|
clearAll: () => void;
|
|
31
31
|
toggleSelect: (item: any) => void;
|
|
32
|
+
selectMulti: (items: any[]) => void;
|
|
33
|
+
unSelectMulti: (items: any[]) => void;
|
|
32
34
|
} | undefined;
|
|
33
35
|
getShownColumns: () => TableColumnsType<any>;
|
|
34
36
|
scrollBar: {
|
|
@@ -75,6 +77,8 @@ declare const ApTableModal: {
|
|
|
75
77
|
unSelectAll: () => void;
|
|
76
78
|
clearAll: () => void;
|
|
77
79
|
toggleSelect: (item: any) => void;
|
|
80
|
+
selectMulti: (items: any[]) => void;
|
|
81
|
+
unSelectMulti: (items: any[]) => void;
|
|
78
82
|
selectedRows: ComputedRef<any[]>;
|
|
79
83
|
};
|
|
80
84
|
scrollBar: {
|
|
@@ -113,6 +117,8 @@ declare const ApTableModal: {
|
|
|
113
117
|
isSelected: (item: any) => boolean;
|
|
114
118
|
clearAll: () => void;
|
|
115
119
|
toggleSelect: (item: any) => void;
|
|
120
|
+
selectMulti: (items: any[]) => void;
|
|
121
|
+
unSelectMulti: (items: any[]) => void;
|
|
116
122
|
} | undefined;
|
|
117
123
|
getShownColumns: () => TableColumnsType<any>;
|
|
118
124
|
scrollBar: {
|
|
@@ -165,6 +171,8 @@ declare const ApTableModal: {
|
|
|
165
171
|
isSelected: (item: any) => boolean;
|
|
166
172
|
clearAll: () => void;
|
|
167
173
|
toggleSelect: (item: any) => void;
|
|
174
|
+
selectMulti: (items: any[]) => void;
|
|
175
|
+
unSelectMulti: (items: any[]) => void;
|
|
168
176
|
} | undefined;
|
|
169
177
|
getShownColumns: () => TableColumnsType<any>;
|
|
170
178
|
scrollBar: {
|
|
@@ -22,6 +22,8 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
22
22
|
isSelected: (item: any) => boolean;
|
|
23
23
|
clearAll: () => void;
|
|
24
24
|
toggleSelect: (item: any) => void;
|
|
25
|
+
selectMulti: (items: any[]) => void;
|
|
26
|
+
unSelectMulti: (items: any[]) => void;
|
|
25
27
|
} | undefined;
|
|
26
28
|
getShownColumns: () => TableColumnsType<any>;
|
|
27
29
|
scrollBar: {
|
|
@@ -70,6 +72,8 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
70
72
|
unSelectAll: () => void;
|
|
71
73
|
clearAll: () => void;
|
|
72
74
|
toggleSelect: (item: any) => void;
|
|
75
|
+
selectMulti: (items: any[]) => void;
|
|
76
|
+
unSelectMulti: (items: any[]) => void;
|
|
73
77
|
selectedRows: ComputedRef<any[]>;
|
|
74
78
|
};
|
|
75
79
|
scrollBar: {
|
|
@@ -47,6 +47,8 @@ export declare function usePageListApTable(props?: UsePageListApTable): [ApTable
|
|
|
47
47
|
isSelected: (item: any) => boolean;
|
|
48
48
|
clearAll: () => void;
|
|
49
49
|
toggleSelect: (item: any) => void;
|
|
50
|
+
selectMulti: (items: any[]) => void;
|
|
51
|
+
unSelectMulti: (items: any[]) => void;
|
|
50
52
|
} | undefined;
|
|
51
53
|
getShownColumns: () => TableColumnsType<any>;
|
|
52
54
|
scrollBar: {
|
package/es/src/index.d.ts
CHANGED