@aplus-frontend/ui 0.5.0-beta.2 → 0.5.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/src/ap-action/item-popconfirm/index.vue.d.ts +13 -0
- package/es/src/ap-grid/constants.d.ts +4 -4
- package/es/src/ap-grid/constants.mjs +8 -8
- package/es/src/ap-grid/index.vue.mjs +169 -154
- package/es/src/ap-table/ap-table.vue2.mjs +148 -144
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -0
- package/es/src/business/ap-ladder/index.d.ts +39 -0
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +36 -38
- package/es/src/business/ap-table-modal/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider.mjs +23 -23
- package/es/src/utils/config-provider-preset.d.ts +41 -0
- package/es/src/utils/config-provider-preset.mjs +24 -15
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +13 -0
- package/lib/src/ap-grid/constants.d.ts +4 -4
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -0
- package/lib/src/business/ap-ladder/index.d.ts +39 -0
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +41 -0
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/package.json +3 -3
- package/theme/ap-grid/index.css +2 -1
- package/theme/ap-grid/index.less +2 -1
- package/theme/index.css +2 -1
|
@@ -316,6 +316,19 @@ declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {},
|
|
|
316
316
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
317
317
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
318
318
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
319
|
+
mask: {
|
|
320
|
+
type: BooleanConstructor;
|
|
321
|
+
default: boolean;
|
|
322
|
+
};
|
|
323
|
+
maskStyle: {
|
|
324
|
+
type: PropType<CSSProperties>;
|
|
325
|
+
default: CSSProperties;
|
|
326
|
+
};
|
|
327
|
+
maskTransitionName: StringConstructor;
|
|
328
|
+
maskClosable: {
|
|
329
|
+
type: BooleanConstructor;
|
|
330
|
+
default: boolean;
|
|
331
|
+
};
|
|
319
332
|
}>>;
|
|
320
333
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
321
334
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const sizeMap: {
|
|
2
|
-
readonly mini:
|
|
2
|
+
readonly mini: "small";
|
|
3
3
|
readonly small: "small";
|
|
4
|
-
readonly medium: "
|
|
4
|
+
readonly medium: "small";
|
|
5
5
|
};
|
|
6
6
|
export declare const sizeReverseMap: {
|
|
7
|
-
readonly small: "
|
|
8
|
-
readonly middle:
|
|
7
|
+
readonly small: "medium";
|
|
8
|
+
readonly middle: undefined;
|
|
9
9
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
mini:
|
|
1
|
+
const l = {
|
|
2
|
+
mini: "small",
|
|
3
3
|
small: "small",
|
|
4
|
-
medium: "
|
|
5
|
-
},
|
|
6
|
-
small: "
|
|
7
|
-
middle:
|
|
4
|
+
medium: "small"
|
|
5
|
+
}, m = {
|
|
6
|
+
small: "medium",
|
|
7
|
+
middle: void 0
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
l as sizeMap,
|
|
11
|
+
m as sizeReverseMap
|
|
12
12
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VxeTable as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as Se, getCurrentInstance as we, useSlots as xe, ref as R, computed as n, unref as o, watchEffect as Re, watch as M, createElementBlock as k, openBlock as s, normalizeClass as f, createCommentVNode as y, createElementVNode as F, normalizeStyle as q, createVNode as U, mergeProps as g, createSlots as G, withCtx as h, Fragment as X, renderList as N, createBlock as u, resolveDynamicComponent as _, renderSlot as z, normalizeProps as ke, guardReactiveProps as Fe } from "vue";
|
|
2
|
+
import { VxeTable as Be, VxeColumn as J } from "vxe-table";
|
|
3
|
+
import Ie from "vxe-pc-ui";
|
|
4
4
|
import "vxe-table/lib/style.css";
|
|
5
5
|
import "vxe-pc-ui/lib/style.css";
|
|
6
|
-
import { isUndefined as
|
|
6
|
+
import { isUndefined as B, omit as Ee } from "lodash-unified";
|
|
7
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
|
|
9
|
+
import { noRenderAsFormItemValueList as Ne } from "../ap-table/constants.mjs";
|
|
10
|
+
import { getColumnOrder as Q, updateFormProps as _e, getFieldProps as ze, getSearchFormItemRenderNode as Ae, recursionApColumns as Y } from "../ap-table/utils.mjs";
|
|
11
11
|
import { useTablePaging as Te } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
12
|
-
import { Pagination as Ve } from "@aplus-frontend/antdv";
|
|
13
|
-
import { useInnerParams as
|
|
14
|
-
import { toVxeProps as Oe, getRowExpandProps as
|
|
15
|
-
import
|
|
16
|
-
import { useProvideApTable as
|
|
17
|
-
import { sizeReverseMap as
|
|
18
|
-
import { useRenderColumns as
|
|
12
|
+
import { Empty as Z, Pagination as Ve } from "@aplus-frontend/antdv";
|
|
13
|
+
import { useInnerParams as Le } from "./hooks/use-inner-params.mjs";
|
|
14
|
+
import { toVxeProps as Oe, getRowExpandProps as De, getRowSelectionProps as Ke } from "./utils/table.mjs";
|
|
15
|
+
import $e from "../ap-table/hooks/use-table-row-selection.mjs";
|
|
16
|
+
import { useProvideApTable as je } from "../ap-table/context.mjs";
|
|
17
|
+
import { sizeReverseMap as He, sizeMap as We } from "./constants.mjs";
|
|
18
|
+
import { useRenderColumns as Me } from "./hooks/use-render-columns.mjs";
|
|
19
19
|
import { useToken as qe } from "@aplus-frontend/antdv/es/theme/internal";
|
|
20
20
|
import "../scroll-bar/index.mjs";
|
|
21
21
|
import { useNamespace as Ue } from "../config-provider/hooks/use-namespace.mjs";
|
|
22
|
-
import { useGlobalConfig as
|
|
23
|
-
import
|
|
24
|
-
const
|
|
22
|
+
import { useGlobalConfig as Ge } from "../config-provider/hooks/use-global-config.mjs";
|
|
23
|
+
import Xe from "../scroll-bar/index.vue.mjs";
|
|
24
|
+
const So = /* @__PURE__ */ Se({
|
|
25
25
|
name: "ApGrid",
|
|
26
26
|
__name: "index",
|
|
27
27
|
props: {
|
|
@@ -95,7 +95,7 @@ const va = /* @__PURE__ */ ve({
|
|
|
95
95
|
searchFormWrapperStyle: {},
|
|
96
96
|
tableWrapperStyle: {},
|
|
97
97
|
manual: { type: Boolean, default: !1 },
|
|
98
|
-
size: { default:
|
|
98
|
+
size: { default: void 0 },
|
|
99
99
|
adaptive: { type: Boolean, default: !1 },
|
|
100
100
|
columnResizable: { type: [Boolean, Object], default: !1 },
|
|
101
101
|
rowKey: { default: "key" },
|
|
@@ -103,185 +103,185 @@ const va = /* @__PURE__ */ ve({
|
|
|
103
103
|
virtual: { type: [Boolean, Object], default: void 0 },
|
|
104
104
|
expandable: {}
|
|
105
105
|
},
|
|
106
|
-
setup(
|
|
106
|
+
setup(ee, { expose: oe }) {
|
|
107
107
|
var W;
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
const
|
|
108
|
+
const C = (W = we()) == null ? void 0 : W.appContext.app;
|
|
109
|
+
C && !C.__VXE_PC_UI_INSTALLED__ && (C.use(Ie), C.__VXE_PC_UI_INSTALLED__ = !0);
|
|
110
|
+
const A = xe(), a = ee, { e: I, b: i, be: ae } = Ue("ap-grid"), re = Ge("valueTypeMap"), d = R([]), T = R([]), p = R(), b = R(a.size), [, m] = qe(), { renderConfig: te, updateSignal: le } = Me(d);
|
|
111
111
|
let V = 0;
|
|
112
|
-
const
|
|
112
|
+
const ne = n(() => {
|
|
113
113
|
if (p.value)
|
|
114
114
|
return p.value.$el.querySelector(
|
|
115
115
|
".vxe-table--header-inner-wrapper"
|
|
116
116
|
);
|
|
117
|
-
}),
|
|
117
|
+
}), L = n(() => {
|
|
118
118
|
var e, l, t;
|
|
119
|
-
return V++, ((t = (l = (e =
|
|
120
|
-
(r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !
|
|
121
|
-
)) == null ? void 0 : l.sort((r,
|
|
122
|
-
let
|
|
123
|
-
return
|
|
119
|
+
return V++, ((t = (l = (e = a.columns) == null ? void 0 : e.filter(
|
|
120
|
+
(r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Ne.includes(r.valueType)
|
|
121
|
+
)) == null ? void 0 : l.sort((r, c) => {
|
|
122
|
+
let v = Q(r.order);
|
|
123
|
+
return Q(c.order) - v;
|
|
124
124
|
})) == null ? void 0 : t.map((r) => {
|
|
125
|
-
const
|
|
125
|
+
const c = _e(
|
|
126
126
|
r,
|
|
127
127
|
ze(r.fieldProps, {})
|
|
128
|
-
),
|
|
128
|
+
), v = {
|
|
129
129
|
...r,
|
|
130
130
|
fieldProps: {
|
|
131
131
|
label: r.title,
|
|
132
132
|
name: r.dataIndex,
|
|
133
|
-
...
|
|
133
|
+
...c || {},
|
|
134
134
|
_signal: V
|
|
135
135
|
},
|
|
136
136
|
renderNode: void 0
|
|
137
137
|
};
|
|
138
|
-
return
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
),
|
|
138
|
+
return v.renderNode = Ae(
|
|
139
|
+
v,
|
|
140
|
+
o(re)
|
|
141
|
+
), v;
|
|
142
142
|
})) || [];
|
|
143
|
-
}),
|
|
143
|
+
}), se = n(() => [
|
|
144
144
|
i(),
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
].filter(Boolean)), O = n(() =>
|
|
145
|
+
a.card ? null : i("wrapper"),
|
|
146
|
+
a.adaptive ? i("adaptive") : null,
|
|
147
|
+
a.sticky ? i("sticky") : null
|
|
148
|
+
].filter(Boolean)), O = n(() => Y(o(d), (e) => {
|
|
149
149
|
if (e.sorter === !0)
|
|
150
150
|
return e.key || e.dataIndex;
|
|
151
|
-
}).filter(Boolean)),
|
|
151
|
+
}).filter(Boolean)), D = n(() => Y(o(d), (e) => {
|
|
152
152
|
if (e.filters && !e.onFilter)
|
|
153
153
|
return e.key || e.dataIndex;
|
|
154
154
|
}).filter(Boolean)), {
|
|
155
|
-
formRef:
|
|
156
|
-
submit:
|
|
157
|
-
reset:
|
|
158
|
-
refresh:
|
|
159
|
-
data:
|
|
160
|
-
tableProps:
|
|
161
|
-
setDataSource:
|
|
162
|
-
handleTableChange:
|
|
155
|
+
formRef: E,
|
|
156
|
+
submit: K,
|
|
157
|
+
reset: $,
|
|
158
|
+
refresh: de,
|
|
159
|
+
data: S,
|
|
160
|
+
tableProps: ie,
|
|
161
|
+
setDataSource: ce,
|
|
162
|
+
handleTableChange: ue
|
|
163
163
|
} = Te({
|
|
164
164
|
async request(e) {
|
|
165
165
|
var t;
|
|
166
|
-
if (!
|
|
166
|
+
if (!x.value.preserveSelectedRowKeys && B(a.dataSource) && P(), !B(a.dataSource)) {
|
|
167
167
|
const r = e.pageSize * (e.current - 1);
|
|
168
168
|
return {
|
|
169
|
-
data: (
|
|
170
|
-
total:
|
|
169
|
+
data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(r, r + e.pageSize)) || [],
|
|
170
|
+
total: a.dataSource.length || 0
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
const l = await ((t =
|
|
173
|
+
const l = await ((t = a.request) == null ? void 0 : t.call(a, e));
|
|
174
174
|
return {
|
|
175
175
|
data: (l == null ? void 0 : l.data) || [],
|
|
176
176
|
total: (l == null ? void 0 : l.total) || 0
|
|
177
177
|
};
|
|
178
178
|
},
|
|
179
179
|
namespace: "ap-grid",
|
|
180
|
-
filterFields:
|
|
180
|
+
filterFields: D,
|
|
181
181
|
sortFields: O,
|
|
182
|
-
defaultParams:
|
|
183
|
-
defaultData:
|
|
184
|
-
manual:
|
|
185
|
-
formatParams:
|
|
186
|
-
pagination:
|
|
187
|
-
}), { sortChangeEvent:
|
|
188
|
-
|
|
182
|
+
defaultParams: a.params,
|
|
183
|
+
defaultData: a.defaultData,
|
|
184
|
+
manual: a.manual,
|
|
185
|
+
formatParams: a.beforeSearchSubmit,
|
|
186
|
+
pagination: a.pagination
|
|
187
|
+
}), { sortChangeEvent: pe, filterChangeEvent: me, paginationChangeEvent: fe } = Le(ue);
|
|
188
|
+
je({
|
|
189
189
|
columns: n(() => d.value),
|
|
190
190
|
columnsBackup: n(() => T.value),
|
|
191
|
-
size: n(() => We[
|
|
191
|
+
size: n(() => b.value ? We[b.value] : "middle"),
|
|
192
192
|
updateColumns(e) {
|
|
193
193
|
d.value = e;
|
|
194
194
|
},
|
|
195
195
|
updateSize(e) {
|
|
196
|
-
|
|
196
|
+
b.value = He[e];
|
|
197
197
|
},
|
|
198
198
|
renderConfig: n(() => ({
|
|
199
|
-
className:
|
|
200
|
-
color:
|
|
199
|
+
className: ae("table-header", "title"),
|
|
200
|
+
color: m.value.colorPrimary
|
|
201
201
|
}))
|
|
202
202
|
});
|
|
203
|
-
const
|
|
203
|
+
const j = n(
|
|
204
204
|
() => d.value.some(
|
|
205
205
|
(e) => e.fixed === "left" || e.fixed === !0
|
|
206
206
|
) ? "left" : void 0
|
|
207
|
-
),
|
|
208
|
-
() =>
|
|
209
|
-
), { selectedRows:
|
|
210
|
-
...
|
|
211
|
-
dataSource:
|
|
212
|
-
rowKey:
|
|
213
|
-
}),
|
|
207
|
+
), ge = n(
|
|
208
|
+
() => B(a.dataSource) ? S.records : a.dataSource
|
|
209
|
+
), { selectedRows: w, rowSelection: x, ...he } = $e({
|
|
210
|
+
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
211
|
+
dataSource: ge,
|
|
212
|
+
rowKey: a.rowKey
|
|
213
|
+
}), H = () => {
|
|
214
214
|
const e = p.value;
|
|
215
|
-
e && (
|
|
215
|
+
e && (w.value = [
|
|
216
216
|
...e.getCheckboxReserveRecords(),
|
|
217
217
|
...e.getCheckboxRecords()
|
|
218
218
|
]);
|
|
219
|
-
},
|
|
219
|
+
}, ve = () => {
|
|
220
220
|
const e = p.value;
|
|
221
|
-
e && (
|
|
221
|
+
e && (w.value = [e.getRadioRecord()]);
|
|
222
222
|
};
|
|
223
|
-
function
|
|
223
|
+
function ye() {
|
|
224
224
|
var e;
|
|
225
|
-
return ((e =
|
|
225
|
+
return ((e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInTable)) || [];
|
|
226
226
|
}
|
|
227
227
|
function Ce(e) {
|
|
228
228
|
var l, t, r;
|
|
229
|
-
(r = (t = (l =
|
|
229
|
+
(r = (t = (l = E.value) == null ? void 0 : l.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
var t, r,
|
|
231
|
+
function be(e = !1) {
|
|
232
|
+
var t, r, c;
|
|
233
233
|
const l = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
234
|
-
return (
|
|
234
|
+
return (c = (r = (t = E.value) == null ? void 0 : t.apForm) == null ? void 0 : r[l]) == null ? void 0 : c.call(r, !0);
|
|
235
235
|
}
|
|
236
236
|
function P() {
|
|
237
|
-
|
|
237
|
+
he.clearAll();
|
|
238
238
|
const e = p.value;
|
|
239
|
-
e && (
|
|
239
|
+
e && (x.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
|
|
240
240
|
}
|
|
241
|
-
return
|
|
242
|
-
const e =
|
|
241
|
+
return Re(() => {
|
|
242
|
+
const e = ye();
|
|
243
243
|
d.value = e, T.value = e;
|
|
244
|
-
}),
|
|
245
|
-
() =>
|
|
244
|
+
}), M(
|
|
245
|
+
() => a.dataSource,
|
|
246
246
|
(e) => {
|
|
247
|
-
|
|
247
|
+
ce(e);
|
|
248
248
|
},
|
|
249
249
|
{ immediate: !0 }
|
|
250
|
-
),
|
|
251
|
-
() =>
|
|
250
|
+
), M(
|
|
251
|
+
() => o(S).loading,
|
|
252
252
|
(e) => {
|
|
253
253
|
var l;
|
|
254
|
-
(l =
|
|
254
|
+
(l = a.onLoadingChange) == null || l.call(a, e);
|
|
255
255
|
}
|
|
256
|
-
),
|
|
257
|
-
submit:
|
|
258
|
-
reset:
|
|
259
|
-
refresh:
|
|
256
|
+
), oe({
|
|
257
|
+
submit: K,
|
|
258
|
+
reset: $,
|
|
259
|
+
refresh: de,
|
|
260
260
|
setSearchFormValues: Ce,
|
|
261
|
-
getSearchFormValues:
|
|
262
|
-
getShowColumns: () =>
|
|
261
|
+
getSearchFormValues: be,
|
|
262
|
+
getShowColumns: () => o(d),
|
|
263
263
|
rowSelection: {
|
|
264
|
-
selectedRows: n(() =>
|
|
264
|
+
selectedRows: n(() => w.value),
|
|
265
265
|
clearAll: P
|
|
266
266
|
}
|
|
267
|
-
}), (e, l) => (s(),
|
|
268
|
-
class: f(
|
|
267
|
+
}), (e, l) => (s(), k("div", {
|
|
268
|
+
class: f(se.value)
|
|
269
269
|
}, [
|
|
270
|
-
|
|
270
|
+
o(B)(e.dataSource) && e.searchForm !== !1 && L.value.length > 0 ? (s(), k("div", {
|
|
271
271
|
key: 0,
|
|
272
|
-
class: f(e.card ?
|
|
272
|
+
class: f(e.card ? o(I)("search-wrapper") : null),
|
|
273
273
|
style: q(e.searchFormWrapperStyle)
|
|
274
274
|
}, [
|
|
275
|
-
|
|
275
|
+
U(o(Pe).SearchForm, g(e.searchForm || {}, {
|
|
276
276
|
ref_key: "formRef",
|
|
277
|
-
ref:
|
|
277
|
+
ref: E,
|
|
278
278
|
"custom-reset": "",
|
|
279
279
|
"submit-loading": !1,
|
|
280
|
-
onSubmit:
|
|
281
|
-
onReset:
|
|
282
|
-
}),
|
|
283
|
-
default:
|
|
284
|
-
(s(!0),
|
|
280
|
+
onSubmit: o(K),
|
|
281
|
+
onReset: o($)
|
|
282
|
+
}), G({
|
|
283
|
+
default: h(() => [
|
|
284
|
+
(s(!0), k(X, null, N(L.value, (t) => (s(), u(_(t.renderNode.Comp), g({
|
|
285
285
|
key: t.dataIndex,
|
|
286
286
|
item: t,
|
|
287
287
|
ref_for: !0
|
|
@@ -292,90 +292,105 @@ const va = /* @__PURE__ */ ve({
|
|
|
292
292
|
]),
|
|
293
293
|
_: 2
|
|
294
294
|
}, [
|
|
295
|
-
|
|
295
|
+
A.searchFormExtra ? {
|
|
296
296
|
name: "extra",
|
|
297
|
-
fn:
|
|
297
|
+
fn: h(() => [
|
|
298
298
|
z(e.$slots, "searchFormExtra")
|
|
299
299
|
]),
|
|
300
300
|
key: "0"
|
|
301
301
|
} : void 0
|
|
302
302
|
]), 1040, ["onSubmit", "onReset"])
|
|
303
|
-
], 6)) :
|
|
304
|
-
|
|
305
|
-
class: f([
|
|
303
|
+
], 6)) : y("", !0),
|
|
304
|
+
F("div", {
|
|
305
|
+
class: f([o(I)("table-wrapper"), e.card ? o(I)("table-wrapper-card") : null]),
|
|
306
306
|
style: q(e.tableWrapperStyle)
|
|
307
307
|
}, [
|
|
308
|
-
|
|
309
|
-
class: f(
|
|
308
|
+
F("div", {
|
|
309
|
+
class: f(o(i)("header-wrapper"))
|
|
310
310
|
}, [
|
|
311
311
|
z(e.$slots, "title", {
|
|
312
|
-
selectedRows:
|
|
313
|
-
selectedRowKeys:
|
|
312
|
+
selectedRows: o(w),
|
|
313
|
+
selectedRowKeys: o(x).selectedRowKeys,
|
|
314
314
|
shownColumns: d.value,
|
|
315
315
|
clearAll: P
|
|
316
316
|
})
|
|
317
317
|
], 2),
|
|
318
|
-
|
|
319
|
-
class: f(
|
|
318
|
+
F("div", {
|
|
319
|
+
class: f(o(i)("vxe-wrapper"))
|
|
320
320
|
}, [
|
|
321
|
-
(s(),
|
|
321
|
+
(s(), u(o(Be), g(o(Oe)(a), {
|
|
322
322
|
ref_key: "tableRef",
|
|
323
323
|
ref: p,
|
|
324
|
-
key:
|
|
325
|
-
data:
|
|
324
|
+
key: o(le),
|
|
325
|
+
data: o(S).records,
|
|
326
326
|
"sort-config": { remote: O.value.length > 0 },
|
|
327
|
-
"filter-config": { remote:
|
|
328
|
-
loading:
|
|
327
|
+
"filter-config": { remote: D.value.length > 0 },
|
|
328
|
+
loading: o(S).loading,
|
|
329
329
|
"row-config": {
|
|
330
330
|
isHover: !0,
|
|
331
|
-
keyField:
|
|
331
|
+
keyField: a.rowKey
|
|
332
332
|
},
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
o
|
|
342
|
-
|
|
343
|
-
|
|
333
|
+
style: {
|
|
334
|
+
"--vxe-ui-table-row-checkbox-checked-background-color": o(m).controlItemBgActive,
|
|
335
|
+
"--vxe-ui-table-row-hover-checkbox-checked-background-color": o(m).controlItemBgActiveHover,
|
|
336
|
+
"--vxe-ui-font-primary-color": o(m).colorPrimary,
|
|
337
|
+
"--vxe-ui-table-header-background-color": "var(--ap-table-header-bg)",
|
|
338
|
+
"--vxe-ui-table-cell-padding-default": "12px",
|
|
339
|
+
"--vxe-ui-table-cell-padding-medium": "9px",
|
|
340
|
+
"--vxe-ui-table-row-radio-checked-background-color": o(m).controlItemBgActive,
|
|
341
|
+
"--vxe-ui-table-row-hover-radio-checked-background-color": o(m).controlItemBgActiveHover
|
|
342
|
+
},
|
|
343
|
+
size: b.value,
|
|
344
|
+
onSortChange: o(pe),
|
|
345
|
+
onFilterChange: o(me),
|
|
346
|
+
onCheckboxChange: H,
|
|
347
|
+
onCheckboxAll: H,
|
|
348
|
+
onRadioChange: ve
|
|
349
|
+
}), G({
|
|
350
|
+
empty: h(() => [
|
|
351
|
+
U(o(Z), {
|
|
352
|
+
image: o(Z).PRESENTED_IMAGE_SIMPLE
|
|
353
|
+
}, null, 8, ["image"])
|
|
354
|
+
]),
|
|
355
|
+
default: h(() => [
|
|
356
|
+
a.expandable ? (s(), u(o(J), g({ key: 0 }, o(De)(e.expandable), { fixed: j.value }), {
|
|
357
|
+
content: h((t) => [
|
|
358
|
+
(s(), u(_(a.expandable.renderContent(t))))
|
|
344
359
|
]),
|
|
345
360
|
_: 1
|
|
346
|
-
}, 16, ["fixed"])) :
|
|
347
|
-
|
|
348
|
-
(s(!0),
|
|
361
|
+
}, 16, ["fixed"])) : y("", !0),
|
|
362
|
+
a.rowSelection ? (s(), u(o(J), g({ key: 1 }, o(Ke)(o(x)), { fixed: j.value }), null, 16, ["fixed"])) : y("", !0),
|
|
363
|
+
(s(!0), k(X, null, N(o(te), (t) => (s(), u(_(t), {
|
|
349
364
|
key: t.props.colId
|
|
350
365
|
}))), 128))
|
|
351
366
|
]),
|
|
352
367
|
_: 2
|
|
353
368
|
}, [
|
|
354
|
-
|
|
369
|
+
N(o(Ee)(A, ["searchFormExtra"]), (t, r) => ({
|
|
355
370
|
name: r,
|
|
356
|
-
fn:
|
|
357
|
-
z(e.$slots, r,
|
|
371
|
+
fn: h((c) => [
|
|
372
|
+
z(e.$slots, r, ke(Fe(c || {})))
|
|
358
373
|
])
|
|
359
374
|
}))
|
|
360
|
-
]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "size", "onSortChange", "onFilterChange"]))
|
|
375
|
+
]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "style", "size", "onSortChange", "onFilterChange"]))
|
|
361
376
|
], 2),
|
|
362
|
-
|
|
363
|
-
class: f(
|
|
377
|
+
F("div", {
|
|
378
|
+
class: f(o(i)("pagination-wrapper"))
|
|
364
379
|
}, [
|
|
365
|
-
e.sticky ? (s(),
|
|
380
|
+
e.sticky ? (s(), u(o(Xe), {
|
|
366
381
|
key: 0,
|
|
367
382
|
direction: "horizontal",
|
|
368
|
-
"scroll-container":
|
|
369
|
-
}, null, 8, ["scroll-container"])) :
|
|
370
|
-
e.pagination !== !1 ? (s(),
|
|
383
|
+
"scroll-container": ne.value
|
|
384
|
+
}, null, 8, ["scroll-container"])) : y("", !0),
|
|
385
|
+
e.pagination !== !1 ? (s(), u(o(Ve), g({
|
|
371
386
|
key: 1,
|
|
372
|
-
class:
|
|
373
|
-
},
|
|
387
|
+
class: o(i)("pagination")
|
|
388
|
+
}, o(ie).pagination, { onChange: o(fe) }), null, 16, ["class", "onChange"])) : y("", !0)
|
|
374
389
|
], 2)
|
|
375
390
|
], 6)
|
|
376
391
|
], 2));
|
|
377
392
|
}
|
|
378
393
|
});
|
|
379
394
|
export {
|
|
380
|
-
|
|
395
|
+
So as default
|
|
381
396
|
};
|