@aplus-frontend/ui 0.3.8 → 0.3.10
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/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-modal/index.vue.d.ts +2 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +4 -3
- package/es/src/ap-button/ap-action-button.vue.mjs +11 -11
- package/es/src/ap-button/ap-button.vue.d.ts +4 -3
- package/es/src/ap-button/ap-button.vue.mjs +36 -36
- package/es/src/ap-button/interface.d.ts +4 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
- package/es/src/ap-download/ap-download.vue.d.ts +5 -3
- package/es/src/ap-field/date/index.vue.d.ts +2 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +2 -1
- package/es/src/ap-field/number/index.vue.d.ts +2 -1
- package/es/src/ap-field/rate/index.vue.d.ts +2 -1
- package/es/src/ap-field/segmented/index.vue.d.ts +2 -1
- package/es/src/ap-field/select/index.vue.d.ts +2 -1
- package/es/src/ap-field/slider/index.vue.d.ts +2 -1
- package/es/src/ap-field/switch/index.vue.d.ts +2 -1
- package/es/src/ap-field/text/index.vue.d.ts +2 -1
- package/es/src/ap-field/text/password.vue.d.ts +2 -1
- package/es/src/ap-form/ap-form.vue.d.ts +6 -4
- package/es/src/ap-form/dependency/index.vue.d.ts +2 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -2
- package/es/src/ap-form/item/index.vue.d.ts +2 -1
- package/es/src/ap-form/item-group/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/radio/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/text/group.vue.d.ts +2 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -1
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +2 -1
- package/es/src/ap-form/list/index.vue.d.ts +2 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -2
- package/es/src/ap-form/modal-form/index.vue.mjs +61 -57
- package/es/src/ap-form/render/control.vue.d.ts +2 -1
- package/es/src/ap-form/render/item.vue.d.ts +2 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -2
- package/es/src/ap-form/set/index.vue.d.ts +2 -1
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
- package/es/src/ap-list/index.vue.d.ts +3 -5
- package/es/src/ap-list/index.vue.mjs +37 -39
- package/es/src/ap-list/interface.d.ts +3 -3
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/index.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +3 -5
- package/es/src/ap-table/ap-table.vue2.mjs +75 -78
- package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-table/constants.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +209 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +13 -3
- package/es/src/ap-table/hooks/use-table-paging.mjs +131 -126
- package/es/src/ap-table/interface.d.ts +4 -3
- package/es/src/ap-table/utils.d.ts +1 -0
- package/es/src/ap-table/utils.mjs +10 -5
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -2
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/Picture.vue.d.ts +5 -9
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
- package/es/src/business/ap-appendix/index.d.ts +1 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
- package/es/src/business/ap-batch-action/index.d.ts +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +887 -5
- package/es/src/business/ap-card/ApCard.vue.d.ts +3 -2
- package/es/src/business/ap-card/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/index.d.ts +3 -3
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
- package/es/src/business/ap-image/ApImage.vue.d.ts +2 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
- package/es/src/business/ap-input-radio/index.d.ts +1 -1
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
- package/es/src/business/ap-ladder/index.d.ts +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +3 -4
- package/es/src/business/ap-select-layout/interface.d.ts +1 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +58 -56
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
- package/es/src/business/ap-title/ApTitle.vue.d.ts +3 -2
- package/es/src/business/ap-title/index.d.ts +1 -1
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
- package/es/src/check-card/group.vue.d.ts +2 -1
- package/es/src/check-card/index.vue.d.ts +3 -2
- package/es/src/editable-table/form-item.vue.d.ts +3 -5
- package/es/src/editable-table/index.vue.d.ts +3 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/ap-action/item/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-modal/index.vue.d.ts +2 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +4 -3
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +4 -3
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +4 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
- package/lib/src/ap-download/ap-download.vue.d.ts +5 -3
- package/lib/src/ap-field/date/index.vue.d.ts +2 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +2 -1
- package/lib/src/ap-field/number/index.vue.d.ts +2 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +2 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +2 -1
- package/lib/src/ap-field/text/index.vue.d.ts +2 -1
- package/lib/src/ap-field/text/password.vue.d.ts +2 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +6 -4
- package/lib/src/ap-form/dependency/index.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -2
- package/lib/src/ap-form/item/index.vue.d.ts +2 -1
- package/lib/src/ap-form/item-group/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text/group.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +2 -1
- package/lib/src/ap-form/list/index.vue.d.ts +2 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -2
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/render/control.vue.d.ts +2 -1
- package/lib/src/ap-form/render/item.vue.d.ts +2 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -2
- package/lib/src/ap-form/set/index.vue.d.ts +2 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
- package/lib/src/ap-list/index.vue.d.ts +3 -5
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +3 -3
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/index.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-table/constants.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +13 -3
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +4 -3
- package/lib/src/ap-table/utils.d.ts +1 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -2
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +5 -9
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
- package/lib/src/business/ap-appendix/index.d.ts +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
- package/lib/src/business/ap-batch-action/index.d.ts +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +887 -5
- package/lib/src/business/ap-card/ApCard.vue.d.ts +3 -2
- package/lib/src/business/ap-card/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +3 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
- package/lib/src/business/ap-image/ApImage.vue.d.ts +2 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
- package/lib/src/business/ap-input-radio/index.d.ts +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
- package/lib/src/business/ap-ladder/index.d.ts +1 -1
- package/lib/src/business/ap-select-layout/index.d.ts +3 -4
- package/lib/src/business/ap-select-layout/interface.d.ts +1 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
- package/lib/src/business/ap-title/ApTitle.vue.d.ts +3 -2
- package/lib/src/business/ap-title/index.d.ts +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
- package/lib/src/check-card/group.vue.d.ts +2 -1
- package/lib/src/check-card/index.vue.d.ts +3 -2
- package/lib/src/editable-table/form-item.vue.d.ts +3 -5
- package/lib/src/editable-table/index.vue.d.ts +3 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/package.json +1 -1
- package/index.ts +0 -19
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineComponent as H, ref as J, unref as t, computed as
|
|
1
|
+
import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q, openBlock as i, createBlock as S, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as h, renderSlot as l, createVNode as v, createElementBlock as p, Fragment as I, renderList as Y, mergeProps as Z, createCommentVNode as _ } from "vue";
|
|
2
2
|
import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
|
|
3
|
-
import "../ap-table/
|
|
3
|
+
import { useTablePaging as te } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
|
-
import { isUndefined as O, isNumber as
|
|
6
|
-
import { useOfflineList as
|
|
5
|
+
import { isUndefined as O, isNumber as ae, omit as ne } from "lodash-unified";
|
|
6
|
+
import { useOfflineList as re } from "./hooks/use-offline-list.mjs";
|
|
7
7
|
import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
|
|
8
|
-
import { RecycleScroller as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import { useTablePaging as se } from "../ap-table/hooks/use-table-paging.mjs";
|
|
8
|
+
import { RecycleScroller as oe, DynamicScroller as ie, DynamicScrollerItem as le } from "vue-virtual-scroller";
|
|
9
|
+
import { useNamespace as se } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
10
|
const he = /* @__PURE__ */ H({
|
|
12
11
|
__name: "index",
|
|
13
12
|
props: {
|
|
@@ -28,16 +27,16 @@ const he = /* @__PURE__ */ H({
|
|
|
28
27
|
rowKey: {}
|
|
29
28
|
},
|
|
30
29
|
setup(V, { expose: F }) {
|
|
31
|
-
const L = E.PRESENTED_IMAGE_SIMPLE, n = V, { b:
|
|
30
|
+
const L = E.PRESENTED_IMAGE_SIMPLE, n = V, { b: m, e: N } = se("ap-list"), b = J(), {
|
|
32
31
|
formRef: k,
|
|
33
|
-
submit:
|
|
34
|
-
reset:
|
|
32
|
+
submit: D,
|
|
33
|
+
reset: w,
|
|
35
34
|
handleTableChange: R,
|
|
36
35
|
data: g,
|
|
37
36
|
refresh: T,
|
|
38
37
|
refreshByDelete: $,
|
|
39
|
-
tableProps:
|
|
40
|
-
} =
|
|
38
|
+
tableProps: z
|
|
39
|
+
} = te({
|
|
41
40
|
async request(e) {
|
|
42
41
|
var r;
|
|
43
42
|
const a = await ((r = n.request) == null ? void 0 : r.call(n, e));
|
|
@@ -49,16 +48,15 @@ const he = /* @__PURE__ */ H({
|
|
|
49
48
|
defaultParams: n.params,
|
|
50
49
|
defaultData: n.defaultData,
|
|
51
50
|
manual: n.manual,
|
|
52
|
-
|
|
53
|
-
defaultPageSize: n.pagination ? n.pagination.defaultPageSize : void 0,
|
|
51
|
+
pagination: n.pagination,
|
|
54
52
|
formatParams: n.beforeSearchSubmit
|
|
55
53
|
}), j = { form: k }, {
|
|
56
|
-
pagination:
|
|
54
|
+
pagination: B,
|
|
57
55
|
dataSource: q,
|
|
58
56
|
onChange: A
|
|
59
|
-
} =
|
|
57
|
+
} = re(n);
|
|
60
58
|
function K(e, a) {
|
|
61
|
-
if (t(
|
|
59
|
+
if (t(c)) {
|
|
62
60
|
A(e, a);
|
|
63
61
|
return;
|
|
64
62
|
}
|
|
@@ -69,10 +67,10 @@ const he = /* @__PURE__ */ H({
|
|
|
69
67
|
{ currentDataSource: [], action: "paginate" }
|
|
70
68
|
);
|
|
71
69
|
}
|
|
72
|
-
const s =
|
|
70
|
+
const s = d(() => t(c) ? t(q) : t(g).records), y = d(() => O(n.loading) ? t(g).loading : n.loading), M = d(() => {
|
|
73
71
|
var e, a;
|
|
74
|
-
return n.pagination === !1 || n.virtual ? !1 : ((e = n.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(
|
|
75
|
-
}),
|
|
72
|
+
return n.pagination === !1 || n.virtual ? !1 : ((e = n.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(c) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > t(B).pageSize : t(g).total > t(z).pagination.pageSize;
|
|
73
|
+
}), c = d(() => !O(n.dataSource));
|
|
76
74
|
Q(
|
|
77
75
|
() => t(y),
|
|
78
76
|
(e) => {
|
|
@@ -90,41 +88,41 @@ const he = /* @__PURE__ */ H({
|
|
|
90
88
|
return (r == null ? void 0 : r()) || {};
|
|
91
89
|
}
|
|
92
90
|
return F({
|
|
93
|
-
submit: () =>
|
|
94
|
-
reset: () =>
|
|
91
|
+
submit: () => D(),
|
|
92
|
+
reset: () => w(),
|
|
95
93
|
refresh: () => T(),
|
|
96
94
|
refreshByDelete: (e) => $(e),
|
|
97
95
|
scrollToFirstRow: W,
|
|
98
96
|
getSearchFormValuesIfSetted: G
|
|
99
97
|
}), (e, a) => (i(), S(t(x), {
|
|
100
98
|
spinning: y.value,
|
|
101
|
-
class: u(t(
|
|
99
|
+
class: u(t(m)("spin"))
|
|
102
100
|
}, {
|
|
103
101
|
default: f(() => [
|
|
104
102
|
X("div", {
|
|
105
|
-
class: u(t(
|
|
106
|
-
style:
|
|
103
|
+
class: u(t(m)()),
|
|
104
|
+
style: h(e.containerStyle)
|
|
107
105
|
}, [
|
|
108
106
|
l(e.$slots, "header", {
|
|
109
107
|
formIns: j,
|
|
110
|
-
submit: t(
|
|
111
|
-
reset: t(
|
|
108
|
+
submit: t(D),
|
|
109
|
+
reset: t(w)
|
|
112
110
|
}),
|
|
113
111
|
s.value.length === 0 ? l(e.$slots, "empty", {
|
|
114
112
|
key: 0,
|
|
115
113
|
loading: y.value
|
|
116
114
|
}, () => [
|
|
117
|
-
|
|
115
|
+
v(t(E), { image: t(L) }, null, 8, ["image"])
|
|
118
116
|
]) : (i(), p("div", {
|
|
119
117
|
key: 1,
|
|
120
118
|
ref_key: "contentRef",
|
|
121
119
|
ref: b,
|
|
122
|
-
style:
|
|
120
|
+
style: h(e.contentStyle)
|
|
123
121
|
}, [
|
|
124
122
|
e.virtual ? (i(), p(I, { key: 0 }, [
|
|
125
|
-
t(
|
|
123
|
+
t(ae)(e.virtual) ? (i(), S(t(oe), {
|
|
126
124
|
key: 0,
|
|
127
|
-
class: u(t(
|
|
125
|
+
class: u(t(m)("scroll-wrapper")),
|
|
128
126
|
items: s.value,
|
|
129
127
|
"item-size": e.virtual,
|
|
130
128
|
"key-field": n.rowKey || "id"
|
|
@@ -136,20 +134,20 @@ const he = /* @__PURE__ */ H({
|
|
|
136
134
|
})
|
|
137
135
|
]),
|
|
138
136
|
_: 3
|
|
139
|
-
}, 8, ["class", "items", "item-size", "key-field"])) : (i(), S(t(
|
|
137
|
+
}, 8, ["class", "items", "item-size", "key-field"])) : (i(), S(t(ie), {
|
|
140
138
|
key: 1,
|
|
141
139
|
items: s.value,
|
|
142
140
|
"min-item-size": e.virtual.minItemSize,
|
|
143
|
-
class: u(t(
|
|
141
|
+
class: u(t(m)("scroll-wrapper"))
|
|
144
142
|
}, {
|
|
145
143
|
default: f(({ item: r, index: o, active: U }) => {
|
|
146
|
-
var
|
|
144
|
+
var C, P;
|
|
147
145
|
return [
|
|
148
|
-
|
|
146
|
+
v(t(le), {
|
|
149
147
|
item: r,
|
|
150
148
|
active: U,
|
|
151
149
|
"data-index": o,
|
|
152
|
-
"size-dependencies": (
|
|
150
|
+
"size-dependencies": (P = (C = e.virtual).sizeDependencies) == null ? void 0 : P.call(C, r)
|
|
153
151
|
}, {
|
|
154
152
|
default: f(() => [
|
|
155
153
|
l(e.$slots, "renderItem", {
|
|
@@ -176,10 +174,10 @@ const he = /* @__PURE__ */ H({
|
|
|
176
174
|
M.value ? (i(), p("div", {
|
|
177
175
|
key: 2,
|
|
178
176
|
class: u(t(N)("footer")),
|
|
179
|
-
style:
|
|
177
|
+
style: h(e.footerWarpperStyle)
|
|
180
178
|
}, [
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
v(t(ee), Z(
|
|
180
|
+
c.value ? t(B) : t(ne)(t(z).pagination, ["showTotal"]),
|
|
183
181
|
{ onChange: K }
|
|
184
182
|
), null, 16)
|
|
185
183
|
], 6)) : _("", !0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleValue } from 'vue';
|
|
1
|
+
import { Ref, StyleValue } from 'vue';
|
|
2
2
|
import { RequestData } from '../ap-table';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
export type ApListProps<RecordType = any, ParamsType = Recordable> = {
|
|
@@ -16,9 +16,9 @@ export type ApListProps<RecordType = any, ParamsType = Recordable> = {
|
|
|
16
16
|
*/
|
|
17
17
|
onItem?: (record: RecordType, index: number) => void;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 依赖的额外的参数,传入响应式参数会在变更后重新执行
|
|
20
20
|
*/
|
|
21
|
-
params?: ParamsType
|
|
21
|
+
params?: ParamsType | Ref<ParamsType>;
|
|
22
22
|
/**
|
|
23
23
|
* 请求数据
|
|
24
24
|
* @param params
|
|
@@ -2,5 +2,5 @@ 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, {}, HTMLDivElement>;
|
|
6
6
|
export default _default;
|
|
@@ -4,7 +4,7 @@ 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, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
8
8
|
P: {};
|
|
9
9
|
B: {};
|
|
10
10
|
D: {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ApColumnType, ApTableProps } from './interface';
|
|
2
2
|
import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
3
3
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
4
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode
|
|
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> & ApTableProps<RecordType>> & PublicProps;
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & Partial<{}> & ApTableProps<RecordType>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
submit: () => void;
|
|
9
9
|
reset: () => void;
|
|
@@ -76,9 +76,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
76
76
|
}) => void;
|
|
77
77
|
};
|
|
78
78
|
emit: {};
|
|
79
|
-
}>) => VNode
|
|
80
|
-
[key: string]: any;
|
|
81
|
-
}> & {
|
|
79
|
+
}>) => VNode & {
|
|
82
80
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
83
81
|
};
|
|
84
82
|
export default _default;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as l, createVNode as
|
|
1
|
+
import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as l, createVNode as g, Fragment as q, watchEffect as xe, watch as G, openBlock as p, createElementBlock as T, normalizeClass as f, normalizeStyle as M, mergeProps as w, 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";
|
|
5
5
|
import { noRenderAsFormItemValueList as Y } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { useTablePaging as Ke } from "./hooks/use-table-paging.mjs";
|
|
8
|
-
import { isUndefined as m, omit as Z, isBoolean as
|
|
9
|
-
import { getColumnOrder as ee, updateFormProps as
|
|
7
|
+
import { useTablePaging as Ke } from "./hooks/use-table-paging-ng.mjs";
|
|
8
|
+
import { isUndefined as m, omit as Z, isBoolean as Oe } from "lodash-unified";
|
|
9
|
+
import { getColumnOrder as ee, updateFormProps as Le, getFieldProps as Ve, getSearchFormItemRenderNode as Ae, recursionApColumns as ae, apColumnToColumn as De, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He, falseToUndefined as Ue } from "./utils.mjs";
|
|
10
10
|
import qe from "./hooks/use-table-content-height.mjs";
|
|
11
|
-
import
|
|
12
|
-
import { isDef as
|
|
11
|
+
import Ge from "./hooks/use-table-row-selection.mjs";
|
|
12
|
+
import { isDef as Me } from "../utils/index.mjs";
|
|
13
13
|
import "./components/setting/modal/index.vue.mjs";
|
|
14
14
|
import "./components/paragraph-ellipsis/index.vue.mjs";
|
|
15
|
-
import { useProvideApTable as
|
|
16
|
-
import { useNamespace as
|
|
17
|
-
import { useGlobalConfig as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
const
|
|
15
|
+
import { useProvideApTable as _e } from "./context.mjs";
|
|
16
|
+
import { useNamespace as Je } from "../config-provider/hooks/use-namespace.mjs";
|
|
17
|
+
import { useGlobalConfig as Qe } from "../config-provider/hooks/use-global-config.mjs";
|
|
18
|
+
import Xe from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
19
|
+
import Ye from "./components/setting/modal/index.vue2.mjs";
|
|
20
|
+
const ba = /* @__PURE__ */ Te({
|
|
21
21
|
name: "ApTable",
|
|
22
22
|
__name: "ap-table",
|
|
23
23
|
props: {
|
|
@@ -146,17 +146,17 @@ const wa = /* @__PURE__ */ Te({
|
|
|
146
146
|
}) {
|
|
147
147
|
const a = oe;
|
|
148
148
|
let N = 0;
|
|
149
|
-
const
|
|
149
|
+
const h = Fe(), [, re] = Ne(), {
|
|
150
150
|
e: x,
|
|
151
151
|
b: i,
|
|
152
152
|
be: E
|
|
153
|
-
} =
|
|
153
|
+
} = Je("ap-table"), K = Qe("valueTypeMap"), {
|
|
154
154
|
height: le,
|
|
155
155
|
contentRef: ne
|
|
156
|
-
} = qe(), B = P(a.size), u = P([]),
|
|
157
|
-
|
|
156
|
+
} = qe(), B = P(a.size), u = P([]), O = P([]);
|
|
157
|
+
_e({
|
|
158
158
|
columns: s(() => u.value),
|
|
159
|
-
columnsBackup: s(() =>
|
|
159
|
+
columnsBackup: s(() => O.value),
|
|
160
160
|
size: s(() => B.value),
|
|
161
161
|
updateColumns(e) {
|
|
162
162
|
u.value = e;
|
|
@@ -165,13 +165,13 @@ const wa = /* @__PURE__ */ Te({
|
|
|
165
165
|
B.value = e;
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
const
|
|
168
|
+
const L = s(() => {
|
|
169
169
|
var e, t, o;
|
|
170
170
|
return N++, ((o = (t = (e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Y.includes(r.valueType))) == null ? void 0 : t.sort((r, d) => {
|
|
171
171
|
let n = ee(r.order);
|
|
172
172
|
return ee(d.order) - n;
|
|
173
173
|
})) == null ? void 0 : o.map((r) => {
|
|
174
|
-
const d =
|
|
174
|
+
const d = Le(r, Ve(r.fieldProps, {})), n = {
|
|
175
175
|
...r,
|
|
176
176
|
fieldProps: {
|
|
177
177
|
label: r.title,
|
|
@@ -189,11 +189,11 @@ const wa = /* @__PURE__ */ Te({
|
|
|
189
189
|
}).filter(Boolean)), de = s(() => ae(l(u), (e) => {
|
|
190
190
|
if (e.filters && !e.onFilter)
|
|
191
191
|
return e.key || e.dataIndex;
|
|
192
|
-
}).filter(Boolean)), ue = s(() => m(a.dataSource) ? v.
|
|
193
|
-
rowSelection:
|
|
194
|
-
selectedRows:
|
|
195
|
-
...
|
|
196
|
-
} =
|
|
192
|
+
}).filter(Boolean)), ue = s(() => m(a.dataSource) ? v.records : a.dataSource), {
|
|
193
|
+
rowSelection: S,
|
|
194
|
+
selectedRows: R,
|
|
195
|
+
...C
|
|
196
|
+
} = Ge({
|
|
197
197
|
fixed: !0,
|
|
198
198
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
199
199
|
rowKey: a.rowKey,
|
|
@@ -210,7 +210,7 @@ const wa = /* @__PURE__ */ Te({
|
|
|
210
210
|
} = Ke({
|
|
211
211
|
async request(e) {
|
|
212
212
|
var o, r;
|
|
213
|
-
if (!
|
|
213
|
+
if (!S.value.preserveSelectedRowKeys && m(a.dataSource) && C.clearAll(), !m(a.dataSource))
|
|
214
214
|
return {
|
|
215
215
|
data: a.dataSource || [],
|
|
216
216
|
total: a.dataSource.length || 0
|
|
@@ -226,43 +226,40 @@ const wa = /* @__PURE__ */ Te({
|
|
|
226
226
|
defaultParams: a.params,
|
|
227
227
|
defaultData: a.defaultData,
|
|
228
228
|
manual: a.manual,
|
|
229
|
-
defaultCurrent: a.pagination ? a.pagination.defaultCurrent : void 0,
|
|
230
|
-
defaultPageSize: a.pagination ? a.pagination.defaultPageSize : void 0,
|
|
231
229
|
formatParams: a.beforeSearchSubmit,
|
|
232
|
-
|
|
233
|
-
showTotal: a.pagination ? a.pagination.showTotal : void 0
|
|
230
|
+
pagination: a.pagination
|
|
234
231
|
}), fe = () => {
|
|
235
232
|
var o;
|
|
236
233
|
let e = ((o = a.columns) == null ? void 0 : o.filter((r) => !r.hideInTable)) || [];
|
|
237
234
|
function t(r, d) {
|
|
238
235
|
return r.map((n) => ({
|
|
239
|
-
resizable:
|
|
236
|
+
resizable: Me(n.resizable) ? n.resizable : a.columnResizable,
|
|
240
237
|
...Z(De(n), ["ellipsis"]),
|
|
241
238
|
...pe(n),
|
|
242
239
|
fixed: d ? d.fixed : n.fixed,
|
|
243
|
-
title: je(n, E("table-header", "title"),
|
|
240
|
+
title: je(n, E("table-header", "title"), h.headerCell, l(re).colorPrimary),
|
|
244
241
|
customRender({
|
|
245
242
|
value: c,
|
|
246
|
-
...
|
|
243
|
+
...y
|
|
247
244
|
}) {
|
|
248
|
-
var H,
|
|
249
|
-
const $ = $e(n),
|
|
245
|
+
var H, U;
|
|
246
|
+
const $ = $e(n), Re = We({
|
|
250
247
|
...n,
|
|
251
248
|
valueType: $
|
|
252
249
|
}, {
|
|
253
250
|
value: c,
|
|
254
|
-
...
|
|
255
|
-
}),
|
|
251
|
+
...y
|
|
252
|
+
}), Ce = He($, Re, y.record, l(K)), W = ((H = n.renderText) == null ? void 0 : H.call(n, {
|
|
256
253
|
value: c,
|
|
257
|
-
...
|
|
258
|
-
})) || c, ve = n.renderText ?
|
|
254
|
+
...y
|
|
255
|
+
})) || c, ve = n.renderText ? g(q, null, [(U = n.renderText) == null ? void 0 : U.call(n, {
|
|
259
256
|
value: c,
|
|
260
|
-
...
|
|
261
|
-
})]) :
|
|
257
|
+
...y
|
|
258
|
+
})]) : Ce;
|
|
262
259
|
let z = we(n, W, ve);
|
|
263
260
|
return n.customRender && (z = n.customRender({
|
|
264
261
|
value: c,
|
|
265
|
-
...
|
|
262
|
+
...y,
|
|
266
263
|
column: n,
|
|
267
264
|
originalNode: z,
|
|
268
265
|
originalText: W
|
|
@@ -275,18 +272,18 @@ const wa = /* @__PURE__ */ Te({
|
|
|
275
272
|
};
|
|
276
273
|
xe(() => {
|
|
277
274
|
const e = fe();
|
|
278
|
-
u.value = e,
|
|
275
|
+
u.value = e, O.value = e;
|
|
279
276
|
});
|
|
280
277
|
const me = s(() => {
|
|
281
278
|
var t, o;
|
|
282
|
-
if (a.adaptive && (v.
|
|
279
|
+
if (a.adaptive && (v.total > 0 || ((t = a.dataSource) == null ? void 0 : t.length)))
|
|
283
280
|
return {
|
|
284
281
|
y: l(le),
|
|
285
282
|
x: ((o = a.scroll) == null ? void 0 : o.x) || "100%"
|
|
286
283
|
};
|
|
287
284
|
if (a.scroll)
|
|
288
285
|
return a.scroll;
|
|
289
|
-
}),
|
|
286
|
+
}), ye = s(() => {
|
|
290
287
|
var e;
|
|
291
288
|
if (a.tableLayout)
|
|
292
289
|
return a.tableLayout;
|
|
@@ -294,7 +291,7 @@ const wa = /* @__PURE__ */ Te({
|
|
|
294
291
|
return "fixed";
|
|
295
292
|
}), j = s(() => {
|
|
296
293
|
var o;
|
|
297
|
-
const e = l(D), t = l(
|
|
294
|
+
const e = l(D), t = l(S);
|
|
298
295
|
return {
|
|
299
296
|
...a,
|
|
300
297
|
...e,
|
|
@@ -302,16 +299,16 @@ const wa = /* @__PURE__ */ Te({
|
|
|
302
299
|
...t,
|
|
303
300
|
// tips 如果是前端分页,则默认会走缓存
|
|
304
301
|
preserveSelectedRowKeys: m(a.dataSource) ? t.preserveSelectedRowKeys : !0
|
|
305
|
-
} : a.rowSelection,
|
|
302
|
+
} : Ue(a.rowSelection),
|
|
306
303
|
loading: m(a.loading) ? e.loading : a.loading,
|
|
307
304
|
pagination: a.pagination === !1 ? !1 : e.pagination,
|
|
308
305
|
scroll: l(me)
|
|
309
306
|
};
|
|
310
|
-
}),
|
|
307
|
+
}), ge = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
|
|
311
308
|
function we(e, t, o) {
|
|
312
|
-
return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ?
|
|
309
|
+
return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ? g(Xe, {
|
|
313
310
|
copyable: e.copyable,
|
|
314
|
-
ellipsis: e.ellipsis ?
|
|
311
|
+
ellipsis: e.ellipsis ? Oe(e.ellipsis) ? {
|
|
315
312
|
tooltip: o,
|
|
316
313
|
rows: 1
|
|
317
314
|
} : {
|
|
@@ -329,37 +326,37 @@ const wa = /* @__PURE__ */ Te({
|
|
|
329
326
|
}, {
|
|
330
327
|
immediate: !0
|
|
331
328
|
});
|
|
332
|
-
function
|
|
329
|
+
function be(e) {
|
|
333
330
|
var t, o, r;
|
|
334
331
|
(r = (o = (t = k.value) == null ? void 0 : t.apForm) == null ? void 0 : o.setFieldsValue) == null || r.call(o, e);
|
|
335
332
|
}
|
|
336
|
-
function
|
|
333
|
+
function he(e = !1) {
|
|
337
334
|
var o, r, d;
|
|
338
335
|
const t = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
339
336
|
return (d = (r = (o = k.value) == null ? void 0 : o.apForm) == null ? void 0 : r[t]) == null ? void 0 : d.call(r, !0);
|
|
340
337
|
}
|
|
341
|
-
function
|
|
338
|
+
function Se() {
|
|
342
339
|
return l(u);
|
|
343
340
|
}
|
|
344
341
|
return te({
|
|
345
342
|
submit: () => V(),
|
|
346
343
|
reset: () => A(),
|
|
347
344
|
refresh: () => ie(),
|
|
348
|
-
setSearchFormValues:
|
|
349
|
-
getSearchFormValues:
|
|
350
|
-
getShownColumns:
|
|
345
|
+
setSearchFormValues: be,
|
|
346
|
+
getSearchFormValues: he,
|
|
347
|
+
getShownColumns: Se,
|
|
351
348
|
dataSource: s(() => l(v).records),
|
|
352
349
|
rowSelection: {
|
|
353
|
-
selectedRows: s(() => l(
|
|
354
|
-
...
|
|
350
|
+
selectedRows: s(() => l(R)),
|
|
351
|
+
...C
|
|
355
352
|
}
|
|
356
353
|
}), (e, t) => (p(), T("div", {
|
|
357
|
-
class: f(
|
|
358
|
-
}, [l(m)(e.dataSource) && e.searchForm !== !1 &&
|
|
354
|
+
class: f(ge.value)
|
|
355
|
+
}, [l(m)(e.dataSource) && e.searchForm !== !1 && L.value.length > 0 ? (p(), T("div", {
|
|
359
356
|
key: 0,
|
|
360
357
|
class: f(e.card ? l(x)("search-wrapper") : null),
|
|
361
358
|
style: M(e.searchFormWrapperStyle)
|
|
362
|
-
}, [
|
|
359
|
+
}, [g(l(Ee).SearchForm, w(e.searchForm || {}, {
|
|
363
360
|
ref_key: "formRef",
|
|
364
361
|
ref: k,
|
|
365
362
|
"custom-reset": "",
|
|
@@ -367,16 +364,16 @@ const wa = /* @__PURE__ */ Te({
|
|
|
367
364
|
onSubmit: l(V),
|
|
368
365
|
onReset: l(A)
|
|
369
366
|
}), _({
|
|
370
|
-
default: F(() => [(p(!0), T(
|
|
367
|
+
default: F(() => [(p(!0), T(q, null, J(L.value, (o) => (p(), Q(Be(o.renderNode), w({
|
|
371
368
|
key: o.dataIndex,
|
|
372
369
|
ref_for: !0
|
|
373
370
|
}, o.fieldProps || {}, {
|
|
374
371
|
span: o.span
|
|
375
372
|
}), null, 16, ["span"]))), 128))]),
|
|
376
373
|
_: 2
|
|
377
|
-
}, [
|
|
374
|
+
}, [h.searchFormExtra ? {
|
|
378
375
|
name: "extra",
|
|
379
|
-
fn: F(() => [
|
|
376
|
+
fn: F(() => [b(e.$slots, "searchFormExtra")]),
|
|
380
377
|
key: "0"
|
|
381
378
|
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : X("", !0), I("div", {
|
|
382
379
|
ref_key: "contentRef",
|
|
@@ -390,40 +387,40 @@ const wa = /* @__PURE__ */ Te({
|
|
|
390
387
|
class: f(l(i)("header"))
|
|
391
388
|
}, [I("div", {
|
|
392
389
|
class: f(l(E)("header", "title"))
|
|
393
|
-
}, [
|
|
394
|
-
selectedRows: l(
|
|
395
|
-
selectedRowKeys: l(
|
|
390
|
+
}, [b(e.$slots, "title", w({
|
|
391
|
+
selectedRows: l(R),
|
|
392
|
+
selectedRowKeys: l(S).selectedRowKeys,
|
|
396
393
|
shownColumns: u.value
|
|
397
|
-
},
|
|
394
|
+
}, C))], 2), h.title ? (p(), Q(l(Pe), {
|
|
398
395
|
key: 0,
|
|
399
396
|
type: "vertical"
|
|
400
|
-
})) : X("", !0),
|
|
397
|
+
})) : X("", !0), g(Ye, {
|
|
401
398
|
config: e.settings === !0 ? {} : e.settings
|
|
402
|
-
}, null, 8, ["config"])], 2)) :
|
|
399
|
+
}, null, 8, ["config"])], 2)) : b(e.$slots, "title", w({
|
|
403
400
|
key: 1,
|
|
404
|
-
selectedRows: l(
|
|
405
|
-
selectedRowKeys: l(
|
|
401
|
+
selectedRows: l(R),
|
|
402
|
+
selectedRowKeys: l(S).selectedRowKeys,
|
|
406
403
|
shownColumns: u.value
|
|
407
|
-
},
|
|
404
|
+
}, C))], 2), g(l(Ie), w({
|
|
408
405
|
class: l(i)("table")
|
|
409
406
|
}, j.value, {
|
|
410
407
|
size: B.value,
|
|
411
|
-
"table-layout":
|
|
408
|
+
"table-layout": ye.value,
|
|
412
409
|
columns: u.value,
|
|
413
410
|
onResizeColumn: t[0] || (t[0] = (o, r) => r.width = o)
|
|
414
411
|
}), _({
|
|
415
|
-
summary: F(() => [
|
|
412
|
+
summary: F(() => [b(e.$slots, "summary", {
|
|
416
413
|
columns: u.value,
|
|
417
414
|
records: j.value.dataSource,
|
|
418
|
-
selectedRows: l(
|
|
415
|
+
selectedRows: l(R)
|
|
419
416
|
})]),
|
|
420
417
|
_: 2
|
|
421
|
-
}, [J(l(Z)(
|
|
418
|
+
}, [J(l(Z)(h, ["title", "searchFormExtra", "headerCell", "summary"]), (o, r) => ({
|
|
422
419
|
name: r,
|
|
423
|
-
fn: F((d) => [
|
|
420
|
+
fn: F((d) => [b(e.$slots, r, ke(ze(d || {})))])
|
|
424
421
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 2));
|
|
425
422
|
}
|
|
426
423
|
});
|
|
427
424
|
export {
|
|
428
|
-
|
|
425
|
+
ba as default
|
|
429
426
|
};
|
|
@@ -2,5 +2,5 @@ import { ApTableIndexProps } from '../interface';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableIndexProps> & Readonly<{}>, {
|
|
4
4
|
bordered: boolean;
|
|
5
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
5
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
6
|
export default _default;
|
|
@@ -7,5 +7,5 @@ interface Props {
|
|
|
7
7
|
tooltip?: VNodeChild;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
10
|
+
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
11
|
export default _default;
|
|
@@ -5,9 +5,10 @@ type TableSettingModalSlots = {
|
|
|
5
5
|
trigger?: any;
|
|
6
6
|
};
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
8
9
|
slots: Readonly<TableSettingModalSlots> & TableSettingModalSlots;
|
|
9
10
|
refs: {};
|
|
10
|
-
|
|
11
|
+
rootEl: any;
|
|
11
12
|
};
|
|
12
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
14
|
declare const __VLS_component: DefineComponent<ApTableSettingModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingModalProps> & Readonly<{}>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ApTableSettingSelectGroupProps } from '../../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<ApTableSettingSelectGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
3
|
+
declare const _default: DefineComponent<ApTableSettingSelectGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SortableItemProps } from '../../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<SortableItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SortableItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
3
|
+
declare const _default: DefineComponent<SortableItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SortableItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4
4
|
export default _default;
|
|
@@ -7,5 +7,5 @@ declare const _default: DefineComponent<SortableItemMetaProps, {}, {}, {}, {}, C
|
|
|
7
7
|
}, string, PublicProps, Readonly<SortableItemMetaProps> & Readonly<{
|
|
8
8
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
9
9
|
"onUpdate:value"?: ((open: ApColumnState) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
10
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
11
|
export default _default;
|
|
@@ -5,5 +5,5 @@ declare const _default: DefineComponent<ApTableSettingSorterProps, {}, {}, {}, {
|
|
|
5
5
|
"update:value": (value: ApColumnState[]) => any;
|
|
6
6
|
}, string, PublicProps, Readonly<ApTableSettingSorterProps> & Readonly<{
|
|
7
7
|
"onUpdate:value"?: ((value: ApColumnState[]) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
8
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
9
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ApTableSettingTreeSelectProps } from '../../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<ApTableSettingTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingTreeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
3
|
+
declare const _default: DefineComponent<ApTableSettingTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingTreeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4
4
|
export default _default;
|
|
@@ -1290,7 +1290,7 @@ export declare const apTableRenderItemMap: {
|
|
|
1290
1290
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1291
1291
|
index: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableIndexProps> & Readonly<{}>, {
|
|
1292
1292
|
bordered: boolean;
|
|
1293
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
1293
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1294
1294
|
status: DefineComponent<ApTableStatusProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableStatusProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1295
1295
|
password: {
|
|
1296
1296
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFieldTextPasswordProps> & Readonly<{
|