@aplus-frontend/ui 0.5.18 → 0.5.20
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/index.mjs +231 -227
- package/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.d.ts +3 -1
- package/es/src/ap-field/index.mjs +39 -35
- package/es/src/ap-field/interface.d.ts +33 -1
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/index.vue.d.ts +1155 -0
- package/es/src/ap-field/tree-select/index.vue.mjs +251 -0
- package/es/src/ap-field/tree-select/index.vue2.mjs +4 -0
- package/es/src/ap-field/tree-select/style/css.d.ts +1 -0
- package/es/src/ap-field/tree-select/style/css.js +1 -0
- package/es/src/ap-field/tree-select/style/index.d.ts +1 -0
- package/es/src/ap-field/tree-select/style/index.js +1 -0
- package/es/src/ap-field/tree-select/use-request.d.ts +41 -0
- package/es/src/ap-field/tree-select/use-request.mjs +66 -0
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +3 -3
- package/es/src/ap-form/item-tree-select/style/css.d.ts +1 -0
- package/es/src/ap-form/item-tree-select/style/css.js +1 -0
- package/es/src/ap-form/item-tree-select/style/index.d.ts +1 -0
- package/es/src/ap-form/item-tree-select/style/index.js +1 -0
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/index.d.ts +2 -1
- package/es/src/ap-form/items/index.mjs +3 -2
- package/es/src/ap-form/items/interface.d.ts +6 -1
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +1244 -4
- package/es/src/ap-form/items/select/index.vue.mjs +25 -22
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +1585 -0
- package/es/src/ap-form/items/tree-select/index.vue.mjs +107 -0
- package/es/src/ap-form/items/tree-select/index.vue2.mjs +4 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +32 -31
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +11 -10
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +102 -99
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +4 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +4055 -1945
- package/es/src/ap-table/constants.mjs +53 -49
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -107
- package/es/src/ap-table/interface.d.ts +13 -1
- package/es/src/ap-table/utils.d.ts +1462 -6
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +50 -50
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +40 -37
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +118 -122
- package/es/src/business/ap-ladder/index.d.ts +1 -3
- package/es/src/business/ap-ladder/interface.d.ts +16 -16
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/index.mjs +230 -226
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/path-map.mjs +2 -0
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +46 -41
- package/es/src/text/interface.d.ts +6 -0
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/index.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +33 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1155 -0
- package/lib/src/ap-field/tree-select/index.vue.js +1 -0
- package/lib/src/ap-field/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-field/tree-select/style/css.cjs +1 -0
- package/lib/src/ap-field/tree-select/style/css.d.ts +1 -0
- package/lib/src/ap-field/tree-select/style/index.cjs +1 -0
- package/lib/src/ap-field/tree-select/style/index.d.ts +1 -0
- package/lib/src/ap-field/tree-select/use-request.d.ts +41 -0
- package/lib/src/ap-field/tree-select/use-request.js +1 -0
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/item-tree-select/style/css.cjs +1 -0
- package/lib/src/ap-form/item-tree-select/style/css.d.ts +1 -0
- package/lib/src/ap-form/item-tree-select/style/index.cjs +1 -0
- package/lib/src/ap-form/item-tree-select/style/index.d.ts +1 -0
- package/lib/src/ap-form/items/index.d.ts +2 -1
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +6 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +1244 -4
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +1585 -0
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -0
- package/lib/src/ap-form/items/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +4055 -1945
- package/lib/src/ap-table/constants.js +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.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -1
- package/lib/src/ap-table/utils.d.ts +1462 -6
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -3
- package/lib/src/business/ap-ladder/interface.d.ts +16 -16
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/text/interface.d.ts +6 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +41 -1
- package/theme/ap-ladder/ap-ladder.less +41 -2
- package/theme/index.css +41 -1
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VxeTable as
|
|
1
|
+
import { defineComponent as Fe, useSlots as Be, getCurrentInstance as Ie, ref as k, computed as n, unref as o, watch as T, createElementBlock as F, openBlock as s, normalizeStyle as z, normalizeClass as f, createCommentVNode as C, createElementVNode as B, createVNode as U, mergeProps as g, createSlots as G, withCtx as v, Fragment as X, renderList as A, createBlock as u, resolveDynamicComponent as _, renderSlot as V, normalizeProps as J, guardReactiveProps as Pe } from "vue";
|
|
2
|
+
import { VxeTable as Ee, VxeColumn as Q } from "vxe-table";
|
|
3
3
|
import "vxe-table/es/style.css";
|
|
4
4
|
import "vxe-pc-ui/es/style.css";
|
|
5
5
|
import { VxeUI as Y } from "vxe-pc-ui";
|
|
6
|
-
import { isUndefined as
|
|
7
|
-
import { ApForm as
|
|
6
|
+
import { isUndefined as b, omit as Ne } from "lodash-unified";
|
|
7
|
+
import { ApForm as Te } from "../ap-form/index.mjs";
|
|
8
8
|
import "../config-provider/index.mjs";
|
|
9
9
|
import { noRenderAsFormItemValueList as ze } from "../ap-table/constants.mjs";
|
|
10
|
-
import { getColumnOrder as Z, updateFormProps as
|
|
11
|
-
import { useTablePaging as
|
|
12
|
-
import { Empty as oe, Pagination as
|
|
10
|
+
import { getColumnOrder as Z, updateFormProps as Ae, getFieldProps as _e, getSearchFormItemRenderNode as Ve, recursionApColumns as ee } from "../ap-table/utils.mjs";
|
|
11
|
+
import { useTablePaging as Le } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
12
|
+
import { Empty as oe, Pagination as De } from "@aplus-frontend/antdv";
|
|
13
13
|
import { useInnerParams as Oe } from "./hooks/use-inner-params.mjs";
|
|
14
|
-
import { toVxeProps as
|
|
14
|
+
import { toVxeProps as Ke, getRowExpandProps as $e, getRowSelectionProps as He } from "./utils/table.mjs";
|
|
15
15
|
import je from "../ap-table/hooks/use-table-row-selection.mjs";
|
|
16
|
-
import { useProvideApTable as
|
|
17
|
-
import {
|
|
18
|
-
import { useRenderColumns as
|
|
19
|
-
import { useToken as
|
|
16
|
+
import { useProvideApTable as We } from "../ap-table/context.mjs";
|
|
17
|
+
import { sizeReverseMap as Me, sizeMap as qe } from "./constants.mjs";
|
|
18
|
+
import { useRenderColumns as Ue } from "./hooks/use-render-columns.mjs";
|
|
19
|
+
import { useToken as Ge } from "@aplus-frontend/antdv/es/theme/internal";
|
|
20
20
|
import "../scroll-bar/index.mjs";
|
|
21
|
-
import { useNamespace as
|
|
22
|
-
import { useGlobalConfig as
|
|
23
|
-
import { useLocale as
|
|
24
|
-
import
|
|
25
|
-
const
|
|
21
|
+
import { useNamespace as Xe } from "../config-provider/hooks/use-namespace.mjs";
|
|
22
|
+
import { useGlobalConfig as Je } from "../config-provider/hooks/use-global-config.mjs";
|
|
23
|
+
import { useLocale as Qe } from "../config-provider/hooks/use-locale.mjs";
|
|
24
|
+
import Ye from "../scroll-bar/index.vue.mjs";
|
|
25
|
+
const ko = /* @__PURE__ */ Fe({
|
|
26
26
|
name: "ApGrid",
|
|
27
27
|
__name: "index",
|
|
28
28
|
props: {
|
|
29
29
|
dropdownPrefixCls: {},
|
|
30
|
-
loading: { type: [Boolean, Object], default: void 0 },
|
|
31
30
|
bordered: { type: Boolean, default: !1 },
|
|
32
31
|
locale: {},
|
|
33
32
|
onChange: {},
|
|
@@ -82,6 +81,8 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
82
81
|
mergeCells: {},
|
|
83
82
|
mergeFooterItems: {},
|
|
84
83
|
cellConfig: {},
|
|
84
|
+
loading: { type: Boolean, default: void 0 },
|
|
85
|
+
loadingConfig: {},
|
|
85
86
|
columns: {},
|
|
86
87
|
rowSelection: { type: Boolean },
|
|
87
88
|
card: { type: Boolean, default: !1 },
|
|
@@ -108,14 +109,14 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
108
109
|
},
|
|
109
110
|
setup(ae, { expose: re }) {
|
|
110
111
|
var q;
|
|
111
|
-
const L =
|
|
112
|
-
|
|
113
|
-
const { e: I, b: d, be: te } =
|
|
112
|
+
const L = Be(), a = ae, w = (q = Ie()) == null ? void 0 : q.appContext.app;
|
|
113
|
+
w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Y), w.__VXE_PC_UI_INSTALLED__ = !0);
|
|
114
|
+
const { e: I, b: d, be: te } = Xe("ap-grid"), le = Je("valueTypeMap"), i = k([]), D = k([]), p = k(), S = k(a.size), [, m] = Ge(), { t: ne } = Qe();
|
|
114
115
|
Y.setConfig({
|
|
115
116
|
i18n: (e, l) => ne(`ap.${e}`, l)
|
|
116
117
|
});
|
|
117
|
-
const { renderConfig: se, updateSignal: ie } =
|
|
118
|
-
let
|
|
118
|
+
const { renderConfig: se, updateSignal: ie } = Ue(i);
|
|
119
|
+
let O = 0;
|
|
119
120
|
const de = n(() => {
|
|
120
121
|
if (p.value)
|
|
121
122
|
return p.value.$el.querySelector(
|
|
@@ -123,26 +124,26 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
123
124
|
);
|
|
124
125
|
}), K = n(() => {
|
|
125
126
|
var e, l, t;
|
|
126
|
-
return
|
|
127
|
+
return O++, ((t = (l = (e = a.columns) == null ? void 0 : e.filter(
|
|
127
128
|
(r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !ze.includes(r.valueType)
|
|
128
129
|
)) == null ? void 0 : l.sort((r, c) => {
|
|
129
130
|
let y = Z(r.order);
|
|
130
131
|
return Z(c.order) - y;
|
|
131
132
|
})) == null ? void 0 : t.map((r) => {
|
|
132
|
-
const c =
|
|
133
|
+
const c = Ae(
|
|
133
134
|
r,
|
|
134
|
-
|
|
135
|
+
_e(r.fieldProps, {})
|
|
135
136
|
), y = {
|
|
136
137
|
...r,
|
|
137
138
|
fieldProps: {
|
|
138
139
|
label: r.title,
|
|
139
140
|
name: r.dataIndex,
|
|
140
141
|
...c || {},
|
|
141
|
-
_signal:
|
|
142
|
+
_signal: O
|
|
142
143
|
},
|
|
143
144
|
renderNode: void 0
|
|
144
145
|
};
|
|
145
|
-
return y.renderNode =
|
|
146
|
+
return y.renderNode = Ve(
|
|
146
147
|
y,
|
|
147
148
|
o(le)
|
|
148
149
|
), y;
|
|
@@ -155,22 +156,22 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
155
156
|
].filter(Boolean)), $ = n(() => ee(o(i), (e) => {
|
|
156
157
|
if (e.sorter === !0)
|
|
157
158
|
return e.key || e.dataIndex;
|
|
158
|
-
}).filter(Boolean)),
|
|
159
|
+
}).filter(Boolean)), H = n(() => ee(o(i), (e) => {
|
|
159
160
|
if (e.filters && !e.onFilter)
|
|
160
161
|
return e.key || e.dataIndex;
|
|
161
162
|
}).filter(Boolean)), {
|
|
162
163
|
formRef: P,
|
|
163
|
-
submit:
|
|
164
|
+
submit: j,
|
|
164
165
|
reset: W,
|
|
165
166
|
refresh: ue,
|
|
166
|
-
data:
|
|
167
|
+
data: h,
|
|
167
168
|
tableProps: M,
|
|
168
169
|
setDataSource: pe,
|
|
169
170
|
handleTableChange: me
|
|
170
|
-
} =
|
|
171
|
+
} = Le({
|
|
171
172
|
async request(e) {
|
|
172
173
|
var t;
|
|
173
|
-
if (!
|
|
174
|
+
if (!R.value.preserveSelectedRowKeys && b(a.dataSource) && N(), !b(a.dataSource)) {
|
|
174
175
|
const r = e.pageSize * (e.current - 1);
|
|
175
176
|
return {
|
|
176
177
|
data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(r, r + e.pageSize)) || [],
|
|
@@ -184,126 +185,128 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
184
185
|
};
|
|
185
186
|
},
|
|
186
187
|
namespace: "ap-grid",
|
|
187
|
-
filterFields:
|
|
188
|
+
filterFields: H,
|
|
188
189
|
sortFields: $,
|
|
189
190
|
defaultParams: a.params,
|
|
190
191
|
defaultData: a.defaultData,
|
|
191
192
|
manual: a.manual,
|
|
192
193
|
formatParams: a.beforeSearchSubmit,
|
|
193
194
|
pagination: a.pagination
|
|
194
|
-
}), { sortChangeEvent: fe, filterChangeEvent: ge, paginationChangeEvent:
|
|
195
|
-
|
|
195
|
+
}), { sortChangeEvent: fe, filterChangeEvent: ge, paginationChangeEvent: ve } = Oe(me);
|
|
196
|
+
We({
|
|
196
197
|
columns: n(() => i.value),
|
|
197
|
-
columnsBackup: n(() =>
|
|
198
|
-
size: n(() =>
|
|
198
|
+
columnsBackup: n(() => D.value),
|
|
199
|
+
size: n(() => S.value ? qe[S.value] : "middle"),
|
|
199
200
|
updateColumns(e) {
|
|
200
201
|
i.value = e;
|
|
201
202
|
},
|
|
202
203
|
updateSize(e) {
|
|
203
|
-
|
|
204
|
+
S.value = Me[e];
|
|
204
205
|
},
|
|
205
206
|
renderConfig: n(() => ({
|
|
206
207
|
className: te("table-header", "title"),
|
|
207
208
|
color: m.value.colorPrimary
|
|
208
209
|
}))
|
|
209
210
|
});
|
|
210
|
-
const
|
|
211
|
+
const he = n(
|
|
211
212
|
() => i.value.some(
|
|
212
213
|
(e) => e.fixed === "left" || e.fixed === !0
|
|
213
214
|
) ? "left" : void 0
|
|
214
215
|
), ye = n(
|
|
215
|
-
() =>
|
|
216
|
-
),
|
|
216
|
+
() => b(a.loading) ? h.loading : a.loading
|
|
217
|
+
), Ce = n(
|
|
218
|
+
() => b(a.dataSource) ? h.records : a.dataSource
|
|
219
|
+
), { selectedRows: x, rowSelection: R, ...be } = je({
|
|
217
220
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
218
|
-
dataSource:
|
|
221
|
+
dataSource: Ce,
|
|
219
222
|
rowKey: a.rowKey
|
|
220
223
|
}), E = () => {
|
|
221
224
|
const e = p.value;
|
|
222
|
-
e && (
|
|
225
|
+
e && (x.value = [
|
|
223
226
|
...e.getCheckboxReserveRecords(),
|
|
224
227
|
...e.getCheckboxRecords()
|
|
225
228
|
]);
|
|
226
|
-
},
|
|
229
|
+
}, we = () => {
|
|
227
230
|
const e = p.value;
|
|
228
|
-
e && (
|
|
231
|
+
e && (x.value = [e.getRadioRecord()]);
|
|
229
232
|
};
|
|
230
|
-
function
|
|
233
|
+
function Se() {
|
|
231
234
|
var e;
|
|
232
235
|
return ((e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInTable)) || [];
|
|
233
236
|
}
|
|
234
|
-
function
|
|
237
|
+
function xe(e) {
|
|
235
238
|
var l, t, r;
|
|
236
239
|
(r = (t = (l = P.value) == null ? void 0 : l.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
|
|
237
240
|
}
|
|
238
|
-
function
|
|
241
|
+
function Re(e = !1) {
|
|
239
242
|
var t, r, c;
|
|
240
243
|
const l = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
241
244
|
return (c = (r = (t = P.value) == null ? void 0 : t.apForm) == null ? void 0 : r[l]) == null ? void 0 : c.call(r, !0);
|
|
242
245
|
}
|
|
243
246
|
function N() {
|
|
244
|
-
|
|
247
|
+
be.clearAll();
|
|
245
248
|
const e = p.value;
|
|
246
|
-
e && (
|
|
249
|
+
e && (R.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
|
|
247
250
|
}
|
|
248
|
-
async function
|
|
251
|
+
async function ke(e, l) {
|
|
249
252
|
var r;
|
|
250
|
-
const t =
|
|
253
|
+
const t = h.records[e];
|
|
251
254
|
if (t)
|
|
252
255
|
return (r = p.value) == null ? void 0 : r.scrollToRow(t, l);
|
|
253
256
|
}
|
|
254
|
-
return
|
|
257
|
+
return T(
|
|
255
258
|
() => [a.columnResizable, a.columns],
|
|
256
259
|
() => {
|
|
257
|
-
const e =
|
|
258
|
-
i.value = e,
|
|
260
|
+
const e = Se();
|
|
261
|
+
i.value = e, D.value = e;
|
|
259
262
|
},
|
|
260
263
|
{
|
|
261
264
|
deep: !0,
|
|
262
265
|
immediate: !0
|
|
263
266
|
}
|
|
264
|
-
),
|
|
267
|
+
), T(
|
|
265
268
|
() => a.dataSource,
|
|
266
269
|
(e) => {
|
|
267
270
|
pe(e);
|
|
268
271
|
},
|
|
269
272
|
{ immediate: !0 }
|
|
270
|
-
),
|
|
271
|
-
() => o(
|
|
273
|
+
), T(
|
|
274
|
+
() => o(h).loading,
|
|
272
275
|
(e) => {
|
|
273
276
|
var l;
|
|
274
277
|
(l = a.onLoadingChange) == null || l.call(a, e);
|
|
275
278
|
}
|
|
276
279
|
), re({
|
|
277
|
-
submit:
|
|
280
|
+
submit: j,
|
|
278
281
|
reset: W,
|
|
279
282
|
refresh: ue,
|
|
280
|
-
setSearchFormValues:
|
|
281
|
-
getSearchFormValues:
|
|
283
|
+
setSearchFormValues: xe,
|
|
284
|
+
getSearchFormValues: Re,
|
|
282
285
|
getShowColumns: () => o(i),
|
|
283
286
|
rowSelection: {
|
|
284
|
-
selectedRows: n(() =>
|
|
287
|
+
selectedRows: n(() => x.value),
|
|
285
288
|
clearAll: N
|
|
286
289
|
},
|
|
287
|
-
scrollToRow:
|
|
288
|
-
}), (e, l) => (s(),
|
|
290
|
+
scrollToRow: ke
|
|
291
|
+
}), (e, l) => (s(), F("div", {
|
|
289
292
|
class: f(ce.value),
|
|
290
|
-
style:
|
|
293
|
+
style: z(e.wrapperStyle)
|
|
291
294
|
}, [
|
|
292
|
-
o(
|
|
295
|
+
o(b)(e.dataSource) && e.searchForm !== !1 && K.value.length > 0 ? (s(), F("div", {
|
|
293
296
|
key: 0,
|
|
294
297
|
class: f(e.card ? o(I)("search-wrapper") : null),
|
|
295
|
-
style:
|
|
298
|
+
style: z(e.searchFormWrapperStyle)
|
|
296
299
|
}, [
|
|
297
|
-
U(o(
|
|
300
|
+
U(o(Te).SearchForm, g(e.searchForm || {}, {
|
|
298
301
|
ref_key: "formRef",
|
|
299
302
|
ref: P,
|
|
300
303
|
"custom-reset": "",
|
|
301
304
|
"submit-loading": o(M).loading,
|
|
302
|
-
onSubmit: o(
|
|
305
|
+
onSubmit: o(j),
|
|
303
306
|
onReset: o(W)
|
|
304
307
|
}), G({
|
|
305
|
-
default:
|
|
306
|
-
(s(!0),
|
|
308
|
+
default: v(() => [
|
|
309
|
+
(s(!0), F(X, null, A(K.value, (t) => (s(), u(_(t.renderNode.Comp), g({
|
|
307
310
|
key: t.dataIndex,
|
|
308
311
|
item: t,
|
|
309
312
|
ref_for: !0
|
|
@@ -316,38 +319,38 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
316
319
|
}, [
|
|
317
320
|
L.searchFormExtra ? {
|
|
318
321
|
name: "extra",
|
|
319
|
-
fn:
|
|
322
|
+
fn: v(() => [
|
|
320
323
|
V(e.$slots, "searchFormExtra")
|
|
321
324
|
]),
|
|
322
325
|
key: "0"
|
|
323
326
|
} : void 0
|
|
324
327
|
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
325
328
|
], 6)) : C("", !0),
|
|
326
|
-
|
|
329
|
+
B("div", {
|
|
327
330
|
class: f([o(I)("table-wrapper"), e.card ? o(I)("table-wrapper-card") : null]),
|
|
328
|
-
style:
|
|
331
|
+
style: z(e.tableWrapperStyle)
|
|
329
332
|
}, [
|
|
330
|
-
|
|
333
|
+
B("div", {
|
|
331
334
|
class: f(o(d)("header-wrapper"))
|
|
332
335
|
}, [
|
|
333
336
|
V(e.$slots, "title", {
|
|
334
|
-
selectedRows: o(
|
|
335
|
-
selectedRowKeys: o(
|
|
337
|
+
selectedRows: o(x),
|
|
338
|
+
selectedRowKeys: o(R).selectedRowKeys,
|
|
336
339
|
shownColumns: i.value,
|
|
337
340
|
clearAll: N
|
|
338
341
|
})
|
|
339
342
|
], 2),
|
|
340
|
-
|
|
343
|
+
B("div", {
|
|
341
344
|
class: f(o(d)("vxe-wrapper"))
|
|
342
345
|
}, [
|
|
343
|
-
(s(), u(o(
|
|
346
|
+
(s(), u(o(Ee), g(o(Ke)(a), {
|
|
344
347
|
ref_key: "tableRef",
|
|
345
348
|
ref: p,
|
|
346
349
|
key: o(ie),
|
|
347
|
-
data: o(
|
|
350
|
+
data: o(h).records,
|
|
348
351
|
"sort-config": { remote: $.value.length > 0 },
|
|
349
|
-
"filter-config": { remote:
|
|
350
|
-
loading:
|
|
352
|
+
"filter-config": { remote: H.value.length > 0 },
|
|
353
|
+
loading: ye.value,
|
|
351
354
|
"row-config": {
|
|
352
355
|
isHover: !0,
|
|
353
356
|
keyField: a.rowKey
|
|
@@ -362,58 +365,58 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
362
365
|
"--vxe-ui-table-row-radio-checked-background-color": o(m).controlItemBgActive,
|
|
363
366
|
"--vxe-ui-table-row-hover-radio-checked-background-color": o(m).controlItemBgActiveHover
|
|
364
367
|
},
|
|
365
|
-
size:
|
|
368
|
+
size: S.value,
|
|
366
369
|
onSortChange: o(fe),
|
|
367
370
|
onFilterChange: o(ge),
|
|
368
371
|
onCheckboxChange: E,
|
|
369
372
|
onCheckboxRangeChange: E,
|
|
370
373
|
onCheckboxAll: E,
|
|
371
|
-
onRadioChange:
|
|
374
|
+
onRadioChange: we
|
|
372
375
|
}), G({
|
|
373
|
-
empty:
|
|
376
|
+
empty: v(() => [
|
|
374
377
|
U(o(oe), {
|
|
375
378
|
image: o(oe).PRESENTED_IMAGE_SIMPLE
|
|
376
379
|
}, null, 8, ["image"])
|
|
377
380
|
]),
|
|
378
|
-
default:
|
|
379
|
-
a.expandable ? (s(), u(o(Q), g({ key: 0 }, o(
|
|
380
|
-
content:
|
|
381
|
+
default: v(() => [
|
|
382
|
+
a.expandable ? (s(), u(o(Q), g({ key: 0 }, o($e)(e.expandable), { fixed: he.value }), {
|
|
383
|
+
content: v((t) => [
|
|
381
384
|
(s(), u(_(a.expandable.renderContent(t))))
|
|
382
385
|
]),
|
|
383
386
|
_: 1
|
|
384
387
|
}, 16, ["fixed"])) : C("", !0),
|
|
385
|
-
a.rowSelection ? (s(), u(o(Q), J(g({ key: 1 }, o(
|
|
386
|
-
(s(!0),
|
|
388
|
+
a.rowSelection ? (s(), u(o(Q), J(g({ key: 1 }, o(He)(o(R), i.value))), null, 16)) : C("", !0),
|
|
389
|
+
(s(!0), F(X, null, A(o(se), (t) => (s(), u(_(t), {
|
|
387
390
|
key: t.props.colId
|
|
388
391
|
}))), 128))
|
|
389
392
|
]),
|
|
390
393
|
_: 2
|
|
391
394
|
}, [
|
|
392
|
-
A(o(
|
|
395
|
+
A(o(Ne)(L, ["searchFormExtra"]), (t, r) => ({
|
|
393
396
|
name: r,
|
|
394
|
-
fn:
|
|
395
|
-
V(e.$slots, r, J(
|
|
397
|
+
fn: v((c) => [
|
|
398
|
+
V(e.$slots, r, J(Pe(c || {})))
|
|
396
399
|
])
|
|
397
400
|
}))
|
|
398
401
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "style", "size", "onSortChange", "onFilterChange"]))
|
|
399
402
|
], 2),
|
|
400
|
-
|
|
403
|
+
B("div", {
|
|
401
404
|
class: f(o(d)("pagination-wrapper"))
|
|
402
405
|
}, [
|
|
403
|
-
e.sticky ? (s(), u(o(
|
|
406
|
+
e.sticky ? (s(), u(o(Ye), {
|
|
404
407
|
key: 0,
|
|
405
408
|
direction: "horizontal",
|
|
406
409
|
"scroll-container": de.value
|
|
407
410
|
}, null, 8, ["scroll-container"])) : C("", !0),
|
|
408
|
-
e.pagination !== !1 ? (s(), u(o(
|
|
411
|
+
e.pagination !== !1 ? (s(), u(o(De), g({
|
|
409
412
|
key: 1,
|
|
410
413
|
class: o(d)("pagination")
|
|
411
|
-
}, o(M).pagination, { onChange: o(
|
|
414
|
+
}, o(M).pagination, { onChange: o(ve) }), null, 16, ["class", "onChange"])) : C("", !0)
|
|
412
415
|
], 2)
|
|
413
416
|
], 6)
|
|
414
417
|
], 6));
|
|
415
418
|
}
|
|
416
419
|
});
|
|
417
420
|
export {
|
|
418
|
-
|
|
421
|
+
ko as default
|
|
419
422
|
};
|
|
@@ -115,7 +115,7 @@ export type ApGridRowSelection<RecordType> = Pick<TableRowSelection<RecordType>,
|
|
|
115
115
|
*/
|
|
116
116
|
range?: boolean;
|
|
117
117
|
};
|
|
118
|
-
export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig'> & {
|
|
118
|
+
export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer' | 'loading'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig' | 'loading' | 'loadingConfig'> & {
|
|
119
119
|
/**
|
|
120
120
|
* 列配置
|
|
121
121
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, computed as n,
|
|
1
|
+
import { defineComponent as a, computed as n, createBlock as p, openBlock as s, resolveDynamicComponent as i, normalizeProps as l, guardReactiveProps as m, createSlots as c, renderList as u, withCtx as d, renderSlot as f } from "vue";
|
|
2
2
|
import "./ap-info-layout-aplus/ap-info-layout.vue.mjs";
|
|
3
3
|
import "./ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -26,7 +26,7 @@ const D = /* @__PURE__ */ a({
|
|
|
26
26
|
}
|
|
27
27
|
return e;
|
|
28
28
|
});
|
|
29
|
-
return (e, h) => (
|
|
29
|
+
return (e, h) => (s(), p(i(t.value), l(m(e.$props)), c({ _: 2 }, [
|
|
30
30
|
u(e.$slots, (k, o) => ({
|
|
31
31
|
name: o,
|
|
32
32
|
fn: d(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, ref as t,
|
|
1
|
+
import { defineComponent as u, ref as t, createElementBlock as p, openBlock as y, normalizeClass as s, unref as e, createElementVNode as n, normalizeStyle as h, renderSlot as d } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
|
|
4
4
|
import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
@@ -12,7 +12,7 @@ const L = /* @__PURE__ */ u({
|
|
|
12
12
|
const l = t(), a = t(), f = () => {
|
|
13
13
|
l.value && a.value && (l.value.scrollTop > 0 ? a.value.classList.add(o("header-shadow")) : a.value.classList.remove(o("header-shadow")));
|
|
14
14
|
}, { b: i, e: o, m: c } = v("ap-info-layout-admin"), m = _("uiMode", "admin");
|
|
15
|
-
return (r, k) => (
|
|
15
|
+
return (r, k) => (y(), p("div", {
|
|
16
16
|
ref_key: "containerRef",
|
|
17
17
|
ref: l,
|
|
18
18
|
class: s([e(i)(), `${e(c)(e(m))}`]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as t, onActivated as y, onDeactivated as B,
|
|
1
|
+
import { defineComponent as $, computed as t, onActivated as y, onDeactivated as B, createElementBlock as E, openBlock as d, normalizeClass as a, createBlock as H, createElementVNode as o, Teleport as k, renderSlot as s, createVNode as A, unref as N } from "vue";
|
|
2
2
|
import { Divider as T } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApListProps } from './interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode
|
|
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
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
@@ -41,9 +41,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
41
41
|
}): any;
|
|
42
42
|
};
|
|
43
43
|
emit: {};
|
|
44
|
-
}>) => VNode
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
}> & {
|
|
44
|
+
}>) => VNode & {
|
|
47
45
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
48
46
|
};
|
|
49
47
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q,
|
|
1
|
+
import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q, createBlock as S, openBlock as i, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as h, renderSlot as l, createElementBlock as p, createCommentVNode as Y, createVNode as v, Fragment as I, renderList as Z, mergeProps as _ } from "vue";
|
|
2
2
|
import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useTablePaging as te } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -165,7 +165,7 @@ const he = /* @__PURE__ */ H({
|
|
|
165
165
|
key: 1,
|
|
166
166
|
dataSource: s.value
|
|
167
167
|
}, () => [
|
|
168
|
-
(i(!0), p(I, null,
|
|
168
|
+
(i(!0), p(I, null, Z(s.value, (r, o) => l(e.$slots, "renderItem", {
|
|
169
169
|
item: r,
|
|
170
170
|
index: o
|
|
171
171
|
})), 256))
|
|
@@ -176,11 +176,11 @@ const he = /* @__PURE__ */ H({
|
|
|
176
176
|
class: u(t(N)("footer")),
|
|
177
177
|
style: h(e.footerWarpperStyle)
|
|
178
178
|
}, [
|
|
179
|
-
v(t(ee),
|
|
179
|
+
v(t(ee), _(
|
|
180
180
|
c.value ? t(B) : t(ne)(t(z).pagination, ["showTotal"]),
|
|
181
181
|
{ onChange: K }
|
|
182
182
|
), null, 16)
|
|
183
|
-
], 6)) :
|
|
183
|
+
], 6)) : Y("", !0)
|
|
184
184
|
], 6)
|
|
185
185
|
]),
|
|
186
186
|
_: 3
|
|
@@ -6,7 +6,7 @@ export type ModalFunc = (props: ModalFuncProps) => {
|
|
|
6
6
|
update: (configUpdate: ConfigUpdate) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const confirm: (config: ModalFuncProps) => {
|
|
9
|
-
destroy: (this: any, ...args: any[]) => void;
|
|
9
|
+
destroy: (this: /*elided*/ any, ...args: any[]) => void;
|
|
10
10
|
update: (configUpdate: ConfigUpdate) => void;
|
|
11
11
|
};
|
|
12
12
|
export default confirm;
|
|
@@ -1,7 +1,7 @@
|
|
|
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, Ref, VNode
|
|
4
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, 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
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -85,9 +85,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
85
85
|
}) => void;
|
|
86
86
|
};
|
|
87
87
|
emit: {};
|
|
88
|
-
}>) => VNode
|
|
89
|
-
[key: string]: any;
|
|
90
|
-
}> & {
|
|
88
|
+
}>) => VNode & {
|
|
91
89
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
92
90
|
};
|
|
93
91
|
export default _default;
|