@aplus-frontend/ui 0.5.0-beta.0 → 0.5.0-beta.2
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/hooks/use-watch.d.ts +4 -1
- package/es/src/ap-form/hooks/use-watch.mjs +31 -29
- package/es/src/ap-form/index.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.mjs +14 -15
- package/es/src/ap-grid/index.vue.d.ts +44 -0
- package/es/src/ap-grid/index.vue.mjs +261 -279
- package/es/src/ap-grid/interface.d.ts +2 -18
- package/es/src/ap-grid/utils/table.mjs +12 -12
- package/es/src/ap-modal/enums/modalMessage.d.ts +6 -0
- package/es/src/ap-modal/enums/modalMessage.mjs +4 -0
- package/es/src/ap-modal/index.d.ts +2 -1
- package/es/src/ap-modal/index.mjs +2 -0
- package/es/src/ap-modal/interface.d.ts +126 -1
- package/es/src/ap-modal/utils/createModalStream.d.ts +2 -0
- package/es/src/ap-modal/utils/createModalStream.mjs +99 -0
- package/es/src/ap-modal/utils/index.d.ts +1 -0
- package/es/src/ap-modal/utils/index.mjs +4 -2
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -7
- package/es/src/ap-table/utils.d.ts +1 -4
- package/es/src/ap-table/utils.mjs +43 -41
- package/es/src/business/ap-attachment/ApAttachment.mjs +13 -13
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +13 -13
- package/lib/src/ap-form/hooks/use-watch.d.ts +4 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +44 -0
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +2 -18
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-modal/enums/modalMessage.d.ts +6 -0
- package/lib/src/ap-modal/enums/modalMessage.js +1 -0
- package/lib/src/ap-modal/index.d.ts +2 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +126 -1
- package/lib/src/ap-modal/utils/createModalStream.d.ts +2 -0
- package/lib/src/ap-modal/utils/createModalStream.js +1 -0
- package/lib/src/ap-modal/utils/index.d.ts +1 -0
- package/lib/src/ap-modal/utils/index.js +1 -1
- package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1 -4
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/package.json +4 -4
- package/theme/ap-grid/index.css +31 -0
- package/theme/ap-grid/index.less +41 -0
- package/theme/index.css +31 -0
|
@@ -1,101 +1,69 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ve, getCurrentInstance as Se, useSlots as we, ref as b, computed as n, unref as a, watchEffect as be, watch as H, createElementBlock as R, openBlock as s, normalizeClass as f, createCommentVNode as h, createElementVNode as x, normalizeStyle as q, createVNode as Re, mergeProps as m, createSlots as U, withCtx as C, Fragment as M, renderList as E, createBlock as c, resolveDynamicComponent as N, renderSlot as z, normalizeProps as xe, guardReactiveProps as ke } from "vue";
|
|
2
2
|
import { VxeTable as Fe, VxeColumn as G } from "vxe-table";
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import { isUndefined as
|
|
7
|
-
import { ApForm as
|
|
3
|
+
import Be from "vxe-pc-ui";
|
|
4
|
+
import "vxe-table/lib/style.css";
|
|
5
|
+
import "vxe-pc-ui/lib/style.css";
|
|
6
|
+
import { isUndefined as k, omit as Ie } from "lodash-unified";
|
|
7
|
+
import { ApForm as Pe } from "../ap-form/index.mjs";
|
|
8
8
|
import "../config-provider/index.mjs";
|
|
9
|
-
import { noRenderAsFormItemValueList as
|
|
10
|
-
import { getColumnOrder as X, updateFormProps as
|
|
9
|
+
import { noRenderAsFormItemValueList as Ee } from "../ap-table/constants.mjs";
|
|
10
|
+
import { getColumnOrder as X, updateFormProps as Ne, getFieldProps as ze, getSearchFormItemRenderNode as _e, recursionApColumns as J } from "../ap-table/utils.mjs";
|
|
11
11
|
import { useTablePaging as Te } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
12
12
|
import { Pagination as Ve } from "@aplus-frontend/antdv";
|
|
13
|
-
import { useInnerParams as
|
|
14
|
-
import { toVxeProps as
|
|
15
|
-
import
|
|
16
|
-
import { useProvideApTable as
|
|
13
|
+
import { useInnerParams as Ae } from "./hooks/use-inner-params.mjs";
|
|
14
|
+
import { toVxeProps as Oe, getRowExpandProps as Le, getRowSelectionProps as De } from "./utils/table.mjs";
|
|
15
|
+
import Ke from "../ap-table/hooks/use-table-row-selection.mjs";
|
|
16
|
+
import { useProvideApTable as $e } from "../ap-table/context.mjs";
|
|
17
17
|
import { sizeReverseMap as je, sizeMap as We } from "./constants.mjs";
|
|
18
|
-
import { useRenderColumns as
|
|
19
|
-
import { useToken as
|
|
18
|
+
import { useRenderColumns as He } from "./hooks/use-render-columns.mjs";
|
|
19
|
+
import { useToken as qe } from "@aplus-frontend/antdv/es/theme/internal";
|
|
20
|
+
import "../scroll-bar/index.mjs";
|
|
20
21
|
import { useNamespace as Ue } from "../config-provider/hooks/use-namespace.mjs";
|
|
21
|
-
import { useGlobalConfig as
|
|
22
|
-
|
|
22
|
+
import { useGlobalConfig as Me } from "../config-provider/hooks/use-global-config.mjs";
|
|
23
|
+
import Ge from "../scroll-bar/index.vue.mjs";
|
|
24
|
+
const va = /* @__PURE__ */ ve({
|
|
23
25
|
name: "ApGrid",
|
|
24
26
|
__name: "index",
|
|
25
27
|
props: {
|
|
26
28
|
dropdownPrefixCls: {},
|
|
27
|
-
loading: {
|
|
28
|
-
|
|
29
|
-
default: void 0
|
|
30
|
-
},
|
|
31
|
-
bordered: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !1
|
|
34
|
-
},
|
|
29
|
+
loading: { type: [Boolean, Object], default: void 0 },
|
|
30
|
+
bordered: { type: Boolean, default: !1 },
|
|
35
31
|
locale: {},
|
|
36
32
|
onChange: {},
|
|
37
33
|
onResizeColumn: {},
|
|
38
34
|
getPopupContainer: {},
|
|
39
35
|
scroll: {},
|
|
40
|
-
sortDirections: {
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
showSorterTooltip: {
|
|
44
|
-
type: [Boolean, Object],
|
|
45
|
-
default: !1
|
|
46
|
-
},
|
|
36
|
+
sortDirections: { default: () => ["ascend", "descend"] },
|
|
37
|
+
showSorterTooltip: { type: [Boolean, Object], default: !1 },
|
|
47
38
|
prefixCls: {},
|
|
48
39
|
tableLayout: {},
|
|
49
40
|
title: {},
|
|
50
41
|
id: {},
|
|
51
|
-
showHeader: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: !0
|
|
54
|
-
},
|
|
42
|
+
showHeader: { type: Boolean, default: !0 },
|
|
55
43
|
components: {},
|
|
56
44
|
customRow: {},
|
|
57
45
|
customHeaderRow: {},
|
|
58
46
|
direction: {},
|
|
59
|
-
expandFixed: {
|
|
60
|
-
type: [String, Boolean],
|
|
61
|
-
default: !1
|
|
62
|
-
},
|
|
47
|
+
expandFixed: { type: [String, Boolean], default: !1 },
|
|
63
48
|
expandColumnWidth: {},
|
|
64
49
|
expandedRowKeys: {},
|
|
65
50
|
defaultExpandedRowKeys: {},
|
|
66
51
|
expandedRowRender: {},
|
|
67
|
-
expandRowByClick: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: !1
|
|
70
|
-
},
|
|
52
|
+
expandRowByClick: { type: Boolean, default: !1 },
|
|
71
53
|
expandIcon: {},
|
|
72
54
|
onExpand: {},
|
|
73
55
|
onExpandedRowsChange: {},
|
|
74
|
-
defaultExpandAllRows: {
|
|
75
|
-
|
|
76
|
-
default: !1
|
|
77
|
-
},
|
|
78
|
-
indentSize: {
|
|
79
|
-
default: 15
|
|
80
|
-
},
|
|
56
|
+
defaultExpandAllRows: { type: Boolean, default: !1 },
|
|
57
|
+
indentSize: { default: 15 },
|
|
81
58
|
expandIconColumnIndex: {},
|
|
82
|
-
showExpandColumn: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: !0
|
|
85
|
-
},
|
|
59
|
+
showExpandColumn: { type: Boolean, default: !0 },
|
|
86
60
|
expandedRowClassName: {},
|
|
87
|
-
childrenColumnName: {
|
|
88
|
-
default: "children"
|
|
89
|
-
},
|
|
61
|
+
childrenColumnName: { default: "children" },
|
|
90
62
|
rowExpandable: {},
|
|
91
|
-
sticky: {
|
|
92
|
-
type: [Boolean, Object]
|
|
93
|
-
},
|
|
63
|
+
sticky: { type: [Boolean, Object], default: !1 },
|
|
94
64
|
transformCellText: {},
|
|
95
65
|
rowClassName: {},
|
|
96
|
-
stripe: {
|
|
97
|
-
type: Boolean
|
|
98
|
-
},
|
|
66
|
+
stripe: { type: Boolean },
|
|
99
67
|
headerRowClassName: {},
|
|
100
68
|
footerRowClassName: {},
|
|
101
69
|
cellClassName: {},
|
|
@@ -114,286 +82,300 @@ const ga = /* @__PURE__ */ ye({
|
|
|
114
82
|
mergeFooterItems: {},
|
|
115
83
|
cellConfig: {},
|
|
116
84
|
columns: {},
|
|
117
|
-
rowSelection: {
|
|
118
|
-
|
|
119
|
-
},
|
|
120
|
-
card: {
|
|
121
|
-
type: Boolean,
|
|
122
|
-
default: !1
|
|
123
|
-
},
|
|
85
|
+
rowSelection: { type: Boolean },
|
|
86
|
+
card: { type: Boolean, default: !1 },
|
|
124
87
|
params: {},
|
|
125
88
|
request: {},
|
|
126
89
|
defaultData: {},
|
|
127
90
|
dataSource: {},
|
|
128
91
|
onLoadingChange: {},
|
|
129
|
-
searchForm: {
|
|
130
|
-
type: [Boolean, Object],
|
|
131
|
-
default: void 0
|
|
132
|
-
},
|
|
92
|
+
searchForm: { type: [Boolean, Object], default: void 0 },
|
|
133
93
|
beforeSearchSubmit: {},
|
|
134
|
-
pagination: {
|
|
135
|
-
type: [Boolean, Object],
|
|
136
|
-
default: void 0
|
|
137
|
-
},
|
|
94
|
+
pagination: { type: [Boolean, Object], default: void 0 },
|
|
138
95
|
searchFormWrapperStyle: {},
|
|
139
96
|
tableWrapperStyle: {},
|
|
140
|
-
manual: {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
default: "medium"
|
|
146
|
-
},
|
|
147
|
-
adaptive: {
|
|
148
|
-
type: Boolean,
|
|
149
|
-
default: !1
|
|
150
|
-
},
|
|
151
|
-
columnResizable: {
|
|
152
|
-
type: [Boolean, Object],
|
|
153
|
-
default: !1
|
|
154
|
-
},
|
|
155
|
-
rowKey: {
|
|
156
|
-
default: "key"
|
|
157
|
-
},
|
|
97
|
+
manual: { type: Boolean, default: !1 },
|
|
98
|
+
size: { default: "medium" },
|
|
99
|
+
adaptive: { type: Boolean, default: !1 },
|
|
100
|
+
columnResizable: { type: [Boolean, Object], default: !1 },
|
|
101
|
+
rowKey: { default: "key" },
|
|
158
102
|
footer: {},
|
|
159
|
-
virtual: {
|
|
160
|
-
type: [Boolean, Object],
|
|
161
|
-
default: void 0
|
|
162
|
-
},
|
|
103
|
+
virtual: { type: [Boolean, Object], default: void 0 },
|
|
163
104
|
expandable: {}
|
|
164
105
|
},
|
|
165
|
-
setup(Q, {
|
|
166
|
-
expose: Y
|
|
167
|
-
}) {
|
|
106
|
+
setup(Q, { expose: Y }) {
|
|
168
107
|
var W;
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
e: F,
|
|
173
|
-
b: g,
|
|
174
|
-
be: Z
|
|
175
|
-
} = Ue("ap-grid"), ee = qe("valueTypeMap"), d = w([]), T = w([]), h = w(), k = w(o.size), [, ae] = He(), {
|
|
176
|
-
renderConfig: oe,
|
|
177
|
-
updateSignal: te
|
|
178
|
-
} = $e(d);
|
|
108
|
+
const y = (W = Se()) == null ? void 0 : W.appContext.app;
|
|
109
|
+
y && !y.__VXE_PC_UI_INSTALLED__ && (y.use(Be), y.__VXE_PC_UI_INSTALLED__ = !0);
|
|
110
|
+
const _ = we(), o = Q, { e: F, b: i, be: Z } = Ue("ap-grid"), ee = Me("valueTypeMap"), d = b([]), T = b([]), p = b(), B = b(o.size), [, ae] = qe(), { renderConfig: oe, updateSignal: re } = He(d);
|
|
179
111
|
let V = 0;
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
112
|
+
const te = n(() => {
|
|
113
|
+
if (p.value)
|
|
114
|
+
return p.value.$el.querySelector(
|
|
115
|
+
".vxe-table--header-inner-wrapper"
|
|
116
|
+
);
|
|
117
|
+
}), A = n(() => {
|
|
118
|
+
var e, l, t;
|
|
119
|
+
return V++, ((t = (l = (e = o.columns) == null ? void 0 : e.filter(
|
|
120
|
+
(r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Ee.includes(r.valueType)
|
|
121
|
+
)) == null ? void 0 : l.sort((r, u) => {
|
|
122
|
+
let g = X(r.order);
|
|
123
|
+
return X(u.order) - g;
|
|
124
|
+
})) == null ? void 0 : t.map((r) => {
|
|
125
|
+
const u = Ne(
|
|
126
|
+
r,
|
|
127
|
+
ze(r.fieldProps, {})
|
|
128
|
+
), g = {
|
|
129
|
+
...r,
|
|
188
130
|
fieldProps: {
|
|
189
|
-
label:
|
|
190
|
-
name:
|
|
191
|
-
...
|
|
131
|
+
label: r.title,
|
|
132
|
+
name: r.dataIndex,
|
|
133
|
+
...u || {},
|
|
192
134
|
_signal: V
|
|
193
135
|
},
|
|
194
136
|
renderNode: void 0
|
|
195
137
|
};
|
|
196
|
-
return
|
|
138
|
+
return g.renderNode = _e(
|
|
139
|
+
g,
|
|
140
|
+
a(ee)
|
|
141
|
+
), g;
|
|
197
142
|
})) || [];
|
|
198
|
-
}),
|
|
143
|
+
}), le = n(() => [
|
|
144
|
+
i(),
|
|
145
|
+
o.card ? null : i("wrapper"),
|
|
146
|
+
o.adaptive ? i("adaptive") : null,
|
|
147
|
+
o.sticky ? i("sticky") : null
|
|
148
|
+
].filter(Boolean)), O = n(() => J(a(d), (e) => {
|
|
199
149
|
if (e.sorter === !0)
|
|
200
150
|
return e.key || e.dataIndex;
|
|
201
|
-
}).filter(Boolean)),
|
|
151
|
+
}).filter(Boolean)), L = n(() => J(a(d), (e) => {
|
|
202
152
|
if (e.filters && !e.onFilter)
|
|
203
153
|
return e.key || e.dataIndex;
|
|
204
154
|
}).filter(Boolean)), {
|
|
205
|
-
formRef:
|
|
206
|
-
submit:
|
|
207
|
-
reset:
|
|
155
|
+
formRef: I,
|
|
156
|
+
submit: D,
|
|
157
|
+
reset: K,
|
|
208
158
|
refresh: ne,
|
|
209
|
-
data:
|
|
210
|
-
tableProps:
|
|
211
|
-
setDataSource:
|
|
212
|
-
handleTableChange:
|
|
159
|
+
data: v,
|
|
160
|
+
tableProps: se,
|
|
161
|
+
setDataSource: de,
|
|
162
|
+
handleTableChange: ie
|
|
213
163
|
} = Te({
|
|
214
164
|
async request(e) {
|
|
215
|
-
var
|
|
216
|
-
if (!
|
|
217
|
-
const
|
|
165
|
+
var t;
|
|
166
|
+
if (!w.value.preserveSelectedRowKeys && k(o.dataSource) && P(), !k(o.dataSource)) {
|
|
167
|
+
const r = e.pageSize * (e.current - 1);
|
|
218
168
|
return {
|
|
219
|
-
data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(
|
|
169
|
+
data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(r, r + e.pageSize)) || [],
|
|
220
170
|
total: o.dataSource.length || 0
|
|
221
171
|
};
|
|
222
172
|
}
|
|
223
|
-
const
|
|
173
|
+
const l = await ((t = o.request) == null ? void 0 : t.call(o, e));
|
|
224
174
|
return {
|
|
225
|
-
data: (
|
|
226
|
-
total: (
|
|
175
|
+
data: (l == null ? void 0 : l.data) || [],
|
|
176
|
+
total: (l == null ? void 0 : l.total) || 0
|
|
227
177
|
};
|
|
228
178
|
},
|
|
229
179
|
namespace: "ap-grid",
|
|
230
|
-
filterFields:
|
|
231
|
-
sortFields:
|
|
180
|
+
filterFields: L,
|
|
181
|
+
sortFields: O,
|
|
232
182
|
defaultParams: o.params,
|
|
233
183
|
defaultData: o.defaultData,
|
|
234
184
|
manual: o.manual,
|
|
235
185
|
formatParams: o.beforeSearchSubmit,
|
|
236
186
|
pagination: o.pagination
|
|
237
|
-
}), {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
Ke({
|
|
243
|
-
columns: l(() => d.value),
|
|
244
|
-
columnsBackup: l(() => T.value),
|
|
245
|
-
size: l(() => We[k.value]),
|
|
187
|
+
}), { sortChangeEvent: ue, filterChangeEvent: ce, paginationChangeEvent: pe } = Ae(ie);
|
|
188
|
+
$e({
|
|
189
|
+
columns: n(() => d.value),
|
|
190
|
+
columnsBackup: n(() => T.value),
|
|
191
|
+
size: n(() => We[B.value]),
|
|
246
192
|
updateColumns(e) {
|
|
247
193
|
d.value = e;
|
|
248
194
|
},
|
|
249
195
|
updateSize(e) {
|
|
250
|
-
|
|
196
|
+
B.value = je[e];
|
|
251
197
|
},
|
|
252
|
-
renderConfig:
|
|
198
|
+
renderConfig: n(() => ({
|
|
253
199
|
className: Z("table-header", "title"),
|
|
254
200
|
color: ae.value.colorPrimary
|
|
255
201
|
}))
|
|
256
202
|
});
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
203
|
+
const $ = n(
|
|
204
|
+
() => d.value.some(
|
|
205
|
+
(e) => e.fixed === "left" || e.fixed === !0
|
|
206
|
+
) ? "left" : void 0
|
|
207
|
+
), fe = n(
|
|
208
|
+
() => k(o.dataSource) ? v.records : o.dataSource
|
|
209
|
+
), { selectedRows: S, rowSelection: w, ...me } = Ke({
|
|
262
210
|
...o.rowSelection === !0 ? {} : o.rowSelection,
|
|
263
|
-
dataSource:
|
|
211
|
+
dataSource: fe,
|
|
264
212
|
rowKey: o.rowKey
|
|
265
213
|
}), j = () => {
|
|
266
|
-
const e =
|
|
267
|
-
e && (
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
214
|
+
const e = p.value;
|
|
215
|
+
e && (S.value = [
|
|
216
|
+
...e.getCheckboxReserveRecords(),
|
|
217
|
+
...e.getCheckboxRecords()
|
|
218
|
+
]);
|
|
219
|
+
}, ge = () => {
|
|
220
|
+
const e = p.value;
|
|
221
|
+
e && (S.value = [e.getRadioRecord()]);
|
|
271
222
|
};
|
|
272
|
-
function
|
|
223
|
+
function he() {
|
|
273
224
|
var e;
|
|
274
|
-
return ((e = o.columns) == null ? void 0 : e.filter((
|
|
225
|
+
return ((e = o.columns) == null ? void 0 : e.filter((l) => !l.hideInTable)) || [];
|
|
275
226
|
}
|
|
276
|
-
function
|
|
277
|
-
var
|
|
278
|
-
(
|
|
227
|
+
function Ce(e) {
|
|
228
|
+
var l, t, r;
|
|
229
|
+
(r = (t = (l = I.value) == null ? void 0 : l.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
|
|
279
230
|
}
|
|
280
|
-
function
|
|
281
|
-
var
|
|
282
|
-
const
|
|
283
|
-
return (
|
|
231
|
+
function ye(e = !1) {
|
|
232
|
+
var t, r, u;
|
|
233
|
+
const l = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
234
|
+
return (u = (r = (t = I.value) == null ? void 0 : t.apForm) == null ? void 0 : r[l]) == null ? void 0 : u.call(r, !0);
|
|
284
235
|
}
|
|
285
|
-
function
|
|
286
|
-
|
|
287
|
-
const e =
|
|
288
|
-
e && (
|
|
236
|
+
function P() {
|
|
237
|
+
me.clearAll();
|
|
238
|
+
const e = p.value;
|
|
239
|
+
e && (w.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
|
|
289
240
|
}
|
|
290
|
-
return
|
|
291
|
-
const e =
|
|
241
|
+
return be(() => {
|
|
242
|
+
const e = he();
|
|
292
243
|
d.value = e, T.value = e;
|
|
293
|
-
}),
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
244
|
+
}), H(
|
|
245
|
+
() => o.dataSource,
|
|
246
|
+
(e) => {
|
|
247
|
+
de(e);
|
|
248
|
+
},
|
|
249
|
+
{ immediate: !0 }
|
|
250
|
+
), H(
|
|
251
|
+
() => a(v).loading,
|
|
252
|
+
(e) => {
|
|
253
|
+
var l;
|
|
254
|
+
(l = o.onLoadingChange) == null || l.call(o, e);
|
|
255
|
+
}
|
|
256
|
+
), Y({
|
|
257
|
+
submit: D,
|
|
258
|
+
reset: K,
|
|
303
259
|
refresh: ne,
|
|
304
|
-
setSearchFormValues:
|
|
305
|
-
getSearchFormValues:
|
|
260
|
+
setSearchFormValues: Ce,
|
|
261
|
+
getSearchFormValues: ye,
|
|
306
262
|
getShowColumns: () => a(d),
|
|
307
263
|
rowSelection: {
|
|
308
|
-
selectedRows:
|
|
309
|
-
clearAll:
|
|
264
|
+
selectedRows: n(() => S.value),
|
|
265
|
+
clearAll: P
|
|
310
266
|
}
|
|
311
|
-
}), (e,
|
|
312
|
-
class:
|
|
313
|
-
}, [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
267
|
+
}), (e, l) => (s(), R("div", {
|
|
268
|
+
class: f(le.value)
|
|
269
|
+
}, [
|
|
270
|
+
a(k)(e.dataSource) && e.searchForm !== !1 && A.value.length > 0 ? (s(), R("div", {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: f(e.card ? a(F)("search-wrapper") : null),
|
|
273
|
+
style: q(e.searchFormWrapperStyle)
|
|
274
|
+
}, [
|
|
275
|
+
Re(a(Pe).SearchForm, m(e.searchForm || {}, {
|
|
276
|
+
ref_key: "formRef",
|
|
277
|
+
ref: I,
|
|
278
|
+
"custom-reset": "",
|
|
279
|
+
"submit-loading": !1,
|
|
280
|
+
onSubmit: a(D),
|
|
281
|
+
onReset: a(K)
|
|
282
|
+
}), U({
|
|
283
|
+
default: C(() => [
|
|
284
|
+
(s(!0), R(M, null, E(A.value, (t) => (s(), c(N(t.renderNode.Comp), m({
|
|
285
|
+
key: t.dataIndex,
|
|
286
|
+
item: t,
|
|
287
|
+
ref_for: !0
|
|
288
|
+
}, t.fieldProps || {}, {
|
|
289
|
+
span: t.span,
|
|
290
|
+
"custom-render": t.renderNode.render
|
|
291
|
+
}), null, 16, ["item", "span", "custom-render"]))), 128))
|
|
292
|
+
]),
|
|
293
|
+
_: 2
|
|
294
|
+
}, [
|
|
295
|
+
_.searchFormExtra ? {
|
|
296
|
+
name: "extra",
|
|
297
|
+
fn: C(() => [
|
|
298
|
+
z(e.$slots, "searchFormExtra")
|
|
299
|
+
]),
|
|
300
|
+
key: "0"
|
|
301
|
+
} : void 0
|
|
302
|
+
]), 1040, ["onSubmit", "onReset"])
|
|
303
|
+
], 6)) : h("", !0),
|
|
304
|
+
x("div", {
|
|
305
|
+
class: f([a(F)("table-wrapper"), e.card ? a(F)("table-wrapper-card") : null]),
|
|
306
|
+
style: q(e.tableWrapperStyle)
|
|
307
|
+
}, [
|
|
308
|
+
x("div", {
|
|
309
|
+
class: f(a(i)("header-wrapper"))
|
|
310
|
+
}, [
|
|
311
|
+
z(e.$slots, "title", {
|
|
312
|
+
selectedRows: a(S),
|
|
313
|
+
selectedRowKeys: a(w).selectedRowKeys,
|
|
314
|
+
shownColumns: d.value,
|
|
315
|
+
clearAll: P
|
|
316
|
+
})
|
|
317
|
+
], 2),
|
|
318
|
+
x("div", {
|
|
319
|
+
class: f(a(i)("vxe-wrapper"))
|
|
320
|
+
}, [
|
|
321
|
+
(s(), c(a(Fe), m(a(Oe)(o), {
|
|
322
|
+
ref_key: "tableRef",
|
|
323
|
+
ref: p,
|
|
324
|
+
key: a(re),
|
|
325
|
+
data: a(v).records,
|
|
326
|
+
"sort-config": { remote: O.value.length > 0 },
|
|
327
|
+
"filter-config": { remote: L.value.length > 0 },
|
|
328
|
+
loading: a(v).loading,
|
|
329
|
+
"row-config": {
|
|
330
|
+
isHover: !0,
|
|
331
|
+
keyField: o.rowKey
|
|
332
|
+
},
|
|
333
|
+
size: B.value,
|
|
334
|
+
onSortChange: a(ue),
|
|
335
|
+
onFilterChange: a(ce),
|
|
336
|
+
onCheckboxChange: j,
|
|
337
|
+
onCheckboxAll: j,
|
|
338
|
+
onRadioChange: ge
|
|
339
|
+
}), U({
|
|
340
|
+
default: C(() => [
|
|
341
|
+
o.expandable ? (s(), c(a(G), m({ key: 0 }, a(Le)(e.expandable), { fixed: $.value }), {
|
|
342
|
+
content: C((t) => [
|
|
343
|
+
(s(), c(N(o.expandable.renderContent(t))))
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
}, 16, ["fixed"])) : h("", !0),
|
|
347
|
+
o.rowSelection ? (s(), c(a(G), m({ key: 1 }, a(De)(a(w)), { fixed: $.value }), null, 16, ["fixed"])) : h("", !0),
|
|
348
|
+
(s(!0), R(M, null, E(a(oe), (t) => (s(), c(N(t), {
|
|
349
|
+
key: t.props.colId
|
|
350
|
+
}))), 128))
|
|
351
|
+
]),
|
|
352
|
+
_: 2
|
|
353
|
+
}, [
|
|
354
|
+
E(a(Ie)(_, ["searchFormExtra"]), (t, r) => ({
|
|
355
|
+
name: r,
|
|
356
|
+
fn: C((u) => [
|
|
357
|
+
z(e.$slots, r, xe(ke(u || {})))
|
|
358
|
+
])
|
|
359
|
+
}))
|
|
360
|
+
]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "size", "onSortChange", "onFilterChange"]))
|
|
361
|
+
], 2),
|
|
362
|
+
x("div", {
|
|
363
|
+
class: f(a(i)("pagination-wrapper"))
|
|
364
|
+
}, [
|
|
365
|
+
e.sticky ? (s(), c(a(Ge), {
|
|
366
|
+
key: 0,
|
|
367
|
+
direction: "horizontal",
|
|
368
|
+
"scroll-container": te.value
|
|
369
|
+
}, null, 8, ["scroll-container"])) : h("", !0),
|
|
370
|
+
e.pagination !== !1 ? (s(), c(a(Ve), m({
|
|
371
|
+
key: 1,
|
|
372
|
+
class: a(i)("pagination")
|
|
373
|
+
}, a(se).pagination, { onChange: a(pe) }), null, 16, ["class", "onChange"])) : h("", !0)
|
|
374
|
+
], 2)
|
|
375
|
+
], 6)
|
|
376
|
+
], 2));
|
|
395
377
|
}
|
|
396
378
|
});
|
|
397
379
|
export {
|
|
398
|
-
|
|
380
|
+
va as default
|
|
399
381
|
};
|