@aplus-frontend/ui 0.6.0-beta.2 → 0.6.0-beta.21
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 +307 -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-drawer/ApDrawer.vue.d.ts +29 -0
- package/es/src/ap-drawer/ApDrawer.vue.mjs +91 -0
- package/es/src/ap-drawer/ApDrawer.vue2.mjs +4 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +25 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +4 -0
- package/es/src/ap-drawer/index.d.ts +3 -7
- package/es/src/ap-drawer/index.mjs +10 -5
- package/es/src/ap-drawer/interface.d.ts +4 -0
- package/es/src/ap-drawer/style/css.d.ts +0 -1
- package/es/src/ap-drawer/style/css.js +1 -1
- package/es/src/ap-drawer/style/index.d.ts +0 -1
- package/es/src/ap-drawer/style/index.js +1 -1
- package/es/src/ap-drawer/utils/createDrawer.mjs +36 -31
- 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 +269 -253
- 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-drawer/ApDrawer.vue.d.ts +29 -0
- package/lib/src/ap-drawer/ApDrawer.vue.js +1 -0
- package/lib/src/ap-drawer/ApDrawer.vue2.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +8 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
- package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
- package/lib/src/ap-drawer/index.d.ts +3 -7
- package/lib/src/ap-drawer/index.js +1 -1
- package/lib/src/ap-drawer/interface.d.ts +4 -0
- package/lib/src/ap-drawer/style/css.cjs +1 -1
- package/lib/src/ap-drawer/style/css.d.ts +0 -1
- package/lib/src/ap-drawer/style/index.cjs +1 -1
- package/lib/src/ap-drawer/style/index.d.ts +0 -1
- package/lib/src/ap-drawer/utils/createDrawer.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 +18 -14
- 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-drawer/ap-drawer.css +75 -0
- package/theme/ap-drawer/ap-drawer.less +42 -0
- 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 +439 -163
- package/theme/index.less +4 -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
|
@@ -1,107 +1,113 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as G, ref as S, watch as O, createElementBlock as u, openBlock as p, normalizeClass as C, unref as e, createElementVNode as s, createCommentVNode as k, toDisplayString as f, createVNode as a, withModifiers as P, withCtx as v } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import { useViewInject as
|
|
4
|
-
import { SYSTEM_VIEW_KEY as
|
|
5
|
-
import { Space as
|
|
6
|
-
import
|
|
3
|
+
import { useViewInject as W } from "../hooks/use-view-provide.mjs";
|
|
4
|
+
import { SYSTEM_VIEW_KEY as E } from "../utils/enum.mjs";
|
|
5
|
+
import { Space as M, Popconfirm as q } from "@aplus-frontend/antdv";
|
|
6
|
+
import H from "../icons/line-delete.vue.mjs";
|
|
7
7
|
import "../../../ap-tag/index.mjs";
|
|
8
8
|
import "../../../ap-form/ap-form.vue.mjs";
|
|
9
|
-
import { ApField as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
9
|
+
import { ApField as J } from "../../../ap-field/index.mjs";
|
|
10
|
+
import { useNamespace as Q } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useLocale as X } from "../../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useGlobalConfig as Z } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
import D from "../../../ap-tag/ap-tag.vue.mjs";
|
|
14
|
+
import b from "../../../ap-form/ap-form.vue2.mjs";
|
|
15
|
+
const R = { class: "menu-list-content-name" }, L = ["title"], U = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "menu-list-content-default"
|
|
18
|
-
},
|
|
18
|
+
}, ee = { class: "menu-list-content-action-delete" }, te = { class: "menu-list-content-edit" }, _e = /* @__PURE__ */ G({
|
|
19
19
|
__name: "menu-list-content",
|
|
20
20
|
props: {
|
|
21
21
|
view: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const { b: d } =
|
|
23
|
+
setup(z) {
|
|
24
|
+
const { b: d } = Q("ap-view"), { t: l } = X(), n = z, $ = {
|
|
25
25
|
aplus: "#2ed1a3",
|
|
26
26
|
admin: "#34b77c"
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
}, I = Z("uiMode"), {
|
|
28
|
+
currentViewKey: T,
|
|
29
|
+
changeCurrentViewKey: B,
|
|
30
|
+
viewListCRUD: t,
|
|
31
|
+
tableKey: w,
|
|
32
|
+
menuOpen: y
|
|
33
|
+
} = W(), c = S(!1), V = S(), F = () => {
|
|
34
|
+
B(n.view.viewKey), y.value = !1;
|
|
35
|
+
}, Y = () => {
|
|
36
|
+
var i;
|
|
37
|
+
(i = t == null ? void 0 : t.changeView) == null || i.call(t, {
|
|
38
|
+
...n.view,
|
|
33
39
|
tableKey: w,
|
|
34
40
|
isDefault: !0
|
|
35
41
|
});
|
|
36
|
-
},
|
|
37
|
-
var
|
|
38
|
-
(
|
|
42
|
+
}, j = () => {
|
|
43
|
+
var i;
|
|
44
|
+
(i = t == null ? void 0 : t.removeView) == null || i.call(t, {
|
|
39
45
|
tableKey: w,
|
|
40
|
-
viewKey:
|
|
46
|
+
viewKey: n.view.viewKey
|
|
41
47
|
});
|
|
42
|
-
},
|
|
48
|
+
}, A = async () => {
|
|
43
49
|
var o, m, r;
|
|
44
|
-
const
|
|
50
|
+
const i = await ((m = (o = V.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
|
|
45
51
|
(r = t == null ? void 0 : t.changeView) == null || r.call(t, {
|
|
46
|
-
...
|
|
52
|
+
...n.view,
|
|
47
53
|
tableKey: w,
|
|
48
|
-
viewName: (
|
|
54
|
+
viewName: (i == null ? void 0 : i.viewName) || n.view.viewName
|
|
49
55
|
}), c.value = !1;
|
|
50
56
|
};
|
|
51
|
-
return
|
|
52
|
-
() =>
|
|
53
|
-
(
|
|
54
|
-
|
|
57
|
+
return O(
|
|
58
|
+
() => y.value,
|
|
59
|
+
(i) => {
|
|
60
|
+
i && (c.value = !1);
|
|
55
61
|
}
|
|
56
|
-
), (
|
|
57
|
-
var m, r, N, h, K,
|
|
62
|
+
), (i, o) => {
|
|
63
|
+
var m, r, x, N, h, K, g;
|
|
58
64
|
return c.value === !1 ? (p(), u("div", {
|
|
59
65
|
key: 0,
|
|
60
|
-
class:
|
|
66
|
+
class: C({
|
|
61
67
|
[e(d)("menu-list-content")]: !0,
|
|
62
|
-
[e(d)("menu-list-content-active")]: ((m =
|
|
68
|
+
[e(d)("menu-list-content-active")]: ((m = n.view) == null ? void 0 : m.viewKey) === e(T)
|
|
63
69
|
}),
|
|
64
|
-
onClick:
|
|
70
|
+
onClick: F
|
|
65
71
|
}, [
|
|
66
|
-
s("div",
|
|
72
|
+
s("div", R, [
|
|
67
73
|
s("span", {
|
|
68
|
-
title: (r =
|
|
69
|
-
},
|
|
74
|
+
title: (r = n.view) == null ? void 0 : r.viewName
|
|
75
|
+
}, f((x = n.view) == null ? void 0 : x.viewName), 9, L)
|
|
70
76
|
]),
|
|
71
|
-
((
|
|
72
|
-
a(e(
|
|
77
|
+
((N = n.view) == null ? void 0 : N.viewKey) !== e(E) && ((h = n.view) != null && h.isDefault) ? (p(), u("div", U, [
|
|
78
|
+
a(e(D), {
|
|
73
79
|
text: e(l)("ap.apView.default"),
|
|
74
80
|
size: "small",
|
|
75
|
-
color:
|
|
81
|
+
color: $[e(I) ?? "aplus"]
|
|
76
82
|
}, null, 8, ["text", "color"])
|
|
77
83
|
])) : k("", !0),
|
|
78
|
-
((
|
|
84
|
+
((K = n.view) == null ? void 0 : K.viewKey) !== e(E) ? (p(), u("div", {
|
|
79
85
|
key: 1,
|
|
80
86
|
class: "menu-list-content-action",
|
|
81
|
-
onClick: o[1] || (o[1] =
|
|
87
|
+
onClick: o[1] || (o[1] = P(() => {
|
|
82
88
|
}, ["stop"]))
|
|
83
89
|
}, [
|
|
84
|
-
a(e(
|
|
85
|
-
default:
|
|
90
|
+
a(e(M), { size: 8 }, {
|
|
91
|
+
default: v(() => {
|
|
86
92
|
var _;
|
|
87
93
|
return [
|
|
88
94
|
s("div", {
|
|
89
95
|
class: "menu-list-content-action-text",
|
|
90
|
-
onClick: o[0] || (o[0] = (
|
|
91
|
-
},
|
|
92
|
-
(_ =
|
|
96
|
+
onClick: o[0] || (o[0] = (ne) => c.value = !0)
|
|
97
|
+
}, f(e(l)("ap.apView.rename")), 1),
|
|
98
|
+
(_ = n.view) != null && _.isDefault ? k("", !0) : (p(), u("div", {
|
|
93
99
|
key: 0,
|
|
94
100
|
class: "menu-list-content-action-text",
|
|
95
|
-
onClick:
|
|
96
|
-
},
|
|
97
|
-
s("div",
|
|
98
|
-
a(e(
|
|
101
|
+
onClick: Y
|
|
102
|
+
}, f(e(l)("ap.apView.setDefault")), 1)),
|
|
103
|
+
s("div", ee, [
|
|
104
|
+
a(e(q), {
|
|
99
105
|
title: e(l)("ap.apView.deleteTip"),
|
|
100
106
|
"ok-text": e(l)("ap.apView.ok"),
|
|
101
|
-
onConfirm:
|
|
107
|
+
onConfirm: j
|
|
102
108
|
}, {
|
|
103
|
-
default:
|
|
104
|
-
a(
|
|
109
|
+
default: v(() => [
|
|
110
|
+
a(H)
|
|
105
111
|
]),
|
|
106
112
|
_: 1
|
|
107
113
|
}, 8, ["title", "ok-text"])
|
|
@@ -113,33 +119,33 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
|
|
|
113
119
|
])) : k("", !0)
|
|
114
120
|
], 2)) : (p(), u("div", {
|
|
115
121
|
key: 1,
|
|
116
|
-
class:
|
|
122
|
+
class: C([e(d)("menu-list-content"), e(d)("menu-list-content-edit")])
|
|
117
123
|
}, [
|
|
118
|
-
a(
|
|
124
|
+
a(b, {
|
|
119
125
|
ref_key: "formRef",
|
|
120
|
-
ref:
|
|
126
|
+
ref: V,
|
|
121
127
|
"initial-values": {
|
|
122
|
-
viewName: (g =
|
|
128
|
+
viewName: (g = n.view) == null ? void 0 : g.viewName
|
|
123
129
|
}
|
|
124
130
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
s("div",
|
|
127
|
-
a(e(
|
|
128
|
-
default:
|
|
129
|
-
a(
|
|
130
|
-
default:
|
|
131
|
-
a(e(
|
|
131
|
+
default: v(() => [
|
|
132
|
+
s("div", te, [
|
|
133
|
+
a(e(M), { size: 8 }, {
|
|
134
|
+
default: v(() => [
|
|
135
|
+
a(b.FormItem, { name: "viewName" }, {
|
|
136
|
+
default: v(() => [
|
|
137
|
+
a(e(J).Text, { maxlength: 20 })
|
|
132
138
|
]),
|
|
133
139
|
_: 1
|
|
134
140
|
}),
|
|
135
141
|
s("div", {
|
|
136
142
|
class: "menu-list-content-action-text",
|
|
137
|
-
onClick:
|
|
138
|
-
},
|
|
143
|
+
onClick: A
|
|
144
|
+
}, f(e(l)("ap.apView.save")), 1),
|
|
139
145
|
s("div", {
|
|
140
146
|
class: "menu-list-content-action-text",
|
|
141
147
|
onClick: o[2] || (o[2] = (_) => c.value = !1)
|
|
142
|
-
},
|
|
148
|
+
}, f(e(l)("ap.apView.cancel")), 1)
|
|
143
149
|
]),
|
|
144
150
|
_: 1
|
|
145
151
|
})
|
|
@@ -152,5 +158,5 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
|
|
|
152
158
|
}
|
|
153
159
|
});
|
|
154
160
|
export {
|
|
155
|
-
|
|
161
|
+
_e as default
|
|
156
162
|
};
|
|
@@ -3,6 +3,7 @@ import { SaveDataSource, ViewCacheOption, ViewListModel } from '../interface';
|
|
|
3
3
|
type DataModel = {
|
|
4
4
|
tableKey: string;
|
|
5
5
|
currentViewKey: Ref<string>;
|
|
6
|
+
changeCurrentViewKey: (key: string) => void;
|
|
6
7
|
popoverOpen: Ref<boolean>;
|
|
7
8
|
menuOpen: Ref<boolean>;
|
|
8
9
|
viewList: Ref<ViewListModel[]>;
|
|
@@ -2,8 +2,12 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
2
2
|
import { ApViewProps } from './interface';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApView: {
|
|
5
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApViewProps> & Readonly<{}>, {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApViewProps> & Readonly<{}>, {
|
|
6
|
+
setFirstDefaultSystemView: (value: boolean) => void;
|
|
7
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
6
8
|
maxViewNum: number;
|
|
9
|
+
isDefaultSystemView: boolean;
|
|
10
|
+
isFirstDefaultSystemView: boolean;
|
|
7
11
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
8
12
|
P: {};
|
|
9
13
|
B: {};
|
|
@@ -11,14 +15,22 @@ declare const ApView: {
|
|
|
11
15
|
C: {};
|
|
12
16
|
M: {};
|
|
13
17
|
Defaults: {};
|
|
14
|
-
}, Readonly< ApViewProps> & Readonly<{}>, {
|
|
18
|
+
}, Readonly< ApViewProps> & Readonly<{}>, {
|
|
19
|
+
setFirstDefaultSystemView: (value: boolean) => void;
|
|
20
|
+
}, {}, {}, {}, {
|
|
15
21
|
maxViewNum: number;
|
|
22
|
+
isDefaultSystemView: boolean;
|
|
23
|
+
isFirstDefaultSystemView: boolean;
|
|
16
24
|
}>;
|
|
17
25
|
__isFragment?: never;
|
|
18
26
|
__isTeleport?: never;
|
|
19
27
|
__isSuspense?: never;
|
|
20
|
-
} & ComponentOptionsBase<Readonly< ApViewProps> & Readonly<{}>, {
|
|
28
|
+
} & ComponentOptionsBase<Readonly< ApViewProps> & Readonly<{}>, {
|
|
29
|
+
setFirstDefaultSystemView: (value: boolean) => void;
|
|
30
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
21
31
|
maxViewNum: number;
|
|
32
|
+
isDefaultSystemView: boolean;
|
|
33
|
+
isFirstDefaultSystemView: boolean;
|
|
22
34
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
23
35
|
$props: {
|
|
24
36
|
onClick?: () => void;
|
|
@@ -55,4 +55,15 @@ export interface ApViewProps {
|
|
|
55
55
|
* 视图最大保存数
|
|
56
56
|
*/
|
|
57
57
|
maxViewNum?: number;
|
|
58
|
+
/**
|
|
59
|
+
* 指定默认视图为系统视图
|
|
60
|
+
*/
|
|
61
|
+
isDefaultSystemView?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 指定初始化默认视图为系统视图(仅初始化生效)
|
|
64
|
+
*/
|
|
65
|
+
isFirstDefaultSystemView?: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface ApViewExpose {
|
|
68
|
+
setFirstDefaultSystemView: (value: boolean) => void;
|
|
58
69
|
}
|
|
@@ -3,12 +3,12 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
|
|
4
4
|
trim: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
|
-
bordered: boolean;
|
|
7
6
|
hasFeedback: boolean;
|
|
8
7
|
colon: boolean;
|
|
9
8
|
autoLink: boolean;
|
|
10
9
|
required: boolean;
|
|
11
10
|
validateFirst: boolean;
|
|
11
|
+
bordered: boolean;
|
|
12
12
|
field: Omit< BatchInputGroupProps, "value" | "onUpdate:value">;
|
|
13
13
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as b, computed as
|
|
1
|
+
import { defineComponent as b, computed as i, createBlock as B, openBlock as g, mergeProps as f, unref as m, withCtx as _, createVNode as V } from "vue";
|
|
2
2
|
import "./index.vue2.mjs";
|
|
3
3
|
import "../../ap-form/item/index.vue2.mjs";
|
|
4
4
|
import { isValid as s } from "@aplus-frontend/utils";
|
|
5
5
|
import { omit as p } from "lodash-unified";
|
|
6
6
|
import x from "../../ap-form/item/index.vue.mjs";
|
|
7
7
|
import k from "./index.vue.mjs";
|
|
8
|
-
const
|
|
8
|
+
const $ = /* @__PURE__ */ b({
|
|
9
|
+
name: "ApFormItemBatchInputGroup",
|
|
9
10
|
__name: "form-item",
|
|
10
11
|
props: {
|
|
11
12
|
htmlFor: {},
|
|
@@ -55,28 +56,28 @@ const q = /* @__PURE__ */ b({
|
|
|
55
56
|
defaultSelectedAllKey: { type: Boolean }
|
|
56
57
|
},
|
|
57
58
|
setup(c) {
|
|
58
|
-
const l = c, v =
|
|
59
|
+
const l = c, v = i(() => (l == null ? void 0 : l.transform) || {
|
|
59
60
|
flat: !1,
|
|
60
61
|
transformer: (e) => {
|
|
61
|
-
var a, o,
|
|
62
|
+
var a, o, r, n, d, u;
|
|
62
63
|
if (e)
|
|
63
64
|
return !(e != null && e.value) || ((a = e == null ? void 0 : e.value) == null ? void 0 : a.length) < 1 ? void 0 : (o = l == null ? void 0 : l.field) != null && o.options ? {
|
|
64
65
|
...e,
|
|
65
|
-
value: (n = (
|
|
66
|
-
} : (
|
|
66
|
+
value: (n = (r = e == null ? void 0 : e.value) == null ? void 0 : r.filter((t) => s(t == null ? void 0 : t.trim()))) == null ? void 0 : n.map((t) => l.trim ? t == null ? void 0 : t.trim() : t)
|
|
67
|
+
} : (u = (d = e == null ? void 0 : e.value) == null ? void 0 : d.filter((t) => s(t == null ? void 0 : t.trim()))) == null ? void 0 : u.map((t) => l.trim ? t == null ? void 0 : t.trim() : t);
|
|
67
68
|
}
|
|
68
|
-
}), y =
|
|
69
|
+
}), y = i(() => {
|
|
69
70
|
var e;
|
|
70
71
|
return ((e = l.field) == null ? void 0 : e.style) || "width:auto";
|
|
71
|
-
}), h =
|
|
72
|
+
}), h = i(() => {
|
|
72
73
|
var e, a;
|
|
73
74
|
return (l == null ? void 0 : l.initialValue) || {
|
|
74
75
|
key: (a = (e = l == null ? void 0 : l.field) == null ? void 0 : e.options) == null ? void 0 : a.map((o) => o.value)
|
|
75
76
|
};
|
|
76
77
|
});
|
|
77
78
|
return (e, a) => {
|
|
78
|
-
var o,
|
|
79
|
-
return g(), B(x,
|
|
79
|
+
var o, r;
|
|
80
|
+
return g(), B(x, f(
|
|
80
81
|
m(p)(l, [
|
|
81
82
|
"field",
|
|
82
83
|
"initialValue",
|
|
@@ -87,11 +88,11 @@ const q = /* @__PURE__ */ b({
|
|
|
87
88
|
{
|
|
88
89
|
"initial-value": h.value,
|
|
89
90
|
transform: v.value,
|
|
90
|
-
bordered: (
|
|
91
|
+
bordered: (r = (o = e.field) == null ? void 0 : o.options) != null && r.length ? !1 : e.bordered
|
|
91
92
|
}
|
|
92
93
|
), {
|
|
93
94
|
default: _(() => [
|
|
94
|
-
V(k,
|
|
95
|
+
V(k, f(m(p)(l.field, ["style"]), {
|
|
95
96
|
style: y.value,
|
|
96
97
|
disabled: e.disabled,
|
|
97
98
|
placeholer: e.placeholer
|
|
@@ -103,5 +104,5 @@ const q = /* @__PURE__ */ b({
|
|
|
103
104
|
}
|
|
104
105
|
});
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
$ as default
|
|
107
108
|
};
|
|
@@ -43,12 +43,12 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
43
43
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
44
44
|
readonly value?: string | number | undefined;
|
|
45
45
|
readonly disabled?: boolean | undefined;
|
|
46
|
-
readonly bordered?: boolean | undefined;
|
|
47
46
|
readonly prefixCls?: string | undefined;
|
|
48
47
|
readonly name?: string | undefined;
|
|
49
48
|
readonly loading?: boolean | undefined;
|
|
50
49
|
readonly autofocus?: boolean | undefined;
|
|
51
50
|
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
51
|
+
readonly bordered?: boolean | undefined;
|
|
52
52
|
readonly suffix?: any;
|
|
53
53
|
readonly focused?: boolean | undefined;
|
|
54
54
|
readonly placeholder?: string | number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as N, ref as g, computed as u, unref as n, createElementBlock as $, openBlock as B, normalizeStyle as b, normalizeClass as K, createVNode as c, withCtx as A, createBlock as M, createCommentVNode as D, mergeProps as
|
|
1
|
+
import { defineComponent as N, ref as g, computed as u, unref as n, createElementBlock as $, openBlock as B, normalizeStyle as b, normalizeClass as K, createVNode as c, withCtx as A, createBlock as M, createCommentVNode as D, mergeProps as G } from "vue";
|
|
2
2
|
import "../../ap-field/index.mjs";
|
|
3
|
-
import { Space as
|
|
3
|
+
import { Space as q } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import { isNumber as H, omit as Y } from "lodash-unified";
|
|
6
6
|
import "./popover-input/index.vue.mjs";
|
|
@@ -14,6 +14,7 @@ import ee from "../../ap-field/select/index.vue.mjs";
|
|
|
14
14
|
import { ApFieldText as te } from "../../ap-field/text/index.mjs";
|
|
15
15
|
import oe from "./popover-input/index.vue2.mjs";
|
|
16
16
|
const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
17
|
+
name: "BatchInputGroup",
|
|
17
18
|
__name: "index",
|
|
18
19
|
props: {
|
|
19
20
|
style: { type: [Boolean, null, String, Object, Array] },
|
|
@@ -72,17 +73,17 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
72
73
|
},
|
|
73
74
|
emits: ["update:value"],
|
|
74
75
|
setup(V, { emit: C }) {
|
|
75
|
-
const l = V, S = Q("Text", l),
|
|
76
|
+
const l = V, S = Q("Text", l), I = C, { value: a, updateValue: p } = W(
|
|
76
77
|
l,
|
|
77
|
-
|
|
78
|
-
), i = g(), f = g(), { t:
|
|
78
|
+
I
|
|
79
|
+
), i = g(), f = g(), { t: x } = X(), { b: U, cssVar: w } = Z("batch-input-group"), P = u(() => {
|
|
79
80
|
const e = l.popoverPlacement;
|
|
80
81
|
return {
|
|
81
82
|
"popover-left": H(e) ? `${e}px` : e === "left" ? "0px" : "unset",
|
|
82
83
|
"popover-right": e === "right" ? "0px" : "unset"
|
|
83
84
|
};
|
|
84
85
|
}), k = u(() => l.options ? l.options.length > 1 && l.hasAll ? [
|
|
85
|
-
{ value: d, label:
|
|
86
|
+
{ value: d, label: x("ap.common.all") },
|
|
86
87
|
...l.options
|
|
87
88
|
] : l.options : []), R = u(() => l.options ? l.options.map((e) => e.value) : []), _ = u(() => {
|
|
88
89
|
var e, t;
|
|
@@ -95,7 +96,7 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
95
96
|
var t;
|
|
96
97
|
const e = (t = n(a)) == null ? void 0 : t.key;
|
|
97
98
|
if (e != null && e.length)
|
|
98
|
-
return e.length === 1 ? e[0] : d;
|
|
99
|
+
return e.length === 1 || !l.hasAll ? e[0] : d;
|
|
99
100
|
}), F = u(() => {
|
|
100
101
|
var o;
|
|
101
102
|
const e = (o = n(a)) == null ? void 0 : o.key;
|
|
@@ -151,7 +152,7 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
151
152
|
onBlur: t[1] || (t[1] = //@ts-ignore
|
|
152
153
|
(...o) => e.onBlur && e.onBlur(...o))
|
|
153
154
|
}, [
|
|
154
|
-
c(n(
|
|
155
|
+
c(n(q).Compact, { block: "" }, {
|
|
155
156
|
default: A(() => {
|
|
156
157
|
var o;
|
|
157
158
|
return [
|
|
@@ -166,7 +167,7 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
|
|
|
166
167
|
"get-popup-container": () => i.value,
|
|
167
168
|
"onUpdate:value": L
|
|
168
169
|
}, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : D("", !0),
|
|
169
|
-
c(n(te),
|
|
170
|
+
c(n(te), G(
|
|
170
171
|
n(Y)(l, [
|
|
171
172
|
"style",
|
|
172
173
|
"value",
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import "../../config-provider/index.mjs";
|
|
2
1
|
import "../index.mjs";
|
|
3
|
-
import { merge as
|
|
4
|
-
import { ref as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
clearSelectionOnRequest: i = !0,
|
|
2
|
+
import { merge as c, cloneDeep as S } from "lodash-unified";
|
|
3
|
+
import { ref as v } from "vue";
|
|
4
|
+
import { useTableRefresh as g } from "./useTableRefresh.mjs";
|
|
5
|
+
function T(s) {
|
|
6
|
+
const o = v(null), {
|
|
7
|
+
isShowRowSelection: i = !0,
|
|
8
|
+
clearSelectionOnRequest: f = !0,
|
|
11
9
|
transformSearchFormValues: a,
|
|
12
|
-
api:
|
|
10
|
+
api: l,
|
|
13
11
|
tableRefresh: d = !0,
|
|
14
|
-
|
|
12
|
+
virtual: m,
|
|
13
|
+
...p
|
|
15
14
|
} = s || {};
|
|
16
|
-
let
|
|
17
|
-
const
|
|
15
|
+
let n = null;
|
|
16
|
+
const u = () => {
|
|
18
17
|
var e, r;
|
|
19
18
|
(r = (e = o.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
|
|
20
19
|
};
|
|
21
|
-
return
|
|
20
|
+
return g({
|
|
22
21
|
...R(d),
|
|
23
22
|
apTableRef: o
|
|
24
|
-
}), [
|
|
23
|
+
}), [c(
|
|
25
24
|
{
|
|
26
25
|
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
27
26
|
scroll: { x: "100%", y: "100%" },
|
|
28
27
|
columnResizable: !0,
|
|
29
|
-
request:
|
|
30
|
-
|
|
28
|
+
request: l ? async (e) => {
|
|
29
|
+
n = e.sort;
|
|
31
30
|
const r = a ? a(e) : e;
|
|
32
31
|
try {
|
|
33
|
-
if (!
|
|
34
|
-
const { records: t, total:
|
|
35
|
-
return
|
|
32
|
+
if (!l) throw new Error("api is not defined");
|
|
33
|
+
const { records: t, total: h } = await l(r);
|
|
34
|
+
return f && u(), {
|
|
36
35
|
data: t,
|
|
37
|
-
total:
|
|
36
|
+
total: h
|
|
38
37
|
};
|
|
39
38
|
} catch (t) {
|
|
40
39
|
return console.error(t), {
|
|
@@ -43,18 +42,24 @@ function z(s) {
|
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
} : void 0,
|
|
46
|
-
rowSelection:
|
|
45
|
+
rowSelection: i ? {
|
|
47
46
|
fixed: "left",
|
|
48
|
-
columnWidth:
|
|
47
|
+
columnWidth: 34
|
|
49
48
|
} : void 0,
|
|
50
49
|
ref(e) {
|
|
51
50
|
o.value = e;
|
|
52
51
|
},
|
|
52
|
+
virtual: c(
|
|
53
|
+
{
|
|
54
|
+
oSize: 20,
|
|
55
|
+
y: 20
|
|
56
|
+
},
|
|
57
|
+
m
|
|
58
|
+
),
|
|
53
59
|
// 新UI规范,需要都添加分割线
|
|
54
|
-
card: !0
|
|
55
|
-
bordered: m.value === "admin"
|
|
60
|
+
card: !0
|
|
56
61
|
},
|
|
57
|
-
|
|
62
|
+
p
|
|
58
63
|
), {
|
|
59
64
|
reload: () => {
|
|
60
65
|
var e;
|
|
@@ -73,7 +78,7 @@ function z(s) {
|
|
|
73
78
|
getSearchFormValuesAndSorted: (e = !0) => {
|
|
74
79
|
var t;
|
|
75
80
|
const r = ((t = o.value) == null ? void 0 : t.getSearchFormValues(!!e)) || {};
|
|
76
|
-
return r.sort =
|
|
81
|
+
return r.sort = n && S(n), a ? a(r) : r;
|
|
77
82
|
},
|
|
78
83
|
clearSelection: u
|
|
79
84
|
}];
|
|
@@ -84,5 +89,5 @@ function R(s) {
|
|
|
84
89
|
} : s;
|
|
85
90
|
}
|
|
86
91
|
export {
|
|
87
|
-
|
|
92
|
+
T as usePageListApGrid
|
|
88
93
|
};
|
|
@@ -2,6 +2,7 @@ import { ApTableProps } from '../../';
|
|
|
2
2
|
import { UseTableRefreshOption } from './useTableRefresh';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
4
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
5
|
+
import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
|
|
5
6
|
export interface UsePageListApTable extends ApTableProps {
|
|
6
7
|
/** 是否显示默认的行选择配置
|
|
7
8
|
* @default true
|
|
@@ -42,10 +43,10 @@ export declare function usePageListApTable(props?: UsePageListApTable): [ApTable
|
|
|
42
43
|
select: (item: any) => void;
|
|
43
44
|
selectAll: () => void;
|
|
44
45
|
unSelectAll: () => void;
|
|
46
|
+
clearAll: () => void;
|
|
45
47
|
selectedRows: any[];
|
|
46
48
|
unSelect: (item: any) => void;
|
|
47
49
|
isSelected: (item: any) => boolean;
|
|
48
|
-
clearAll: () => void;
|
|
49
50
|
toggleSelect: (item: any) => void;
|
|
50
51
|
selectMulti: (items: any[]) => void;
|
|
51
52
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -58,6 +59,8 @@ export declare function usePageListApTable(props?: UsePageListApTable): [ApTable
|
|
|
58
59
|
};
|
|
59
60
|
y: undefined;
|
|
60
61
|
};
|
|
62
|
+
getPaging: () => InternalPagingType;
|
|
63
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
61
64
|
} | null | undefined;
|
|
62
65
|
getSearchFormValuesAndSorted: (transform?: boolean) => any;
|
|
63
66
|
clearSelection: () => void;
|
|
@@ -21,5 +21,8 @@ export * from './ap-upload-file';
|
|
|
21
21
|
export * from './batch-input-group';
|
|
22
22
|
export * from './ap-size-input';
|
|
23
23
|
export * from './ap-product-info';
|
|
24
|
+
export * from './ap-copy';
|
|
24
25
|
export * from './ap-view';
|
|
26
|
+
export * from './ap-radio-group';
|
|
27
|
+
export * from './ap-keep-alive';
|
|
25
28
|
export { ApTransformDataHelper } from '../utils/ap-trans-data';
|