@aplus-frontend/ui 0.6.0-beta.1 → 0.6.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-button/ap-button.vue.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-grid/index.vue.mjs +129 -121
- package/es/src/ap-table/ap-table.vue2.mjs +206 -199
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/es/src/ap-tag/ap-tag.vue.mjs +18 -12
- package/es/src/ap-tag/interface.d.ts +4 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -12
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +108 -99
- package/es/src/business/ap-export-group/index.d.ts +3 -0
- package/es/src/business/ap-export-group/interface.d.ts +7 -2
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +72 -69
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +49 -43
- package/es/src/business/ap-view/interface.d.ts +4 -0
- package/es/src/business/hooks/usePageListApGrid.mjs +2 -4
- package/es/src/config-provider/css-var.mjs +2 -2
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.mjs +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.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/ap-tag/ap-tag.vue.d.ts +1 -0
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +4 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +1 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +3 -0
- package/lib/src/business/ap-export-group/interface.d.ts +7 -2
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +4 -0
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/package.json +1 -1
- package/theme/antd-global-overwrite/admin/index.css +5 -8
- package/theme/antd-global-overwrite/admin/modal.css +2 -5
- package/theme/antd-global-overwrite/admin/modal.less +3 -3
- package/theme/antd-global-overwrite/admin/table.css +3 -3
- package/theme/antd-global-overwrite/admin/table.less +3 -3
- package/theme/antd-global-overwrite/aplus/index.css +5 -8
- package/theme/antd-global-overwrite/aplus/modal.css +2 -5
- package/theme/antd-global-overwrite/aplus/modal.less +3 -3
- package/theme/antd-global-overwrite/aplus/table.css +3 -3
- package/theme/antd-global-overwrite/aplus/table.less +3 -3
- package/theme/ap-appendix/ap-appendix.css +4 -2
- package/theme/ap-appendix/ap-appendix.less +4 -2
- package/theme/ap-attachment/ap-attachment.css +4 -4
- package/theme/ap-attachment/ap-attachment.less +4 -4
- package/theme/ap-batch-action/ap-batch-action.css +6 -3
- package/theme/ap-batch-action/ap-batch-action.less +6 -3
- package/theme/ap-descriptions/ap-descriptions.css +3 -5
- package/theme/ap-descriptions/ap-descriptions.less +3 -5
- package/theme/ap-download/ap-download.css +7 -10
- package/theme/ap-download/ap-download.less +8 -11
- package/theme/ap-expand-alert/ap-expand-alert.css +1 -1
- package/theme/ap-expand-alert/ap-expand-alert.less +3 -4
- package/theme/ap-grid/editable.less +3 -2
- package/theme/ap-grid/index.css +1 -1
- package/theme/ap-grid/index.less +6 -4
- package/theme/ap-ladder/ap-ladder.css +3 -3
- package/theme/ap-ladder/ap-ladder.less +3 -3
- package/theme/ap-select-layout/ap-select-layout.css +8 -8
- package/theme/ap-select-layout/ap-select-layout.less +8 -8
- package/theme/ap-status/ap-status.css +2 -3
- package/theme/ap-status/ap-status.less +2 -4
- package/theme/ap-summary/index.css +3 -3
- package/theme/ap-summary/index.less +3 -3
- package/theme/ap-table/ap-table-index.css +5 -5
- package/theme/ap-table/ap-table-index.less +5 -5
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +7 -9
- package/theme/ap-table/ap-table.less +2 -5
- package/theme/ap-table-modal/index.css +7 -9
- package/theme/ap-tag/ap-tag-group.less +2 -2
- package/theme/ap-tag/ap-tag.css +24 -15
- package/theme/ap-tag/ap-tag.less +37 -24
- package/theme/ap-title/ap-title.css +2 -2
- package/theme/ap-title/ap-title.less +2 -2
- package/theme/ap-upload/index.css +3 -3
- package/theme/ap-upload/multiple-file.css +1 -1
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +2 -2
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-view/ap-view.css +4 -0
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/index.css +82 -72
|
@@ -6,7 +6,7 @@ import { omit as F } from "lodash-unified";
|
|
|
6
6
|
import { transferOpacityColor as O, isAsynchronous as j } from "./utils/index.mjs";
|
|
7
7
|
import { useNamespace as G } from "../config-provider/hooks/use-namespace.mjs";
|
|
8
8
|
import { useGlobalConfig as R } from "../config-provider/hooks/use-global-config.mjs";
|
|
9
|
-
const q =
|
|
9
|
+
const q = 72, E = 300, Y = /* @__PURE__ */ W({
|
|
10
10
|
__name: "ap-button",
|
|
11
11
|
props: {
|
|
12
12
|
prefixCls: {},
|
|
@@ -235,7 +235,7 @@ const s = 24, Le = /* @__PURE__ */ te({
|
|
|
235
235
|
class: n(m)()
|
|
236
236
|
}, n(ce)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
237
237
|
default: F(() => [(d(), x(A(l.value.hideNode))), t(n(se), {
|
|
238
|
-
gutter:
|
|
238
|
+
gutter: 8
|
|
239
239
|
}, {
|
|
240
240
|
default: F(() => [(d(!0), le(w, null, re(l.value.nodes, (r) => (d(), x(n(R), {
|
|
241
241
|
key: r.key,
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VxeTable as
|
|
1
|
+
import { defineComponent as Fe, useSlots as Be, getCurrentInstance as Ie, ref as F, computed as n, unref as o, watch as B, createElementBlock as I, openBlock as s, normalizeStyle as V, normalizeClass as g, createCommentVNode as b, createElementVNode as E, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as L, createBlock as p, resolveDynamicComponent as D, renderSlot as O, normalizeProps as Ee, guardReactiveProps as Pe } from "vue";
|
|
2
|
+
import { VxeTable as Ne, VxeColumn as Y } from "vxe-table";
|
|
3
3
|
import "vxe-table/es/style.css";
|
|
4
4
|
import "vxe-pc-ui/es/style.css";
|
|
5
5
|
import { VxeUI as Z } from "vxe-pc-ui";
|
|
6
|
-
import { isUndefined as
|
|
7
|
-
import { ApForm as
|
|
6
|
+
import { isUndefined as w, omit as Te } from "lodash-unified";
|
|
7
|
+
import { ApForm as ze } from "../ap-form/index.mjs";
|
|
8
8
|
import "../config-provider/index.mjs";
|
|
9
|
-
import { noRenderAsFormItemValueList as
|
|
10
|
-
import { getColumnOrder as ee, updateFormProps as
|
|
11
|
-
import { useTablePaging as
|
|
12
|
-
import { Empty as ae, Pagination as
|
|
13
|
-
import { useInnerParams as
|
|
14
|
-
import { toVxeProps as
|
|
15
|
-
import
|
|
16
|
-
import { useProvideApTable as
|
|
17
|
-
import { sizeReverseMap as
|
|
18
|
-
import { useRenderColumns as
|
|
19
|
-
import { useToken as
|
|
9
|
+
import { noRenderAsFormItemValueList as _e } from "../ap-table/constants.mjs";
|
|
10
|
+
import { getColumnOrder as ee, updateFormProps as Ae, getFieldProps as Ve, getSearchFormItemRenderNode as Le, recursionApColumns as oe } from "../ap-table/utils.mjs";
|
|
11
|
+
import { useTablePaging as De } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
12
|
+
import { Empty as ae, Pagination as Oe } from "@aplus-frontend/antdv";
|
|
13
|
+
import { useInnerParams as $e } from "./hooks/use-inner-params.mjs";
|
|
14
|
+
import { toVxeProps as Ke, getRowExpandProps as We, getRowSelectionProps as je } from "./utils/table.mjs";
|
|
15
|
+
import He from "../ap-table/hooks/use-table-row-selection.mjs";
|
|
16
|
+
import { useProvideApTable as Me } from "../ap-table/context.mjs";
|
|
17
|
+
import { sizeReverseMap as qe, sizeMap as Ue, ROW_SELECTION_FIELD as Ge } from "./constants.mjs";
|
|
18
|
+
import { useRenderColumns as Xe } from "./hooks/use-render-columns.mjs";
|
|
19
|
+
import { useToken as Je } from "@aplus-frontend/antdv/es/theme/internal";
|
|
20
20
|
import "../scroll-bar/index.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
|
|
21
|
+
import { isDef as Qe } from "../utils/index.mjs";
|
|
22
|
+
import { getValidVNodeList as Ye } from "../utils/slot.mjs";
|
|
23
|
+
import { useNamespace as Ze } from "../config-provider/hooks/use-namespace.mjs";
|
|
24
|
+
import { useGlobalConfig as eo } from "../config-provider/hooks/use-global-config.mjs";
|
|
25
|
+
import { useLocale as oo } from "../config-provider/hooks/use-locale.mjs";
|
|
26
|
+
import ao from "../scroll-bar/index.vue.mjs";
|
|
27
|
+
const No = /* @__PURE__ */ Fe({
|
|
26
28
|
name: "ApGrid",
|
|
27
29
|
__name: "index",
|
|
28
30
|
props: {
|
|
@@ -100,7 +102,7 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
100
102
|
searchFormWrapperStyle: {},
|
|
101
103
|
tableWrapperStyle: {},
|
|
102
104
|
wrapperStyle: {},
|
|
103
|
-
manual: { type: Boolean, default:
|
|
105
|
+
manual: { type: Boolean, default: void 0 },
|
|
104
106
|
size: { default: "mini" },
|
|
105
107
|
adaptive: { type: Boolean, default: !1 },
|
|
106
108
|
columnResizable: { type: [Boolean, Object], default: !1 },
|
|
@@ -112,13 +114,13 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
112
114
|
},
|
|
113
115
|
setup(re, { expose: te }) {
|
|
114
116
|
var G;
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
const { e:
|
|
117
|
+
const C = Be(), a = re, x = (G = Ie()) == null ? void 0 : G.appContext.app;
|
|
118
|
+
x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(Z), x.__VXE_PC_UI_INSTALLED__ = !0);
|
|
119
|
+
const { e: P, b: c, be: le } = Ze("ap-grid"), ne = eo("valueTypeMap"), i = F([]), $ = F([]), m = F(), y = F(a.size), [, d] = Je(), { t: se } = oo();
|
|
118
120
|
Z.setConfig({
|
|
119
121
|
i18n: (e, r) => se(`ap.${e}`, r)
|
|
120
122
|
});
|
|
121
|
-
const { renderConfig: ie, updateSignal: de } =
|
|
123
|
+
const { renderConfig: ie, updateSignal: de } = Xe(i);
|
|
122
124
|
let K = 0;
|
|
123
125
|
const ce = n(() => {
|
|
124
126
|
if (m.value)
|
|
@@ -128,15 +130,15 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
128
130
|
}), W = n(() => {
|
|
129
131
|
var e, r, l;
|
|
130
132
|
return K++, ((l = (r = (e = a.columns) == null ? void 0 : e.filter(
|
|
131
|
-
(t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !
|
|
133
|
+
(t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !_e.includes(t.valueType)
|
|
132
134
|
)) == null ? void 0 : r.sort((t, u) => {
|
|
133
|
-
let
|
|
134
|
-
return ee(u.order) -
|
|
135
|
+
let S = ee(t.order);
|
|
136
|
+
return ee(u.order) - S;
|
|
135
137
|
})) == null ? void 0 : l.map((t) => {
|
|
136
|
-
const u =
|
|
138
|
+
const u = Ae(
|
|
137
139
|
t,
|
|
138
|
-
|
|
139
|
-
),
|
|
140
|
+
Ve(t.fieldProps, {})
|
|
141
|
+
), S = {
|
|
140
142
|
...t,
|
|
141
143
|
fieldProps: {
|
|
142
144
|
label: t.title,
|
|
@@ -146,12 +148,18 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
146
148
|
},
|
|
147
149
|
renderNode: void 0
|
|
148
150
|
};
|
|
149
|
-
return
|
|
150
|
-
|
|
151
|
+
return S.renderNode = Le(
|
|
152
|
+
S,
|
|
151
153
|
o(ne)
|
|
152
|
-
),
|
|
154
|
+
), S;
|
|
153
155
|
})) || [];
|
|
154
|
-
}), ue = n(() =>
|
|
156
|
+
}), ue = n(() => {
|
|
157
|
+
var r;
|
|
158
|
+
return Qe(a.manual) ? a.manual : Ye(((r = C.searchFormExtra) == null ? void 0 : r.call(C)) || []).some((l) => {
|
|
159
|
+
var t;
|
|
160
|
+
return ((t = l.type) == null ? void 0 : t.name) === "ApView";
|
|
161
|
+
});
|
|
162
|
+
}), pe = n(() => [
|
|
155
163
|
c(),
|
|
156
164
|
a.card ? null : c("wrapper"),
|
|
157
165
|
a.adaptive ? c("adaptive") : null,
|
|
@@ -163,18 +171,18 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
163
171
|
if (e.filters && !e.onFilter)
|
|
164
172
|
return e.key || e.dataIndex;
|
|
165
173
|
}).filter(Boolean)), {
|
|
166
|
-
formRef:
|
|
167
|
-
submit:
|
|
168
|
-
reset:
|
|
169
|
-
refresh:
|
|
174
|
+
formRef: N,
|
|
175
|
+
submit: T,
|
|
176
|
+
reset: z,
|
|
177
|
+
refresh: me,
|
|
170
178
|
data: f,
|
|
171
179
|
tableProps: M,
|
|
172
|
-
setDataSource:
|
|
173
|
-
handleTableChange:
|
|
174
|
-
} =
|
|
180
|
+
setDataSource: fe,
|
|
181
|
+
handleTableChange: ge
|
|
182
|
+
} = De({
|
|
175
183
|
async request(e) {
|
|
176
184
|
var l;
|
|
177
|
-
if (!
|
|
185
|
+
if (!k.value.preserveSelectedRowKeys && w(a.dataSource) && A(), !w(a.dataSource)) {
|
|
178
186
|
const t = e.pageSize * (e.current - 1);
|
|
179
187
|
return {
|
|
180
188
|
data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(t, t + e.pageSize)) || [],
|
|
@@ -192,20 +200,20 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
192
200
|
sortFields: j,
|
|
193
201
|
defaultParams: a.params,
|
|
194
202
|
defaultData: a.defaultData,
|
|
195
|
-
manual:
|
|
203
|
+
manual: o(ue),
|
|
196
204
|
formatParams: a.beforeSearchSubmit,
|
|
197
205
|
pagination: a.pagination
|
|
198
|
-
}), { sortChangeEvent:
|
|
199
|
-
|
|
206
|
+
}), { sortChangeEvent: he, filterChangeEvent: ve, paginationChangeEvent: Ce } = $e(ge);
|
|
207
|
+
Me({
|
|
200
208
|
columns: n(() => i.value),
|
|
201
209
|
columnsBackup: n(() => $.value),
|
|
202
|
-
size: n(() =>
|
|
210
|
+
size: n(() => y.value ? Ue[y.value] : "middle"),
|
|
203
211
|
updateColumns(e) {
|
|
204
212
|
var r;
|
|
205
213
|
i.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e);
|
|
206
214
|
},
|
|
207
215
|
updateSize(e) {
|
|
208
|
-
|
|
216
|
+
y.value = qe[e];
|
|
209
217
|
},
|
|
210
218
|
renderConfig: n(() => ({
|
|
211
219
|
className: le("table-header", "title"),
|
|
@@ -214,50 +222,50 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
214
222
|
dataSource: n(() => o(f).records),
|
|
215
223
|
getSearchFormValues: U,
|
|
216
224
|
setSearchFormValues: q,
|
|
217
|
-
submit:
|
|
218
|
-
reset:
|
|
225
|
+
submit: T,
|
|
226
|
+
reset: z
|
|
219
227
|
});
|
|
220
|
-
const
|
|
228
|
+
const ye = n(
|
|
221
229
|
() => i.value.some(
|
|
222
230
|
(e) => e.fixed === "left" || e.fixed === !0
|
|
223
231
|
) ? "left" : void 0
|
|
224
|
-
), ye = n(
|
|
225
|
-
() => b(a.loading) ? f.loading : a.loading
|
|
226
232
|
), Se = n(
|
|
227
|
-
() =>
|
|
228
|
-
),
|
|
233
|
+
() => w(a.loading) ? f.loading : a.loading
|
|
234
|
+
), be = n(
|
|
235
|
+
() => w(a.dataSource) ? f.records : a.dataSource
|
|
236
|
+
), { selectedRows: R, rowSelection: k, ...we } = He({
|
|
229
237
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
230
|
-
dataSource:
|
|
238
|
+
dataSource: be,
|
|
231
239
|
rowKey: a.rowKey
|
|
232
|
-
}),
|
|
240
|
+
}), _ = () => {
|
|
233
241
|
const e = m.value;
|
|
234
|
-
e && (
|
|
242
|
+
e && (R.value = [
|
|
235
243
|
...e.getCheckboxReserveRecords(),
|
|
236
244
|
...e.getCheckboxRecords()
|
|
237
245
|
]);
|
|
238
|
-
},
|
|
246
|
+
}, xe = () => {
|
|
239
247
|
const e = m.value;
|
|
240
|
-
e && (
|
|
248
|
+
e && (R.value = [e.getRadioRecord()]);
|
|
241
249
|
};
|
|
242
|
-
function
|
|
250
|
+
function Re() {
|
|
243
251
|
var e;
|
|
244
252
|
return ((e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInTable)) || [];
|
|
245
253
|
}
|
|
246
254
|
function q(e) {
|
|
247
255
|
var r, l, t;
|
|
248
|
-
(t = (l = (r =
|
|
256
|
+
(t = (l = (r = N.value) == null ? void 0 : r.apForm) == null ? void 0 : l.setFieldsValue) == null || t.call(l, e);
|
|
249
257
|
}
|
|
250
258
|
function U(e = !1) {
|
|
251
259
|
var l, t, u;
|
|
252
260
|
const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
253
|
-
return (u = (t = (l =
|
|
261
|
+
return (u = (t = (l = N.value) == null ? void 0 : l.apForm) == null ? void 0 : t[r]) == null ? void 0 : u.call(t, !0);
|
|
254
262
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
263
|
+
function A() {
|
|
264
|
+
we.clearAll();
|
|
257
265
|
const e = m.value;
|
|
258
|
-
e && (
|
|
266
|
+
e && (k.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
|
|
259
267
|
}
|
|
260
|
-
async function
|
|
268
|
+
async function ke(e, r) {
|
|
261
269
|
var t;
|
|
262
270
|
const l = f.records[e];
|
|
263
271
|
if (l)
|
|
@@ -267,7 +275,7 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
267
275
|
() => [a.columnResizable, a.columns],
|
|
268
276
|
() => {
|
|
269
277
|
var r;
|
|
270
|
-
const e =
|
|
278
|
+
const e = Re();
|
|
271
279
|
i.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
|
|
272
280
|
},
|
|
273
281
|
{
|
|
@@ -277,7 +285,7 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
277
285
|
), B(
|
|
278
286
|
() => a.dataSource,
|
|
279
287
|
(e) => {
|
|
280
|
-
|
|
288
|
+
fe(e);
|
|
281
289
|
},
|
|
282
290
|
{ immediate: !0, deep: !0 }
|
|
283
291
|
), B(
|
|
@@ -289,40 +297,40 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
289
297
|
), B(
|
|
290
298
|
() => a.size,
|
|
291
299
|
(e) => {
|
|
292
|
-
|
|
300
|
+
y.value = e;
|
|
293
301
|
}
|
|
294
302
|
), te({
|
|
295
|
-
submit:
|
|
296
|
-
reset:
|
|
297
|
-
refresh:
|
|
303
|
+
submit: T,
|
|
304
|
+
reset: z,
|
|
305
|
+
refresh: me,
|
|
298
306
|
setSearchFormValues: q,
|
|
299
307
|
getSearchFormValues: U,
|
|
300
308
|
getShowColumns: () => o(i),
|
|
301
309
|
rowSelection: {
|
|
302
|
-
selectedRows: n(() =>
|
|
303
|
-
clearAll:
|
|
310
|
+
selectedRows: n(() => R.value),
|
|
311
|
+
clearAll: A
|
|
304
312
|
},
|
|
305
|
-
scrollToRow:
|
|
313
|
+
scrollToRow: ke,
|
|
306
314
|
getDataSource: () => o(f.records)
|
|
307
|
-
}), (e, r) => (s(),
|
|
308
|
-
class: g(
|
|
309
|
-
style:
|
|
315
|
+
}), (e, r) => (s(), I("div", {
|
|
316
|
+
class: g(pe.value),
|
|
317
|
+
style: V(e.wrapperStyle)
|
|
310
318
|
}, [
|
|
311
|
-
o(
|
|
319
|
+
o(w)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (s(), I("div", {
|
|
312
320
|
key: 0,
|
|
313
|
-
class: g(e.card ? o(
|
|
314
|
-
style:
|
|
321
|
+
class: g(e.card ? o(P)("search-wrapper") : null),
|
|
322
|
+
style: V(e.searchFormWrapperStyle)
|
|
315
323
|
}, [
|
|
316
|
-
X(o(
|
|
324
|
+
X(o(ze).SearchForm, h(e.searchForm || {}, {
|
|
317
325
|
ref_key: "formRef",
|
|
318
|
-
ref:
|
|
326
|
+
ref: N,
|
|
319
327
|
"custom-reset": "",
|
|
320
328
|
"submit-loading": o(M).loading,
|
|
321
|
-
onSubmit: o(
|
|
322
|
-
onReset: o(
|
|
329
|
+
onSubmit: o(T),
|
|
330
|
+
onReset: o(z)
|
|
323
331
|
}), J({
|
|
324
332
|
default: v(() => [
|
|
325
|
-
(s(!0),
|
|
333
|
+
(s(!0), I(Q, null, L(W.value, (l) => (s(), p(D(l.renderNode.Comp), h({
|
|
326
334
|
key: l.dataIndex,
|
|
327
335
|
item: l,
|
|
328
336
|
ref_for: !0
|
|
@@ -333,40 +341,40 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
333
341
|
]),
|
|
334
342
|
_: 2
|
|
335
343
|
}, [
|
|
336
|
-
|
|
344
|
+
C.searchFormExtra ? {
|
|
337
345
|
name: "extra",
|
|
338
346
|
fn: v(() => [
|
|
339
|
-
|
|
347
|
+
O(e.$slots, "searchFormExtra")
|
|
340
348
|
]),
|
|
341
349
|
key: "0"
|
|
342
350
|
} : void 0
|
|
343
351
|
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
344
|
-
], 6)) :
|
|
345
|
-
|
|
346
|
-
class: g([o(
|
|
347
|
-
style:
|
|
352
|
+
], 6)) : b("", !0),
|
|
353
|
+
E("div", {
|
|
354
|
+
class: g([o(P)("table-wrapper"), e.card ? o(P)("table-wrapper-card") : null]),
|
|
355
|
+
style: V(e.tableWrapperStyle)
|
|
348
356
|
}, [
|
|
349
|
-
|
|
357
|
+
E("div", {
|
|
350
358
|
class: g(o(c)("header-wrapper"))
|
|
351
359
|
}, [
|
|
352
|
-
|
|
353
|
-
selectedRows: o(
|
|
354
|
-
selectedRowKeys: o(
|
|
360
|
+
O(e.$slots, "title", {
|
|
361
|
+
selectedRows: o(R),
|
|
362
|
+
selectedRowKeys: o(k).selectedRowKeys,
|
|
355
363
|
shownColumns: i.value,
|
|
356
|
-
clearAll:
|
|
364
|
+
clearAll: A
|
|
357
365
|
})
|
|
358
366
|
], 2),
|
|
359
|
-
|
|
367
|
+
E("div", {
|
|
360
368
|
class: g(o(c)("vxe-wrapper"))
|
|
361
369
|
}, [
|
|
362
|
-
(s(), p(o(
|
|
370
|
+
(s(), p(o(Ne), h(o(Ke)(a), {
|
|
363
371
|
ref_key: "tableRef",
|
|
364
372
|
ref: m,
|
|
365
373
|
key: o(de),
|
|
366
374
|
data: o(f).records,
|
|
367
375
|
"sort-config": { remote: j.value.length > 0 },
|
|
368
376
|
"filter-config": { remote: H.value.length > 0 },
|
|
369
|
-
loading:
|
|
377
|
+
loading: Se.value,
|
|
370
378
|
style: {
|
|
371
379
|
"--vxe-ui-table-row-checkbox-checked-background-color": o(d).controlItemBgActive,
|
|
372
380
|
"--vxe-ui-table-row-hover-checkbox-checked-background-color": o(d).controlItemBgActiveHover,
|
|
@@ -381,13 +389,13 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
381
389
|
"--vxe-ui-table-header-font-color": o(d).colorTextBase,
|
|
382
390
|
"--vxe-ui-table-cell-padding-mini": "8px"
|
|
383
391
|
},
|
|
384
|
-
size:
|
|
385
|
-
onSortChange: o(
|
|
386
|
-
onFilterChange: o(
|
|
387
|
-
onCheckboxChange:
|
|
388
|
-
onCheckboxRangeChange:
|
|
389
|
-
onCheckboxAll:
|
|
390
|
-
onRadioChange:
|
|
392
|
+
size: y.value,
|
|
393
|
+
onSortChange: o(he),
|
|
394
|
+
onFilterChange: o(ve),
|
|
395
|
+
onCheckboxChange: _,
|
|
396
|
+
onCheckboxRangeChange: _,
|
|
397
|
+
onCheckboxAll: _,
|
|
398
|
+
onRadioChange: xe
|
|
391
399
|
}), J({
|
|
392
400
|
empty: v(() => [
|
|
393
401
|
X(o(ae), {
|
|
@@ -395,45 +403,45 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
395
403
|
}, null, 8, ["image"])
|
|
396
404
|
]),
|
|
397
405
|
default: v(() => [
|
|
398
|
-
a.expandable ? (s(), p(o(Y), h({ key: 0 }, o(
|
|
406
|
+
a.expandable ? (s(), p(o(Y), h({ key: 0 }, o(We)(e.expandable), { fixed: ye.value }), {
|
|
399
407
|
content: v((l) => [
|
|
400
|
-
(s(), p(
|
|
408
|
+
(s(), p(D(a.expandable.renderContent(l))))
|
|
401
409
|
]),
|
|
402
410
|
_: 1
|
|
403
|
-
}, 16, ["fixed"])) :
|
|
404
|
-
a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(
|
|
405
|
-
(s(!0),
|
|
411
|
+
}, 16, ["fixed"])) : b("", !0),
|
|
412
|
+
a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(je)(o(k), i.value), { field: o(Ge) }), null, 16, ["field"])) : b("", !0),
|
|
413
|
+
(s(!0), I(Q, null, L(o(ie), (l) => (s(), p(D(l), {
|
|
406
414
|
key: l.props.colId
|
|
407
415
|
}))), 128))
|
|
408
416
|
]),
|
|
409
417
|
_: 2
|
|
410
418
|
}, [
|
|
411
|
-
|
|
419
|
+
L(o(Te)(C, ["searchFormExtra"]), (l, t) => ({
|
|
412
420
|
name: t,
|
|
413
421
|
fn: v((u) => [
|
|
414
|
-
|
|
422
|
+
O(e.$slots, t, Ee(Pe(u || {})))
|
|
415
423
|
])
|
|
416
424
|
}))
|
|
417
425
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
|
|
418
426
|
], 2),
|
|
419
|
-
|
|
427
|
+
E("div", {
|
|
420
428
|
class: g(o(c)("pagination-wrapper"))
|
|
421
429
|
}, [
|
|
422
|
-
e.sticky ? (s(), p(o(
|
|
430
|
+
e.sticky ? (s(), p(o(ao), {
|
|
423
431
|
key: 0,
|
|
424
432
|
direction: "horizontal",
|
|
425
433
|
"scroll-container": ce.value,
|
|
426
434
|
"extra-size": -4.2
|
|
427
|
-
}, null, 8, ["scroll-container"])) :
|
|
428
|
-
e.pagination !== !1 ? (s(), p(o(
|
|
435
|
+
}, null, 8, ["scroll-container"])) : b("", !0),
|
|
436
|
+
e.pagination !== !1 ? (s(), p(o(Oe), h({
|
|
429
437
|
key: 1,
|
|
430
438
|
class: o(c)("pagination")
|
|
431
|
-
}, o(M).pagination, { onChange: o(
|
|
439
|
+
}, o(M).pagination, { onChange: o(Ce) }), null, 16, ["class", "onChange"])) : b("", !0)
|
|
432
440
|
], 2)
|
|
433
441
|
], 6)
|
|
434
442
|
], 6));
|
|
435
443
|
}
|
|
436
444
|
});
|
|
437
445
|
export {
|
|
438
|
-
|
|
446
|
+
No as default
|
|
439
447
|
};
|