@aplus-frontend/ui 0.3.8 → 0.3.9
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-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 +23 -22
- 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.d.ts +7 -3
- package/es/src/ap-table/hooks/use-table-paging.mjs +131 -126
- 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 +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
- 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-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.d.ts +7 -3
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- 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 +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as l, createVNode as y, Fragment as
|
|
1
|
+
import { defineComponent as Te, useSlots as Fe, ref as P, computed as s, unref as l, createVNode as y, 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 h, 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";
|
|
@@ -6,18 +6,18 @@ import { noRenderAsFormItemValueList as Y } from "./constants.mjs";
|
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as Ke } from "./hooks/use-table-paging.mjs";
|
|
8
8
|
import { isUndefined as m, omit as Z, isBoolean as Le } from "lodash-unified";
|
|
9
|
-
import { getColumnOrder as ee, updateFormProps as Oe, getFieldProps as Ve, getSearchFormItemRenderNode as Ae, recursionApColumns as ae, apColumnToColumn as De, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He } from "./utils.mjs";
|
|
9
|
+
import { getColumnOrder as ee, updateFormProps as Oe, 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 ha = /* @__PURE__ */ Te({
|
|
21
21
|
name: "ApTable",
|
|
22
22
|
__name: "ap-table",
|
|
23
23
|
props: {
|
|
@@ -150,11 +150,11 @@ const wa = /* @__PURE__ */ Te({
|
|
|
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
156
|
} = qe(), B = P(a.size), u = P([]), L = P([]);
|
|
157
|
-
|
|
157
|
+
_e({
|
|
158
158
|
columns: s(() => u.value),
|
|
159
159
|
columnsBackup: s(() => L.value),
|
|
160
160
|
size: s(() => B.value),
|
|
@@ -193,7 +193,7 @@ const wa = /* @__PURE__ */ Te({
|
|
|
193
193
|
rowSelection: b,
|
|
194
194
|
selectedRows: C,
|
|
195
195
|
...R
|
|
196
|
-
} =
|
|
196
|
+
} = Ge({
|
|
197
197
|
fixed: !0,
|
|
198
198
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
199
199
|
rowKey: a.rowKey,
|
|
@@ -230,13 +230,14 @@ const wa = /* @__PURE__ */ Te({
|
|
|
230
230
|
defaultPageSize: a.pagination ? a.pagination.defaultPageSize : void 0,
|
|
231
231
|
formatParams: a.beforeSearchSubmit,
|
|
232
232
|
showLessItems: a.pagination ? a.pagination.showLessItems : void 0,
|
|
233
|
-
showTotal: a.pagination ? a.pagination.showTotal : void 0
|
|
233
|
+
showTotal: a.pagination ? a.pagination.showTotal : void 0,
|
|
234
|
+
pagination: a.pagination !== !1
|
|
234
235
|
}), fe = () => {
|
|
235
236
|
var o;
|
|
236
237
|
let e = ((o = a.columns) == null ? void 0 : o.filter((r) => !r.hideInTable)) || [];
|
|
237
238
|
function t(r, d) {
|
|
238
239
|
return r.map((n) => ({
|
|
239
|
-
resizable:
|
|
240
|
+
resizable: Me(n.resizable) ? n.resizable : a.columnResizable,
|
|
240
241
|
...Z(De(n), ["ellipsis"]),
|
|
241
242
|
...pe(n),
|
|
242
243
|
fixed: d ? d.fixed : n.fixed,
|
|
@@ -245,7 +246,7 @@ const wa = /* @__PURE__ */ Te({
|
|
|
245
246
|
value: c,
|
|
246
247
|
...g
|
|
247
248
|
}) {
|
|
248
|
-
var H,
|
|
249
|
+
var H, U;
|
|
249
250
|
const $ = $e(n), Ce = We({
|
|
250
251
|
...n,
|
|
251
252
|
valueType: $
|
|
@@ -255,7 +256,7 @@ const wa = /* @__PURE__ */ Te({
|
|
|
255
256
|
}), Re = He($, Ce, g.record, l(K)), W = ((H = n.renderText) == null ? void 0 : H.call(n, {
|
|
256
257
|
value: c,
|
|
257
258
|
...g
|
|
258
|
-
})) || c, ve = n.renderText ? y(
|
|
259
|
+
})) || c, ve = n.renderText ? y(q, null, [(U = n.renderText) == null ? void 0 : U.call(n, {
|
|
259
260
|
value: c,
|
|
260
261
|
...g
|
|
261
262
|
})]) : Re;
|
|
@@ -302,14 +303,14 @@ const wa = /* @__PURE__ */ Te({
|
|
|
302
303
|
...t,
|
|
303
304
|
// tips 如果是前端分页,则默认会走缓存
|
|
304
305
|
preserveSelectedRowKeys: m(a.dataSource) ? t.preserveSelectedRowKeys : !0
|
|
305
|
-
} : a.rowSelection,
|
|
306
|
+
} : Ue(a.rowSelection),
|
|
306
307
|
loading: m(a.loading) ? e.loading : a.loading,
|
|
307
308
|
pagination: a.pagination === !1 ? !1 : e.pagination,
|
|
308
309
|
scroll: l(me)
|
|
309
310
|
};
|
|
310
311
|
}), ye = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
|
|
311
312
|
function we(e, t, o) {
|
|
312
|
-
return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ? y(
|
|
313
|
+
return Y.includes(e.valueType) ? o : e.copyable || e.ellipsis ? y(Xe, {
|
|
313
314
|
copyable: e.copyable,
|
|
314
315
|
ellipsis: e.ellipsis ? Le(e.ellipsis) ? {
|
|
315
316
|
tooltip: o,
|
|
@@ -367,7 +368,7 @@ const wa = /* @__PURE__ */ Te({
|
|
|
367
368
|
onSubmit: l(V),
|
|
368
369
|
onReset: l(A)
|
|
369
370
|
}), _({
|
|
370
|
-
default: F(() => [(p(!0), T(
|
|
371
|
+
default: F(() => [(p(!0), T(q, null, J(O.value, (o) => (p(), Q(Be(o.renderNode), w({
|
|
371
372
|
key: o.dataIndex,
|
|
372
373
|
ref_for: !0
|
|
373
374
|
}, o.fieldProps || {}, {
|
|
@@ -397,7 +398,7 @@ const wa = /* @__PURE__ */ Te({
|
|
|
397
398
|
}, R))], 2), S.title ? (p(), Q(l(Pe), {
|
|
398
399
|
key: 0,
|
|
399
400
|
type: "vertical"
|
|
400
|
-
})) : X("", !0), y(
|
|
401
|
+
})) : X("", !0), y(Ye, {
|
|
401
402
|
config: e.settings === !0 ? {} : e.settings
|
|
402
403
|
}, null, 8, ["config"])], 2)) : h(e.$slots, "title", w({
|
|
403
404
|
key: 1,
|
|
@@ -425,5 +426,5 @@ const wa = /* @__PURE__ */ Te({
|
|
|
425
426
|
}
|
|
426
427
|
});
|
|
427
428
|
export {
|
|
428
|
-
|
|
429
|
+
ha as default
|
|
429
430
|
};
|
|
@@ -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<{
|
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, in
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?:
|
|
7
|
+
fixed?: "left" | "right" | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?: any[] | undefined;
|
|
10
|
+
children?: /*elided*/ any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?:
|
|
15
|
+
fixed?: "left" | "right" | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -62,8 +62,12 @@ export type UseTablePagingParams<DataType, ParamsType> = {
|
|
|
62
62
|
* 用于显示数据总量和当前数据顺序
|
|
63
63
|
*/
|
|
64
64
|
showTotal?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 是否分页
|
|
67
|
+
*/
|
|
68
|
+
pagination?: boolean;
|
|
65
69
|
};
|
|
66
|
-
export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, showLessItems, showTotal }: UseTablePagingParams<DataType, ParamsType>) => {
|
|
70
|
+
export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, showLessItems, showTotal, pagination }: UseTablePagingParams<DataType, ParamsType>) => {
|
|
67
71
|
formRef: Ref<ApFormSearchFormExpose | undefined, ApFormSearchFormExpose | undefined>;
|
|
68
72
|
submit: () => void;
|
|
69
73
|
reset: () => void;
|
|
@@ -78,8 +82,8 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
|
|
|
78
82
|
records: DataType[];
|
|
79
83
|
loading: boolean;
|
|
80
84
|
}>;
|
|
81
|
-
current: Ref<number, number>;
|
|
82
|
-
pageSize: Ref<number, number>;
|
|
85
|
+
current: Ref<number | undefined, number | undefined>;
|
|
86
|
+
pageSize: Ref<number | undefined, number | undefined>;
|
|
83
87
|
handleTableChange: (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void;
|
|
84
88
|
tableProps: ComputedRef<{
|
|
85
89
|
loading: boolean;
|
|
@@ -1,171 +1,176 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { parseFieldValue as
|
|
3
|
-
import { isArray as
|
|
1
|
+
import { ref as b, nextTick as re, unref as r, onMounted as oe, computed as y, createVNode as z } from "vue";
|
|
2
|
+
import { parseFieldValue as ne, dataIndexToStr as se, isEqualCustom as ie } from "../utils.mjs";
|
|
3
|
+
import { isArray as K, isEqualWith as le } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useTableSortedAndFiltered as
|
|
6
|
-
import { useLocale as
|
|
7
|
-
import { useNamespace as
|
|
5
|
+
import { useTableSortedAndFiltered as ce } from "./use-sorted-filtered.mjs";
|
|
6
|
+
import { useLocale as ue } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
8
|
const Te = ({
|
|
9
|
-
manual:
|
|
10
|
-
defaultCurrent:
|
|
11
|
-
defaultPageSize:
|
|
12
|
-
request:
|
|
13
|
-
defaultParams:
|
|
14
|
-
defaultData:
|
|
15
|
-
formatParams:
|
|
16
|
-
paramsValueTypeMap:
|
|
17
|
-
resetFieldsIgnores:
|
|
18
|
-
filterFields:
|
|
19
|
-
sortFields:
|
|
20
|
-
showLessItems:
|
|
21
|
-
showTotal:
|
|
9
|
+
manual: M = !1,
|
|
10
|
+
defaultCurrent: N = 1,
|
|
11
|
+
defaultPageSize: w = 10,
|
|
12
|
+
request: _,
|
|
13
|
+
defaultParams: $ = {},
|
|
14
|
+
defaultData: J = [],
|
|
15
|
+
formatParams: A,
|
|
16
|
+
paramsValueTypeMap: D,
|
|
17
|
+
resetFieldsIgnores: E,
|
|
18
|
+
filterFields: L,
|
|
19
|
+
sortFields: Q,
|
|
20
|
+
showLessItems: C = !1,
|
|
21
|
+
showTotal: W = !0,
|
|
22
|
+
pagination: p = !0
|
|
22
23
|
}) => {
|
|
23
|
-
let
|
|
24
|
-
const
|
|
25
|
-
getColumnSFConfig:
|
|
26
|
-
setSF:
|
|
27
|
-
clearAll:
|
|
28
|
-
} = le(), {
|
|
29
|
-
t: T
|
|
24
|
+
let V = 0, i = {};
|
|
25
|
+
const G = (e) => A ? A(e) : e, u = b(), f = b(p ? N : void 0), g = b(p ? w : void 0), {
|
|
26
|
+
getColumnSFConfig: H,
|
|
27
|
+
setSF: U,
|
|
28
|
+
clearAll: X
|
|
30
29
|
} = ce(), {
|
|
30
|
+
t: T
|
|
31
|
+
} = ue(), {
|
|
31
32
|
b: F
|
|
32
|
-
} =
|
|
33
|
+
} = fe("ap-table"), o = b({
|
|
33
34
|
total: 0,
|
|
34
|
-
records:
|
|
35
|
+
records: J,
|
|
35
36
|
loading: !1
|
|
36
|
-
}),
|
|
37
|
+
}), O = async (e) => {
|
|
37
38
|
var n;
|
|
38
|
-
const
|
|
39
|
-
|
|
39
|
+
const t = G(e), a = Date.now();
|
|
40
|
+
V = a, o.value.loading = !0;
|
|
40
41
|
try {
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
...
|
|
42
|
+
const s = await _({
|
|
43
|
+
...$,
|
|
44
|
+
...t
|
|
44
45
|
});
|
|
45
|
-
|
|
46
|
+
V === a && (o.value.total = s.total || ((n = s.data) == null ? void 0 : n.length) || 0, o.value.records = [...s.data || []]);
|
|
46
47
|
} catch {
|
|
47
|
-
|
|
48
|
+
V === a && (o.value.records = [], o.value.total = 0);
|
|
48
49
|
} finally {
|
|
49
|
-
|
|
50
|
+
o.value.loading = !1;
|
|
50
51
|
}
|
|
51
|
-
},
|
|
52
|
-
const
|
|
53
|
-
return Object.entries(e).forEach(([
|
|
54
|
-
if (a
|
|
55
|
-
const
|
|
56
|
-
|
|
52
|
+
}, R = (e) => {
|
|
53
|
+
const t = {};
|
|
54
|
+
return Object.entries(e).forEach(([a, n]) => {
|
|
55
|
+
if (t[a] = n, D && n) {
|
|
56
|
+
const s = D[a];
|
|
57
|
+
s && (t[a] = ne(s, n));
|
|
57
58
|
}
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
var n,
|
|
61
|
-
const
|
|
62
|
-
Object.entries(
|
|
63
|
-
|
|
64
|
-
}), await ((
|
|
59
|
+
}), t;
|
|
60
|
+
}, Y = async (e) => {
|
|
61
|
+
var n, s, c, m, h, d, v;
|
|
62
|
+
const t = ((s = (n = u.value) == null ? void 0 : n.apForm) == null ? void 0 : s.getFieldsValueTransformed(!0)) || {}, a = {};
|
|
63
|
+
Object.entries(t).forEach(([S, P]) => {
|
|
64
|
+
E && E.indexOf(S) > -1 && (a[S] = P);
|
|
65
|
+
}), await ((m = (c = u.value) == null ? void 0 : c.apForm) == null ? void 0 : m.resetFields()), (v = (d = (h = u.value) == null ? void 0 : h.apForm) == null ? void 0 : d.setFieldsValue) == null || v.call(d, a), re(() => {
|
|
65
66
|
e == null || e();
|
|
66
67
|
});
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
...
|
|
68
|
+
}, x = (e) => {
|
|
69
|
+
i = e;
|
|
70
|
+
const t = R(e);
|
|
71
|
+
O(t);
|
|
72
|
+
}, Z = (e) => {
|
|
73
|
+
x({
|
|
74
|
+
...i,
|
|
74
75
|
...e
|
|
75
76
|
});
|
|
76
|
-
},
|
|
77
|
-
var
|
|
78
|
-
const e = ((
|
|
79
|
-
|
|
77
|
+
}, j = () => {
|
|
78
|
+
var t, a;
|
|
79
|
+
const e = ((a = (t = u.value) == null ? void 0 : t.apForm) == null ? void 0 : a.getFieldsValueTransformed(!0)) || {};
|
|
80
|
+
p && (f.value = 1), x({
|
|
80
81
|
...e,
|
|
81
|
-
filter:
|
|
82
|
-
sort:
|
|
83
|
-
current: 1,
|
|
84
|
-
pageSize:
|
|
85
|
-
});
|
|
86
|
-
}, Z = () => {
|
|
87
|
-
U(), s.sort = {}, s.filter = {}, X(R);
|
|
88
|
-
}, _ = () => {
|
|
89
|
-
S(s);
|
|
90
|
-
}, I = (e) => {
|
|
91
|
-
const a = o(r).total - e, t = Math.ceil(a / o(p)), n = o(c) > t ? t : o(c);
|
|
92
|
-
Y({
|
|
93
|
-
current: n > 0 ? n : 1
|
|
82
|
+
filter: i.filter,
|
|
83
|
+
sort: i.sort,
|
|
84
|
+
current: p ? 1 : void 0,
|
|
85
|
+
pageSize: p ? i.pageSize || w : void 0
|
|
94
86
|
});
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
(
|
|
105
|
-
|
|
87
|
+
}, I = () => {
|
|
88
|
+
X(), i.sort = {}, i.filter = {}, Y(j);
|
|
89
|
+
}, q = () => {
|
|
90
|
+
x(i);
|
|
91
|
+
}, k = (e) => {
|
|
92
|
+
if (!p)
|
|
93
|
+
q();
|
|
94
|
+
else {
|
|
95
|
+
const t = r(f), a = r(g), n = r(o).total - e, s = Math.ceil(n / a), c = t > s ? s : t;
|
|
96
|
+
Z({
|
|
97
|
+
current: c > 0 ? c : 1
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}, B = (e, t, a) => {
|
|
101
|
+
var d, v, S, P;
|
|
102
|
+
const n = ((v = (d = u.value) == null ? void 0 : d.apForm) == null ? void 0 : v.getFieldsValueTransformed(!0)) || {};
|
|
103
|
+
f.value = e.current, g.value = e.pageSize, U(t, a);
|
|
104
|
+
const s = K(a) ? [...a] : [a], c = {};
|
|
105
|
+
for (const l of s)
|
|
106
|
+
(S = r(Q)) != null && S.includes(l.columnKey || l.field) && l.order && (c[se(l.columnKey || l.field)] = l.order);
|
|
107
|
+
const m = {};
|
|
108
|
+
for (const l of Object.keys(t))
|
|
109
|
+
(P = r(L)) != null && P.includes(l) && t[l] && (m[l] = t[l]);
|
|
110
|
+
const h = {
|
|
106
111
|
...n,
|
|
107
|
-
filter:
|
|
108
|
-
sort:
|
|
112
|
+
filter: m,
|
|
113
|
+
sort: c,
|
|
109
114
|
current: e.current,
|
|
110
115
|
pageSize: e.pageSize
|
|
111
116
|
};
|
|
112
|
-
|
|
117
|
+
le(i, h, ie) || x(h);
|
|
113
118
|
};
|
|
114
119
|
oe(() => {
|
|
115
|
-
var
|
|
116
|
-
const e = ((
|
|
117
|
-
if (
|
|
118
|
-
current:
|
|
119
|
-
pageSize:
|
|
120
|
+
var t, a;
|
|
121
|
+
const e = ((a = (t = u.value) == null ? void 0 : t.apForm) == null ? void 0 : a.getFieldsValueTransformed(!0)) || {};
|
|
122
|
+
if (i = {
|
|
123
|
+
current: r(f),
|
|
124
|
+
pageSize: r(g),
|
|
120
125
|
filter: {},
|
|
121
126
|
sort: {},
|
|
122
127
|
...e
|
|
123
|
-
}, !
|
|
124
|
-
const n =
|
|
125
|
-
|
|
128
|
+
}, !M) {
|
|
129
|
+
const n = R(i);
|
|
130
|
+
O(n);
|
|
126
131
|
}
|
|
127
132
|
});
|
|
128
|
-
const
|
|
129
|
-
function
|
|
130
|
-
|
|
133
|
+
const ee = y(() => r(o).total === 0 ? "-" : `${r(f.value)}/${Math.ceil(r(o).total / r(g))}`);
|
|
134
|
+
function te(e) {
|
|
135
|
+
K(e) && (o.value.records = e, o.value.total = e.length);
|
|
131
136
|
}
|
|
132
|
-
const
|
|
133
|
-
loading: o
|
|
137
|
+
const ae = y(() => ({
|
|
138
|
+
loading: r(o).loading,
|
|
134
139
|
pagination: {
|
|
135
|
-
current:
|
|
136
|
-
pageSize:
|
|
137
|
-
total: o
|
|
138
|
-
showSizeChanger: !
|
|
139
|
-
showQuickJumper: !
|
|
140
|
-
showLessItems:
|
|
140
|
+
current: r(f),
|
|
141
|
+
pageSize: r(g),
|
|
142
|
+
total: r(o).total,
|
|
143
|
+
showSizeChanger: !C,
|
|
144
|
+
showQuickJumper: !C,
|
|
145
|
+
showLessItems: C,
|
|
141
146
|
size: "default",
|
|
142
|
-
showTotal:
|
|
147
|
+
showTotal: W ? (e) => z("span", {
|
|
143
148
|
class: F("pagination-total-wrapper")
|
|
144
|
-
}, [T("ap.apTable.pagination.totalLeftPrefix"), " ",
|
|
149
|
+
}, [T("ap.apTable.pagination.totalLeftPrefix"), " ", z("span", {
|
|
145
150
|
class: F("pagination-count-text")
|
|
146
|
-
}, [e]), " ", T("ap.apTable.pagination.totalLeftSuffix"),
|
|
151
|
+
}, [e]), " ", T("ap.apTable.pagination.totalLeftSuffix"), z("span", {
|
|
147
152
|
class: F("pagination--total-right")
|
|
148
|
-
}, [T("ap.apTable.pagination.totalRightPrefix"), " ",
|
|
153
|
+
}, [T("ap.apTable.pagination.totalRightPrefix"), " ", z("span", {
|
|
149
154
|
class: F("pagination-count-text")
|
|
150
|
-
}, [
|
|
155
|
+
}, [r(ee)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
151
156
|
},
|
|
152
|
-
onChange:
|
|
153
|
-
dataSource: o
|
|
157
|
+
onChange: B,
|
|
158
|
+
dataSource: r(o).records
|
|
154
159
|
}));
|
|
155
160
|
return {
|
|
156
161
|
formRef: u,
|
|
157
|
-
submit:
|
|
158
|
-
reset:
|
|
159
|
-
refresh:
|
|
160
|
-
refreshByDelete:
|
|
161
|
-
data:
|
|
162
|
-
current:
|
|
163
|
-
pageSize:
|
|
164
|
-
handleTableChange:
|
|
165
|
-
tableProps:
|
|
166
|
-
dataSource:
|
|
167
|
-
setDataSource:
|
|
168
|
-
getColumnSFConfig:
|
|
162
|
+
submit: j,
|
|
163
|
+
reset: I,
|
|
164
|
+
refresh: q,
|
|
165
|
+
refreshByDelete: k,
|
|
166
|
+
data: o,
|
|
167
|
+
current: f,
|
|
168
|
+
pageSize: g,
|
|
169
|
+
handleTableChange: B,
|
|
170
|
+
tableProps: ae,
|
|
171
|
+
dataSource: y(() => r(o).records),
|
|
172
|
+
setDataSource: te,
|
|
173
|
+
getColumnSFConfig: H
|
|
169
174
|
};
|
|
170
175
|
};
|
|
171
176
|
export {
|
|
@@ -708,4 +708,5 @@ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassN
|
|
|
708
708
|
}> | ((props: ColumnTitleProps<any>) => VNodeArrayChildren | VueNode) | null;
|
|
709
709
|
export declare function recursionApColumns<ReturnType = any>(columns: (ColumnType | ColumnGroupType<any>)[], handler: (column: ColumnType) => ReturnType): ReturnType[];
|
|
710
710
|
export declare function isEqualCustom(value: any, other: any): boolean | undefined;
|
|
711
|
+
export declare function falseToUndefined(obj: any): any;
|
|
711
712
|
export {};
|
|
@@ -42,7 +42,7 @@ function W(t) {
|
|
|
42
42
|
const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
|
|
43
43
|
return e === "string" && typeof t == "object" ? "object" : t === null ? "null" : t === void 0 ? "undefined" : e;
|
|
44
44
|
}
|
|
45
|
-
const B = (t) => W(t) === "map" ? t : new Map(Object.entries(t || {})),
|
|
45
|
+
const B = (t) => W(t) === "map" ? t : new Map(Object.entries(t || {})), T = (t) => {
|
|
46
46
|
const e = [], n = B(t);
|
|
47
47
|
return n.forEach((o, r) => {
|
|
48
48
|
const i = n.get(r) || n.get(`${r}`);
|
|
@@ -120,14 +120,14 @@ function et(t) {
|
|
|
120
120
|
const e = {
|
|
121
121
|
...t
|
|
122
122
|
};
|
|
123
|
-
return F(t.filters) && t.filters && t.valueEnum && (e.filters =
|
|
123
|
+
return F(t.filters) && t.filters && t.valueEnum && (e.filters = T(t.valueEnum)), e;
|
|
124
124
|
}
|
|
125
125
|
function nt(t, e) {
|
|
126
126
|
var o;
|
|
127
127
|
const n = e || {};
|
|
128
128
|
return t.valueEnum && !((o = n.field) != null && o.options) && (n.field = {
|
|
129
129
|
...n.field,
|
|
130
|
-
options:
|
|
130
|
+
options: T(t.valueEnum)
|
|
131
131
|
}), n;
|
|
132
132
|
}
|
|
133
133
|
function rt(t) {
|
|
@@ -143,7 +143,7 @@ function ot(t, e, n, o) {
|
|
|
143
143
|
const r = n == null ? void 0 : n({
|
|
144
144
|
title: t.title,
|
|
145
145
|
column: t
|
|
146
|
-
}), i = (r == null ? void 0 : r.filter((
|
|
146
|
+
}), i = (r == null ? void 0 : r.filter((b) => b.type !== Symbol.for("v-cmt"))) || [];
|
|
147
147
|
if (r && i.length > 0)
|
|
148
148
|
return r;
|
|
149
149
|
const c = N(t.title) ? u("span", {
|
|
@@ -187,9 +187,14 @@ function st(t, e) {
|
|
|
187
187
|
return !0;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
+
function ut(t) {
|
|
191
|
+
if (t !== !1)
|
|
192
|
+
return t;
|
|
193
|
+
}
|
|
190
194
|
export {
|
|
191
195
|
et as apColumnToColumn,
|
|
192
196
|
Y as dataIndexToStr,
|
|
197
|
+
ut as falseToUndefined,
|
|
193
198
|
q as formatParamsValueType,
|
|
194
199
|
Z as getColumnOrder,
|
|
195
200
|
R as getFieldProps,
|
|
@@ -204,5 +209,5 @@ export {
|
|
|
204
209
|
X as parseFieldValue,
|
|
205
210
|
it as recursionApColumns,
|
|
206
211
|
nt as updateFormProps,
|
|
207
|
-
|
|
212
|
+
T as valueEnumToArray
|
|
208
213
|
};
|