@aplus-frontend/ui 0.6.0-beta.2 → 0.6.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +305 -289
- package/es/src/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +9 -8
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-field/date/helper.mjs +12 -12
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +8 -7
- package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
- package/es/src/ap-field/number/index.vue.d.ts +3 -5
- package/es/src/ap-field/radio/index.vue.d.ts +2 -4
- package/es/src/ap-field/rate/index.vue.d.ts +3 -5
- package/es/src/ap-field/select/index.vue.d.ts +4 -7
- package/es/src/ap-field/slider/index.vue.d.ts +2 -4
- package/es/src/ap-field/text/index.vue2.mjs +42 -44
- package/es/src/ap-field/text/password.vue.mjs +15 -17
- package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
- package/es/src/ap-form/ap-form.vue2.mjs +89 -77
- package/es/src/ap-form/dependency/index.vue.mjs +29 -23
- package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
- package/es/src/ap-form/interface.d.ts +13 -5
- package/es/src/ap-form/item/index.vue.d.ts +6 -11
- package/es/src/ap-form/item/index.vue.mjs +43 -39
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.mjs +12 -14
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +9 -9
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
- package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
- package/es/src/ap-form/provider/index.vue.mjs +6 -5
- package/es/src/ap-form/render/item.vue.d.ts +1 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +88 -69
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +33 -13
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.mjs +99 -97
- package/es/src/ap-form/set/index.vue.mjs +7 -6
- package/es/src/ap-grid/constants.d.ts +3 -3
- package/es/src/ap-grid/constants.mjs +9 -9
- package/es/src/ap-grid/editable/form-item.vue.mjs +97 -83
- package/es/src/ap-grid/editable/index.vue.mjs +100 -86
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
- package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
- package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
- package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
- package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
- package/es/src/ap-grid/index.vue.mjs +291 -224
- package/es/src/ap-grid/interface.d.ts +31 -2
- package/es/src/ap-grid/utils/table.mjs +31 -31
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -9
- package/es/src/ap-list/index.vue.mjs +116 -106
- package/es/src/ap-list/interface.d.ts +20 -0
- package/es/src/ap-table/ap-table.vue.d.ts +10 -2
- package/es/src/ap-table/ap-table.vue2.mjs +78 -70
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +52 -52
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +152 -124
- package/es/src/ap-table/interface.d.ts +14 -1
- package/es/src/ap-table/utils.d.ts +35 -35
- package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
- package/es/src/business/ap-card/ApCard.vue2.mjs +1 -1
- package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/es/src/business/ap-copy/ApCopy.mjs +79 -0
- package/es/src/business/ap-copy/constans.d.ts +24 -0
- package/es/src/business/ap-copy/constans.mjs +25 -0
- package/es/src/business/ap-copy/index.d.ts +102 -0
- package/es/src/business/ap-copy/index.mjs +7 -0
- package/es/src/business/ap-copy/interface.d.ts +8 -0
- package/es/src/business/ap-copy/interface.mjs +1 -0
- package/es/src/business/ap-copy/style/css.d.ts +0 -0
- package/es/src/business/ap-copy/style/css.js +1 -0
- package/es/src/business/ap-copy/style/index.d.ts +0 -0
- package/es/src/business/ap-copy/style/index.js +1 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +94 -73
- package/es/src/business/ap-expand-alert/index.d.ts +4 -4
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
- package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
- package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/es/src/business/ap-keep-alive/hook.mjs +33 -0
- package/es/src/business/ap-keep-alive/index.d.ts +107 -0
- package/es/src/business/ap-keep-alive/index.mjs +13 -0
- package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
- package/es/src/business/ap-keep-alive/interface.mjs +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
- package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
- package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
- package/es/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/es/src/business/ap-keep-alive/utils.mjs +41 -0
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-label/interface.d.ts +2 -3
- package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +3 -3
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
- package/es/src/business/ap-product-info/constans.d.ts +4 -0
- package/es/src/business/ap-product-info/constans.mjs +4 -0
- package/es/src/business/ap-product-info/index.d.ts +15 -0
- package/es/src/business/ap-product-info/interface.d.ts +1 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +60 -0
- package/es/src/business/ap-radio-group/index.d.ts +60 -0
- package/es/src/business/ap-radio-group/index.mjs +8 -0
- package/es/src/business/ap-radio-group/interface.d.ts +11 -0
- package/es/src/business/ap-radio-group/interface.mjs +1 -0
- package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/css.js +1 -0
- package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/index.js +1 -0
- package/es/src/business/ap-status/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/es/src/business/ap-table-modal/index.d.ts +32 -5
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
- package/es/src/business/ap-view/ap-view.vue.d.ts +5 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +162 -129
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/es/src/business/ap-view/index.d.ts +15 -3
- package/es/src/business/ap-view/interface.d.ts +11 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.mjs +10 -9
- package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
- package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/es/src/business/index.d.ts +3 -0
- package/es/src/business/index.mjs +36 -30
- package/es/src/check-card/group.vue.d.ts +1 -1
- package/es/src/components.d.ts +1 -0
- package/es/src/config-provider/config-provider-props.d.ts +0 -5
- package/es/src/config-provider/config-provider-props.mjs +0 -4
- package/es/src/config-provider/config-provider.d.ts +0 -138
- package/es/src/config-provider/config-provider.mjs +21 -26
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/es/src/config-provider/index.d.ts +0 -652
- package/es/src/editable-table/form-item.vue.d.ts +2 -14
- package/es/src/editable-table/form-item.vue.mjs +86 -78
- package/es/src/editable-table/index.vue.d.ts +2 -16
- package/es/src/editable-table/index.vue.mjs +91 -83
- package/es/src/editable-table/interface.d.ts +7 -0
- package/es/src/full-screen/interface.d.ts +5 -6
- package/es/src/index.mjs +132 -119
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/mask/index.vue.mjs +21 -20
- package/es/src/path-map.mjs +3 -1
- package/es/src/resize-observer/interface.d.ts +2 -3
- package/es/src/scroll-bar/interface.d.ts +7 -7
- package/es/src/scroll-view/interface.d.ts +2 -3
- package/es/src/splitter/SplitBar.vue2.mjs +1 -0
- package/es/src/splitter/Splitter.vue2.mjs +1 -0
- package/es/src/tests/mock-resize-observer.d.ts +2 -0
- package/es/src/tests/utils.d.ts +8 -0
- package/es/src/text/group.vue.mjs +7 -6
- package/es/src/text/index.vue.mjs +20 -19
- package/es/src/version.d.ts +2 -0
- package/es/src/version.mjs +4 -0
- package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
- package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
- package/es/src/work-order-modal/interfaces.d.ts +4 -0
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
- package/es/test/setup.d.ts +5 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +3 -5
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
- package/lib/src/ap-field/rate/index.vue.d.ts +3 -5
- package/lib/src/ap-field/select/index.vue.d.ts +4 -7
- package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +13 -5
- package/lib/src/ap-form/item/index.vue.d.ts +6 -11
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/provider/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.d.ts +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +3 -3
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
- package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
- package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +31 -2
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -9
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +20 -0
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +52 -52
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +23 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +14 -1
- package/lib/src/ap-table/utils.d.ts +35 -35
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/lib/src/business/ap-copy/ApCopy.js +1 -0
- package/lib/src/business/ap-copy/constans.d.ts +24 -0
- package/lib/src/business/ap-copy/constans.js +1 -0
- package/lib/src/business/ap-copy/index.d.ts +102 -0
- package/lib/src/business/ap-copy/index.js +1 -0
- package/lib/src/business/ap-copy/interface.d.ts +8 -0
- package/lib/src/business/ap-copy/interface.js +1 -0
- package/lib/src/business/ap-copy/style/css.cjs +1 -0
- package/lib/src/business/ap-copy/style/css.d.ts +0 -0
- package/lib/src/business/ap-copy/style/index.cjs +1 -0
- package/lib/src/business/ap-copy/style/index.d.ts +0 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
- package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
- package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
- package/lib/src/business/ap-keep-alive/hook.js +1 -0
- package/lib/src/business/ap-keep-alive/index.d.ts +107 -0
- package/lib/src/business/ap-keep-alive/index.js +1 -0
- package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
- package/lib/src/business/ap-keep-alive/interface.js +1 -0
- package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
- package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
- package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
- package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
- package/lib/src/business/ap-keep-alive/utils.d.ts +22 -0
- package/lib/src/business/ap-keep-alive/utils.js +1 -0
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-label/interface.d.ts +2 -3
- package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +3 -3
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/constans.d.ts +4 -0
- package/lib/src/business/ap-product-info/constans.js +1 -1
- package/lib/src/business/ap-product-info/index.d.ts +15 -0
- package/lib/src/business/ap-product-info/interface.d.ts +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +19 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
- package/lib/src/business/ap-radio-group/index.d.ts +60 -0
- package/lib/src/business/ap-radio-group/index.js +1 -0
- package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
- package/lib/src/business/ap-radio-group/interface.js +1 -0
- package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/lib/src/business/ap-status/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
- package/lib/src/business/ap-table-modal/index.d.ts +32 -5
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +5 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/lib/src/business/ap-view/index.d.ts +15 -3
- package/lib/src/business/ap-view/interface.d.ts +11 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
- package/lib/src/business/index.d.ts +3 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -1
- package/lib/src/components.d.ts +1 -0
- package/lib/src/config-provider/config-provider-props.d.ts +0 -5
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +0 -138
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/lib/src/config-provider/index.d.ts +0 -652
- package/lib/src/editable-table/form-item.vue.d.ts +2 -14
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +2 -16
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +7 -0
- package/lib/src/full-screen/interface.d.ts +5 -6
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/resize-observer/interface.d.ts +2 -3
- package/lib/src/scroll-bar/interface.d.ts +7 -7
- package/lib/src/scroll-view/interface.d.ts +2 -3
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/tests/mock-resize-observer.d.ts +2 -0
- package/lib/src/tests/utils.d.ts +8 -0
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +2 -0
- package/lib/src/version.js +1 -0
- package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
- package/lib/src/work-order-modal/createWorkOrder.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +4 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/lib/test/setup.d.ts +5 -0
- package/package.json +12 -11
- package/theme/antd-global-overwrite/admin/alert.css +6 -19
- package/theme/antd-global-overwrite/admin/alert.less +25 -36
- package/theme/antd-global-overwrite/admin/button.css +13 -13
- package/theme/antd-global-overwrite/admin/button.less +24 -24
- package/theme/antd-global-overwrite/admin/field.css +39 -0
- package/theme/antd-global-overwrite/admin/field.less +39 -0
- package/theme/antd-global-overwrite/admin/index.css +89 -646
- package/theme/antd-global-overwrite/admin/index.less +2 -3
- package/theme/antd-global-overwrite/admin/message.css +2 -9
- package/theme/antd-global-overwrite/admin/message.less +2 -10
- package/theme/antd-global-overwrite/admin/modal.css +15 -48
- package/theme/antd-global-overwrite/admin/modal.less +13 -54
- package/theme/antd-global-overwrite/admin/table.css +11 -251
- package/theme/antd-global-overwrite/admin/table.less +4 -132
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/alert.css +9 -19
- package/theme/antd-global-overwrite/aplus/alert.less +27 -34
- package/theme/antd-global-overwrite/aplus/button.css +20 -20
- package/theme/antd-global-overwrite/aplus/button.less +24 -24
- package/theme/antd-global-overwrite/aplus/field.css +33 -0
- package/theme/antd-global-overwrite/aplus/field.less +32 -0
- package/theme/antd-global-overwrite/aplus/index.css +91 -690
- package/theme/antd-global-overwrite/aplus/index.less +1 -3
- package/theme/antd-global-overwrite/aplus/message.css +2 -9
- package/theme/antd-global-overwrite/aplus/message.less +2 -10
- package/theme/antd-global-overwrite/aplus/modal.css +15 -49
- package/theme/antd-global-overwrite/aplus/modal.less +14 -58
- package/theme/antd-global-overwrite/aplus/table.css +11 -236
- package/theme/antd-global-overwrite/aplus/table.less +4 -134
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-action/item-dropdown.css +19 -1
- package/theme/ap-action/item.css +37 -8
- package/theme/ap-action/item.less +18 -6
- package/theme/ap-appendix/ap-appendix.css +27 -9
- package/theme/ap-appendix/ap-appendix.less +8 -8
- package/theme/ap-attachment/ap-attachment.css +21 -2
- package/theme/ap-attachment/ap-attachment.less +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +22 -4
- package/theme/ap-batch-action/ap-batch-action.less +3 -3
- package/theme/ap-button/ap-button.css +19 -1
- package/theme/ap-card/ap-card.css +20 -2
- package/theme/ap-card/ap-card.less +1 -1
- package/theme/ap-copy/ap-copy.css +96 -0
- package/theme/ap-copy/ap-copy.less +61 -0
- package/theme/ap-descriptions/ap-descriptions.css +25 -5
- package/theme/ap-descriptions/ap-descriptions.less +6 -4
- package/theme/ap-download/ap-download.css +19 -1
- package/theme/ap-expand-alert/ap-expand-alert.css +21 -2
- package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
- package/theme/ap-field/checkbox.css +19 -1
- package/theme/ap-field/index.css +19 -1
- package/theme/ap-field/number.css +19 -1
- package/theme/ap-field/radio.css +19 -1
- package/theme/ap-field/text-area.css +19 -1
- package/theme/ap-form/ap-form-item-group.css +19 -1
- package/theme/ap-form/ap-form-item.css +30 -9
- package/theme/ap-form/ap-form-item.less +15 -9
- package/theme/ap-form/drawer-form.css +19 -1
- package/theme/ap-form/index.css +51 -18
- package/theme/ap-form/item-text-group.css +19 -1
- package/theme/ap-form/item-text.css +19 -1
- package/theme/ap-form/modal-form.css +19 -1
- package/theme/ap-form/search-form-sorter.css +28 -9
- package/theme/ap-form/search-form-sorter.less +5 -4
- package/theme/ap-form/search-form.css +51 -18
- package/theme/ap-form/search-form.less +12 -1
- package/theme/ap-grid/editable.css +19 -1
- package/theme/ap-grid/index.css +118 -31
- package/theme/ap-grid/index.less +34 -5
- package/theme/ap-group-search/ap-extension-select.css +19 -1
- package/theme/ap-group-search/ap-group-search.css +19 -1
- package/theme/ap-group-search/ap-popover-select.css +19 -1
- package/theme/ap-image/ap-image.css +19 -1
- package/theme/ap-input-radio/ap-input-radio.css +19 -1
- package/theme/ap-label/ap-label.css +19 -1
- package/theme/ap-ladder/ap-ladder.css +20 -1
- package/theme/ap-ladder/ap-ladder.less +1 -0
- package/theme/ap-layout/ap-info-layout.css +19 -1
- package/theme/ap-list/index.css +19 -1
- package/theme/ap-product-info/ap-product-info.css +39 -31
- package/theme/ap-product-info/ap-product-info.less +28 -42
- package/theme/ap-radio-group/ap-radio-group.css +65 -0
- package/theme/ap-radio-group/ap-radio-group.less +25 -0
- package/theme/ap-select-layout/ap-select-layout.css +19 -1
- package/theme/ap-size-input/ap-size-input.css +19 -1
- package/theme/ap-status/ap-status.css +20 -2
- package/theme/ap-status/ap-status.less +1 -1
- package/theme/ap-summary/index.css +19 -1
- package/theme/ap-table/ap-table-index.css +19 -1
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +20 -2
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +127 -50
- package/theme/ap-table/ap-table.less +24 -11
- package/theme/ap-table/setting/index.css +35 -13
- package/theme/ap-table/setting/modal.css +26 -5
- package/theme/ap-table/setting/modal.less +6 -3
- package/theme/ap-table/setting/select-group.css +21 -2
- package/theme/ap-table/setting/select-group.less +2 -1
- package/theme/ap-table/setting/sortable-item-meta.css +21 -3
- package/theme/ap-table/setting/sortable-item-meta.less +2 -2
- package/theme/ap-table/setting/sortable-item.css +19 -1
- package/theme/ap-table/setting/sorter.css +24 -6
- package/theme/ap-table/setting/sorter.less +4 -4
- package/theme/ap-table-modal/index.css +142 -63
- package/theme/ap-table-modal/index.less +15 -13
- package/theme/ap-tag/ap-tag-group.css +21 -3
- package/theme/ap-tag/ap-tag-group.less +2 -3
- package/theme/ap-tag/ap-tag.css +23 -5
- package/theme/ap-tag/ap-tag.less +4 -4
- package/theme/ap-title/ap-title.css +24 -4
- package/theme/ap-title/ap-title.less +5 -3
- package/theme/ap-upload/index.css +24 -6
- package/theme/ap-upload/multiple-file.css +20 -2
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +21 -3
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-upload/single-file.css +21 -3
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +19 -1
- package/theme/ap-upload-single/index.css +23 -5
- package/theme/ap-upload-single/index.less +4 -4
- package/theme/ap-view/ap-view.css +26 -8
- package/theme/ap-view/ap-view.less +7 -7
- package/theme/batch-input-group/index.css +22 -3
- package/theme/batch-input-group/popover-input.css +22 -3
- package/theme/batch-input-group/popover-input.less +3 -2
- package/theme/check-card/index.css +27 -9
- package/theme/check-card/index.less +5 -5
- package/theme/editable-table/index.css +69 -25
- package/theme/full-screen/index.css +19 -1
- package/theme/index.css +410 -163
- package/theme/index.less +3 -0
- package/theme/mask/index.css +19 -1
- package/theme/mixins/config.less +1 -1
- package/theme/mixins/mixins.css +19 -1
- package/theme/mixins/mixins.less +25 -0
- package/theme/scroll-bar/index.css +19 -1
- package/theme/scroll-view/index.css +19 -1
- package/theme/splitter/index.css +24 -6
- package/theme/splitter/index.less +1 -1
- package/theme/text/group.css +19 -1
- package/theme/text/index.css +24 -6
- package/theme/text/index.less +4 -4
- package/theme/ui-mode.css +58 -0
- package/theme/ui-mode.less +107 -0
- package/theme/work-order-modal/index.css +19 -1
- package/es/src/config-provider/css-var.d.ts +0 -139
- package/es/src/config-provider/css-var.mjs +0 -278
- package/lib/src/config-provider/css-var.d.ts +0 -139
- package/lib/src/config-provider/css-var.js +0 -1
|
@@ -5,6 +5,7 @@ import { TableProps } from '@aplus-frontend/antdv';
|
|
|
5
5
|
import { ColumnFilterItem, SortOrder, TableRowSelection } from '@aplus-frontend/antdv/es/table/interface';
|
|
6
6
|
import { ComputedRef, CSSProperties, Ref, VNode } from 'vue';
|
|
7
7
|
import { VxeTablePropTypes, VxeColumnPropTypes, VxeTableProps, VxeTableDefines, VxeColumnSlots, VxeColumnProps } from 'vxe-table';
|
|
8
|
+
import { InternalPagingType } from '../ap-table/hooks/use-table-paging-ng';
|
|
8
9
|
export type ColConfigType = VxeTableDefines.ColumnOptions;
|
|
9
10
|
export type ApGridColumnType<RecordType = any, ExtraValueType = 'text', ValueType extends ApTableValueTypes = ApTableValueTypes, MergedValueType extends ExtraValueType | ValueType = ExtraValueType | ValueType> = MergedValueType extends ExtraValueType | ValueType ? Omit<ExtraProColumnType<RecordType>, 'sorter' | 'rowSpan' | 'customCell' | 'customHeaderCell' | 'minWidth' | 'className' | 'class'> & {
|
|
10
11
|
children?: ApGridColumnType<RecordType, ExtraValueType, ValueType, MergedValueType>[];
|
|
@@ -119,7 +120,7 @@ export type ApGridRowSelection<RecordType> = Pick<TableRowSelection<RecordType>,
|
|
|
119
120
|
*/
|
|
120
121
|
range?: boolean;
|
|
121
122
|
};
|
|
122
|
-
export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer' | 'loading'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig' | 'loading' | 'loadingConfig' | 'headerCellConfig' | 'footerCellConfig'> & {
|
|
123
|
+
export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer' | 'loading'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig' | 'loading' | 'loadingConfig' | 'headerCellConfig' | 'footerCellConfig' | 'round'> & {
|
|
123
124
|
/**
|
|
124
125
|
* 列配置
|
|
125
126
|
*/
|
|
@@ -200,7 +201,7 @@ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<Re
|
|
|
200
201
|
/**
|
|
201
202
|
* 表格尺寸(只支持中等大小和小尺寸)
|
|
202
203
|
*/
|
|
203
|
-
size?: 'medium' | '
|
|
204
|
+
size?: 'medium' | 'mini';
|
|
204
205
|
/**
|
|
205
206
|
* 表格是否自适应高度
|
|
206
207
|
*/
|
|
@@ -239,6 +240,10 @@ export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<Re
|
|
|
239
240
|
* 作为表单项时内部传递,请勿使用
|
|
240
241
|
*/
|
|
241
242
|
value?: any;
|
|
243
|
+
/**
|
|
244
|
+
* 行是否可以被高亮(传入函数可以获取当前被选中的行)
|
|
245
|
+
*/
|
|
246
|
+
rowHighlightable?: boolean | ((current: RecordType) => void);
|
|
242
247
|
};
|
|
243
248
|
export type ApGridVirtualConfig = {
|
|
244
249
|
x?: false | number;
|
|
@@ -289,6 +294,12 @@ export type ApGridExpose<SearchParamsType = Recordable, RecordType = any> = {
|
|
|
289
294
|
*/
|
|
290
295
|
rowSelection: {
|
|
291
296
|
selectedRows: ComputedRef<RecordType[]>;
|
|
297
|
+
/**
|
|
298
|
+
* 通过API调用设置行选中
|
|
299
|
+
* @param keys
|
|
300
|
+
* @returns
|
|
301
|
+
*/
|
|
302
|
+
setSelectedRowKeys: (keys: (string | number)[]) => void;
|
|
292
303
|
clearAll: () => void;
|
|
293
304
|
};
|
|
294
305
|
/**
|
|
@@ -303,4 +314,22 @@ export type ApGridExpose<SearchParamsType = Recordable, RecordType = any> = {
|
|
|
303
314
|
* @returns
|
|
304
315
|
*/
|
|
305
316
|
getDataSource: () => RecordType[];
|
|
317
|
+
/**
|
|
318
|
+
* 设置某一行被选中
|
|
319
|
+
* @param nextRow
|
|
320
|
+
* @returns
|
|
321
|
+
*/
|
|
322
|
+
setCurrentRow: (nextRow: Partial<RecordType>) => void;
|
|
323
|
+
/**
|
|
324
|
+
* 获取分页参数
|
|
325
|
+
* @returns
|
|
326
|
+
*/
|
|
327
|
+
getPaging: () => InternalPagingType;
|
|
328
|
+
/**
|
|
329
|
+
* 设置表格分页参数
|
|
330
|
+
* @param nextPaging 新的分页参数
|
|
331
|
+
* @param refreshImmediately 是否立刻刷新数据,默认为`true`
|
|
332
|
+
* @returns
|
|
333
|
+
*/
|
|
334
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
306
335
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lodash-unified"),c=require("../../utils/index.js"),h=20,w=50,b=e=>e.some(t=>!!t.html);function m(e){var r;const t={...s.omit(e,["columns","request","searchForm","dataSource","rowKey","value","round"])};if(t.rowConfig={isHover:!0,keyField:e.rowKey,isCurrent:!!e.rowHighlightable},t.columnConfig={},b(e.columns||[])&&(t.rowConfig.useKey=!0,t.columnConfig.useKey=!0),e.adaptive&&(t.autoResize=!0,t.height="100%"),e.columnResizable&&(t.columnConfig.resizable=!0),e.rowSelection){const o=e.rowSelection===!0?{}:e.rowSelection;o.type==="radio"?t.radioConfig={highlight:!0,checkMethod({row:n}){return o.disabled?!o.disabled(n):!0},visibleMethod({row:n}){return o.shown?o.shown(n):!0},checkRowKey:(r=o.defaultSelectedRowKeys)==null?void 0:r[0],reserve:s.isUndefined(o.preserveSelectedRowKeys)?!0:o.preserveSelectedRowKeys}:t.checkboxConfig={highlight:!0,checkMethod({row:n}){return o.disabled?!o.disabled(n):!0},visibleMethod({row:n}){return o.shown?o.shown(n):!0},reserve:s.isUndefined(o.preserveSelectedRowKeys)?!0:o.preserveSelectedRowKeys,range:o.range||!1}}return t.border=e.bordered===!1?"inner":!0,e.expandable&&(t.expandConfig=s.omit(e.expandable,["renderContent","width","title"])),e.footer&&(t.showFooter=!0,s.isFunction(e.footer)?t.footerMethod=e.footer:t.footerData=e.footer),e.virtual===!1?(t.virtualXConfig={enabled:!1},t.virtualYConfig={enabled:!1}):(l(t,"X",e.virtual),l(t,"Y",e.virtual)),t.round=c.isDef(e.round)?e.round:!e.card,t}function l(e,t,i){const r=t==="X",o=r?"x":"y",n=r?"virtualXConfig":"virtualYConfig",d=i==null?void 0:i[o],a=d!==!1,u=r?h:w,f=s.isNumber(d)&&d>=0?d:u;e[n]={enabled:a,gt:f,oSize:(i==null?void 0:i.oSize)||0}}function C(e){return e===!0?"left":e}function g(e,t){const i=e===!0||!e.type?"checkbox":e.type,r=e===!0?60:e.columnWidth||60;let o=e===!0?void 0:C(e.fixed);return o||(o===!1?o=void 0:o=t.some(n=>n.fixed==="left"||n.fixed===!0)?"left":void 0),{type:i,width:r,fixed:o}}function y(e){const t=(e==null?void 0:e.width)||"auto";return{type:"expand",title:e==null?void 0:e.title,width:t}}exports.getRowExpandProps=y;exports.getRowSelectionProps=g;exports.toVxeProps=m;
|
|
@@ -14,8 +14,8 @@ declare function __VLS_template(): {
|
|
|
14
14
|
};
|
|
15
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
16
|
declare const __VLS_component: DefineComponent<ApInfoLayoutAdminProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutAdminProps> & Readonly<{}>, {
|
|
17
|
-
bordered: boolean;
|
|
18
17
|
headerStyle: CSSProperties;
|
|
18
|
+
bordered: boolean;
|
|
19
19
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
20
20
|
containerRef: HTMLDivElement;
|
|
21
21
|
headerRef: HTMLDivElement;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { ApListProps } from './interface';
|
|
1
|
+
import { ApListExpose, ApListProps } from './interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
3
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
5
|
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
7
|
-
expose(exposed: ShallowUnwrapRef<
|
|
8
|
-
submit: () => void;
|
|
9
|
-
reset: () => void;
|
|
10
|
-
refresh: () => void;
|
|
11
|
-
refreshByDelete: (n: number) => void;
|
|
12
|
-
scrollToFirstRow: (selector?: string) => void;
|
|
13
|
-
getSearchFormValuesIfSetted: (transform?: boolean) => Partial<any>;
|
|
14
|
-
}>): void;
|
|
7
|
+
expose(exposed: ShallowUnwrapRef<ApListExpose>): void;
|
|
15
8
|
attrs: any;
|
|
16
9
|
slots: {
|
|
17
10
|
header?(_: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv"),U=require("../ap-table/hooks/use-table-paging-ng.js");require("../config-provider/index.js");const d=require("lodash-unified"),K=require("./hooks/use-offline-list.js");require("vue-virtual-scroller/dist/vue-virtual-scroller.css");const g=require("vue-virtual-scroller"),W=require("../config-provider/hooks/use-namespace.js"),G=e.defineComponent({name:"ApList",__name:"index",props:{dataSource:{},loading:{type:Boolean,default:void 0},onItem:{},params:{},request:{},defaultData:{},onLoadingChange:{},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},manual:{type:Boolean},containerStyle:{type:[Boolean,null,String,Object,Array]},contentStyle:{type:[Boolean,null,String,Object,Array]},footerWarpperStyle:{type:[Boolean,null,String,Object,Array]},virtual:{default:void 0},rowKey:{},adaptive:{type:Boolean,default:!1}},setup(C,{expose:z}){const P=c.Empty.PRESENTED_IMAGE_SIMPLE,r=C,{b:u,e:f,bm:w,m:E}=W.useNamespace("ap-list"),S=e.ref(),{formRef:m,submit:y,reset:v,handleTableChange:V,data:p,refresh:q,refreshByDelete:D,tableProps:h,getPaging:N,setPaging:F}=U.useTablePaging({async request(t){var a;const n=await((a=r.request)==null?void 0:a.call(r,t));return{data:(n==null?void 0:n.data)||[],total:(n==null?void 0:n.total)||0}},defaultParams:r.params,defaultData:r.defaultData,manual:r.manual,pagination:r.pagination,formatParams:r.beforeSearchSubmit}),I={form:m},{pagination:k,dataSource:O,onChange:L}=K.useOfflineList(r);function T(t,n){if(e.unref(s)){L(t,n);return}V({current:t,pageSize:n},{},{},{currentDataSource:[],action:"paginate"})}const o=e.computed(()=>e.unref(s)?e.unref(O):e.unref(p).records),i=e.computed(()=>d.isUndefined(r.loading)?e.unref(p).loading:r.loading),R=e.computed(()=>{var t,n;return r.pagination===!1||r.virtual?!1:((t=r.pagination)==null?void 0:t.hideOnSinglePage)!==!0?!0:e.unref(s)?(((n=r.dataSource)==null?void 0:n.length)||0)>e.unref(k).pageSize:e.unref(p).total>e.unref(h).pagination.pageSize}),s=e.computed(()=>!d.isUndefined(r.dataSource));e.watch(()=>e.unref(i),t=>{var n;(n=r.onLoadingChange)==null||n.call(r,t)});function $(t){var n,a;(a=(n=S.value)==null?void 0:n.querySelector(t||":first-child"))==null||a.scrollIntoView({behavior:"smooth",block:"center"})}function j(t=!1){var l;const n=(l=m.value)==null?void 0:l.apForm,a=t?n==null?void 0:n.getFieldsValueTransformed:n==null?void 0:n.getFieldsValue;return(a==null?void 0:a())||{}}function A(t){var n,a,l;(l=(a=(n=m.value)==null?void 0:n.apForm)==null?void 0:a.setFieldsValue)==null||l.call(a,t)}return z({submit:()=>y(),reset:()=>v(),refresh:()=>q(),refreshByDelete:t=>D(t),scrollToFirstRow:$,getSearchFormValuesIfSetted:j,setPaging:F,getPaging:N,setSearchFormValuesIfSetted:A}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(u)(),{[e.unref(E)("adaptive")]:t.adaptive}]),style:e.normalizeStyle(t.containerStyle)},[e.renderSlot(t.$slots,"header",{formIns:I,submit:e.unref(y),reset:e.unref(v)}),e.createElementVNode("div",{class:e.normalizeClass([e.unref(u)("content-container"),{[e.unref(w)("content-container","spinning")]:i.value}])},[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(f)("spin-wrapper"))},[e.createVNode(e.unref(c.Spin),{spinning:i.value},null,8,["spinning"])],2)):e.createCommentVNode("",!0),o.value.length===0?e.renderSlot(t.$slots,"empty",{key:1,loading:i.value},()=>[e.createVNode(e.unref(c.Empty),{image:e.unref(P)},null,8,["image"])]):(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"contentRef",ref:S,style:e.normalizeStyle(t.contentStyle),class:e.normalizeClass(e.unref(f)("content"))},[t.virtual?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(d.isNumber)(t.virtual)?(e.openBlock(),e.createBlock(e.unref(g.RecycleScroller),{key:0,class:e.normalizeClass(e.unref(u)("scroll-wrapper")),items:o.value,"item-size":t.virtual,"key-field":r.rowKey||"id"},{default:e.withCtx(({item:a,index:l})=>[e.renderSlot(t.$slots,"renderItem",{item:a,index:l})]),_:3},8,["class","items","item-size","key-field"])):(e.openBlock(),e.createBlock(e.unref(g.DynamicScroller),{key:1,items:o.value,"min-item-size":t.virtual.minItemSize,class:e.normalizeClass(e.unref(u)("scroll-wrapper"))},{default:e.withCtx(({item:a,index:l,active:M})=>{var B,b;return[e.createVNode(e.unref(g.DynamicScrollerItem),{item:a,active:M,"data-index":l,"size-dependencies":(b=(B=t.virtual).sizeDependencies)==null?void 0:b.call(B,a)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"renderItem",{item:a,index:l})]),_:2},1032,["item","active","data-index","size-dependencies"])]}),_:3},8,["items","min-item-size","class"]))],64)):e.renderSlot(t.$slots,"renderContent",{key:1,dataSource:o.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(a,l)=>e.renderSlot(t.$slots,"renderItem",{item:a,index:l})),256))])],6))],2),R.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(f)("footer")),style:e.normalizeStyle(t.footerWarpperStyle)},[e.createVNode(e.unref(c.Pagination),e.mergeProps(s.value?e.unref(k):e.unref(d.omit)(e.unref(h).pagination,["showTotal"]),{onChange:T}),null,16)],6)):e.createCommentVNode("",!0)],6))}});exports.default=G;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Ref, StyleValue } from 'vue';
|
|
2
2
|
import { RequestData } from '../ap-table';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
|
+
import { InternalPagingType } from '../ap-table/hooks/use-table-paging-ng';
|
|
4
5
|
export type ApListProps<RecordType = any, ParamsType = Recordable> = {
|
|
5
6
|
/**
|
|
6
7
|
* 列表数据源,传入后`request`和`defaultData`都将失效
|
|
@@ -126,4 +127,23 @@ export type ApListExpose = {
|
|
|
126
127
|
* @returns
|
|
127
128
|
*/
|
|
128
129
|
getSearchFormValuesIfSetted: (transform?: boolean) => Recordable;
|
|
130
|
+
/**
|
|
131
|
+
* 设置查询表单的值
|
|
132
|
+
* @description 只有在自定义查询表单并且绑定了formRef才能设置查询表单的值
|
|
133
|
+
* @param fields 将要设置的值
|
|
134
|
+
* @returns
|
|
135
|
+
*/
|
|
136
|
+
setSearchFormValuesIfSetted: (fields: any) => void;
|
|
137
|
+
/**
|
|
138
|
+
* 获取分页参数
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
getPaging: () => InternalPagingType;
|
|
142
|
+
/**
|
|
143
|
+
* 设置表格分页参数
|
|
144
|
+
* @param nextPaging 新的分页参数
|
|
145
|
+
* @param refreshImmediately 是否立刻刷新数据,默认为`true`
|
|
146
|
+
* @returns
|
|
147
|
+
*/
|
|
148
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
129
149
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApColumnType, ApTableProps } from './interface';
|
|
2
2
|
import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
3
3
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
4
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef,
|
|
4
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
|
|
5
5
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -10,6 +10,14 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
10
10
|
refresh: () => void;
|
|
11
11
|
setSearchFormValues: (fields: any) => void;
|
|
12
12
|
getSearchFormValues: (transform?: boolean) => Partial<any> | undefined;
|
|
13
|
+
setPaging: (nextPaging: Partial<{
|
|
14
|
+
current: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
}>, refreshImmediately?: boolean) => void;
|
|
17
|
+
getPaging: () => {
|
|
18
|
+
current?: number | undefined;
|
|
19
|
+
pageSize?: number | undefined;
|
|
20
|
+
};
|
|
13
21
|
getShownColumns: () => ColumnsType<RecordType>;
|
|
14
22
|
dataSource: ComputedRef<RecordType[]>;
|
|
15
23
|
rowSelection: {
|
|
@@ -26,7 +34,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
26
34
|
};
|
|
27
35
|
scrollBar: {
|
|
28
36
|
x: {
|
|
29
|
-
getCurrentScroll: () =>
|
|
37
|
+
getCurrentScroll: () => number;
|
|
30
38
|
scroll: (percent: number) => void | undefined;
|
|
31
39
|
};
|
|
32
40
|
y: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("@aplus-frontend/antdv"),be=require("@aplus-frontend/antdv/es/theme/internal"),he=require("../ap-form/index.js"),H=require("./constants.js");require("../config-provider/index.js");const we=require("./hooks/use-table-paging-ng.js"),i=require("lodash-unified"),s=require("./utils.js"),ve=require("./hooks/use-table-content-height.js"),Ce=require("./hooks/use-table-row-selection.js"),k=require("../utils/index.js");require("./components/setting/modal/index.vue.js");require("./components/paragraph-ellipsis/index.vue.js");const Re=require("./context.js");require("../scroll-bar/index.js");const xe=require("./hooks/use-sticky-scroll.js"),Te=require("../utils/slot.js"),ke=require("../config-provider/hooks/use-namespace.js"),Be=require("../config-provider/hooks/use-global-config.js"),Fe=require("./components/paragraph-ellipsis/index.vue2.js"),ze=require("./components/setting/modal/index.vue2.js"),Ne=require("../scroll-bar/index.vue.js"),qe=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!1},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},dataSource:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:void 0},size:{default:"small"},adaptive:{type:Boolean,default:!1},columnResizable:{type:Boolean,default:!1},settings:{type:[Boolean,Object],default:void 0}},setup(M,{expose:G}){const t=M;let B=0;const f=e.useSlots(),[,J]=be.useToken(),{e:w,b:p,be:F,m:Q,cssVar:X}=ke.useNamespace("ap-table"),z=Be.useGlobalConfig("valueTypeMap"),{height:Y,contentRef:Z}=ve.default(),N=e.ref(),q=e.ref(),{isStickyMode:P,scrollBarRef:c}=xe.useStickyScroll(N),v=e.ref(t.size),d=e.ref([]),V=e.ref([]),_=k.getScrollbarSize();Re.useProvideApTable({columns:e.computed(()=>d.value),columnsBackup:e.computed(()=>V.value),size:e.computed(()=>v.value),updateColumns(r){d.value=r},updateSize(r){v.value=r},dataSource:e.computed(()=>e.unref(y).records),getSearchFormValues:K,setSearchFormValues:A,submit:()=>R(),reset:()=>x()});const I=e.computed(()=>{var r,o,n;return B++,((n=(o=(r=t.columns)==null?void 0:r.filter(a=>!a.hideInSearch&&a.dataIndex&&(a.valueType||a.customRenderFormItem)&&!H.noRenderAsFormItemValueList.includes(a.valueType)))==null?void 0:o.sort((a,u)=>{let l=s.getColumnOrder(a.order);return s.getColumnOrder(u.order)-l}))==null?void 0:n.map(a=>{const u=s.updateFormProps(a,s.getFieldProps(a.fieldProps,{})),l={...a,fieldProps:{label:a.title,name:a.dataIndex,...u||{},_signal:B},renderNode:void 0};return l.renderNode=s.getSearchFormItemRenderNode(l,e.unref(z)),l}))||[]}),ee=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.sorter===!0)return r.key||(r==null?void 0:r.dataIndex)}).filter(Boolean)),re=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.filters&&!r.onFilter)return r.key||(r==null?void 0:r.dataIndex)}).filter(Boolean)),te=e.computed(()=>i.isUndefined(t.dataSource)?y.records:t.dataSource),ne=e.computed(()=>{var o;return k.isDef(t.manual)?t.manual:Te.getValidVNodeList(((o=f.searchFormExtra)==null?void 0:o.call(f))||[]).some(n=>{var a;return((a=n.type)==null?void 0:a.name)==="ApView"})}),{rowSelection:S,selectedRows:b,...h}=Ce.default({fixed:!0,...t.rowSelection===!0?{}:t.rowSelection,rowKey:t.rowKey,dataSource:te}),{formRef:C,submit:R,reset:x,tableProps:E,refresh:oe,data:y,setDataSource:ae,getColumnSFConfig:L,sortedInfo:le,filteredInfo:se}=we.useTablePaging({async request(r){var n,a;if(!S.value.preserveSelectedRowKeys&&i.isUndefined(t.dataSource)&&h.clearAll(),!i.isUndefined(t.dataSource))return{data:t.dataSource||[],total:t.dataSource.length||0};const o=await((n=t.request)==null?void 0:n.call(t,r));return(a=t.onLoad)==null||a.call(t,(o==null?void 0:o.data)||[]),{data:(o==null?void 0:o.data)||[],total:(o==null?void 0:o.total)||0}},filterFields:re,sortFields:ee,defaultParams:t.params,defaultData:t.defaultData,manual:e.unref(ne),formatParams:t.beforeSearchSubmit,pagination:t.pagination}),ue=()=>{var n;let r=((n=t.columns)==null?void 0:n.filter(a=>!a.hideInTable))||[];function o(a,u){return a.map(l=>({resizable:k.isDef(l.resizable)?l.resizable:t.columnResizable,...i.omit(s.apColumnToColumn(l),["ellipsis"]),...L(l),fixed:u?u.fixed:l.fixed,title:s.getTableTitle(l,F("table-header","title"),f.headerCell,e.unref(J).colorPrimary),customRender({value:m,...g}){var $,j;const D=s.getTableRenderType(l),ye=s.getTableRenderProps({...l,valueType:D},{value:m,...g}),ge=s.getTableCellRenderNode(D,ye,g.record,e.unref(z)),U=(($=l.renderText)==null?void 0:$.call(l,{value:m,...g}))||m,Se=l.renderText?e.createVNode(e.Fragment,null,[(j=l.renderText)==null?void 0:j.call(l,{value:m,...g})]):ge;let T=pe(l,U,Se);return l.customRender&&(T=l.customRender({value:m,...g,column:l,originalNode:T,originalText:U})),T},children:o(l.children||[],u||l)}))}return o(r)},de=()=>{function r(o){var n;for(const a of o)(n=a.children)!=null&&n.length?r(a.children):L(a,!0)}r(d.value)};e.watch(()=>[t.columns,t.columnResizable],()=>{const r=ue();d.value=r,V.value=r},{deep:!0,immediate:!0}),e.watch(()=>[le.value,se.value],()=>{de()},{deep:!0});const ie=e.computed(()=>{var o,n;if(t.adaptive&&(y.total>0||((o=t.dataSource)==null?void 0:o.length)))return{y:e.unref(Y),x:((n=t.scroll)==null?void 0:n.x)||"100%"};if(t.scroll)return t.scroll}),ce=e.computed(()=>{var r;if(t.tableLayout)return t.tableLayout;if((r=t.columns)!=null&&r.some(o=>o.ellipsis))return"fixed"}),O=e.computed(()=>{var n;const r=e.unref(E),o=e.unref(S);return{...t,...r,rowSelection:t.rowSelection===!0||((n=t.rowSelection)==null?void 0:n.mode)==="internal"?{...o,preserveSelectedRowKeys:i.isUndefined(t.dataSource)?o.preserveSelectedRowKeys:!0}:s.falseToUndefined(t.rowSelection),loading:i.isUndefined(t.loading)?r.loading:t.loading,pagination:t.pagination===!1?!1:r.pagination,scroll:e.unref(ie)}}),fe=e.computed(()=>{var r;return[p(),t.card?null:p("wrapper"),t.adaptive?p("adaptive"):null,P.value&&((r=c.value)!=null&&r.visible)?Q(`sticky-${_===0?"absolute":"relative"}`):null].filter(Boolean)});function pe(r,o,n){if(H.noRenderAsFormItemValueList.includes(r.valueType))return n;const a=s.objectToString(o);return r.copyable||r.ellipsis?e.createVNode(Fe.default,{copyable:r.copyable,rawValue:a,ellipsis:r.ellipsis?i.isBoolean(r.ellipsis)?{tooltip:n,rows:1}:{...r.ellipsis,tooltip:n}:!1,content:n},null):n}e.watch(()=>e.unref(y).loading,r=>{var o;(o=t.onLoadingChange)==null||o.call(t,r)}),e.watch(()=>t.dataSource,r=>{ae(r)},{immediate:!0});function A(r){var o,n,a;(a=(n=(o=C.value)==null?void 0:o.apForm)==null?void 0:n.setFieldsValue)==null||a.call(n,r)}function K(r=!1){var n,a,u;const o=r?"getFieldsValueTransformed":"getFieldsValue";return(u=(a=(n=C.value)==null?void 0:n.apForm)==null?void 0:a[o])==null?void 0:u.call(a,!0)}function me(){return e.unref(d)}return G({submit:()=>R(),reset:()=>x(),refresh:()=>oe(),setSearchFormValues:A,getSearchFormValues:K,getShownColumns:me,dataSource:e.computed(()=>e.unref(y).records),rowSelection:{selectedRows:e.computed(()=>e.unref(b)),...h},scrollBar:{x:{getCurrentScroll:()=>{var r;return((r=c==null?void 0:c.value)==null?void 0:r.currentScroll)??0},scroll:r=>{var o,n;return(n=(o=c==null?void 0:c.value)==null?void 0:o.scroll)==null?void 0:n.call(o,r)}},y:void 0}}),(r,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableWrapperRef",ref:N,class:e.normalizeClass(fe.value),style:e.normalizeStyle(e.unref(X)({"scroll-bar-width":`${e.unref(_)}px`}))},[e.unref(i.isUndefined)(r.dataSource)&&r.searchForm!==!1&&I.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.card?e.unref(w)("search-wrapper"):null),style:e.normalizeStyle(r.searchFormWrapperStyle)},[e.createVNode(e.unref(he.ApForm).SearchForm,e.mergeProps(r.searchForm||{},{ref_key:"formRef",ref:C,"custom-reset":"","submit-loading":e.unref(E).loading,onSubmit:e.unref(R),onReset:e.unref(x)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode.Comp),e.mergeProps({key:n.dataIndex,item:n,ref_for:!0},n.fieldProps||{},{span:n.span,"custom-render":n.renderNode.render}),null,16,["item","span","custom-render"]))),128))]),_:2},[f.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:Z,class:e.normalizeClass([e.unref(w)("table-wrapper"),r.card?e.unref(w)("table-wrapper-card"):null]),style:e.normalizeStyle(r.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("header-wrapper"))},[r.settings?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(p)("header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(F)("header","title"))},[e.renderSlot(r.$slots,"title",e.mergeProps({selectedRows:e.unref(b),selectedRowKeys:e.unref(S).selectedRowKeys,shownColumns:d.value},h))],2),f.title?(e.openBlock(),e.createBlock(e.unref(W.Divider),{key:0,type:"vertical"})):e.createCommentVNode("",!0),e.createVNode(ze.default,{config:r.settings===!0?{}:r.settings},null,8,["config"])],2)):e.renderSlot(r.$slots,"title",e.mergeProps({key:1,selectedRows:e.unref(b),selectedRowKeys:e.unref(S).selectedRowKeys,shownColumns:d.value},h))],2),e.createVNode(e.unref(W.Table),e.mergeProps({ref_key:"antdTableRef",ref:q,class:e.unref(p)("table")},O.value,{size:v.value,"table-layout":ce.value,columns:d.value,onResizeColumn:o[0]||(o[0]=(n,a)=>a.width=n)}),e.createSlots({summary:e.withCtx(()=>[e.renderSlot(r.$slots,"summary",{columns:d.value,records:O.value.dataSource,selectedRows:e.unref(b)})]),_:2},[e.unref(P)?{name:"bottomPaginationTop",fn:e.withCtx(()=>{var n,a;return[e.createVNode(e.unref(Ne.default),{ref_key:"scrollBarRef",ref:c,"scroll-container":(a=(n=q.value)==null?void 0:n.table)==null?void 0:a.scrollBodyRef,direction:"horizontal"},null,8,["scroll-container"])]}),key:"0"}:void 0,e.renderList(e.unref(i.omit)(f,["title","searchFormExtra","headerCell","summary"]),(n,a)=>({name:a,fn:e.withCtx(u=>[e.renderSlot(r.$slots,a,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class","size","table-layout","columns"])],6)],6))}});exports.default=qe;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("@aplus-frontend/antdv"),we=require("@aplus-frontend/antdv/es/theme/internal"),ve=require("../ap-form/index.js"),H=require("./constants.js");require("../config-provider/index.js");const Ce=require("./hooks/use-table-paging-ng.js"),i=require("lodash-unified"),s=require("./utils.js"),Re=require("./hooks/use-table-content-height.js"),xe=require("./hooks/use-table-row-selection.js"),k=require("../utils/index.js");require("./components/setting/modal/index.vue.js");require("./components/paragraph-ellipsis/index.vue.js");const Te=require("./context.js");require("../scroll-bar/index.js");const ke=require("./hooks/use-sticky-scroll.js"),Be=require("../utils/slot.js"),Fe=require("../config-provider/hooks/use-namespace.js"),ze=require("../config-provider/hooks/use-global-config.js"),Ne=require("./components/paragraph-ellipsis/index.vue2.js"),qe=require("./components/setting/modal/index.vue2.js"),Pe=require("../scroll-bar/index.vue.js"),Ve=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!1},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},dataSource:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:void 0},size:{default:"small"},adaptive:{type:Boolean,default:!1},columnResizable:{type:Boolean,default:!1},settings:{type:[Boolean,Object],default:void 0}},setup(M,{expose:G}){const t=M;let B=0;const f=e.useSlots(),[,J]=we.useToken(),{e:w,b:p,be:F,m:Q,cssVar:X}=Fe.useNamespace("ap-table"),z=ze.useGlobalConfig("valueTypeMap"),{height:Y,contentRef:Z}=Re.default(),N=e.ref(),q=e.ref(),{isStickyMode:P,scrollBarRef:c}=ke.useStickyScroll(N),v=e.ref(t.size),d=e.ref([]),V=e.ref([]),_=k.getScrollbarSize();Te.useProvideApTable({columns:e.computed(()=>d.value),columnsBackup:e.computed(()=>V.value),size:e.computed(()=>v.value),updateColumns(r){d.value=r},updateSize(r){v.value=r},dataSource:e.computed(()=>e.unref(g).records),getSearchFormValues:K,setSearchFormValues:A,submit:()=>R(),reset:()=>x()});const I=e.computed(()=>{var r,a,o;return B++,((o=(a=(r=t.columns)==null?void 0:r.filter(n=>!n.hideInSearch&&n.dataIndex&&(n.valueType||n.customRenderFormItem)&&!H.noRenderAsFormItemValueList.includes(n.valueType)))==null?void 0:a.sort((n,u)=>{let l=s.getColumnOrder(n.order);return s.getColumnOrder(u.order)-l}))==null?void 0:o.map(n=>{const u=s.updateFormProps(n,s.getFieldProps(n.fieldProps,{})),l={...n,fieldProps:{label:n.title,name:n.dataIndex,bordered:!0,...u||{},_signal:B},renderNode:void 0};return l.renderNode=s.getSearchFormItemRenderNode(l,e.unref(z)),l}))||[]}),ee=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.sorter===!0)return r.key||(r==null?void 0:r.dataIndex)}).filter(Boolean)),re=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.filters&&!r.onFilter)return r.key||(r==null?void 0:r.dataIndex)}).filter(Boolean)),te=e.computed(()=>i.isUndefined(t.dataSource)?g.records:t.dataSource),oe=e.computed(()=>{var a;return k.isDef(t.manual)?t.manual:Be.getValidVNodeList(((a=f.searchFormExtra)==null?void 0:a.call(f))||[]).some(o=>{var n;return((n=o.type)==null?void 0:n.name)==="ApView"})}),{rowSelection:b,selectedRows:S,...h}=xe.default({fixed:!0,...t.rowSelection===!0?{}:t.rowSelection,rowKey:t.rowKey,dataSource:te}),{formRef:C,submit:R,reset:x,tableProps:E,refresh:ae,data:g,setDataSource:ne,getColumnSFConfig:L,sortedInfo:le,filteredInfo:se,setPaging:ue,getPaging:de}=Ce.useTablePaging({async request(r){var o,n;if(!b.value.preserveSelectedRowKeys&&i.isUndefined(t.dataSource)&&h.clearAll(),!i.isUndefined(t.dataSource))return{data:t.dataSource||[],total:t.dataSource.length||0};const a=await((o=t.request)==null?void 0:o.call(t,r));return(n=t.onLoad)==null||n.call(t,(a==null?void 0:a.data)||[]),{data:(a==null?void 0:a.data)||[],total:(a==null?void 0:a.total)||0}},filterFields:re,sortFields:ee,defaultParams:t.params,defaultData:t.defaultData,manual:e.unref(oe),formatParams:t.beforeSearchSubmit,pagination:t.pagination}),ie=()=>{var o;let r=((o=t.columns)==null?void 0:o.filter(n=>!n.hideInTable))||[];function a(n,u){return n.map(l=>({resizable:k.isDef(l.resizable)?l.resizable:t.columnResizable,...i.omit(s.apColumnToColumn(l),["ellipsis"]),...L(l),fixed:u?u.fixed:l.fixed,title:s.getTableTitle(l,F("table-header","title"),f.headerCell,e.unref(J).colorTextTertiary),customRender({value:m,...y}){var $,j;const D=s.getTableRenderType(l),be=s.getTableRenderProps({...l,valueType:D},{value:m,...y}),Se=s.getTableCellRenderNode(D,be,y.record,e.unref(z)),U=(($=l.renderText)==null?void 0:$.call(l,{value:m,...y}))||m,he=l.renderText?e.createVNode(e.Fragment,null,[(j=l.renderText)==null?void 0:j.call(l,{value:m,...y})]):Se;let T=ge(l,U,he);return l.customRender&&(T=l.customRender({value:m,...y,column:l,originalNode:T,originalText:U})),T},children:a(l.children||[],u||l)}))}return a(r)},ce=()=>{function r(a){var o;for(const n of a)(o=n.children)!=null&&o.length?r(n.children):L(n,!0)}r(d.value)};e.watch(()=>[t.columns,t.columnResizable],()=>{const r=ie();d.value=r,V.value=r},{deep:!0,immediate:!0}),e.watch(()=>[le.value,se.value],()=>{ce()},{deep:!0});const fe=e.computed(()=>{var a,o;if(t.adaptive&&(g.total>0||((a=t.dataSource)==null?void 0:a.length)))return{y:e.unref(Y),x:((o=t.scroll)==null?void 0:o.x)||"100%"};if(t.scroll)return t.scroll}),pe=e.computed(()=>{var r;if(t.tableLayout)return t.tableLayout;if((r=t.columns)!=null&&r.some(a=>a.ellipsis))return"fixed"}),O=e.computed(()=>{var o;const r=e.unref(E),a=e.unref(b);return{...t,...r,rowSelection:t.rowSelection===!0||((o=t.rowSelection)==null?void 0:o.mode)==="internal"?{...a,preserveSelectedRowKeys:i.isUndefined(t.dataSource)?a.preserveSelectedRowKeys:!0}:s.falseToUndefined(t.rowSelection),loading:i.isUndefined(t.loading)?r.loading:t.loading,pagination:t.pagination===!1?!1:r.pagination,scroll:e.unref(fe)}}),me=e.computed(()=>{var r;return[p(),t.card?null:p("wrapper"),t.adaptive?p("adaptive"):null,P.value&&((r=c.value)!=null&&r.visible)?Q(`sticky-${_===0?"absolute":"relative"}`):null].filter(Boolean)});function ge(r,a,o){if(H.noRenderAsFormItemValueList.includes(r.valueType))return o;const n=s.objectToString(a);return r.copyable||r.ellipsis?e.createVNode(Ne.default,{copyable:r.copyable,rawValue:n,ellipsis:r.ellipsis?i.isBoolean(r.ellipsis)?{tooltip:o,rows:1}:{...r.ellipsis,tooltip:o}:!1,content:o},null):o}e.watch(()=>e.unref(g).loading,r=>{var a;(a=t.onLoadingChange)==null||a.call(t,r)}),e.watch(()=>t.dataSource,r=>{ne(r)},{immediate:!0});function A(r){var a,o,n;(n=(o=(a=C.value)==null?void 0:a.apForm)==null?void 0:o.setFieldsValue)==null||n.call(o,r)}function K(r=!1){var o,n,u;const a=r?"getFieldsValueTransformed":"getFieldsValue";return(u=(n=(o=C.value)==null?void 0:o.apForm)==null?void 0:n[a])==null?void 0:u.call(n,!0)}function ye(){return e.unref(d)}return G({submit:()=>R(),reset:()=>x(),refresh:()=>ae(),setSearchFormValues:A,getSearchFormValues:K,setPaging:ue,getPaging:de,getShownColumns:ye,dataSource:e.computed(()=>e.unref(g).records),rowSelection:{selectedRows:e.computed(()=>e.unref(S)),...h},scrollBar:{x:{getCurrentScroll:()=>{var r;return((r=c==null?void 0:c.value)==null?void 0:r.currentScroll)??0},scroll:r=>{var a,o;return(o=(a=c==null?void 0:c.value)==null?void 0:a.scroll)==null?void 0:o.call(a,r)}},y:void 0}}),(r,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableWrapperRef",ref:N,class:e.normalizeClass(me.value),style:e.normalizeStyle(e.unref(X)({"scroll-bar-width":`${e.unref(_)}px`}))},[e.unref(i.isUndefined)(r.dataSource)&&r.searchForm!==!1&&I.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.card?e.unref(w)("search-wrapper"):null),style:e.normalizeStyle(r.searchFormWrapperStyle)},[e.createVNode(e.unref(ve.ApForm).SearchForm,e.mergeProps(r.searchForm||{},{ref_key:"formRef",ref:C,"custom-reset":"","submit-loading":e.unref(E).loading,onSubmit:e.unref(R),onReset:e.unref(x)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,o=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.renderNode.Comp),e.mergeProps({key:o.dataIndex,item:o,ref_for:!0},o.fieldProps||{},{span:o.span,"custom-render":o.renderNode.render}),null,16,["item","span","custom-render"]))),128))]),_:2},[f.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:Z,class:e.normalizeClass([e.unref(w)("table-wrapper"),r.card?e.unref(w)("table-wrapper-card"):null]),style:e.normalizeStyle(r.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("header-wrapper"))},[r.settings?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(p)("header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(F)("header","title"))},[e.renderSlot(r.$slots,"title",e.mergeProps({selectedRows:e.unref(S),selectedRowKeys:e.unref(b).selectedRowKeys,shownColumns:d.value},h))],2),f.title?(e.openBlock(),e.createBlock(e.unref(W.Divider),{key:0,type:"vertical"})):e.createCommentVNode("",!0),e.createVNode(qe.default,{config:r.settings===!0?{}:r.settings},null,8,["config"])],2)):e.renderSlot(r.$slots,"title",e.mergeProps({key:1,selectedRows:e.unref(S),selectedRowKeys:e.unref(b).selectedRowKeys,shownColumns:d.value},h))],2),e.createVNode(e.unref(W.Table),e.mergeProps({ref_key:"antdTableRef",ref:q,class:e.unref(p)("table")},O.value,{size:v.value,"table-layout":pe.value,columns:d.value,onResizeColumn:a[0]||(a[0]=(o,n)=>n.width=o)}),e.createSlots({summary:e.withCtx(()=>[e.renderSlot(r.$slots,"summary",{columns:d.value,records:O.value.dataSource,selectedRows:e.unref(S)})]),_:2},[e.unref(P)?{name:"bottomPaginationTop",fn:e.withCtx(()=>{var o,n;return[e.createVNode(e.unref(Pe.default),{ref_key:"scrollBarRef",ref:c,"scroll-container":(n=(o=q.value)==null?void 0:o.table)==null?void 0:n.scrollBodyRef,direction:"horizontal","bar-color":"var(--ap-scrollbar-thumb-color-base)","track-color":"var(--ap-table-header-bg, #f2f6f9)"},null,8,["scroll-container"])]}),key:"0"}:void 0,e.renderList(e.unref(i.omit)(f,["title","searchFormExtra","headerCell","summary"]),(o,n)=>({name:n,fn:e.withCtx(u=>[e.renderSlot(r.$slots,n,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class","size","table-layout","columns"])],6)],6))}});exports.default=Ve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv"),A=require("../../../../utils/slot.js"),D=require("../../../context.js");require("../tree-select/index.vue.js");const E=require("../../../hooks/use-table-column-state.js");require("../../../../config-provider/index.js");require("../sorter/index.vue.js");const m=require("../utils.js"),R=require("@ant-design/icons-vue"),O=require("../../../../config-provider/hooks/use-locale.js"),N=require("../../../../config-provider/hooks/use-namespace.js"),I=require("../tree-select/index.vue2.js"),M=require("../sorter/index.vue2.js"),U=e.defineComponent({name:"ApTableSetting",__name:"index",props:{config:{default:()=>({})}},setup(C){const s=C,{columnsBackup:S,size:V,updateSize:i,updateColumns:c}=D.useInjectApTable(),d=e.ref(e.unref(V)),_=e.computed(()=>s.config.persistenceKey),{columnState:a,setColumnState:b,isAllSelected:x,toggleSelectAll:y,columnStateBackup:k,setColumnStateBackup:T,cacheColumnStateIfNeeded:q}=E.useTableColumnState(s.config,_,[]),{t:o}=O.useLocale(),{b:p,be:f}=N.useNamespace("ap-column-setting"),{b:h}=N.useNamespace("ap-table"),r=e.ref(!1),B=e.useSlots(),g=A.getSingleVNode(B.trigger)||e.createVNode(l.Button,{icon:e.createVNode(R.SettingOutlined,null,null),class:h("setting-trigger-button")},null),v=g?e.cloneVNode(g,{onClick:()=>{r.value=!0}}):null;function z(){b(m.customCloneColumnStates(e.unref(k)))}function w(){var t,n;c==null||c(m.default(e.unref(S),e.unref(a))),i==null||i(e.unref(d)),r.value=!1;const u=m.customCloneColumnStates(a.value);T(u),q(u),(n=(t=s.config)==null?void 0:t.onChange)==null||n.call(t,u)}return(u,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(v)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(v)),{key:0})):e.createCommentVNode("",!0),e.createVNode(e.unref(l.Modal),{open:r.value,"onUpdate:open":t[2]||(t[2]=n=>r.value=n),title:e.unref(o)("ap.apTable.setting.title"),width:900,centered:!0,"body-style":{padding:"0px !important",height:"450px"},onOk:w},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("wrapper"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("left"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f)("left","header"))},[e.createElementVNode("div",null,[e.createElementVNode("span",{class:e.normalizeClass(e.unref(f)("left","header-tips"))},e.toDisplayString(e.unref(o)("ap.apTable.setting.selectAllTip")),3),e.createVNode(e.unref(l.Button),{type:"link",size:"small",onClick:e.unref(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)?e.unref(o)("ap.apTable.setting.unSelectAll"):e.unref(o)("ap.apTable.setting.selectAll")),1)]),_:1},8,["onClick"])]),e.createVNode(e.unref(l.RadioGroup),{value:d.value,"onUpdate:value":t[0]||(t[0]=n=>d.value=n)},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RadioButton),{value:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("ap.apTable.setting.sizeSmall")),1)]),_:1}),e.createVNode(e.unref(l.RadioButton),{value:"middle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("ap.apTable.setting.sizeNormal")),1)]),_:1})]),_:1},8,["value"])],2),e.createVNode(e.unref(l.Divider),{dashed:"",style:{margin:"0px"}}),e.createVNode(I.default,{class:e.normalizeClass(e.unref(f)("left","content")),value:e.unref(a)},null,8,["class","value"])],2),e.createVNode(e.unref(l.Divider),{type:"vertical",style:{height:"100%",margin:"0px"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("right"))},[e.createVNode(M.default,{value:e.unref(a),"onUpdate:value":t[1]||(t[1]=n=>e.isRef(a)?a.value=n:null),onReset:z},null,8,["value"])],2)],2)]),_:1},8,["open","title"])],64))}});exports.default=U;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../select-group/index.vue.js");const g=require("../../../context.js"),v=require("../utils.js"),B=require("../select-group/index.vue2.js"),C=e.defineComponent({__name:"index",props:{value:{}},setup(a){const u=a,{columnsBackup:f,renderConfig:k}=g.useInjectApTable(),p=e.computed(()=>[...e.unref(f)||[]].sort((t,n)=>{var r,c,i,s;return(r=t.children)!=null&&r.length&&!((c=n.children)!=null&&c.length)?1:!((i=t.children)!=null&&i.length)&&((s=n.children)!=null&&s.length)?-1:0}));function d(o){return u.value.find(t=>t.key===o.key)}function h(o){const t=d(o);return{checked:t==null?void 0:t.show,disabled:t==null?void 0:t.disabled}}function _(o,t){const n=u.value,r=n==null?void 0:n.find(c=>c.key===o);r&&(r.show=t)}return(o,t)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(l.Row),{gutter:[24,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../select-group/index.vue.js");const g=require("../../../context.js"),v=require("../utils.js"),B=require("../select-group/index.vue2.js"),C=e.defineComponent({__name:"index",props:{value:{}},setup(a){const u=a,{columnsBackup:f,renderConfig:k}=g.useInjectApTable(),p=e.computed(()=>[...e.unref(f)||[]].sort((t,n)=>{var r,c,i,s;return(r=t.children)!=null&&r.length&&!((c=n.children)!=null&&c.length)?1:!((i=t.children)!=null&&i.length)&&((s=n.children)!=null&&s.length)?-1:0}));function d(o){return u.value.find(t=>t.key===o.key)}function h(o){const t=d(o);return{checked:t==null?void 0:t.show,disabled:t==null?void 0:t.disabled}}function _(o,t){const n=u.value,r=n==null?void 0:n.find(c=>c.key===o);r&&(r.show=t)}return(o,t)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(l.Row),{gutter:[24,12],align:"middle"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,n=>{var r;return e.openBlock(),e.createElementBlock(e.Fragment,{key:n.key},[(r=n.children)!=null&&r.length?(e.openBlock(),e.createBlock(e.unref(l.Col),{key:1,span:24},{default:e.withCtx(()=>[e.createVNode(B.default,{value:d(n)},null,8,["value"])]),_:2},1024)):(e.openBlock(),e.createBlock(e.unref(l.Col),{key:0,span:8},{default:e.withCtx(()=>[e.createVNode(e.unref(l.Checkbox),e.mergeProps({ref_for:!0},h(n),{"onUpdate:checked":c=>_(n.key,c)}),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(v.getLabelNode)(n,e.unref(k)))))]),_:2},1040,["onUpdate:checked"])]),_:2},1024))],64)}),128))]),_:1})]))}});exports.default=C;
|