@aplus-frontend/ui 7.1.1 → 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 +207 -211
- 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/components/title/index.vue.d.ts +3 -0
- package/es/src/ap-pro-card/components/title/index.vue2.mjs +18 -13
- 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-image/ApImage.vue2.mjs +45 -42
- package/es/src/business/ap-image/interface.d.ts +2 -0
- 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/business/ap-title/ApTitle.vue2.mjs +24 -21
- package/es/src/business/ap-title/interface.d.ts +2 -0
- 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/hooks/index.d.ts +0 -2
- package/es/src/business/hooks/index.mjs +5 -9
- package/es/src/business/hooks/usePageListApGrid.d.ts +1 -2
- package/es/src/business/hooks/usePageListApGrid.mjs +35 -44
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -2
- package/es/src/business/hooks/usePageListApTable.mjs +46 -48
- package/es/src/business/index.d.ts +4 -0
- package/es/src/business/index.mjs +58 -54
- package/es/src/config-provider/config-provider-props.d.ts +20 -3
- package/es/src/config-provider/config-provider-props.mjs +12 -0
- package/es/src/config-provider/config-provider.d.ts +33 -3
- package/es/src/config-provider/config-provider.mjs +35 -35
- package/es/src/config-provider/constants.d.ts +1 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +17 -2
- package/es/src/config-provider/hooks/use-locale.d.ts +2 -2
- package/es/src/config-provider/index.d.ts +49 -4
- package/es/src/index.d.ts +0 -4
- package/es/src/index.mjs +297 -305
- 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/components/title/index.vue.d.ts +3 -0
- package/lib/src/ap-pro-card/components/title/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-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/interface.d.ts +2 -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-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-title/interface.d.ts +2 -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/hooks/index.d.ts +0 -2
- package/lib/src/business/hooks/index.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.d.ts +1 -2
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -2
- package/lib/src/business/hooks/usePageListApTable.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/config-provider-props.d.ts +20 -3
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +33 -3
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +1 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +17 -2
- package/lib/src/config-provider/hooks/use-locale.d.ts +2 -2
- package/lib/src/config-provider/index.d.ts +49 -4
- 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 +6 -5
- 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/es/src/business/hooks/useGridRefresh.d.ts +0 -17
- package/es/src/business/hooks/useGridRefresh.mjs +0 -16
- package/es/src/business/hooks/useTableRefresh.d.ts +0 -20
- package/es/src/business/hooks/useTableRefresh.mjs +0 -57
- 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/lib/src/business/hooks/useGridRefresh.d.ts +0 -17
- package/lib/src/business/hooks/useGridRefresh.js +0 -1
- package/lib/src/business/hooks/useTableRefresh.d.ts +0 -20
- package/lib/src/business/hooks/useTableRefresh.js +0 -1
- 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 +2 -2
- 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 +2 -2
- /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,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Divider as
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { ApForm as
|
|
1
|
+
import { defineComponent as $e, useSlots as je, ref as c, computed as n, unref as o, toRef as He, createVNode as p, Fragment as ae, watch as x, createElementBlock as B, openBlock as f, normalizeStyle as E, normalizeClass as m, createCommentVNode as le, createElementVNode as K, mergeProps as k, createSlots as ne, withCtx as w, renderList as se, createBlock as ue, resolveDynamicComponent as _e, renderSlot as v, normalizeProps as Ue, guardReactiveProps as qe } from "vue";
|
|
2
|
+
import { Divider as Me, Table as Ge } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useToken as Je } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
+
import { ApForm as Qe } from "../ap-form/index.mjs";
|
|
5
5
|
import { noRenderAsFormItemValueList as de } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { useTablePaging as
|
|
8
|
-
import { isUndefined as
|
|
9
|
-
import { getColumnOrder as
|
|
7
|
+
import { useTablePaging as Xe } from "./hooks/use-table-paging-ng.mjs";
|
|
8
|
+
import { isUndefined as g, omit as ie, isBoolean as Ye } from "lodash-unified";
|
|
9
|
+
import { getColumnOrder as ce, updateFormProps as Ze, getFieldProps as er, getSearchFormItemRenderNode as rr, recursionApColumns as pe, getTableTitle as or, getTableRenderType as tr, getTableRenderProps as ar, getTableCellRenderNode as lr, apColumnToColumn as nr, falseToUndefined as sr, objectToString as ur } from "./utils.mjs";
|
|
10
10
|
import dr from "./hooks/use-table-content-height.mjs";
|
|
11
|
-
import
|
|
12
|
-
import { getScrollbarSize as
|
|
11
|
+
import ir from "./hooks/use-table-row-selection.mjs";
|
|
12
|
+
import { getScrollbarSize as cr, isDef as fe } 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
|
|
15
|
+
import { useProvideApTable as pr } from "./context.mjs";
|
|
16
16
|
import "../scroll-bar/index.mjs";
|
|
17
|
-
import { useStickyScroll as
|
|
18
|
-
import { getValidVNodeList as
|
|
19
|
-
import { useDevWarning as
|
|
20
|
-
import
|
|
21
|
-
import { useNamespace as
|
|
22
|
-
import { useGlobalConfig as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
const
|
|
17
|
+
import { useStickyScroll as fr } from "./hooks/use-sticky-scroll.mjs";
|
|
18
|
+
import { getValidVNodeList as mr } from "../utils/slot.mjs";
|
|
19
|
+
import { useDevWarning as gr } from "../utils/warning.mjs";
|
|
20
|
+
import br from "./style/index.mjs";
|
|
21
|
+
import { useNamespace as yr } from "../config-provider/hooks/use-namespace.mjs";
|
|
22
|
+
import { useGlobalConfig as Sr } from "../config-provider/hooks/use-global-config.mjs";
|
|
23
|
+
import hr from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
24
|
+
import wr from "./components/setting/modal/index.vue2.mjs";
|
|
25
|
+
import vr from "../scroll-bar/index.vue.mjs";
|
|
26
|
+
const Gr = /* @__PURE__ */ $e({
|
|
27
27
|
name: "ApTable",
|
|
28
28
|
__name: "ap-table",
|
|
29
29
|
props: {
|
|
@@ -148,30 +148,30 @@ const Mr = /* @__PURE__ */ De({
|
|
|
148
148
|
default: void 0
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
|
-
setup(
|
|
152
|
-
expose:
|
|
151
|
+
setup(me, {
|
|
152
|
+
expose: ge
|
|
153
153
|
}) {
|
|
154
|
-
const r =
|
|
155
|
-
let
|
|
156
|
-
const
|
|
157
|
-
|
|
154
|
+
const r = me;
|
|
155
|
+
let L = 0;
|
|
156
|
+
const b = je(), [, be] = Je();
|
|
157
|
+
gr("ApTable")(!1, "breaking", "ApTable has been EOL, Please use AgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/) instead.");
|
|
158
158
|
const {
|
|
159
159
|
e: I,
|
|
160
|
-
b:
|
|
161
|
-
be:
|
|
162
|
-
m:
|
|
163
|
-
cssVar:
|
|
164
|
-
} =
|
|
165
|
-
height:
|
|
166
|
-
contentRef:
|
|
167
|
-
} = dr(),
|
|
168
|
-
isStickyMode:
|
|
160
|
+
b: d,
|
|
161
|
+
be: O,
|
|
162
|
+
m: ye,
|
|
163
|
+
cssVar: Se
|
|
164
|
+
} = yr("ap-table"), he = br("ap-table"), W = Sr("valueTypeMap"), {
|
|
165
|
+
height: we,
|
|
166
|
+
contentRef: ve
|
|
167
|
+
} = dr(), D = c(), $ = c(), {
|
|
168
|
+
isStickyMode: j,
|
|
169
169
|
scrollBarRef: R
|
|
170
|
-
} =
|
|
171
|
-
let t =
|
|
172
|
-
return
|
|
170
|
+
} = fr(D), z = c(r.size), s = c([]), H = c([]), _ = cr(), P = c(!0), U = n(() => (L++, r.columns?.filter((e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !de.includes(e.valueType))?.sort((e, a) => {
|
|
171
|
+
let t = ce(e.order);
|
|
172
|
+
return ce(a.order) - t;
|
|
173
173
|
})?.map((e) => {
|
|
174
|
-
const a =
|
|
174
|
+
const a = Ze(e, er(e.fieldProps, {})), t = {
|
|
175
175
|
...e,
|
|
176
176
|
fieldProps: {
|
|
177
177
|
label: e.title,
|
|
@@ -179,43 +179,43 @@ const Mr = /* @__PURE__ */ De({
|
|
|
179
179
|
// tips: 在表格中的查询表单项默认是带边框的
|
|
180
180
|
bordered: !0,
|
|
181
181
|
...a || {},
|
|
182
|
-
_signal:
|
|
182
|
+
_signal: L
|
|
183
183
|
},
|
|
184
184
|
renderNode: void 0
|
|
185
185
|
};
|
|
186
|
-
return t.renderNode =
|
|
187
|
-
}) || [])),
|
|
186
|
+
return t.renderNode = rr(t, o(W)), t;
|
|
187
|
+
}) || [])), Re = n(() => pe(o(s), (e) => {
|
|
188
188
|
if (e.sorter === !0)
|
|
189
189
|
return e.key || e?.dataIndex;
|
|
190
|
-
}).filter(Boolean)),
|
|
190
|
+
}).filter(Boolean)), Ce = n(() => pe(o(s), (e) => {
|
|
191
191
|
if (e.filters && !e.onFilter)
|
|
192
192
|
return e.key || e?.dataIndex;
|
|
193
|
-
}).filter(Boolean)),
|
|
193
|
+
}).filter(Boolean)), Te = n(() => g(r.dataSource) ? y.records : r.dataSource), Fe = n(() => fe(r.manual) ? r.manual : mr(b.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), {
|
|
194
194
|
rowSelection: C,
|
|
195
195
|
selectedRows: T,
|
|
196
196
|
...F
|
|
197
|
-
} =
|
|
197
|
+
} = ir({
|
|
198
198
|
fixed: !0,
|
|
199
199
|
...r.rowSelection === !0 ? {} : r.rowSelection,
|
|
200
200
|
rowKey: r.rowKey,
|
|
201
|
-
dataSource:
|
|
201
|
+
dataSource: Te
|
|
202
202
|
}), {
|
|
203
203
|
formRef: i,
|
|
204
|
-
submit:
|
|
205
|
-
reset:
|
|
206
|
-
tableProps:
|
|
207
|
-
refresh:
|
|
208
|
-
data:
|
|
209
|
-
setDataSource:
|
|
210
|
-
getColumnSFConfig:
|
|
211
|
-
sortedInfo:
|
|
212
|
-
filteredInfo:
|
|
213
|
-
setPaging:
|
|
214
|
-
getPaging:
|
|
215
|
-
submitWith:
|
|
216
|
-
} =
|
|
204
|
+
submit: N,
|
|
205
|
+
reset: V,
|
|
206
|
+
tableProps: q,
|
|
207
|
+
refresh: M,
|
|
208
|
+
data: y,
|
|
209
|
+
setDataSource: xe,
|
|
210
|
+
getColumnSFConfig: G,
|
|
211
|
+
sortedInfo: Be,
|
|
212
|
+
filteredInfo: ke,
|
|
213
|
+
setPaging: Ie,
|
|
214
|
+
getPaging: ze,
|
|
215
|
+
submitWith: J
|
|
216
|
+
} = Xe({
|
|
217
217
|
async request(e) {
|
|
218
|
-
if (!C.value.preserveSelectedRowKeys &&
|
|
218
|
+
if (!C.value.preserveSelectedRowKeys && g(r.dataSource) && !P.value && F.clearAll(), P.value && (P.value = !1), !g(r.dataSource))
|
|
219
219
|
return {
|
|
220
220
|
data: r.dataSource || [],
|
|
221
221
|
total: r.dataSource.length || 0
|
|
@@ -226,17 +226,17 @@ const Mr = /* @__PURE__ */ De({
|
|
|
226
226
|
total: a?.total || 0
|
|
227
227
|
};
|
|
228
228
|
},
|
|
229
|
-
filterFields:
|
|
230
|
-
sortFields:
|
|
231
|
-
params:
|
|
229
|
+
filterFields: Ce,
|
|
230
|
+
sortFields: Re,
|
|
231
|
+
params: He(r, "params"),
|
|
232
232
|
defaultData: r.defaultData,
|
|
233
|
-
manual: o(
|
|
233
|
+
manual: o(Fe),
|
|
234
234
|
formatParams: r.beforeSearchSubmit,
|
|
235
235
|
pagination: r.pagination
|
|
236
236
|
});
|
|
237
|
-
|
|
237
|
+
pr({
|
|
238
238
|
columns: n(() => s.value),
|
|
239
|
-
columnsBackup: n(() =>
|
|
239
|
+
columnsBackup: n(() => H.value),
|
|
240
240
|
size: n(() => z.value),
|
|
241
241
|
updateColumns(e) {
|
|
242
242
|
s.value = e;
|
|
@@ -244,111 +244,111 @@ const Mr = /* @__PURE__ */ De({
|
|
|
244
244
|
updateSize(e) {
|
|
245
245
|
z.value = e;
|
|
246
246
|
},
|
|
247
|
-
dataSource: n(() => o(
|
|
248
|
-
getSearchFormValues:
|
|
249
|
-
setSearchFormValues:
|
|
250
|
-
submit:
|
|
251
|
-
submitWith:
|
|
252
|
-
reset:
|
|
253
|
-
refresh:
|
|
254
|
-
getSearchFormSorterItems:
|
|
255
|
-
setSearchFormSorterItems:
|
|
256
|
-
resetSearchFormSorterItems:
|
|
247
|
+
dataSource: n(() => o(y).records),
|
|
248
|
+
getSearchFormValues: Y,
|
|
249
|
+
setSearchFormValues: X,
|
|
250
|
+
submit: N,
|
|
251
|
+
submitWith: J,
|
|
252
|
+
reset: V,
|
|
253
|
+
refresh: M,
|
|
254
|
+
getSearchFormSorterItems: Z,
|
|
255
|
+
setSearchFormSorterItems: ee,
|
|
256
|
+
resetSearchFormSorterItems: re
|
|
257
257
|
});
|
|
258
|
-
const
|
|
258
|
+
const Pe = () => {
|
|
259
259
|
let e = r.columns?.filter((t) => !t.hideInTable) || [];
|
|
260
|
-
function a(t,
|
|
260
|
+
function a(t, u) {
|
|
261
261
|
return t.map((l) => ({
|
|
262
|
-
resizable:
|
|
263
|
-
...
|
|
262
|
+
resizable: fe(l.resizable) ? l.resizable : r.columnResizable,
|
|
263
|
+
...ie(nr(l), ["ellipsis"]),
|
|
264
264
|
// tips: 此函数内部依赖查询&筛选的相应式值
|
|
265
|
-
...
|
|
266
|
-
fixed:
|
|
267
|
-
title:
|
|
265
|
+
...G(l),
|
|
266
|
+
fixed: u ? u.fixed : l.fixed,
|
|
267
|
+
title: or(l, O("table-header", "title"), b.headerCell, o(be).colorTextTertiary),
|
|
268
268
|
customRender({
|
|
269
|
-
value:
|
|
270
|
-
...
|
|
269
|
+
value: S,
|
|
270
|
+
...h
|
|
271
271
|
}) {
|
|
272
|
-
const
|
|
272
|
+
const oe = tr(l), Oe = ar({
|
|
273
273
|
...l,
|
|
274
|
-
valueType:
|
|
274
|
+
valueType: oe
|
|
275
275
|
}, {
|
|
276
|
-
value:
|
|
277
|
-
...
|
|
278
|
-
}),
|
|
279
|
-
value:
|
|
280
|
-
...
|
|
281
|
-
}) ||
|
|
282
|
-
value:
|
|
283
|
-
...
|
|
284
|
-
})]) :
|
|
285
|
-
let
|
|
286
|
-
return l.customRender && (
|
|
287
|
-
value:
|
|
288
|
-
...
|
|
276
|
+
value: S,
|
|
277
|
+
...h
|
|
278
|
+
}), We = lr(oe, Oe, h.record, o(W)), te = l.renderText?.({
|
|
279
|
+
value: S,
|
|
280
|
+
...h
|
|
281
|
+
}) || S, De = l.renderText ? p(ae, null, [l.renderText?.({
|
|
282
|
+
value: S,
|
|
283
|
+
...h
|
|
284
|
+
})]) : We;
|
|
285
|
+
let A = Ke(l, te, De);
|
|
286
|
+
return l.customRender && (A = l.customRender({
|
|
287
|
+
value: S,
|
|
288
|
+
...h,
|
|
289
289
|
column: l,
|
|
290
|
-
originalNode:
|
|
291
|
-
originalText:
|
|
292
|
-
})),
|
|
290
|
+
originalNode: A,
|
|
291
|
+
originalText: te
|
|
292
|
+
})), A;
|
|
293
293
|
},
|
|
294
|
-
children: a(l.children || [],
|
|
294
|
+
children: a(l.children || [], u || l)
|
|
295
295
|
}));
|
|
296
296
|
}
|
|
297
297
|
return a(e);
|
|
298
|
-
},
|
|
298
|
+
}, Ne = () => {
|
|
299
299
|
function e(a) {
|
|
300
300
|
for (const t of a)
|
|
301
|
-
t.children?.length ? e(t.children) :
|
|
301
|
+
t.children?.length ? e(t.children) : G(t, !0);
|
|
302
302
|
}
|
|
303
303
|
e(s.value);
|
|
304
304
|
};
|
|
305
305
|
x(() => [r.columns, r.columnResizable], () => {
|
|
306
|
-
const e =
|
|
307
|
-
s.value = e,
|
|
306
|
+
const e = Pe();
|
|
307
|
+
s.value = e, H.value = e;
|
|
308
308
|
}, {
|
|
309
309
|
deep: !0,
|
|
310
310
|
immediate: !0
|
|
311
|
-
}), x(() => [
|
|
312
|
-
|
|
311
|
+
}), x(() => [Be.value, ke.value], () => {
|
|
312
|
+
Ne();
|
|
313
313
|
}, {
|
|
314
314
|
deep: !0
|
|
315
315
|
});
|
|
316
|
-
const
|
|
317
|
-
if (r.adaptive && (
|
|
316
|
+
const Ve = n(() => {
|
|
317
|
+
if (r.adaptive && (y.total > 0 || r.dataSource?.length))
|
|
318
318
|
return {
|
|
319
|
-
y: o(
|
|
319
|
+
y: o(we),
|
|
320
320
|
x: r.scroll?.x || "100%"
|
|
321
321
|
};
|
|
322
322
|
if (r.scroll)
|
|
323
323
|
return r.scroll;
|
|
324
|
-
}),
|
|
324
|
+
}), Ae = n(() => {
|
|
325
325
|
if (r.tableLayout)
|
|
326
326
|
return r.tableLayout;
|
|
327
327
|
if (r.columns?.some((e) => e.ellipsis))
|
|
328
328
|
return "fixed";
|
|
329
|
-
}),
|
|
330
|
-
const e = o(
|
|
329
|
+
}), Q = n(() => {
|
|
330
|
+
const e = o(q), a = o(C);
|
|
331
331
|
return {
|
|
332
332
|
...r,
|
|
333
333
|
...e,
|
|
334
334
|
rowSelection: r.rowSelection === !0 || r.rowSelection?.mode === "internal" ? {
|
|
335
335
|
...a,
|
|
336
336
|
// tips 如果是前端分页,则默认会走缓存
|
|
337
|
-
preserveSelectedRowKeys:
|
|
338
|
-
} :
|
|
339
|
-
loading:
|
|
337
|
+
preserveSelectedRowKeys: g(r.dataSource) ? a.preserveSelectedRowKeys : !0
|
|
338
|
+
} : sr(r.rowSelection),
|
|
339
|
+
loading: g(r.loading) ? e.loading : r.loading,
|
|
340
340
|
pagination: r.pagination === !1 ? !1 : e.pagination,
|
|
341
|
-
scroll: o(
|
|
341
|
+
scroll: o(Ve)
|
|
342
342
|
};
|
|
343
|
-
}),
|
|
344
|
-
function
|
|
343
|
+
}), Ee = n(() => [d(), r.card ? null : d("wrapper"), r.adaptive ? d("adaptive") : null, j.value && R.value?.visible ? ye(`sticky-${_ === 0 ? "absolute" : "relative"}`) : null, he.value].filter(Boolean));
|
|
344
|
+
function Ke(e, a, t) {
|
|
345
345
|
if (de.includes(e.valueType))
|
|
346
346
|
return t;
|
|
347
|
-
const
|
|
348
|
-
return e.copyable || e.ellipsis ?
|
|
347
|
+
const u = ur(a);
|
|
348
|
+
return e.copyable || e.ellipsis ? p(hr, {
|
|
349
349
|
copyable: e.copyable,
|
|
350
|
-
rawValue:
|
|
351
|
-
ellipsis: e.ellipsis ?
|
|
350
|
+
rawValue: u,
|
|
351
|
+
ellipsis: e.ellipsis ? Ye(e.ellipsis) ? {
|
|
352
352
|
tooltip: t,
|
|
353
353
|
rows: 1
|
|
354
354
|
} : {
|
|
@@ -358,43 +358,43 @@ const Mr = /* @__PURE__ */ De({
|
|
|
358
358
|
content: t
|
|
359
359
|
}, null) : t;
|
|
360
360
|
}
|
|
361
|
-
x(() => o(
|
|
361
|
+
x(() => o(y).loading, (e) => {
|
|
362
362
|
r.onLoadingChange?.(e);
|
|
363
363
|
}), x(() => r.dataSource, (e) => {
|
|
364
|
-
|
|
364
|
+
xe(e);
|
|
365
365
|
}, {
|
|
366
366
|
immediate: !0
|
|
367
367
|
});
|
|
368
|
-
function
|
|
368
|
+
function X(e) {
|
|
369
369
|
i.value?.apForm?.setFieldsValue?.(e);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Y(e = !1) {
|
|
372
372
|
const a = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
373
373
|
return i.value?.apForm?.[a]?.(!0);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Z() {
|
|
376
376
|
return i.value?.getSorterItems() || [];
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function ee(e) {
|
|
379
379
|
i.value?.setSorterItems(e);
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function re() {
|
|
382
382
|
i.value?.resetSorterItems();
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Le() {
|
|
385
385
|
return o(s);
|
|
386
386
|
}
|
|
387
|
-
return
|
|
388
|
-
submit: () =>
|
|
389
|
-
reset: () =>
|
|
390
|
-
refresh: () =>
|
|
391
|
-
submitWith: () =>
|
|
392
|
-
setSearchFormValues:
|
|
393
|
-
getSearchFormValues:
|
|
394
|
-
setPaging:
|
|
395
|
-
getPaging:
|
|
396
|
-
getShownColumns:
|
|
397
|
-
dataSource: n(() => o(
|
|
387
|
+
return ge({
|
|
388
|
+
submit: () => N(),
|
|
389
|
+
reset: () => V(),
|
|
390
|
+
refresh: () => M(),
|
|
391
|
+
submitWith: () => J(),
|
|
392
|
+
setSearchFormValues: X,
|
|
393
|
+
getSearchFormValues: Y,
|
|
394
|
+
setPaging: Ie,
|
|
395
|
+
getPaging: ze,
|
|
396
|
+
getShownColumns: Le,
|
|
397
|
+
dataSource: n(() => o(y).records),
|
|
398
398
|
rowSelection: {
|
|
399
399
|
selectedRows: n(() => o(T)),
|
|
400
400
|
...F
|
|
@@ -406,95 +406,95 @@ const Mr = /* @__PURE__ */ De({
|
|
|
406
406
|
},
|
|
407
407
|
y: void 0
|
|
408
408
|
},
|
|
409
|
-
getSearchFormSorterItems:
|
|
410
|
-
setSearchFormSorterItems:
|
|
411
|
-
resetSearchFormSorterItems:
|
|
412
|
-
}), (e, a) => (
|
|
409
|
+
getSearchFormSorterItems: Z,
|
|
410
|
+
setSearchFormSorterItems: ee,
|
|
411
|
+
resetSearchFormSorterItems: re
|
|
412
|
+
}), (e, a) => (f(), B("div", {
|
|
413
413
|
ref_key: "tableWrapperRef",
|
|
414
|
-
ref:
|
|
415
|
-
class:
|
|
416
|
-
style:
|
|
417
|
-
"scroll-bar-width": `${o(
|
|
414
|
+
ref: D,
|
|
415
|
+
class: m(Ee.value),
|
|
416
|
+
style: E(o(Se)({
|
|
417
|
+
"scroll-bar-width": `${o(_)}px`
|
|
418
418
|
}))
|
|
419
|
-
}, [o(
|
|
419
|
+
}, [o(g)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (f(), B("div", {
|
|
420
420
|
key: 0,
|
|
421
|
-
class:
|
|
422
|
-
style:
|
|
423
|
-
}, [
|
|
421
|
+
class: m(e.card ? o(I)("search-wrapper") : null),
|
|
422
|
+
style: E(e.searchFormWrapperStyle)
|
|
423
|
+
}, [p(o(Qe).SearchForm, k(e.searchForm || {}, {
|
|
424
424
|
ref_key: "formRef",
|
|
425
425
|
ref: i,
|
|
426
426
|
"custom-reset": "",
|
|
427
|
-
"submit-loading": o(
|
|
428
|
-
onSubmit: o(
|
|
429
|
-
onReset: o(
|
|
430
|
-
}),
|
|
431
|
-
default: w(() => [(
|
|
427
|
+
"submit-loading": o(q).loading,
|
|
428
|
+
onSubmit: o(N),
|
|
429
|
+
onReset: o(V)
|
|
430
|
+
}), ne({
|
|
431
|
+
default: w(() => [(f(!0), B(ae, null, se(U.value, (t) => (f(), ue(_e(t.renderNode), {
|
|
432
432
|
key: t.dataIndex
|
|
433
433
|
}))), 128))]),
|
|
434
434
|
_: 2
|
|
435
|
-
}, [
|
|
435
|
+
}, [b.searchFormExtra ? {
|
|
436
436
|
name: "extra",
|
|
437
437
|
fn: w(() => [v(e.$slots, "searchFormExtra")]),
|
|
438
438
|
key: "0"
|
|
439
|
-
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) :
|
|
439
|
+
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : le("", !0), K("div", {
|
|
440
440
|
ref_key: "contentRef",
|
|
441
|
-
ref:
|
|
442
|
-
class:
|
|
443
|
-
style:
|
|
444
|
-
}, [
|
|
445
|
-
class:
|
|
446
|
-
}, [e.settings ? (
|
|
441
|
+
ref: ve,
|
|
442
|
+
class: m([o(I)("table-wrapper"), e.card ? o(I)("table-wrapper-card") : null]),
|
|
443
|
+
style: E(e.tableWrapperStyle)
|
|
444
|
+
}, [K("div", {
|
|
445
|
+
class: m(o(d)("header-wrapper"))
|
|
446
|
+
}, [e.settings ? (f(), B("div", {
|
|
447
447
|
key: 0,
|
|
448
|
-
class:
|
|
449
|
-
}, [
|
|
450
|
-
class:
|
|
448
|
+
class: m(o(d)("header"))
|
|
449
|
+
}, [K("div", {
|
|
450
|
+
class: m(o(O)("header", "title"))
|
|
451
451
|
}, [v(e.$slots, "title", k({
|
|
452
452
|
selectedRows: o(T),
|
|
453
453
|
selectedRowKeys: o(C).selectedRowKeys,
|
|
454
454
|
shownColumns: s.value
|
|
455
|
-
}, F))], 2),
|
|
455
|
+
}, F))], 2), b.title ? (f(), ue(o(Me), {
|
|
456
456
|
key: 0,
|
|
457
457
|
type: "vertical"
|
|
458
|
-
})) :
|
|
458
|
+
})) : le("", !0), p(wr, {
|
|
459
459
|
config: e.settings === !0 ? {} : e.settings
|
|
460
460
|
}, null, 8, ["config"])], 2)) : v(e.$slots, "title", k({
|
|
461
461
|
key: 1,
|
|
462
462
|
selectedRows: o(T),
|
|
463
463
|
selectedRowKeys: o(C).selectedRowKeys,
|
|
464
464
|
shownColumns: s.value
|
|
465
|
-
}, F))], 2),
|
|
465
|
+
}, F))], 2), p(o(Ge), k({
|
|
466
466
|
ref_key: "antdTableRef",
|
|
467
|
-
ref:
|
|
468
|
-
class: o(
|
|
469
|
-
},
|
|
467
|
+
ref: $,
|
|
468
|
+
class: o(d)("table")
|
|
469
|
+
}, Q.value, {
|
|
470
470
|
size: z.value,
|
|
471
|
-
"table-layout":
|
|
471
|
+
"table-layout": Ae.value,
|
|
472
472
|
columns: s.value,
|
|
473
|
-
onResizeColumn: a[0] || (a[0] = (t,
|
|
474
|
-
}),
|
|
473
|
+
onResizeColumn: a[0] || (a[0] = (t, u) => u.width = t)
|
|
474
|
+
}), ne({
|
|
475
475
|
summary: w(() => [v(e.$slots, "summary", {
|
|
476
476
|
columns: s.value,
|
|
477
|
-
records:
|
|
477
|
+
records: Q.value.dataSource,
|
|
478
478
|
selectedRows: o(T)
|
|
479
479
|
})]),
|
|
480
480
|
_: 2
|
|
481
|
-
}, [o(
|
|
481
|
+
}, [o(j) ? {
|
|
482
482
|
name: "bottomPaginationTop",
|
|
483
|
-
fn: w(() => [
|
|
483
|
+
fn: w(() => [p(o(vr), {
|
|
484
484
|
ref_key: "scrollBarRef",
|
|
485
485
|
ref: R,
|
|
486
|
-
"scroll-container":
|
|
486
|
+
"scroll-container": $.value?.table?.scrollBodyRef,
|
|
487
487
|
direction: "horizontal",
|
|
488
488
|
"bar-color": "var(--scrollbar-thumb-color-base)",
|
|
489
489
|
"track-color": "var(--table-header-bg, #f2f6f9)"
|
|
490
490
|
}, null, 8, ["scroll-container"])]),
|
|
491
491
|
key: "0"
|
|
492
|
-
} : void 0,
|
|
493
|
-
name:
|
|
494
|
-
fn: w((l) => [v(e.$slots,
|
|
492
|
+
} : void 0, se(o(ie)(b, ["title", "searchFormExtra", "headerCell", "summary"]), (t, u) => ({
|
|
493
|
+
name: u,
|
|
494
|
+
fn: w((l) => [v(e.$slots, u, Ue(qe(l || {})))])
|
|
495
495
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
export {
|
|
499
|
-
|
|
499
|
+
Gr as default
|
|
500
500
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as u, defineComponent as i, createVNode as l } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { useToken as r } from "../../../config-provider/hooks/use-token.mjs";
|
|
4
|
+
import { useLocale as m } from "../../../config-provider/hooks/use-locale.mjs";
|
|
5
|
+
function C() {
|
|
6
|
+
const e = u(0);
|
|
7
|
+
return [/* @__PURE__ */ i({
|
|
7
8
|
props: {
|
|
8
9
|
title: {
|
|
9
10
|
type: null,
|
|
@@ -15,26 +16,28 @@ function d() {
|
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
setup(t, {
|
|
18
|
-
slots:
|
|
19
|
+
slots: a
|
|
19
20
|
}) {
|
|
20
21
|
const {
|
|
21
22
|
t: o
|
|
22
|
-
} =
|
|
23
|
-
|
|
23
|
+
} = m(), {
|
|
24
|
+
token: n
|
|
25
|
+
} = r();
|
|
26
|
+
return () => l("div", null, [t.title, a.default ? a.default({
|
|
24
27
|
maxCount: t.maxCount,
|
|
25
28
|
count: e.value
|
|
26
|
-
}) :
|
|
29
|
+
}) : l("span", {
|
|
27
30
|
style: {
|
|
28
|
-
color:
|
|
31
|
+
color: n.value?.textColor3,
|
|
29
32
|
fontSize: "12px",
|
|
30
33
|
fontWeight: "normal",
|
|
31
34
|
marginLeft: "12px"
|
|
32
35
|
}
|
|
33
36
|
}, [isFinite(t.maxCount) ? o("ap.apTableModal.titleSuffixOne", {
|
|
34
37
|
maxCount: t.maxCount
|
|
35
|
-
}) : "", o("ap.apTableModal.titleSuffixTwo"),
|
|
38
|
+
}) : "", o("ap.apTableModal.titleSuffixTwo"), l("span", {
|
|
36
39
|
style: {
|
|
37
|
-
color:
|
|
40
|
+
color: n.value?.colorPrimary
|
|
38
41
|
}
|
|
39
42
|
}, [e.value]), o("ap.apTableModal.titleSuffixThree")])]);
|
|
40
43
|
}
|
|
@@ -45,5 +48,5 @@ function d() {
|
|
|
45
48
|
}];
|
|
46
49
|
}
|
|
47
50
|
export {
|
|
48
|
-
|
|
51
|
+
C as useModalTitle
|
|
49
52
|
};
|
|
@@ -4,7 +4,7 @@ import { Tooltip as U, TypographyText as z, Empty as F } from "@aplus-frontend/a
|
|
|
4
4
|
import { IconVariantDownload as R } from "@aplus-frontend/icon";
|
|
5
5
|
import { LoadingOutlined as q } from "@ant-design/icons-vue";
|
|
6
6
|
import "../ap-title/ApTitle.vue.mjs";
|
|
7
|
-
import "
|
|
7
|
+
import "../ap-download/ap-download.vue2.mjs";
|
|
8
8
|
import "../../config-provider/index.mjs";
|
|
9
9
|
import { getFileInfo as H } from "./utils/index.mjs";
|
|
10
10
|
import J from "./style/index.mjs";
|
|
@@ -12,7 +12,7 @@ import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs
|
|
|
12
12
|
import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
|
|
13
13
|
import { useGlobalConfig as $ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
14
14
|
import W from "../ap-title/ApTitle.vue2.mjs";
|
|
15
|
-
import X from "
|
|
15
|
+
import X from "../ap-download/ap-download.vue.mjs";
|
|
16
16
|
const Y = ["onClick"], ue = /* @__PURE__ */ O({
|
|
17
17
|
__name: "ap-appendix",
|
|
18
18
|
props: {
|
|
@@ -2,8 +2,8 @@ import { defineComponent as W, ref as k, useSlots as _, computed as o, cloneVNod
|
|
|
2
2
|
import { Tooltip as B, Popover as G } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { ApAttachmentProps as H } from "./constans.mjs";
|
|
5
|
-
import { getHexWithOpacity as M, getFileInfo as F } from "
|
|
6
|
-
import { useOssInit as q } from "
|
|
5
|
+
import { getHexWithOpacity as M, getFileInfo as F } from "../ap-download/utils/getFileInfo.mjs";
|
|
6
|
+
import { useOssInit as q } from "../ap-download/hooks/index.mjs";
|
|
7
7
|
import { debounce as D, isArray as E } from "lodash-unified";
|
|
8
8
|
import { LoadingOutlined as g } from "@ant-design/icons-vue";
|
|
9
9
|
import { warning as J } from "../../utils/warning.mjs";
|