@aplus-frontend/ui 7.2.0 → 7.3.0
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 +143 -143
- package/es/src/ag-grid/index.vue.mjs +247 -239
- package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
- package/es/src/ap-grid/index.vue.mjs +197 -197
- package/es/src/ap-pro-card/components/statistic-card/index.vue.mjs +122 -2
- package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +2 -122
- package/es/src/ap-pro-card/index.d.ts +1 -1
- package/es/src/ap-pro-card/index.mjs +2 -2
- package/es/src/ap-pro-card/statistic-card/index.d.ts +2 -0
- package/es/src/ap-pro-card/statistic-card/index.mjs +5 -0
- package/es/src/ap-table/ap-table.vue2.mjs +190 -190
- package/es/src/business/ag-grid-modal/hooks/use-modal-title.mjs +16 -13
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +2 -2
- package/es/src/business/ap-attachment/ApAttachment.mjs +2 -2
- package/es/src/business/ap-attachment/interface.d.ts +1 -1
- package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.mjs +3 -3
- package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue2.mjs +2 -2
- package/es/src/{ap-descriptions → business/ap-descriptions}/style/index.mjs +1 -1
- package/es/src/{ap-download → business/ap-download}/ap-download.vue.mjs +3 -3
- package/es/src/{ap-download → business/ap-download}/hooks/useStyle.mjs +3 -3
- package/es/src/{ap-download → business/ap-download}/style/index.mjs +1 -1
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +11 -10
- package/es/src/business/ap-label/interface.d.ts +1 -1
- package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.mjs +7 -7
- package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue.mjs +2 -2
- package/es/src/{ap-tag → business/ap-tag}/style/group.d.ts +1 -1
- package/es/src/{ap-tag → business/ap-tag}/style/group.mjs +1 -1
- package/{lib/src → es/src/business}/ap-tag/style/index.d.ts +1 -1
- package/es/src/{ap-tag → business/ap-tag}/style/index.mjs +1 -1
- package/es/src/{ap-upload → business/ap-upload}/apUpload.vue.mjs +4 -4
- package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue2.mjs +4 -4
- package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue2.mjs +3 -3
- package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue2.mjs +4 -4
- package/es/src/{ap-upload → business/ap-upload}/hooks/useOss.d.ts +1 -1
- package/es/src/{ap-upload → business/ap-upload}/style/index.mjs +1 -1
- package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -0
- package/es/src/business/ap-upload/style/picture.d.ts +2 -0
- package/es/src/business/ap-upload/style/single-file.d.ts +2 -0
- package/{lib/src → es/src/business}/ap-upload/utils/accept.d.ts +1 -1
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +2 -2
- package/es/src/business/index.d.ts +4 -0
- package/es/src/business/index.mjs +58 -54
- package/es/src/config-provider/hooks/use-locale.d.ts +2 -2
- package/es/src/index.d.ts +0 -4
- package/es/src/index.mjs +297 -301
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue.js +1 -1
- package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/index.d.ts +1 -1
- package/lib/src/ap-pro-card/index.js +1 -1
- package/lib/src/ap-pro-card/statistic-card/index.d.ts +2 -0
- package/lib/src/ap-pro-card/statistic-card/index.js +1 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-modal-title.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +1 -1
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -0
- package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -0
- package/lib/src/business/ap-descriptions/style/index.js +1 -0
- package/lib/src/business/ap-download/ap-download.vue.js +1 -0
- package/lib/src/business/ap-download/hooks/useStyle.js +1 -0
- package/lib/src/business/ap-download/style/index.js +1 -0
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/interface.d.ts +1 -1
- package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -0
- package/lib/src/business/ap-tag/ap-tag.vue.js +1 -0
- package/lib/src/{ap-tag → business/ap-tag}/style/group.d.ts +1 -1
- package/lib/src/business/ap-tag/style/group.js +1 -0
- package/{es/src → lib/src/business}/ap-tag/style/index.d.ts +1 -1
- package/lib/src/business/ap-tag/style/index.js +1 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -0
- package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -0
- package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -0
- package/lib/src/{ap-upload → business/ap-upload}/hooks/useOss.d.ts +1 -1
- package/lib/src/business/ap-upload/style/index.js +1 -0
- package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -0
- package/lib/src/business/ap-upload/style/picture.d.ts +2 -0
- package/lib/src/business/ap-upload/style/single-file.d.ts +2 -0
- package/{es/src → lib/src/business}/ap-upload/utils/accept.d.ts +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/index.d.ts +4 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/hooks/use-locale.d.ts +2 -2
- package/lib/src/index.d.ts +0 -4
- package/lib/src/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +4 -3
- package/es/src/ap-upload/style/multiple-file.d.ts +0 -2
- package/es/src/ap-upload/style/picture.d.ts +0 -2
- package/es/src/ap-upload/style/single-file.d.ts +0 -2
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +0 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +0 -1
- package/lib/src/ap-descriptions/style/index.js +0 -1
- package/lib/src/ap-download/ap-download.vue.js +0 -1
- package/lib/src/ap-download/hooks/useStyle.js +0 -1
- package/lib/src/ap-download/style/index.js +0 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +0 -1
- package/lib/src/ap-tag/ap-tag.vue.js +0 -1
- package/lib/src/ap-tag/style/group.js +0 -1
- package/lib/src/ap-tag/style/index.js +0 -1
- package/lib/src/ap-upload/apUpload.vue.js +0 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +0 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +0 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +0 -1
- package/lib/src/ap-upload/style/index.js +0 -1
- package/lib/src/ap-upload/style/multiple-file.d.ts +0 -2
- package/lib/src/ap-upload/style/picture.d.ts +0 -2
- package/lib/src/ap-upload/style/single-file.d.ts +0 -2
- package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue2.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/index.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/index.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/helper.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/helper.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/index.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/index.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/interface.d.ts +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/interface.mjs +0 -0
- package/es/src/{ap-descriptions → business/ap-descriptions}/style/index.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/ap-download.vue.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/ap-download.vue2.mjs +0 -0
- package/es/src/{ap-download → business/ap-download}/hooks/index.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/hooks/index.mjs +0 -0
- package/es/src/{ap-download → business/ap-download}/hooks/useStyle.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/index.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/index.mjs +0 -0
- package/es/src/{ap-download → business/ap-download}/interface.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/interface.mjs +0 -0
- package/es/src/{ap-download → business/ap-download}/style/index.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/utils/getFileInfo.d.ts +0 -0
- package/es/src/{ap-download → business/ap-download}/utils/getFileInfo.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue2.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue2.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/index.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/index.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/interface.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/interface.mjs +0 -0
- package/es/src/{ap-tag → business/ap-tag}/utils.d.ts +0 -0
- package/es/src/{ap-tag → business/ap-tag}/utils.mjs +0 -0
- package/{lib/src → es/src/business}/ap-upload/apUpload.vue.d.ts +1 -1
- package/es/src/{ap-upload → business/ap-upload}/apUpload.vue2.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/apUploadTypes.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/apUploadTypes.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/assets/single-file-icon.png.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/hooks/useOss.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/index.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/index.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/style/index.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/style/multiple-file.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/style/picture.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/style/single-file.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/utils/accept.mjs +0 -0
- package/es/src/{ap-upload → business/ap-upload}/utils/returnData.d.ts +0 -0
- package/es/src/{ap-upload → business/ap-upload}/utils/returnData.mjs +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue2.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/index.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/index.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/helper.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/helper.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/index.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/index.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/interface.d.ts +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/interface.js +0 -0
- package/lib/src/{ap-descriptions → business/ap-descriptions}/style/index.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/ap-download.vue.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/ap-download.vue2.js +0 -0
- package/lib/src/{ap-download → business/ap-download}/hooks/index.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/hooks/index.js +0 -0
- package/lib/src/{ap-download → business/ap-download}/hooks/useStyle.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/index.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/index.js +0 -0
- package/lib/src/{ap-download → business/ap-download}/interface.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/interface.js +0 -0
- package/lib/src/{ap-download → business/ap-download}/style/index.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/utils/getFileInfo.d.ts +0 -0
- package/lib/src/{ap-download → business/ap-download}/utils/getFileInfo.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/ap-tag-group.vue2.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/ap-tag.vue.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/ap-tag.vue2.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/index.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/index.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/interface.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/interface.js +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/utils.d.ts +0 -0
- package/lib/src/{ap-tag → business/ap-tag}/utils.js +0 -0
- package/{es/src → lib/src/business}/ap-upload/apUpload.vue.d.ts +1 -1
- /package/lib/src/{ap-upload → business/ap-upload}/apUpload.vue2.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/apUploadTypes.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/apUploadTypes.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/assets/single-file-icon.png.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/Picture.vue.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/Picture.vue.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/hooks/useOss.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/index.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/index.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/style/index.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/style/multiple-file.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/style/picture.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/style/single-file.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/utils/accept.js +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/utils/returnData.d.ts +0 -0
- /package/lib/src/{ap-upload → business/ap-upload}/utils/returnData.js +0 -0
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { AgGridVue as
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { mergeProps as
|
|
5
|
-
import { Spin as
|
|
6
|
-
import { isUndefined as
|
|
1
|
+
import { defineComponent as po, useSlots as fo, ref as F, toRef as B, unref as t, computed as n, nextTick as M, watch as G, createElementBlock as O, openBlock as y, normalizeStyle as W, normalizeClass as f, createCommentVNode as se, createElementVNode as k, createVNode as ie, mergeProps as L, createSlots as go, withCtx as ue, Fragment as wo, renderList as So, createBlock as H, resolveDynamicComponent as ho, renderSlot as ce, withDirectives as yo, vShow as Co } from "vue";
|
|
2
|
+
import { AgGridVue as vo } from "ag-grid-vue3";
|
|
3
|
+
import { ModuleRegistry as Ro, AllCommunityModule as bo } from "ag-grid-community";
|
|
4
|
+
import { mergeProps as Fo } from "./utils.mjs";
|
|
5
|
+
import { Spin as Bo, Pagination as ko } from "@aplus-frontend/antdv";
|
|
6
|
+
import { isUndefined as x, isFunction as T } from "lodash-unified";
|
|
7
7
|
import "../config-provider/index.mjs";
|
|
8
|
-
import { ApForm as
|
|
9
|
-
import { recursionApColumns as
|
|
10
|
-
import { useTablePaging as
|
|
11
|
-
import
|
|
12
|
-
import { useProvideSorter as
|
|
13
|
-
import { useProvideApTable as
|
|
14
|
-
import { DEFAULT_ROW_SELECTION_CONFIG as
|
|
15
|
-
import { useToken as
|
|
16
|
-
import { useTheme as
|
|
17
|
-
import { useColumns as
|
|
18
|
-
import { useColumnsDef as
|
|
19
|
-
import { isDef as
|
|
20
|
-
import { getValidVNodeList as
|
|
21
|
-
import { useSearchForm as
|
|
8
|
+
import { ApForm as xo } from "../ap-form/index.mjs";
|
|
9
|
+
import { recursionApColumns as Io } from "../ap-table/utils.mjs";
|
|
10
|
+
import { useTablePaging as No } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
11
|
+
import Do from "./hooks/use-row-selection.mjs";
|
|
12
|
+
import { useProvideSorter as To } from "./context.mjs";
|
|
13
|
+
import { useProvideApTable as Ao } from "../ap-table/context.mjs";
|
|
14
|
+
import { DEFAULT_ROW_SELECTION_CONFIG as de, sizeReverseMap as Eo, sizeMap as Ko } from "../ap-grid/constants.mjs";
|
|
15
|
+
import { useToken as Po } from "@aplus-frontend/antdv/es/theme/internal";
|
|
16
|
+
import { useTheme as zo } from "./theme.mjs";
|
|
17
|
+
import { useColumns as Vo } from "./hooks/use-columns.mjs";
|
|
18
|
+
import { useColumnsDef as Mo } from "./hooks/use-columns-def.mjs";
|
|
19
|
+
import { isDef as Go } from "../utils/index.mjs";
|
|
20
|
+
import { getValidVNodeList as Oo } from "../utils/slot.mjs";
|
|
21
|
+
import { useSearchForm as Wo } from "./hooks/use-search-form.mjs";
|
|
22
22
|
import "./components/empty/index.vue.mjs";
|
|
23
|
-
import
|
|
24
|
-
import { usePinnedRow as
|
|
25
|
-
import
|
|
23
|
+
import Lo from "./hooks/use-virtual-config.mjs";
|
|
24
|
+
import { usePinnedRow as Ho } from "./hooks/use-pinned-row.mjs";
|
|
25
|
+
import Uo from "./hooks/use-selection-col-def.mjs";
|
|
26
26
|
import "./components/row/index.vue.mjs";
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
|
|
27
|
+
import _o from "./style/index.mjs";
|
|
28
|
+
import { AG_GRID_LOCALE_EN as jo, AG_GRID_LOCALE_CN as $o } from "@ag-grid-community/locale";
|
|
29
|
+
import { useNamespace as qo } from "../config-provider/hooks/use-namespace.mjs";
|
|
30
|
+
import { useLocale as Jo } from "../config-provider/hooks/use-locale.mjs";
|
|
31
|
+
import { useGlobalConfig as Qo } from "../config-provider/hooks/use-global-config.mjs";
|
|
32
|
+
import Xo from "./components/row/index.vue2.mjs";
|
|
33
|
+
import Yo from "./components/empty/index.vue2.mjs";
|
|
34
|
+
const At = /* @__PURE__ */ po({
|
|
33
35
|
name: "AgGrid",
|
|
34
36
|
__name: "index",
|
|
35
37
|
props: {
|
|
@@ -104,69 +106,73 @@ const Ft = /* @__PURE__ */ uo({
|
|
|
104
106
|
customRow: {},
|
|
105
107
|
theme: {}
|
|
106
108
|
},
|
|
107
|
-
setup(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
109
|
+
setup(me, { expose: pe }) {
|
|
110
|
+
const fe = {
|
|
111
|
+
"zh-cn": $o,
|
|
112
|
+
en: jo
|
|
113
|
+
};
|
|
114
|
+
Ro.registerModules([bo]);
|
|
115
|
+
const o = me, U = fo(), { e: I, b: c, be: ge } = qo("ag-grid"), { lang: _ } = Jo(), we = _o("ag-grid"), C = F(o.size), Se = zo(
|
|
116
|
+
C,
|
|
117
|
+
B(o, "rowHeight"),
|
|
118
|
+
B(o, "theme")
|
|
119
|
+
), he = Lo(B(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: ye } = Ho(
|
|
120
|
+
B(o, "summary")
|
|
121
|
+
), Ce = Qo("apGrid"), s = F(), [, ve] = Po();
|
|
122
|
+
let v = !!o.dataSource;
|
|
123
|
+
const $ = Wo(o), { shownColumns: g, columns: q, columnKeys: Re, getTargetColumnByKey: be } = Vo(o), { defaultColDef: Fe, columnDefs: Be, gridWrapperRef: ke } = Mo(q, o, ye), N = F({});
|
|
124
|
+
To({
|
|
125
|
+
sorter: N,
|
|
120
126
|
setSorter(e) {
|
|
121
|
-
|
|
127
|
+
N.value = e;
|
|
122
128
|
}
|
|
123
129
|
});
|
|
124
|
-
const
|
|
130
|
+
const xe = {
|
|
125
131
|
asc: "ascend",
|
|
126
132
|
desc: "descend"
|
|
127
133
|
};
|
|
128
|
-
function
|
|
129
|
-
const e = s.value.getColumns()?.filter((
|
|
134
|
+
function Ie() {
|
|
135
|
+
const e = s.value.getColumns()?.filter((d) => d.getSort() !== void 0), r = t(N) || {};
|
|
130
136
|
let a = e?.[0];
|
|
131
137
|
const i = Object.keys(r);
|
|
132
|
-
if (i.length && i.every((
|
|
133
|
-
const
|
|
134
|
-
|
|
138
|
+
if (i.length && i.every((d) => r[d] === null)) {
|
|
139
|
+
const d = Object.keys(r)[0];
|
|
140
|
+
d && (a = s.value?.getColumn(d));
|
|
135
141
|
}
|
|
136
142
|
if (!a)
|
|
137
143
|
return;
|
|
138
|
-
const u = a.getColDef(), m = a.getSort(), p =
|
|
139
|
-
|
|
144
|
+
const u = a.getColDef(), m = a.getSort(), p = be(u.colId);
|
|
145
|
+
Q(void 0, void 0, {
|
|
140
146
|
column: u,
|
|
141
147
|
field: p?.field ?? u.field ?? u.colId,
|
|
142
|
-
order: m ?
|
|
148
|
+
order: m ? xe[m] : null
|
|
143
149
|
});
|
|
144
150
|
}
|
|
145
|
-
const
|
|
151
|
+
const Ne = n(() => Io(t(g), (e) => {
|
|
146
152
|
if (e.sorter === !0)
|
|
147
153
|
return e.field ?? e.dataIndex ?? e.key;
|
|
148
|
-
}).filter(Boolean)),
|
|
149
|
-
|
|
154
|
+
}).filter(Boolean)), De = () => {
|
|
155
|
+
N.value = {};
|
|
150
156
|
const e = s.value;
|
|
151
157
|
if (!e)
|
|
152
158
|
return;
|
|
153
159
|
const r = e.getColumnState()?.map((a) => ({ ...a, sort: null }));
|
|
154
160
|
e.applyColumnState({ state: r });
|
|
155
|
-
},
|
|
161
|
+
}, A = F(!0), Te = n(() => Go(o.manual) ? o.manual : Oo(U.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
|
|
156
162
|
formRef: w,
|
|
157
163
|
submit: E,
|
|
158
164
|
reset: K,
|
|
159
165
|
data: S,
|
|
160
|
-
tableProps:
|
|
161
|
-
handleTableChangeOptional:
|
|
162
|
-
submitWith:
|
|
163
|
-
refresh:
|
|
164
|
-
getPaging:
|
|
165
|
-
setPaging:
|
|
166
|
-
setDataSource:
|
|
167
|
-
} =
|
|
166
|
+
tableProps: J,
|
|
167
|
+
handleTableChangeOptional: Q,
|
|
168
|
+
submitWith: X,
|
|
169
|
+
refresh: Y,
|
|
170
|
+
getPaging: Ae,
|
|
171
|
+
setPaging: Ee,
|
|
172
|
+
setDataSource: Ke
|
|
173
|
+
} = No({
|
|
168
174
|
async request(e) {
|
|
169
|
-
if (
|
|
175
|
+
if (v = !1, h.value && !h.value.preserveSelectedRowKeys && x(o.dataSource) && !A.value && V(), A.value && (A.value = !1), !x(o.dataSource)) {
|
|
170
176
|
const a = e.pageSize * (e.current - 1);
|
|
171
177
|
return {
|
|
172
178
|
data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(a, a + e.pageSize)) || [],
|
|
@@ -180,366 +186,368 @@ const Ft = /* @__PURE__ */ uo({
|
|
|
180
186
|
};
|
|
181
187
|
},
|
|
182
188
|
namespace: "ap-grid",
|
|
183
|
-
filterFields:
|
|
184
|
-
params:
|
|
189
|
+
filterFields: F([]),
|
|
190
|
+
params: B(o, "params"),
|
|
185
191
|
defaultData: o.defaultData,
|
|
186
|
-
manual: t(
|
|
192
|
+
manual: t(Te),
|
|
187
193
|
formatParams: o.beforeSearchSubmit,
|
|
188
194
|
pagination: o.pagination,
|
|
189
|
-
sortFields:
|
|
190
|
-
onClickReset:
|
|
195
|
+
sortFields: Ne,
|
|
196
|
+
onClickReset: De
|
|
191
197
|
}), h = n(() => {
|
|
192
|
-
const e = o.rowSelection ||
|
|
198
|
+
const e = o.rowSelection || Ce.value?.rowSelection;
|
|
193
199
|
if (e)
|
|
194
|
-
return e === !0 ?
|
|
195
|
-
...
|
|
200
|
+
return e === !0 ? de : {
|
|
201
|
+
...de,
|
|
196
202
|
...e
|
|
197
203
|
};
|
|
198
|
-
}),
|
|
199
|
-
() =>
|
|
204
|
+
}), Pe = Uo(o, g), ze = n(
|
|
205
|
+
() => x(o.dataSource) ? S.records : o.dataSource
|
|
200
206
|
), {
|
|
201
|
-
select:
|
|
202
|
-
unSelect:
|
|
207
|
+
select: Ve,
|
|
208
|
+
unSelect: Me,
|
|
203
209
|
selectedRows: P,
|
|
204
|
-
selectedRowKeys:
|
|
205
|
-
clearAll:
|
|
206
|
-
selectMultiByKeys:
|
|
207
|
-
selectMulti:
|
|
208
|
-
unSelectMulti:
|
|
209
|
-
} =
|
|
210
|
+
selectedRowKeys: Ge,
|
|
211
|
+
clearAll: Oe,
|
|
212
|
+
selectMultiByKeys: We,
|
|
213
|
+
selectMulti: Le,
|
|
214
|
+
unSelectMulti: He
|
|
215
|
+
} = Do({
|
|
210
216
|
...h.value,
|
|
211
|
-
dataSource:
|
|
217
|
+
dataSource: ze,
|
|
212
218
|
rowKey: o.rowKey
|
|
213
|
-
}),
|
|
219
|
+
}), Ue = {
|
|
214
220
|
checkbox: "multiRow",
|
|
215
221
|
radio: "singleRow"
|
|
216
|
-
},
|
|
222
|
+
}, _e = n(() => {
|
|
217
223
|
const e = h.value;
|
|
218
224
|
if (!e)
|
|
219
225
|
return;
|
|
220
226
|
const { type: r = "checkbox", disabled: a } = e;
|
|
221
227
|
return {
|
|
222
|
-
mode:
|
|
228
|
+
mode: Ue[r],
|
|
223
229
|
isRowSelectable: (i) => a ? !a(i.data) : !0,
|
|
224
230
|
hideDisabledCheckboxes: e.hideDisabled ?? !1
|
|
225
231
|
};
|
|
226
232
|
});
|
|
227
|
-
function
|
|
228
|
-
return
|
|
233
|
+
function z(e) {
|
|
234
|
+
return T(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
|
|
229
235
|
}
|
|
230
|
-
const
|
|
236
|
+
const D = ({
|
|
231
237
|
api: e = s.value
|
|
232
238
|
}) => {
|
|
233
239
|
if (o.onUpdate?.(), !h.value)
|
|
234
240
|
return;
|
|
235
241
|
const r = P.value || [];
|
|
236
|
-
|
|
242
|
+
v = !1;
|
|
237
243
|
const a = [];
|
|
238
244
|
e.forEachNode((i) => {
|
|
239
|
-
const
|
|
240
|
-
r.find((p) =>
|
|
245
|
+
const R = i.data, u = z(R), m = i.isSelected();
|
|
246
|
+
r.find((p) => z(p) === u) ? !m && a.push(i) : m && i.setSelected(!1);
|
|
241
247
|
}), e.setNodesSelected({ nodes: a, newValue: !0 }), setTimeout(() => {
|
|
242
|
-
|
|
248
|
+
v = !0;
|
|
243
249
|
}, 0);
|
|
244
|
-
},
|
|
245
|
-
|
|
250
|
+
}, je = (e) => {
|
|
251
|
+
v && (e.node.isSelected() ? Ve(e.data) : Me(e.data), T(h.value?.tooltip) && e.api.refreshCells({
|
|
246
252
|
rowNodes: [e.node],
|
|
247
253
|
// todo: 取消硬编码
|
|
248
254
|
columns: ["ag-Grid-SelectionColumn"],
|
|
249
255
|
force: !0
|
|
250
256
|
}));
|
|
251
|
-
},
|
|
252
|
-
|
|
257
|
+
}, $e = () => {
|
|
258
|
+
v = !0;
|
|
253
259
|
}, V = () => {
|
|
254
|
-
|
|
260
|
+
Oe(), s.value?.deselectAll();
|
|
255
261
|
};
|
|
256
|
-
function
|
|
257
|
-
|
|
258
|
-
|
|
262
|
+
function qe(e) {
|
|
263
|
+
We(e), M(() => {
|
|
264
|
+
D({});
|
|
259
265
|
});
|
|
260
266
|
}
|
|
261
|
-
const
|
|
267
|
+
const Je = n(() => {
|
|
262
268
|
const e = o.customRow;
|
|
263
269
|
return e ? {
|
|
264
270
|
isFullWidthRow: e.isCustomRow,
|
|
265
|
-
fullWidthCellRenderer:
|
|
271
|
+
fullWidthCellRenderer: Xo,
|
|
266
272
|
fullWidthCellRendererParams: {
|
|
267
273
|
render: e.render
|
|
268
274
|
}
|
|
269
275
|
} : {};
|
|
270
276
|
});
|
|
271
|
-
function
|
|
272
|
-
|
|
273
|
-
|
|
277
|
+
function Qe(e) {
|
|
278
|
+
Le(e), M(() => {
|
|
279
|
+
D({});
|
|
274
280
|
});
|
|
275
281
|
}
|
|
276
|
-
function
|
|
277
|
-
|
|
278
|
-
|
|
282
|
+
function Xe(e) {
|
|
283
|
+
He(e), M(() => {
|
|
284
|
+
D({});
|
|
279
285
|
});
|
|
280
286
|
}
|
|
281
|
-
function
|
|
287
|
+
function Z(e = !1) {
|
|
282
288
|
const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
283
289
|
return w.value?.apForm?.[r]?.(!0);
|
|
284
290
|
}
|
|
285
|
-
function
|
|
291
|
+
function ee(e) {
|
|
286
292
|
w.value?.apForm?.setFieldsValue?.(e);
|
|
287
293
|
}
|
|
288
|
-
function
|
|
294
|
+
function oe() {
|
|
289
295
|
return w.value?.getSorterItems() || [];
|
|
290
296
|
}
|
|
291
|
-
function
|
|
297
|
+
function te(e) {
|
|
292
298
|
w.value?.setSorterItems(e);
|
|
293
299
|
}
|
|
294
|
-
function
|
|
300
|
+
function re() {
|
|
295
301
|
w.value?.resetSorterItems();
|
|
296
302
|
}
|
|
297
|
-
function
|
|
303
|
+
function ae(e) {
|
|
298
304
|
return e && String(e);
|
|
299
305
|
}
|
|
300
|
-
function
|
|
306
|
+
function Ye(e) {
|
|
301
307
|
const r = s.value;
|
|
302
308
|
if (!r)
|
|
303
309
|
return;
|
|
304
|
-
const a = r.getColumnState() || [], i = e.map((l) => l.key ? String(l.key) : l.key).filter(Boolean),
|
|
305
|
-
if (!
|
|
310
|
+
const a = r.getColumnState() || [], i = e.map((l) => l.key ? String(l.key) : l.key).filter(Boolean), R = a.map((l) => {
|
|
311
|
+
if (!Re.value.includes(l.colId))
|
|
306
312
|
return l;
|
|
307
|
-
const
|
|
313
|
+
const b = !i.includes(l.colId), le = {
|
|
308
314
|
...l,
|
|
309
|
-
hide:
|
|
310
|
-
},
|
|
311
|
-
(
|
|
315
|
+
hide: b
|
|
316
|
+
}, ne = e.find(
|
|
317
|
+
(mo) => ae(mo.key) === l.colId
|
|
312
318
|
);
|
|
313
|
-
return
|
|
319
|
+
return ne && (le.pinned = ne.fixed || null), le;
|
|
314
320
|
}), u = new Map(
|
|
315
|
-
e.map((l,
|
|
316
|
-
), m =
|
|
317
|
-
(l,
|
|
321
|
+
e.map((l, b) => [ae(l.key), b])
|
|
322
|
+
), m = R.filter((l) => u.has(l.colId)).sort(
|
|
323
|
+
(l, b) => u.get(l.colId) - u.get(b.colId)
|
|
318
324
|
), p = [];
|
|
319
|
-
let
|
|
320
|
-
for (const l of
|
|
321
|
-
u.has(l.colId) ? p.push(m[
|
|
325
|
+
let d = 0;
|
|
326
|
+
for (const l of R)
|
|
327
|
+
u.has(l.colId) ? p.push(m[d++]) : p.push(l);
|
|
322
328
|
r.applyColumnState({
|
|
323
329
|
state: p,
|
|
324
330
|
applyOrder: !0
|
|
325
331
|
});
|
|
326
332
|
}
|
|
327
|
-
|
|
333
|
+
Ao({
|
|
328
334
|
columns: n(() => g.value),
|
|
329
|
-
columnsBackup: n(() =>
|
|
330
|
-
size: n(() =>
|
|
335
|
+
columnsBackup: n(() => q.value),
|
|
336
|
+
size: n(() => Ko[C.value]),
|
|
331
337
|
updateColumns(e) {
|
|
332
|
-
g.value = e, o.onShownColumnsChange?.(e),
|
|
338
|
+
g.value = e, o.onShownColumnsChange?.(e), Ye(e);
|
|
333
339
|
},
|
|
334
340
|
updateSize(e) {
|
|
335
|
-
|
|
341
|
+
C.value = Eo[e];
|
|
336
342
|
},
|
|
337
343
|
renderConfig: n(() => ({
|
|
338
|
-
className:
|
|
339
|
-
color:
|
|
344
|
+
className: ge("table-header", "title"),
|
|
345
|
+
color: ve.value.colorTextTertiary
|
|
340
346
|
})),
|
|
341
347
|
dataSource: n(() => t(S).records),
|
|
342
|
-
getSearchFormValues:
|
|
343
|
-
setSearchFormValues:
|
|
348
|
+
getSearchFormValues: Z,
|
|
349
|
+
setSearchFormValues: ee,
|
|
344
350
|
submit: E,
|
|
345
|
-
submitWith:
|
|
351
|
+
submitWith: X,
|
|
346
352
|
reset: K,
|
|
347
|
-
refresh:
|
|
348
|
-
getSearchFormSorterItems:
|
|
349
|
-
setSearchFormSorterItems:
|
|
350
|
-
resetSearchFormSorterItems:
|
|
353
|
+
refresh: Y,
|
|
354
|
+
getSearchFormSorterItems: oe,
|
|
355
|
+
setSearchFormSorterItems: te,
|
|
356
|
+
resetSearchFormSorterItems: re
|
|
351
357
|
});
|
|
352
|
-
const
|
|
353
|
-
() =>
|
|
354
|
-
),
|
|
355
|
-
|
|
356
|
-
o.card ? null :
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
].filter(Boolean)),
|
|
358
|
+
const Ze = n(
|
|
359
|
+
() => x(o.loading) ? S.loading : o.loading
|
|
360
|
+
), eo = n(() => [
|
|
361
|
+
c(),
|
|
362
|
+
o.card ? null : c("wrapper"),
|
|
363
|
+
c("adaptive"),
|
|
364
|
+
c(`size-${C.value}`),
|
|
365
|
+
we.value
|
|
366
|
+
].filter(Boolean)), oo = n(() => ({
|
|
361
367
|
height: "100%",
|
|
362
368
|
...o.tableStyle || {}
|
|
363
|
-
})),
|
|
364
|
-
|
|
369
|
+
})), to = (e, r) => {
|
|
370
|
+
Q({ current: e, pageSize: r });
|
|
365
371
|
};
|
|
366
|
-
function
|
|
372
|
+
function ro(e) {
|
|
367
373
|
const r = e.data;
|
|
368
|
-
return
|
|
374
|
+
return z(r);
|
|
369
375
|
}
|
|
370
|
-
function
|
|
371
|
-
(
|
|
376
|
+
function ao(e, r) {
|
|
377
|
+
(T(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, r);
|
|
372
378
|
}
|
|
373
|
-
function
|
|
379
|
+
function lo(e, r) {
|
|
374
380
|
s.value?.ensureColumnVisible(e, r);
|
|
375
381
|
}
|
|
376
|
-
function
|
|
382
|
+
function no(e) {
|
|
377
383
|
o.onRowClicked?.(e.data, e.event);
|
|
378
384
|
}
|
|
379
|
-
function
|
|
385
|
+
function so(e) {
|
|
380
386
|
o.onScrollEnd?.(e.direction);
|
|
381
387
|
}
|
|
382
|
-
function
|
|
388
|
+
function io(e) {
|
|
383
389
|
return s.value?.refreshCells(e);
|
|
384
390
|
}
|
|
385
|
-
function
|
|
391
|
+
function uo(e) {
|
|
386
392
|
return s.value?.redrawRows(e);
|
|
387
393
|
}
|
|
388
|
-
const
|
|
394
|
+
const co = (e) => {
|
|
389
395
|
const r = [
|
|
390
|
-
|
|
396
|
+
j.value.getRowClass?.(e)
|
|
391
397
|
];
|
|
392
398
|
if (!e.node.rowPinned) {
|
|
393
|
-
const a =
|
|
399
|
+
const a = T(o.rowClassName) ? o.rowClassName(e.data, e.rowIndex) : o.rowClassName;
|
|
394
400
|
r.push(a);
|
|
395
401
|
}
|
|
396
402
|
return r.flat().filter(Boolean);
|
|
397
403
|
};
|
|
398
|
-
return
|
|
404
|
+
return G(
|
|
399
405
|
() => o.dataSource,
|
|
400
406
|
(e) => {
|
|
401
|
-
|
|
407
|
+
Ke(e);
|
|
402
408
|
},
|
|
403
409
|
{ immediate: !0, deep: !0 }
|
|
404
|
-
),
|
|
410
|
+
), G(
|
|
405
411
|
() => o.size,
|
|
406
412
|
(e) => {
|
|
407
|
-
|
|
413
|
+
C.value = e;
|
|
408
414
|
}
|
|
409
|
-
),
|
|
415
|
+
), G(
|
|
410
416
|
() => t(S).loading,
|
|
411
417
|
(e) => {
|
|
412
418
|
o.onLoadingChange?.(e);
|
|
413
419
|
}
|
|
414
|
-
),
|
|
420
|
+
), pe({
|
|
415
421
|
submit: E,
|
|
416
422
|
reset: K,
|
|
417
|
-
refresh:
|
|
418
|
-
submitWith:
|
|
419
|
-
setSearchFormValues:
|
|
420
|
-
getSearchFormValues:
|
|
423
|
+
refresh: Y,
|
|
424
|
+
submitWith: X,
|
|
425
|
+
setSearchFormValues: ee,
|
|
426
|
+
getSearchFormValues: Z,
|
|
421
427
|
getShowColumns: () => t(g),
|
|
422
428
|
rowSelection: {
|
|
423
429
|
selectedRows: n(() => P.value),
|
|
424
|
-
setSelectedRowKeys:
|
|
425
|
-
setSelectedRows:
|
|
430
|
+
setSelectedRowKeys: qe,
|
|
431
|
+
setSelectedRows: Qe,
|
|
426
432
|
clearAll: V,
|
|
427
|
-
unSelectRows:
|
|
433
|
+
unSelectRows: Xe
|
|
428
434
|
},
|
|
429
|
-
scrollToRow:
|
|
430
|
-
scrollToColumn:
|
|
435
|
+
scrollToRow: ao,
|
|
436
|
+
scrollToColumn: lo,
|
|
431
437
|
getDataSource: () => t(S.records),
|
|
432
|
-
getPaging:
|
|
433
|
-
setPaging:
|
|
434
|
-
getSearchFormSorterItems:
|
|
435
|
-
setSearchFormSorterItems:
|
|
436
|
-
resetSearchFormSorterItems:
|
|
437
|
-
refreshCells:
|
|
438
|
-
redrawRows:
|
|
438
|
+
getPaging: Ae,
|
|
439
|
+
setPaging: Ee,
|
|
440
|
+
getSearchFormSorterItems: oe,
|
|
441
|
+
setSearchFormSorterItems: te,
|
|
442
|
+
resetSearchFormSorterItems: re,
|
|
443
|
+
refreshCells: io,
|
|
444
|
+
redrawRows: uo,
|
|
439
445
|
_internalGridApi: n(() => s.value)
|
|
440
|
-
}), (e, r) => (
|
|
441
|
-
class: f(
|
|
442
|
-
style:
|
|
446
|
+
}), (e, r) => (y(), O("div", {
|
|
447
|
+
class: f(eo.value),
|
|
448
|
+
style: W(e.wrapperStyle)
|
|
443
449
|
}, [
|
|
444
|
-
t(
|
|
450
|
+
t(x)(e.dataSource) && e.searchForm !== !1 && t($).length > 0 ? (y(), O("div", {
|
|
445
451
|
key: 0,
|
|
446
452
|
class: f(e.card ? t(I)("search-wrapper") : null),
|
|
447
|
-
style:
|
|
453
|
+
style: W(e.searchFormWrapperStyle)
|
|
448
454
|
}, [
|
|
449
|
-
|
|
455
|
+
ie(t(xo).SearchForm, L(e.searchForm || {}, {
|
|
450
456
|
ref_key: "formRef",
|
|
451
457
|
ref: w,
|
|
452
458
|
"custom-reset": "",
|
|
453
|
-
"submit-loading": t(
|
|
459
|
+
"submit-loading": t(J).loading,
|
|
454
460
|
onSubmit: t(E),
|
|
455
461
|
onReset: t(K)
|
|
456
|
-
}),
|
|
457
|
-
default:
|
|
458
|
-
(
|
|
462
|
+
}), go({
|
|
463
|
+
default: ue(() => [
|
|
464
|
+
(y(!0), O(wo, null, So(t($), (a) => (y(), H(ho(a.renderNode), {
|
|
459
465
|
key: a.dataIndex
|
|
460
466
|
}))), 128))
|
|
461
467
|
]),
|
|
462
468
|
_: 2
|
|
463
469
|
}, [
|
|
464
|
-
|
|
470
|
+
U.searchFormExtra ? {
|
|
465
471
|
name: "extra",
|
|
466
|
-
fn:
|
|
467
|
-
|
|
472
|
+
fn: ue(() => [
|
|
473
|
+
ce(e.$slots, "searchFormExtra")
|
|
468
474
|
]),
|
|
469
475
|
key: "0"
|
|
470
476
|
} : void 0
|
|
471
477
|
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
472
|
-
], 6)) :
|
|
473
|
-
|
|
478
|
+
], 6)) : se("", !0),
|
|
479
|
+
k("div", {
|
|
474
480
|
class: f([t(I)("table-wrapper"), e.card ? t(I)("table-wrapper-card") : null]),
|
|
475
|
-
style:
|
|
481
|
+
style: W(e.tableWrapperStyle)
|
|
476
482
|
}, [
|
|
477
|
-
|
|
478
|
-
class: f(t(
|
|
483
|
+
k("div", {
|
|
484
|
+
class: f(t(c)("header-wrapper"))
|
|
479
485
|
}, [
|
|
480
|
-
|
|
486
|
+
ce(e.$slots, "title", {
|
|
481
487
|
selectedRows: t(P),
|
|
482
|
-
selectedRowKeys: t(
|
|
488
|
+
selectedRowKeys: t(Ge),
|
|
483
489
|
shownColumns: t(g),
|
|
484
490
|
clearAll: V
|
|
485
491
|
})
|
|
486
492
|
], 2),
|
|
487
|
-
|
|
493
|
+
k("div", {
|
|
488
494
|
ref_key: "gridWrapperRef",
|
|
489
|
-
ref:
|
|
490
|
-
class: f(t(
|
|
495
|
+
ref: ke,
|
|
496
|
+
class: f(t(c)("grid-wrapper"))
|
|
491
497
|
}, [
|
|
492
|
-
|
|
493
|
-
t(
|
|
498
|
+
(y(), H(t(vo), L(
|
|
499
|
+
t(Fo)(t(he), t(j), Je.value),
|
|
494
500
|
{
|
|
495
|
-
|
|
496
|
-
|
|
501
|
+
key: t(_),
|
|
502
|
+
"get-row-class": co,
|
|
503
|
+
style: oo.value,
|
|
497
504
|
"row-data": t(S).records,
|
|
498
|
-
"column-defs": t(
|
|
499
|
-
"default-col-def": t(
|
|
505
|
+
"column-defs": t(Be),
|
|
506
|
+
"default-col-def": t(Fe),
|
|
500
507
|
"suppress-loading-overlay": "",
|
|
501
|
-
"row-selection":
|
|
502
|
-
"selection-column-def": t(
|
|
503
|
-
"get-row-id":
|
|
508
|
+
"row-selection": _e.value,
|
|
509
|
+
"selection-column-def": t(Pe),
|
|
510
|
+
"get-row-id": ro,
|
|
504
511
|
"get-row-height": o.getRowHeight,
|
|
505
|
-
theme: t(
|
|
512
|
+
theme: t(Se),
|
|
506
513
|
"tooltip-show-delay": 500,
|
|
507
514
|
"enable-browser-tooltips": e.browserTooltips,
|
|
508
515
|
"tooltip-interaction": "",
|
|
509
516
|
"row-class-rules": e.rowClassRules,
|
|
510
|
-
"no-rows-overlay-component":
|
|
517
|
+
"no-rows-overlay-component": Yo,
|
|
511
518
|
"suppress-cell-focus": "",
|
|
512
519
|
"enable-cell-span": "",
|
|
513
520
|
"dom-layout": e.autoHeight ? "autoHeight" : "normal",
|
|
514
|
-
|
|
521
|
+
"locale-text": fe[t(_)],
|
|
522
|
+
onSortChanged: Ie,
|
|
515
523
|
onGridReady: r[0] || (r[0] = (a) => s.value = a.api),
|
|
516
|
-
onRowDataUpdated:
|
|
517
|
-
onRowSelected:
|
|
518
|
-
onFirstDataRendered:
|
|
519
|
-
onRowClicked:
|
|
520
|
-
onBodyScrollEnd:
|
|
524
|
+
onRowDataUpdated: D,
|
|
525
|
+
onRowSelected: je,
|
|
526
|
+
onFirstDataRendered: $e,
|
|
527
|
+
onRowClicked: no,
|
|
528
|
+
onBodyScrollEnd: so
|
|
521
529
|
}
|
|
522
|
-
), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "get-row-height", "theme", "enable-browser-tooltips", "row-class-rules", "dom-layout"]),
|
|
523
|
-
|
|
530
|
+
), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "get-row-height", "theme", "enable-browser-tooltips", "row-class-rules", "dom-layout", "locale-text"])),
|
|
531
|
+
yo(k("div", {
|
|
524
532
|
class: f(t(I)("table-loading-wrapper"))
|
|
525
533
|
}, [
|
|
526
|
-
|
|
534
|
+
ie(t(Bo), { delay: 300 })
|
|
527
535
|
], 2), [
|
|
528
|
-
[
|
|
536
|
+
[Co, Ze.value]
|
|
529
537
|
])
|
|
530
538
|
], 2),
|
|
531
|
-
|
|
532
|
-
class: f(t(
|
|
539
|
+
k("div", {
|
|
540
|
+
class: f(t(c)("pagination-wrapper"))
|
|
533
541
|
}, [
|
|
534
|
-
e.pagination !== !1 ? (
|
|
542
|
+
e.pagination !== !1 ? (y(), H(t(ko), L({
|
|
535
543
|
key: 0,
|
|
536
|
-
class: t(
|
|
537
|
-
}, t(
|
|
544
|
+
class: t(c)("pagination")
|
|
545
|
+
}, t(J).pagination, { onChange: to }), null, 16, ["class"])) : se("", !0)
|
|
538
546
|
], 2)
|
|
539
547
|
], 6)
|
|
540
548
|
], 6));
|
|
541
549
|
}
|
|
542
550
|
});
|
|
543
551
|
export {
|
|
544
|
-
|
|
552
|
+
At as default
|
|
545
553
|
};
|