@aplus-frontend/ui 0.4.0 → 0.4.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-field/number/index.vue.d.ts +322 -1
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +82 -1
- package/es/src/ap-field/segmented/index.vue.d.ts +1 -7
- package/es/src/ap-field/select/index.vue.d.ts +423 -1
- package/es/src/ap-field/select/index.vue.mjs +4 -3
- package/es/src/ap-field/slider/index.vue.d.ts +257 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -13
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +636 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/es/src/ap-form/item/index.vue.d.ts +777 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +128 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/es/src/ap-form/modal-form/index.vue.mjs +77 -75
- package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/es/src/ap-scroll-bar/index.d.ts +3 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +98 -97
- package/es/src/ap-table/constants.d.ts +2260 -26
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +11 -10
- package/es/src/ap-table/utils.d.ts +1168 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -4
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/index.d.ts +444 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +1 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +22 -2
- package/es/src/business/ap-table-modal/interface.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +134 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -2
- package/es/src/business/hooks/usePageListApTable.mjs +35 -33
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/lib/src/ap-field/number/index.vue.d.ts +322 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +1 -7
- package/lib/src/ap-field/select/index.vue.d.ts +423 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -13
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/lib/src/ap-form/item/index.vue.d.ts +777 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +128 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/lib/src/ap-scroll-bar/index.d.ts +3 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2260 -26
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1168 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +444 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +22 -2
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +134 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/package.json +5 -5
- package/theme/ap-form/index.css +3 -4
- package/theme/ap-form/modal-form.css +3 -4
- package/theme/ap-form/modal-form.less +3 -4
- package/theme/ap-table/ap-table.css +3 -4
- package/theme/ap-table-modal/index.css +3 -4
- package/theme/editable-table/index.css +3 -4
- package/theme/index.css +3 -4
|
@@ -16,7 +16,10 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
16
16
|
declare const __VLS_component: DefineComponent<ApInfoLayoutAdminProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutAdminProps> & Readonly<{}>, {
|
|
17
17
|
bordered: boolean;
|
|
18
18
|
headerStyle: CSSProperties;
|
|
19
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
19
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
20
|
+
containerRef: HTMLDivElement;
|
|
21
|
+
headerRef: HTMLDivElement;
|
|
22
|
+
}, HTMLDivElement>;
|
|
20
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
24
|
export default _default;
|
|
22
25
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -3,7 +3,7 @@ import { Recordable } from '../type';
|
|
|
3
3
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
5
|
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> &
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
submit: () => void;
|
|
9
9
|
reset: () => void;
|
|
@@ -2,5 +2,7 @@ import { ApScrollBarProps } from './interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ApScrollBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApScrollBarProps> & Readonly<{}>, {
|
|
4
4
|
type: "horizontal" | "vertical";
|
|
5
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
5
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
6
|
+
containerRef: HTMLDivElement;
|
|
7
|
+
}, HTMLDivElement>;
|
|
6
8
|
export default _default;
|
|
@@ -4,7 +4,9 @@ export * from './interface';
|
|
|
4
4
|
declare const ApScrollBar: {
|
|
5
5
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApScrollBarProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
6
6
|
type: "horizontal" | "vertical";
|
|
7
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
8
|
+
containerRef: HTMLDivElement;
|
|
9
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
8
10
|
P: {};
|
|
9
11
|
B: {};
|
|
10
12
|
D: {};
|
|
@@ -3,7 +3,7 @@ import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
|
3
3
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
4
4
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
|
|
5
5
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> &
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
submit: () => void;
|
|
9
9
|
reset: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as
|
|
1
|
+
import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as t, createVNode as w, Fragment as q, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as S, createSlots as _, withCtx as F, renderList as J, createBlock as Q, resolveDynamicComponent as Be, renderSlot as b, createCommentVNode as X, createElementVNode as I, normalizeProps as ke, guardReactiveProps as ze } from "vue";
|
|
2
2
|
import { Divider as Pe, Table as Ie } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as Ne } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { ApForm as Ee } from "../ap-form/index.mjs";
|
|
@@ -17,7 +17,7 @@ import { useNamespace as Je } from "../config-provider/hooks/use-namespace.mjs";
|
|
|
17
17
|
import { useGlobalConfig as Qe } from "../config-provider/hooks/use-global-config.mjs";
|
|
18
18
|
import Xe from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
19
19
|
import Ye from "./components/setting/modal/index.vue2.mjs";
|
|
20
|
-
const
|
|
20
|
+
const Sa = /* @__PURE__ */ Te({
|
|
21
21
|
name: "ApTable",
|
|
22
22
|
__name: "ap-table",
|
|
23
23
|
props: {
|
|
@@ -142,11 +142,11 @@ const ba = /* @__PURE__ */ Te({
|
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
setup(oe, {
|
|
145
|
-
expose:
|
|
145
|
+
expose: re
|
|
146
146
|
}) {
|
|
147
147
|
const a = oe;
|
|
148
148
|
let N = 0;
|
|
149
|
-
const h = Fe(), [,
|
|
149
|
+
const h = Fe(), [, te] = Ne(), {
|
|
150
150
|
e: x,
|
|
151
151
|
b: i,
|
|
152
152
|
be: E
|
|
@@ -163,36 +163,37 @@ const ba = /* @__PURE__ */ Te({
|
|
|
163
163
|
},
|
|
164
164
|
updateSize(e) {
|
|
165
165
|
B.value = e;
|
|
166
|
-
}
|
|
166
|
+
},
|
|
167
|
+
dataSource: s(() => t(y).records)
|
|
167
168
|
});
|
|
168
169
|
const L = s(() => {
|
|
169
|
-
var e,
|
|
170
|
-
return N++, ((o = (
|
|
171
|
-
let n = ee(
|
|
170
|
+
var e, r, o;
|
|
171
|
+
return N++, ((o = (r = (e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !Y.includes(l.valueType))) == null ? void 0 : r.sort((l, d) => {
|
|
172
|
+
let n = ee(l.order);
|
|
172
173
|
return ee(d.order) - n;
|
|
173
|
-
})) == null ? void 0 : o.map((
|
|
174
|
-
const d = Le(
|
|
175
|
-
...
|
|
174
|
+
})) == null ? void 0 : o.map((l) => {
|
|
175
|
+
const d = Le(l, Ve(l.fieldProps, {})), n = {
|
|
176
|
+
...l,
|
|
176
177
|
fieldProps: {
|
|
177
|
-
label:
|
|
178
|
-
name:
|
|
178
|
+
label: l.title,
|
|
179
|
+
name: l.dataIndex,
|
|
179
180
|
...d || {},
|
|
180
181
|
_signal: N
|
|
181
182
|
},
|
|
182
183
|
renderNode: void 0
|
|
183
184
|
};
|
|
184
|
-
return n.renderNode = Ae(n,
|
|
185
|
+
return n.renderNode = Ae(n, t(K)), n;
|
|
185
186
|
})) || [];
|
|
186
|
-
}), se = s(() => ae(
|
|
187
|
+
}), se = s(() => ae(t(u), (e) => {
|
|
187
188
|
if (e.sorter === !0)
|
|
188
189
|
return e.key || e.dataIndex;
|
|
189
|
-
}).filter(Boolean)), de = s(() => ae(
|
|
190
|
+
}).filter(Boolean)), de = s(() => ae(t(u), (e) => {
|
|
190
191
|
if (e.filters && !e.onFilter)
|
|
191
192
|
return e.key || e.dataIndex;
|
|
192
|
-
}).filter(Boolean)), ue = s(() => m(a.dataSource) ?
|
|
193
|
-
rowSelection:
|
|
194
|
-
selectedRows:
|
|
195
|
-
...
|
|
193
|
+
}).filter(Boolean)), ue = s(() => m(a.dataSource) ? y.records : a.dataSource), {
|
|
194
|
+
rowSelection: R,
|
|
195
|
+
selectedRows: C,
|
|
196
|
+
...v
|
|
196
197
|
} = Ge({
|
|
197
198
|
fixed: !0,
|
|
198
199
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
@@ -204,21 +205,21 @@ const ba = /* @__PURE__ */ Te({
|
|
|
204
205
|
reset: A,
|
|
205
206
|
tableProps: D,
|
|
206
207
|
refresh: ie,
|
|
207
|
-
data:
|
|
208
|
+
data: y,
|
|
208
209
|
setDataSource: ce,
|
|
209
210
|
getColumnSFConfig: pe
|
|
210
211
|
} = Ke({
|
|
211
212
|
async request(e) {
|
|
212
|
-
var o,
|
|
213
|
-
if (!
|
|
213
|
+
var o, l;
|
|
214
|
+
if (!R.value.preserveSelectedRowKeys && m(a.dataSource) && v.clearAll(), !m(a.dataSource))
|
|
214
215
|
return {
|
|
215
216
|
data: a.dataSource || [],
|
|
216
217
|
total: a.dataSource.length || 0
|
|
217
218
|
};
|
|
218
|
-
const
|
|
219
|
-
return (
|
|
220
|
-
data: (
|
|
221
|
-
total: (
|
|
219
|
+
const r = await ((o = a.request) == null ? void 0 : o.call(a, e));
|
|
220
|
+
return (l = a.onLoad) == null || l.call(a, (r == null ? void 0 : r.data) || []), {
|
|
221
|
+
data: (r == null ? void 0 : r.data) || [],
|
|
222
|
+
total: (r == null ? void 0 : r.total) || 0
|
|
222
223
|
};
|
|
223
224
|
},
|
|
224
225
|
filterFields: de,
|
|
@@ -230,17 +231,17 @@ const ba = /* @__PURE__ */ Te({
|
|
|
230
231
|
pagination: a.pagination
|
|
231
232
|
}), fe = () => {
|
|
232
233
|
var o;
|
|
233
|
-
let e = ((o = a.columns) == null ? void 0 : o.filter((
|
|
234
|
-
function
|
|
235
|
-
return
|
|
234
|
+
let e = ((o = a.columns) == null ? void 0 : o.filter((l) => !l.hideInTable)) || [];
|
|
235
|
+
function r(l, d) {
|
|
236
|
+
return l.map((n) => ({
|
|
236
237
|
resizable: Me(n.resizable) ? n.resizable : a.columnResizable,
|
|
237
238
|
...Z(De(n), ["ellipsis"]),
|
|
238
239
|
...pe(n),
|
|
239
240
|
fixed: d ? d.fixed : n.fixed,
|
|
240
|
-
title: je(n, E("table-header", "title"), h.headerCell,
|
|
241
|
+
title: je(n, E("table-header", "title"), h.headerCell, t(te).colorPrimary),
|
|
241
242
|
customRender({
|
|
242
243
|
value: c,
|
|
243
|
-
...
|
|
244
|
+
...g
|
|
244
245
|
}) {
|
|
245
246
|
var H, U;
|
|
246
247
|
const $ = $e(n), Re = We({
|
|
@@ -248,37 +249,37 @@ const ba = /* @__PURE__ */ Te({
|
|
|
248
249
|
valueType: $
|
|
249
250
|
}, {
|
|
250
251
|
value: c,
|
|
251
|
-
...
|
|
252
|
-
}), Ce = He($, Re,
|
|
252
|
+
...g
|
|
253
|
+
}), Ce = He($, Re, g.record, t(K)), W = ((H = n.renderText) == null ? void 0 : H.call(n, {
|
|
253
254
|
value: c,
|
|
254
|
-
...
|
|
255
|
-
})) || c, ve = n.renderText ?
|
|
255
|
+
...g
|
|
256
|
+
})) || c, ve = n.renderText ? w(q, null, [(U = n.renderText) == null ? void 0 : U.call(n, {
|
|
256
257
|
value: c,
|
|
257
|
-
...
|
|
258
|
+
...g
|
|
258
259
|
})]) : Ce;
|
|
259
260
|
let z = we(n, W, ve);
|
|
260
261
|
return n.customRender && (z = n.customRender({
|
|
261
262
|
value: c,
|
|
262
|
-
...
|
|
263
|
+
...g,
|
|
263
264
|
column: n,
|
|
264
265
|
originalNode: z,
|
|
265
266
|
originalText: W
|
|
266
267
|
})), z;
|
|
267
268
|
},
|
|
268
|
-
children:
|
|
269
|
+
children: r(n.children || [], d || n)
|
|
269
270
|
}));
|
|
270
271
|
}
|
|
271
|
-
return
|
|
272
|
+
return r(e);
|
|
272
273
|
};
|
|
273
274
|
xe(() => {
|
|
274
275
|
const e = fe();
|
|
275
276
|
u.value = e, O.value = e;
|
|
276
277
|
});
|
|
277
278
|
const me = s(() => {
|
|
278
|
-
var
|
|
279
|
-
if (a.adaptive && (
|
|
279
|
+
var r, o;
|
|
280
|
+
if (a.adaptive && (y.total > 0 || ((r = a.dataSource) == null ? void 0 : r.length)))
|
|
280
281
|
return {
|
|
281
|
-
y:
|
|
282
|
+
y: t(le),
|
|
282
283
|
x: ((o = a.scroll) == null ? void 0 : o.x) || "100%"
|
|
283
284
|
};
|
|
284
285
|
if (a.scroll)
|
|
@@ -287,26 +288,26 @@ const ba = /* @__PURE__ */ Te({
|
|
|
287
288
|
var e;
|
|
288
289
|
if (a.tableLayout)
|
|
289
290
|
return a.tableLayout;
|
|
290
|
-
if ((e = a.columns) != null && e.some((
|
|
291
|
+
if ((e = a.columns) != null && e.some((r) => r.ellipsis))
|
|
291
292
|
return "fixed";
|
|
292
293
|
}), j = s(() => {
|
|
293
294
|
var o;
|
|
294
|
-
const e =
|
|
295
|
+
const e = t(D), r = t(R);
|
|
295
296
|
return {
|
|
296
297
|
...a,
|
|
297
298
|
...e,
|
|
298
299
|
rowSelection: a.rowSelection === !0 || ((o = a.rowSelection) == null ? void 0 : o.mode) === "internal" ? {
|
|
299
|
-
...
|
|
300
|
+
...r,
|
|
300
301
|
// tips 如果是前端分页,则默认会走缓存
|
|
301
|
-
preserveSelectedRowKeys: m(a.dataSource) ?
|
|
302
|
+
preserveSelectedRowKeys: m(a.dataSource) ? r.preserveSelectedRowKeys : !0
|
|
302
303
|
} : Ue(a.rowSelection),
|
|
303
304
|
loading: m(a.loading) ? e.loading : a.loading,
|
|
304
305
|
pagination: a.pagination === !1 ? !1 : e.pagination,
|
|
305
|
-
scroll:
|
|
306
|
+
scroll: t(me)
|
|
306
307
|
};
|
|
307
308
|
}), ge = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
|
|
308
|
-
function we(e,
|
|
309
|
-
return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ?
|
|
309
|
+
function we(e, r, o) {
|
|
310
|
+
return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ? w(Xe, {
|
|
310
311
|
copyable: e.copyable,
|
|
311
312
|
ellipsis: e.ellipsis ? Oe(e.ellipsis) ? {
|
|
312
313
|
tooltip: o,
|
|
@@ -318,53 +319,53 @@ const ba = /* @__PURE__ */ Te({
|
|
|
318
319
|
content: o
|
|
319
320
|
}, null) : o;
|
|
320
321
|
}
|
|
321
|
-
G(() =>
|
|
322
|
-
var
|
|
323
|
-
(
|
|
322
|
+
G(() => t(y).loading, (e) => {
|
|
323
|
+
var r;
|
|
324
|
+
(r = a.onLoadingChange) == null || r.call(a, e);
|
|
324
325
|
}), G(() => a.dataSource, (e) => {
|
|
325
326
|
ce(e);
|
|
326
327
|
}, {
|
|
327
328
|
immediate: !0
|
|
328
329
|
});
|
|
329
|
-
function
|
|
330
|
-
var
|
|
331
|
-
(
|
|
330
|
+
function Se(e) {
|
|
331
|
+
var r, o, l;
|
|
332
|
+
(l = (o = (r = k.value) == null ? void 0 : r.apForm) == null ? void 0 : o.setFieldsValue) == null || l.call(o, e);
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
-
var o,
|
|
335
|
-
const
|
|
336
|
-
return (d = (
|
|
334
|
+
function be(e = !1) {
|
|
335
|
+
var o, l, d;
|
|
336
|
+
const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
337
|
+
return (d = (l = (o = k.value) == null ? void 0 : o.apForm) == null ? void 0 : l[r]) == null ? void 0 : d.call(l, !0);
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
-
return
|
|
339
|
+
function he() {
|
|
340
|
+
return t(u);
|
|
340
341
|
}
|
|
341
|
-
return
|
|
342
|
+
return re({
|
|
342
343
|
submit: () => V(),
|
|
343
344
|
reset: () => A(),
|
|
344
345
|
refresh: () => ie(),
|
|
345
|
-
setSearchFormValues:
|
|
346
|
-
getSearchFormValues:
|
|
347
|
-
getShownColumns:
|
|
348
|
-
dataSource: s(() =>
|
|
346
|
+
setSearchFormValues: Se,
|
|
347
|
+
getSearchFormValues: be,
|
|
348
|
+
getShownColumns: he,
|
|
349
|
+
dataSource: s(() => t(y).records),
|
|
349
350
|
rowSelection: {
|
|
350
|
-
selectedRows: s(() =>
|
|
351
|
-
...
|
|
351
|
+
selectedRows: s(() => t(C)),
|
|
352
|
+
...v
|
|
352
353
|
}
|
|
353
|
-
}), (e,
|
|
354
|
+
}), (e, r) => (p(), T("div", {
|
|
354
355
|
class: f(ge.value)
|
|
355
|
-
}, [
|
|
356
|
+
}, [t(m)(e.dataSource) && e.searchForm !== !1 && L.value.length > 0 ? (p(), T("div", {
|
|
356
357
|
key: 0,
|
|
357
|
-
class: f(e.card ?
|
|
358
|
+
class: f(e.card ? t(x)("search-wrapper") : null),
|
|
358
359
|
style: M(e.searchFormWrapperStyle)
|
|
359
|
-
}, [
|
|
360
|
+
}, [w(t(Ee).SearchForm, S(e.searchForm || {}, {
|
|
360
361
|
ref_key: "formRef",
|
|
361
362
|
ref: k,
|
|
362
363
|
"custom-reset": "",
|
|
363
|
-
"submit-loading":
|
|
364
|
-
onSubmit:
|
|
365
|
-
onReset:
|
|
364
|
+
"submit-loading": t(D).loading,
|
|
365
|
+
onSubmit: t(V),
|
|
366
|
+
onReset: t(A)
|
|
366
367
|
}), _({
|
|
367
|
-
default: F(() => [(p(!0), T(q, null, J(L.value, (o) => (p(), Q(Be(o.renderNode),
|
|
368
|
+
default: F(() => [(p(!0), T(q, null, J(L.value, (o) => (p(), Q(Be(o.renderNode), S({
|
|
368
369
|
key: o.dataIndex,
|
|
369
370
|
ref_for: !0
|
|
370
371
|
}, o.fieldProps || {}, {
|
|
@@ -378,49 +379,49 @@ const ba = /* @__PURE__ */ Te({
|
|
|
378
379
|
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : X("", !0), I("div", {
|
|
379
380
|
ref_key: "contentRef",
|
|
380
381
|
ref: ne,
|
|
381
|
-
class: f([
|
|
382
|
+
class: f([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
|
|
382
383
|
style: M(e.tableWrapperStyle)
|
|
383
384
|
}, [I("div", {
|
|
384
|
-
class: f(
|
|
385
|
+
class: f(t(i)("header-wrapper"))
|
|
385
386
|
}, [e.settings ? (p(), T("div", {
|
|
386
387
|
key: 0,
|
|
387
|
-
class: f(
|
|
388
|
+
class: f(t(i)("header"))
|
|
388
389
|
}, [I("div", {
|
|
389
|
-
class: f(
|
|
390
|
-
}, [b(e.$slots, "title",
|
|
391
|
-
selectedRows:
|
|
392
|
-
selectedRowKeys:
|
|
390
|
+
class: f(t(E)("header", "title"))
|
|
391
|
+
}, [b(e.$slots, "title", S({
|
|
392
|
+
selectedRows: t(C),
|
|
393
|
+
selectedRowKeys: t(R).selectedRowKeys,
|
|
393
394
|
shownColumns: u.value
|
|
394
|
-
},
|
|
395
|
+
}, v))], 2), h.title ? (p(), Q(t(Pe), {
|
|
395
396
|
key: 0,
|
|
396
397
|
type: "vertical"
|
|
397
|
-
})) : X("", !0),
|
|
398
|
+
})) : X("", !0), w(Ye, {
|
|
398
399
|
config: e.settings === !0 ? {} : e.settings
|
|
399
|
-
}, null, 8, ["config"])], 2)) : b(e.$slots, "title",
|
|
400
|
+
}, null, 8, ["config"])], 2)) : b(e.$slots, "title", S({
|
|
400
401
|
key: 1,
|
|
401
|
-
selectedRows:
|
|
402
|
-
selectedRowKeys:
|
|
402
|
+
selectedRows: t(C),
|
|
403
|
+
selectedRowKeys: t(R).selectedRowKeys,
|
|
403
404
|
shownColumns: u.value
|
|
404
|
-
},
|
|
405
|
-
class:
|
|
405
|
+
}, v))], 2), w(t(Ie), S({
|
|
406
|
+
class: t(i)("table")
|
|
406
407
|
}, j.value, {
|
|
407
408
|
size: B.value,
|
|
408
409
|
"table-layout": ye.value,
|
|
409
410
|
columns: u.value,
|
|
410
|
-
onResizeColumn:
|
|
411
|
+
onResizeColumn: r[0] || (r[0] = (o, l) => l.width = o)
|
|
411
412
|
}), _({
|
|
412
413
|
summary: F(() => [b(e.$slots, "summary", {
|
|
413
414
|
columns: u.value,
|
|
414
415
|
records: j.value.dataSource,
|
|
415
|
-
selectedRows:
|
|
416
|
+
selectedRows: t(C)
|
|
416
417
|
})]),
|
|
417
418
|
_: 2
|
|
418
|
-
}, [J(
|
|
419
|
-
name:
|
|
420
|
-
fn: F((d) => [b(e.$slots,
|
|
419
|
+
}, [J(t(Z)(h, ["title", "searchFormExtra", "headerCell", "summary"]), (o, l) => ({
|
|
420
|
+
name: l,
|
|
421
|
+
fn: F((d) => [b(e.$slots, l, ke(ze(d || {})))])
|
|
421
422
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
|
|
422
423
|
}
|
|
423
424
|
});
|
|
424
425
|
export {
|
|
425
|
-
|
|
426
|
+
Sa as default
|
|
426
427
|
};
|