@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
|
@@ -44,7 +44,7 @@ const l = (r) => {
|
|
|
44
44
|
maxWidth: a,
|
|
45
45
|
paddingInline: r.calc(r.searchFormSorterItemGap).div(2).equal(),
|
|
46
46
|
"> div": {
|
|
47
|
-
border: `1px solid ${r.
|
|
47
|
+
border: `1px solid ${r.borderColorBase}`,
|
|
48
48
|
borderRadius: r.borderRadius,
|
|
49
49
|
padding: "8px",
|
|
50
50
|
display: "flex",
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VxeUI as
|
|
1
|
+
import { defineComponent as Qe, useSlots as Ye, getCurrentInstance as Ze, ref as y, computed as n, unref as t, toRef as et, nextTick as ae, watch as E, createElementBlock as I, openBlock as s, normalizeStyle as K, normalizeClass as m, createCommentVNode as w, createElementVNode as S, createVNode as L, mergeProps as R, createSlots as V, withCtx as c, Fragment as re, renderList as O, createBlock as d, resolveDynamicComponent as B, renderSlot as D, normalizeProps as tt, guardReactiveProps as ot } from "vue";
|
|
2
|
+
import { VxeUI as ne, VxeTable as at, VxeColumn as le } from "vxe-table";
|
|
3
3
|
import "vxe-table/es/style.css";
|
|
4
|
-
import { isUndefined as
|
|
5
|
-
import { ApForm as
|
|
4
|
+
import { isUndefined as b, isFunction as $, isArray as rt, omit as nt } from "lodash-unified";
|
|
5
|
+
import { ApForm as lt } from "../ap-form/index.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { noRenderAsFormItemValueList as
|
|
8
|
-
import { getColumnOrder as
|
|
9
|
-
import { useTablePaging as
|
|
10
|
-
import { Spin as
|
|
11
|
-
import { useInnerParams as
|
|
12
|
-
import { toVxeProps as
|
|
13
|
-
import
|
|
14
|
-
import { useProvideApTable as
|
|
15
|
-
import { DEFAULT_ROW_SELECTION_CONFIG as
|
|
16
|
-
import { useRenderColumns as
|
|
17
|
-
import { useToken as
|
|
7
|
+
import { noRenderAsFormItemValueList as st } from "../ap-table/constants.mjs";
|
|
8
|
+
import { getColumnOrder as se, updateFormProps as it, getFieldProps as dt, getSearchFormItemRenderNode as ut, recursionApColumns as ie } from "../ap-table/utils.mjs";
|
|
9
|
+
import { useTablePaging as ct } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
10
|
+
import { Spin as pt, Empty as de, Pagination as ft } from "@aplus-frontend/antdv";
|
|
11
|
+
import { useInnerParams as mt } from "./hooks/use-inner-params.mjs";
|
|
12
|
+
import { toVxeProps as gt, getRowExpandProps as ht, getRowSelectionProps as Ct } from "./utils/table.mjs";
|
|
13
|
+
import vt from "./hooks/use-row-selection.mjs";
|
|
14
|
+
import { useProvideApTable as yt } from "../ap-table/context.mjs";
|
|
15
|
+
import { DEFAULT_ROW_SELECTION_CONFIG as ue, sizeReverseMap as wt, sizeMap as St, ROW_SELECTION_FIELD as Rt } from "./constants.mjs";
|
|
16
|
+
import { useRenderColumns as bt } from "./hooks/use-render-columns.mjs";
|
|
17
|
+
import { useToken as xt } from "@aplus-frontend/antdv/es/theme/internal";
|
|
18
18
|
import "../scroll-bar/index.mjs";
|
|
19
|
-
import { isDef as
|
|
20
|
-
import { getValidVNodeList as
|
|
21
|
-
import { useTableStyle as
|
|
22
|
-
import { useDevWarning as
|
|
23
|
-
import
|
|
24
|
-
import { useNamespace as
|
|
25
|
-
import { useGlobalConfig as
|
|
26
|
-
import { useLocale as
|
|
27
|
-
import
|
|
28
|
-
const
|
|
19
|
+
import { isDef as kt } from "../utils/index.mjs";
|
|
20
|
+
import { getValidVNodeList as Ft } from "../utils/slot.mjs";
|
|
21
|
+
import { useTableStyle as Et } from "./hooks/use-table-style.mjs";
|
|
22
|
+
import { useDevWarning as It } from "../utils/warning.mjs";
|
|
23
|
+
import Bt from "./style/index.mjs";
|
|
24
|
+
import { useNamespace as Tt } from "../config-provider/hooks/use-namespace.mjs";
|
|
25
|
+
import { useGlobalConfig as ce } from "../config-provider/hooks/use-global-config.mjs";
|
|
26
|
+
import { useLocale as Nt } from "../config-provider/hooks/use-locale.mjs";
|
|
27
|
+
import Pt from "../scroll-bar/index.vue.mjs";
|
|
28
|
+
const so = /* @__PURE__ */ Qe({
|
|
29
29
|
name: "ApGrid",
|
|
30
30
|
__name: "index",
|
|
31
31
|
props: {
|
|
@@ -117,40 +117,40 @@ const lo = /* @__PURE__ */ Je({
|
|
|
117
117
|
treeConfig: {},
|
|
118
118
|
onReady: {}
|
|
119
119
|
},
|
|
120
|
-
setup(
|
|
121
|
-
const T =
|
|
122
|
-
|
|
120
|
+
setup(pe, { expose: fe }) {
|
|
121
|
+
const T = Ye(), o = pe, x = Ze()?.appContext.app;
|
|
122
|
+
x && !x.__VXE_PC_UI_INSTALLED__ && (x.use(ne), x.__VXE_PC_UI_INSTALLED__ = !0), It("ApGrid")(
|
|
123
123
|
!1,
|
|
124
124
|
"breaking",
|
|
125
125
|
"AgGrid has been EOL, Please use AgGrid(https://aplus.aplnk.com/aplus-ui/components/ag-grid/) instead."
|
|
126
126
|
);
|
|
127
|
-
const { e:
|
|
128
|
-
|
|
129
|
-
i18n: (e, a) =>
|
|
127
|
+
const { e: k, b: u, be: me } = Tt("ap-grid"), ge = Bt("ap-grid"), he = ce("valueTypeMap"), Ce = ce("apGrid"), i = y([]), W = y([]), l = y(), F = y(o.size), ve = Et(), [, ye] = xt(), { t: we } = Nt(), N = y(!0);
|
|
128
|
+
ne.setConfig({
|
|
129
|
+
i18n: (e, a) => we(`ap.${e}`, a)
|
|
130
130
|
});
|
|
131
|
-
const { renderConfig:
|
|
132
|
-
let
|
|
131
|
+
const { renderConfig: Se, updateSignal: Re } = bt(i);
|
|
132
|
+
let G = 0;
|
|
133
133
|
const C = n(() => {
|
|
134
|
-
let e = o.rowSelection ||
|
|
134
|
+
let e = o.rowSelection || Ce.value?.rowSelection;
|
|
135
135
|
if (e)
|
|
136
|
-
return e === !0 ?
|
|
137
|
-
...
|
|
136
|
+
return e === !0 ? ue : {
|
|
137
|
+
...ue,
|
|
138
138
|
...e
|
|
139
139
|
};
|
|
140
|
-
}),
|
|
140
|
+
}), be = n(() => {
|
|
141
141
|
if (l.value)
|
|
142
142
|
return l.value.$el.querySelector(
|
|
143
143
|
".vxe-table--header-inner-wrapper"
|
|
144
144
|
);
|
|
145
|
-
}),
|
|
146
|
-
(e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !
|
|
145
|
+
}), M = n(() => (G++, o.columns?.filter(
|
|
146
|
+
(e) => !e.hideInSearch && e.dataIndex && (e.valueType || e.customRenderFormItem) && !st.includes(e.valueType)
|
|
147
147
|
)?.sort((e, a) => {
|
|
148
|
-
let r =
|
|
149
|
-
return
|
|
148
|
+
let r = se(e.order);
|
|
149
|
+
return se(a.order) - r;
|
|
150
150
|
})?.map((e) => {
|
|
151
|
-
const a =
|
|
151
|
+
const a = it(
|
|
152
152
|
e,
|
|
153
|
-
|
|
153
|
+
dt(e.fieldProps, {})
|
|
154
154
|
), r = {
|
|
155
155
|
...e,
|
|
156
156
|
fieldProps: {
|
|
@@ -159,41 +159,41 @@ const lo = /* @__PURE__ */ Je({
|
|
|
159
159
|
// tips: 在表格中的查询表单项默认是带边框的
|
|
160
160
|
bordered: !0,
|
|
161
161
|
...a || {},
|
|
162
|
-
_signal:
|
|
162
|
+
_signal: G
|
|
163
163
|
},
|
|
164
164
|
renderNode: void 0
|
|
165
165
|
};
|
|
166
|
-
return r.renderNode =
|
|
166
|
+
return r.renderNode = ut(
|
|
167
167
|
r,
|
|
168
|
-
t(
|
|
168
|
+
t(he)
|
|
169
169
|
), r;
|
|
170
|
-
}) || [])),
|
|
170
|
+
}) || [])), xe = n(() => kt(o.manual) ? o.manual : Ft(T.searchFormExtra?.() || []).some((a) => a.type?.name === "ApView")), ke = n(() => [
|
|
171
171
|
u(),
|
|
172
172
|
o.card ? null : u("wrapper"),
|
|
173
173
|
o.adaptive ? u("adaptive") : null,
|
|
174
174
|
o.sticky ? u("sticky") : null,
|
|
175
|
-
|
|
176
|
-
].filter(Boolean)),
|
|
175
|
+
ge.value
|
|
176
|
+
].filter(Boolean)), j = n(() => ie(t(i), (e) => {
|
|
177
177
|
if (e.sorter === !0)
|
|
178
178
|
return e.key || e.dataIndex;
|
|
179
|
-
}).filter(Boolean)),
|
|
179
|
+
}).filter(Boolean)), q = n(() => ie(t(i), (e) => {
|
|
180
180
|
if (e.filters && !e.onFilter)
|
|
181
181
|
return e.key || e.dataIndex;
|
|
182
182
|
}).filter(Boolean)), {
|
|
183
183
|
formRef: g,
|
|
184
|
-
submit:
|
|
185
|
-
reset:
|
|
186
|
-
refresh:
|
|
184
|
+
submit: P,
|
|
185
|
+
reset: A,
|
|
186
|
+
refresh: H,
|
|
187
187
|
data: p,
|
|
188
|
-
tableProps:
|
|
189
|
-
setDataSource:
|
|
190
|
-
handleTableChangeOptional:
|
|
191
|
-
getPaging:
|
|
192
|
-
setPaging:
|
|
193
|
-
submitWith:
|
|
194
|
-
} =
|
|
188
|
+
tableProps: U,
|
|
189
|
+
setDataSource: Fe,
|
|
190
|
+
handleTableChangeOptional: Ee,
|
|
191
|
+
getPaging: Ie,
|
|
192
|
+
setPaging: Be,
|
|
193
|
+
submitWith: X
|
|
194
|
+
} = ct({
|
|
195
195
|
async request(e) {
|
|
196
|
-
if (C.value && !C.value.preserveSelectedRowKeys &&
|
|
196
|
+
if (C.value && !C.value.preserveSelectedRowKeys && b(o.dataSource) && !N.value && _(), N.value && (N.value = !1), !b(o.dataSource)) {
|
|
197
197
|
const r = e.pageSize * (e.current - 1);
|
|
198
198
|
return {
|
|
199
199
|
data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(r, r + e.pageSize)) || [],
|
|
@@ -207,54 +207,54 @@ const lo = /* @__PURE__ */ Je({
|
|
|
207
207
|
};
|
|
208
208
|
},
|
|
209
209
|
namespace: "ap-grid",
|
|
210
|
-
filterFields:
|
|
211
|
-
sortFields:
|
|
212
|
-
params:
|
|
210
|
+
filterFields: q,
|
|
211
|
+
sortFields: j,
|
|
212
|
+
params: et(o, "params"),
|
|
213
213
|
defaultData: o.defaultData,
|
|
214
|
-
manual: t(
|
|
214
|
+
manual: t(xe),
|
|
215
215
|
formatParams: o.beforeSearchSubmit,
|
|
216
216
|
pagination: o.pagination,
|
|
217
|
-
onClickReset:
|
|
218
|
-
onAfterRequest:
|
|
219
|
-
}), { sortChangeEvent:
|
|
220
|
-
|
|
217
|
+
onClickReset: Me,
|
|
218
|
+
onAfterRequest: je
|
|
219
|
+
}), { sortChangeEvent: Te, filterChangeEvent: Ne, paginationChangeEvent: Pe } = mt(Ee);
|
|
220
|
+
yt({
|
|
221
221
|
columns: n(() => i.value),
|
|
222
|
-
columnsBackup: n(() =>
|
|
223
|
-
size: n(() =>
|
|
222
|
+
columnsBackup: n(() => W.value),
|
|
223
|
+
size: n(() => St[F.value]),
|
|
224
224
|
updateColumns(e) {
|
|
225
225
|
i.value = e, o.onShownColumnsChange?.(e);
|
|
226
226
|
},
|
|
227
227
|
updateSize(e) {
|
|
228
|
-
|
|
228
|
+
F.value = wt[e];
|
|
229
229
|
},
|
|
230
230
|
renderConfig: n(() => ({
|
|
231
|
-
className:
|
|
232
|
-
color:
|
|
231
|
+
className: me("table-header", "title"),
|
|
232
|
+
color: ye.value.colorTextTertiary
|
|
233
233
|
})),
|
|
234
234
|
dataSource: n(() => t(p).records),
|
|
235
|
-
getSearchFormValues:
|
|
236
|
-
setSearchFormValues:
|
|
237
|
-
submit:
|
|
238
|
-
submitWith:
|
|
239
|
-
reset:
|
|
240
|
-
refresh:
|
|
241
|
-
getSearchFormSorterItems:
|
|
242
|
-
setSearchFormSorterItems:
|
|
243
|
-
resetSearchFormSorterItems:
|
|
235
|
+
getSearchFormValues: Q,
|
|
236
|
+
setSearchFormValues: J,
|
|
237
|
+
submit: P,
|
|
238
|
+
submitWith: X,
|
|
239
|
+
reset: A,
|
|
240
|
+
refresh: H,
|
|
241
|
+
getSearchFormSorterItems: Y,
|
|
242
|
+
setSearchFormSorterItems: Z,
|
|
243
|
+
resetSearchFormSorterItems: ee
|
|
244
244
|
});
|
|
245
|
-
const
|
|
245
|
+
const Ae = n(
|
|
246
246
|
() => i.value.some(
|
|
247
247
|
(e) => e.fixed === "left" || e.fixed === !0
|
|
248
248
|
) ? "left" : void 0
|
|
249
|
-
), Ae = n(
|
|
250
|
-
() => R(o.loading) ? p.loading : o.loading
|
|
251
249
|
), ze = n(
|
|
252
|
-
() =>
|
|
253
|
-
),
|
|
250
|
+
() => b(o.loading) ? p.loading : o.loading
|
|
251
|
+
), _e = n(
|
|
252
|
+
() => b(o.dataSource) ? p.records : o.dataSource
|
|
253
|
+
), { selectedRows: z, rowSelection: h, ...v } = vt({
|
|
254
254
|
...C.value,
|
|
255
|
-
dataSource:
|
|
255
|
+
dataSource: _e,
|
|
256
256
|
rowKey: o.rowKey
|
|
257
|
-
}),
|
|
257
|
+
}), Ke = ({
|
|
258
258
|
checked: e
|
|
259
259
|
}) => {
|
|
260
260
|
const a = l.value;
|
|
@@ -263,7 +263,7 @@ const lo = /* @__PURE__ */ Je({
|
|
|
263
263
|
a.getCheckboxRecords(),
|
|
264
264
|
a.getCheckboxReserveRecords()
|
|
265
265
|
);
|
|
266
|
-
},
|
|
266
|
+
}, Le = ({
|
|
267
267
|
checked: e
|
|
268
268
|
}) => {
|
|
269
269
|
const a = l.value;
|
|
@@ -271,92 +271,92 @@ const lo = /* @__PURE__ */ Je({
|
|
|
271
271
|
...a.getCheckboxReserveRecords(),
|
|
272
272
|
...a.getCheckboxRecords()
|
|
273
273
|
]);
|
|
274
|
-
},
|
|
274
|
+
}, Ve = () => {
|
|
275
275
|
const e = l.value;
|
|
276
276
|
e && v.selectRangeChange(e.getCheckboxRecords(), [
|
|
277
277
|
...e.getCheckboxReserveRecords(),
|
|
278
278
|
...e.getCheckboxRecords()
|
|
279
279
|
]);
|
|
280
|
-
},
|
|
280
|
+
}, Oe = () => {
|
|
281
281
|
const e = l.value;
|
|
282
|
-
e && (
|
|
283
|
-
},
|
|
282
|
+
e && (z.value = [e.getRadioRecord()]);
|
|
283
|
+
}, De = ({
|
|
284
284
|
row: e
|
|
285
285
|
}) => {
|
|
286
286
|
const a = o.rowHighlightable;
|
|
287
|
-
|
|
287
|
+
$(a) && a(e);
|
|
288
288
|
};
|
|
289
|
-
function
|
|
289
|
+
function $e() {
|
|
290
290
|
return o.columns?.filter((e) => !e.hideInTable) || [];
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function J(e) {
|
|
293
293
|
g.value?.apForm?.setFieldsValue?.(e);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Q(e = !1) {
|
|
296
296
|
const a = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
297
297
|
return g.value?.apForm?.[a]?.(!0);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Y() {
|
|
300
300
|
return g.value?.getSorterItems() || [];
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Z(e) {
|
|
303
303
|
g.value?.setSorterItems(e);
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function ee() {
|
|
306
306
|
g.value?.resetSorterItems();
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function _() {
|
|
309
309
|
v.clearAll();
|
|
310
310
|
const e = l.value;
|
|
311
311
|
e && (h.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
|
|
312
312
|
}
|
|
313
|
-
function $e(e) {
|
|
314
|
-
D(o.rowKey) || (v.selectMultiByKeys(e), ee());
|
|
315
|
-
}
|
|
316
313
|
function We(e) {
|
|
314
|
+
$(o.rowKey) || (v.selectMultiByKeys(e), te());
|
|
315
|
+
}
|
|
316
|
+
function Ge(e) {
|
|
317
317
|
const a = l.value;
|
|
318
318
|
if (!a)
|
|
319
319
|
return;
|
|
320
320
|
const r = String(e[o.rowKey]), f = a.getRowById(r);
|
|
321
321
|
a.setCurrentRow(f);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Me() {
|
|
324
324
|
const e = l.value;
|
|
325
325
|
e && (e.clearSort(), e.clearFilter());
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
|
|
327
|
+
function te() {
|
|
328
|
+
ae(() => {
|
|
329
329
|
h.value.type === "radio" ? l.value?.setRadioRowKey(h.value.selectedRowKeys[0]) : l.value?.setCheckboxRowKey(
|
|
330
330
|
h.value.selectedRowKeys,
|
|
331
331
|
!0
|
|
332
332
|
);
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
|
|
335
|
+
function je(e) {
|
|
336
|
+
te(), o.onReady && ae(() => {
|
|
337
337
|
o.onReady(e);
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
async function
|
|
340
|
+
async function qe(e, a) {
|
|
341
341
|
const r = p.records[e];
|
|
342
342
|
if (r)
|
|
343
343
|
return l.value?.scrollToRow(r, a);
|
|
344
344
|
}
|
|
345
|
-
const
|
|
346
|
-
async function
|
|
345
|
+
const He = (e) => $(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
|
|
346
|
+
async function Ue(e, a = !0) {
|
|
347
347
|
const r = l.value;
|
|
348
348
|
if (!r)
|
|
349
349
|
return;
|
|
350
|
-
const f =
|
|
351
|
-
(
|
|
350
|
+
const f = rt(e) ? e : [e], Xe = (r.getData() || []).filter(
|
|
351
|
+
(Je) => f.includes(He(Je))
|
|
352
352
|
);
|
|
353
|
-
r.setRowExpand(
|
|
353
|
+
r.setRowExpand(Xe, a);
|
|
354
354
|
}
|
|
355
355
|
return E(
|
|
356
356
|
() => [o.columnResizable, o.columns],
|
|
357
357
|
() => {
|
|
358
|
-
const e =
|
|
359
|
-
i.value = e, o.onShownColumnsChange?.(e),
|
|
358
|
+
const e = $e();
|
|
359
|
+
i.value = e, o.onShownColumnsChange?.(e), W.value = e;
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
deep: !0,
|
|
@@ -365,7 +365,7 @@ const lo = /* @__PURE__ */ Je({
|
|
|
365
365
|
), E(
|
|
366
366
|
() => o.dataSource,
|
|
367
367
|
(e) => {
|
|
368
|
-
|
|
368
|
+
Fe(e);
|
|
369
369
|
},
|
|
370
370
|
{ immediate: !0, deep: !0 }
|
|
371
371
|
), E(
|
|
@@ -376,49 +376,49 @@ const lo = /* @__PURE__ */ Je({
|
|
|
376
376
|
), E(
|
|
377
377
|
() => o.size,
|
|
378
378
|
(e) => {
|
|
379
|
-
|
|
379
|
+
F.value = e;
|
|
380
380
|
}
|
|
381
|
-
),
|
|
382
|
-
submit:
|
|
383
|
-
reset:
|
|
384
|
-
refresh:
|
|
385
|
-
submitWith:
|
|
386
|
-
setSearchFormValues:
|
|
387
|
-
getSearchFormValues:
|
|
381
|
+
), fe({
|
|
382
|
+
submit: P,
|
|
383
|
+
reset: A,
|
|
384
|
+
refresh: H,
|
|
385
|
+
submitWith: X,
|
|
386
|
+
setSearchFormValues: J,
|
|
387
|
+
getSearchFormValues: Q,
|
|
388
388
|
getShowColumns: () => t(i),
|
|
389
389
|
rowSelection: {
|
|
390
|
-
selectedRows: n(() =>
|
|
391
|
-
setSelectedRowKeys:
|
|
392
|
-
clearAll:
|
|
390
|
+
selectedRows: n(() => z.value),
|
|
391
|
+
setSelectedRowKeys: We,
|
|
392
|
+
clearAll: _
|
|
393
393
|
},
|
|
394
|
-
scrollToRow:
|
|
394
|
+
scrollToRow: qe,
|
|
395
395
|
getDataSource: () => t(p.records),
|
|
396
|
-
setCurrentRow:
|
|
397
|
-
getPaging:
|
|
398
|
-
setPaging:
|
|
399
|
-
getSearchFormSorterItems:
|
|
400
|
-
setSearchFormSorterItems:
|
|
401
|
-
resetSearchFormSorterItems:
|
|
402
|
-
setRowExpand:
|
|
396
|
+
setCurrentRow: Ge,
|
|
397
|
+
getPaging: Ie,
|
|
398
|
+
setPaging: Be,
|
|
399
|
+
getSearchFormSorterItems: Y,
|
|
400
|
+
setSearchFormSorterItems: Z,
|
|
401
|
+
resetSearchFormSorterItems: ee,
|
|
402
|
+
setRowExpand: Ue
|
|
403
403
|
}), (e, a) => (s(), I("div", {
|
|
404
|
-
class: m(
|
|
405
|
-
style:
|
|
404
|
+
class: m(ke.value),
|
|
405
|
+
style: K(e.wrapperStyle)
|
|
406
406
|
}, [
|
|
407
|
-
t(
|
|
407
|
+
t(b)(e.dataSource) && e.searchForm !== !1 && M.value.length > 0 ? (s(), I("div", {
|
|
408
408
|
key: 0,
|
|
409
|
-
class: m(e.card ? t(
|
|
410
|
-
style:
|
|
409
|
+
class: m(e.card ? t(k)("search-wrapper") : null),
|
|
410
|
+
style: K(e.searchFormWrapperStyle)
|
|
411
411
|
}, [
|
|
412
|
-
|
|
412
|
+
L(t(lt).SearchForm, R(e.searchForm || {}, {
|
|
413
413
|
ref_key: "formRef",
|
|
414
414
|
ref: g,
|
|
415
415
|
"custom-reset": "",
|
|
416
|
-
"submit-loading": t(
|
|
417
|
-
onSubmit: t(
|
|
418
|
-
onReset: t(
|
|
419
|
-
}),
|
|
416
|
+
"submit-loading": t(U).loading,
|
|
417
|
+
onSubmit: t(P),
|
|
418
|
+
onReset: t(A)
|
|
419
|
+
}), V({
|
|
420
420
|
default: c(() => [
|
|
421
|
-
(s(!0), I(
|
|
421
|
+
(s(!0), I(re, null, O(M.value, (r) => (s(), d(B(r.renderNode), {
|
|
422
422
|
key: r.dataIndex
|
|
423
423
|
}))), 128))
|
|
424
424
|
]),
|
|
@@ -427,66 +427,66 @@ const lo = /* @__PURE__ */ Je({
|
|
|
427
427
|
T.searchFormExtra ? {
|
|
428
428
|
name: "extra",
|
|
429
429
|
fn: c(() => [
|
|
430
|
-
|
|
430
|
+
D(e.$slots, "searchFormExtra")
|
|
431
431
|
]),
|
|
432
432
|
key: "0"
|
|
433
433
|
} : void 0
|
|
434
434
|
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
435
|
-
], 6)) :
|
|
436
|
-
|
|
437
|
-
class: m([t(
|
|
438
|
-
style:
|
|
435
|
+
], 6)) : w("", !0),
|
|
436
|
+
S("div", {
|
|
437
|
+
class: m([t(k)("table-wrapper"), e.card ? t(k)("table-wrapper-card") : null]),
|
|
438
|
+
style: K(e.tableWrapperStyle)
|
|
439
439
|
}, [
|
|
440
|
-
|
|
440
|
+
S("div", {
|
|
441
441
|
class: m(t(u)("header-wrapper"))
|
|
442
442
|
}, [
|
|
443
|
-
|
|
444
|
-
selectedRows: t(
|
|
443
|
+
D(e.$slots, "title", {
|
|
444
|
+
selectedRows: t(z),
|
|
445
445
|
selectedRowKeys: t(h).selectedRowKeys,
|
|
446
446
|
shownColumns: i.value,
|
|
447
|
-
clearAll:
|
|
447
|
+
clearAll: _
|
|
448
448
|
})
|
|
449
449
|
], 2),
|
|
450
|
-
|
|
450
|
+
S("div", {
|
|
451
451
|
class: m(t(u)("vxe-wrapper"))
|
|
452
452
|
}, [
|
|
453
|
-
(s(), d(t(
|
|
453
|
+
(s(), d(t(at), R(t(gt)(o, C.value), {
|
|
454
454
|
ref_key: "tableRef",
|
|
455
455
|
ref: l,
|
|
456
|
-
key: t(
|
|
456
|
+
key: t(Re),
|
|
457
457
|
data: t(p).records,
|
|
458
458
|
"sort-config": {
|
|
459
|
-
remote:
|
|
459
|
+
remote: j.value.length > 0,
|
|
460
460
|
trigger: "cell"
|
|
461
461
|
},
|
|
462
462
|
"filter-config": {
|
|
463
|
-
remote:
|
|
463
|
+
remote: q.value.length > 0
|
|
464
464
|
},
|
|
465
|
-
loading:
|
|
466
|
-
style: t(
|
|
467
|
-
size:
|
|
468
|
-
onSortChange: t(
|
|
469
|
-
onFilterChange: t(
|
|
470
|
-
onCheckboxChange:
|
|
471
|
-
onCheckboxRangeChange:
|
|
472
|
-
onCheckboxAll:
|
|
473
|
-
onRadioChange:
|
|
474
|
-
onCurrentRowChange:
|
|
475
|
-
}),
|
|
465
|
+
loading: ze.value,
|
|
466
|
+
style: t(ve),
|
|
467
|
+
size: F.value,
|
|
468
|
+
onSortChange: t(Te),
|
|
469
|
+
onFilterChange: t(Ne),
|
|
470
|
+
onCheckboxChange: Ke,
|
|
471
|
+
onCheckboxRangeChange: Ve,
|
|
472
|
+
onCheckboxAll: Le,
|
|
473
|
+
onRadioChange: Oe,
|
|
474
|
+
onCurrentRowChange: De
|
|
475
|
+
}), V({
|
|
476
476
|
empty: c(() => [
|
|
477
|
-
|
|
478
|
-
image: t(
|
|
477
|
+
L(t(de), {
|
|
478
|
+
image: t(de).PRESENTED_IMAGE_SIMPLE
|
|
479
479
|
}, null, 8, ["image"])
|
|
480
480
|
]),
|
|
481
481
|
loading: c(() => [
|
|
482
|
-
|
|
483
|
-
class: m(t(
|
|
482
|
+
S("div", {
|
|
483
|
+
class: m(t(k)("table-loading-wrapper"))
|
|
484
484
|
}, [
|
|
485
|
-
|
|
485
|
+
L(t(pt))
|
|
486
486
|
], 2)
|
|
487
487
|
]),
|
|
488
488
|
default: c(() => [
|
|
489
|
-
o.expandable && i.value.length ? (s(), d(t(
|
|
489
|
+
o.expandable && i.value.length ? (s(), d(t(le), R({ key: 0 }, t(ht)(e.expandable), { fixed: Ae.value }), V({
|
|
490
490
|
content: c((r) => [
|
|
491
491
|
(s(), d(B(o.expandable.renderContent(r))))
|
|
492
492
|
]),
|
|
@@ -504,49 +504,49 @@ const lo = /* @__PURE__ */ Je({
|
|
|
504
504
|
]),
|
|
505
505
|
key: "0"
|
|
506
506
|
} : void 0
|
|
507
|
-
]), 1040, ["fixed"])) :
|
|
508
|
-
C.value && i.value.length ? (s(), d(t(
|
|
507
|
+
]), 1040, ["fixed"])) : w("", !0),
|
|
508
|
+
C.value && i.value.length ? (s(), d(t(le), R(
|
|
509
509
|
{ key: 1 },
|
|
510
|
-
t(
|
|
510
|
+
t(Ct)(t(h), i.value, o.size),
|
|
511
511
|
{
|
|
512
512
|
resizable: !1,
|
|
513
|
-
field: t(
|
|
513
|
+
field: t(Rt)
|
|
514
514
|
}
|
|
515
|
-
), null, 16, ["field"])) :
|
|
516
|
-
(s(!0), I(
|
|
515
|
+
), null, 16, ["field"])) : w("", !0),
|
|
516
|
+
(s(!0), I(re, null, O(t(Se), (r) => (s(), d(B(r), {
|
|
517
517
|
key: r.props.colId
|
|
518
518
|
}))), 128))
|
|
519
519
|
]),
|
|
520
520
|
_: 2
|
|
521
521
|
}, [
|
|
522
|
-
|
|
522
|
+
O(t(nt)(T, ["searchFormExtra"]), (r, f) => ({
|
|
523
523
|
name: f,
|
|
524
|
-
fn: c((
|
|
525
|
-
|
|
524
|
+
fn: c((oe) => [
|
|
525
|
+
D(e.$slots, f, tt(ot(oe || {})))
|
|
526
526
|
])
|
|
527
527
|
}))
|
|
528
528
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
|
|
529
529
|
], 2),
|
|
530
|
-
|
|
530
|
+
S("div", {
|
|
531
531
|
class: m(t(u)("pagination-wrapper"))
|
|
532
532
|
}, [
|
|
533
|
-
e.sticky ? (s(), d(t(
|
|
533
|
+
e.sticky ? (s(), d(t(Pt), {
|
|
534
534
|
key: 0,
|
|
535
535
|
direction: "horizontal",
|
|
536
|
-
"scroll-container":
|
|
536
|
+
"scroll-container": be.value,
|
|
537
537
|
"extra-size": -4.2,
|
|
538
538
|
"bar-color": "var(--scrollbar-thumb-color-base)",
|
|
539
539
|
"track-color": "var(--table-header-bg, #f2f6f9)"
|
|
540
|
-
}, null, 8, ["scroll-container"])) :
|
|
541
|
-
e.pagination !== !1 ? (s(), d(t(
|
|
540
|
+
}, null, 8, ["scroll-container"])) : w("", !0),
|
|
541
|
+
e.pagination !== !1 ? (s(), d(t(ft), R({
|
|
542
542
|
key: 1,
|
|
543
543
|
class: t(u)("pagination")
|
|
544
|
-
}, t(
|
|
544
|
+
}, t(U).pagination, { onChange: t(Pe) }), null, 16, ["class", "onChange"])) : w("", !0)
|
|
545
545
|
], 2)
|
|
546
546
|
], 6)
|
|
547
547
|
], 6));
|
|
548
548
|
}
|
|
549
549
|
});
|
|
550
550
|
export {
|
|
551
|
-
|
|
551
|
+
so as default
|
|
552
552
|
};
|