@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
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as S, isVNode as b, h as a, createElementBlock as n, openBlock as r, normalizeClass as u, unref as o, createVNode as V, withCtx as _, Fragment as w, renderList as B, normalizeStyle as N, createBlock as z, resolveDynamicComponent as F } from "vue";
|
|
2
|
+
import { Flex as L } from "@aplus-frontend/antdv";
|
|
3
|
+
import "../../config-provider/index.mjs";
|
|
4
|
+
import "../../hooks/index.mjs";
|
|
5
|
+
import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useControllableValue as A } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
const D = ["onClick"], J = /* @__PURE__ */ S({
|
|
8
|
+
name: "ApRadioGroup",
|
|
9
|
+
__name: "ap-radio-group",
|
|
10
|
+
props: {
|
|
11
|
+
value: { default: "" },
|
|
12
|
+
options: { default: () => [] },
|
|
13
|
+
optionStyle: { default: () => ({
|
|
14
|
+
height: 28,
|
|
15
|
+
gap: 8
|
|
16
|
+
}) }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:value", "change"],
|
|
19
|
+
setup(d, { emit: f }) {
|
|
20
|
+
const { b: h, e: i } = x("ap-radio-group"), g = d, l = f, { value: y, updateValue: C } = A(
|
|
21
|
+
g,
|
|
22
|
+
l
|
|
23
|
+
), k = (e) => b(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e), v = (e) => {
|
|
24
|
+
C(e), l("change", e);
|
|
25
|
+
};
|
|
26
|
+
return (e, E) => {
|
|
27
|
+
var p;
|
|
28
|
+
return r(), n("div", {
|
|
29
|
+
class: u([o(h)()])
|
|
30
|
+
}, [
|
|
31
|
+
V(o(L), {
|
|
32
|
+
gap: (p = e.optionStyle) == null ? void 0 : p.gap,
|
|
33
|
+
wrap: "wrap"
|
|
34
|
+
}, {
|
|
35
|
+
default: _(() => [
|
|
36
|
+
(r(!0), n(w, null, B(e.options.filter((t) => t.visible !== !1), (t) => {
|
|
37
|
+
var s, c, m;
|
|
38
|
+
return r(), n("div", {
|
|
39
|
+
key: t.value,
|
|
40
|
+
class: u([o(i)("item"), o(y) === t.value ? o(i)("item--active") : ""]),
|
|
41
|
+
style: N({
|
|
42
|
+
height: ((s = e.optionStyle) == null ? void 0 : s.height) + "px",
|
|
43
|
+
lineHeight: ((c = e.optionStyle) == null ? void 0 : c.height) + "px",
|
|
44
|
+
color: (m = e.optionStyle) == null ? void 0 : m.color
|
|
45
|
+
}),
|
|
46
|
+
onClick: (G) => v(t.value)
|
|
47
|
+
}, [
|
|
48
|
+
(r(), z(F(k(t.label))))
|
|
49
|
+
], 14, D);
|
|
50
|
+
}), 128))
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["gap"])
|
|
54
|
+
], 2);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
J as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
|
+
import { RadioOptionType, RadioOptionStyleType } from './interface';
|
|
3
|
+
export * from './interface';
|
|
4
|
+
declare const ApRadioGroup: {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
+
value: string | number;
|
|
7
|
+
options: RadioOptionType[];
|
|
8
|
+
optionStyle?: RadioOptionStyleType;
|
|
9
|
+
}> & Readonly<{
|
|
10
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
11
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
|
+
change: (value: string | number) => any;
|
|
14
|
+
"update:value": (value: string | number) => any;
|
|
15
|
+
}, PublicProps, {
|
|
16
|
+
value: string | number;
|
|
17
|
+
options: RadioOptionType[];
|
|
18
|
+
optionStyle: RadioOptionStyleType;
|
|
19
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
20
|
+
P: {};
|
|
21
|
+
B: {};
|
|
22
|
+
D: {};
|
|
23
|
+
C: {};
|
|
24
|
+
M: {};
|
|
25
|
+
Defaults: {};
|
|
26
|
+
}, Readonly<{
|
|
27
|
+
value: string | number;
|
|
28
|
+
options: RadioOptionType[];
|
|
29
|
+
optionStyle?: RadioOptionStyleType;
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
32
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, {
|
|
34
|
+
value: string | number;
|
|
35
|
+
options: RadioOptionType[];
|
|
36
|
+
optionStyle: RadioOptionStyleType;
|
|
37
|
+
}>;
|
|
38
|
+
__isFragment?: never;
|
|
39
|
+
__isTeleport?: never;
|
|
40
|
+
__isSuspense?: never;
|
|
41
|
+
} & ComponentOptionsBase<Readonly<{
|
|
42
|
+
value: string | number;
|
|
43
|
+
options: RadioOptionType[];
|
|
44
|
+
optionStyle?: RadioOptionStyleType;
|
|
45
|
+
}> & Readonly<{
|
|
46
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
47
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
48
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
49
|
+
change: (value: string | number) => any;
|
|
50
|
+
"update:value": (value: string | number) => any;
|
|
51
|
+
}, string, {
|
|
52
|
+
value: string | number;
|
|
53
|
+
options: RadioOptionType[];
|
|
54
|
+
optionStyle: RadioOptionStyleType;
|
|
55
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
56
|
+
$props: {
|
|
57
|
+
onClick?: () => void;
|
|
58
|
+
};
|
|
59
|
+
}));
|
|
60
|
+
export { ApRadioGroup };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface RadioOptionType {
|
|
3
|
+
label: string | number | (() => any) | VNode;
|
|
4
|
+
value: string | number;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type RadioOptionStyleType = {
|
|
8
|
+
gap?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
color?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-radio-group/ap-radio-group.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-radio-group/ap-radio-group.less';
|
|
@@ -10,7 +10,7 @@ type ApStatusGroupItemUnion = Pick<ApStatusProps, 'text' | 'color'> & {
|
|
|
10
10
|
};
|
|
11
11
|
export type ApStatusGroupItemProps = Required<ApStatusGroupItemUnion>;
|
|
12
12
|
export type ApStatusGroupProps = {
|
|
13
|
-
padding
|
|
13
|
+
padding?: number;
|
|
14
14
|
currentValue: number | string;
|
|
15
15
|
statusList: ApStatusGroupItemProps[] | null;
|
|
16
16
|
style?: object;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OpenOptions, UseCreateTableModalProps, OpenReturnType } from '../interface';
|
|
2
2
|
import { Recordable } from '../../../type';
|
|
3
3
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
|
+
import { InternalPagingType } from '../../../ap-table/hooks/use-table-paging-ng';
|
|
4
5
|
export declare function useCreateTableModal(props: UseCreateTableModalProps): {
|
|
5
6
|
readonly openModal: <T>(selected?: any[], options?: OpenOptions) => Promise< OpenReturnType<T> | undefined>;
|
|
6
7
|
readonly closeModal: () => void;
|
|
@@ -18,10 +19,10 @@ export declare function useCreateTableModal(props: UseCreateTableModalProps): {
|
|
|
18
19
|
select: (item: any) => void;
|
|
19
20
|
selectAll: () => void;
|
|
20
21
|
unSelectAll: () => void;
|
|
22
|
+
clearAll: () => void;
|
|
21
23
|
selectedRows: any[];
|
|
22
24
|
unSelect: (item: any) => void;
|
|
23
25
|
isSelected: (item: any) => boolean;
|
|
24
|
-
clearAll: () => void;
|
|
25
26
|
toggleSelect: (item: any) => void;
|
|
26
27
|
selectMulti: (items: any[]) => void;
|
|
27
28
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -34,6 +35,8 @@ export declare function useCreateTableModal(props: UseCreateTableModalProps): {
|
|
|
34
35
|
};
|
|
35
36
|
y: undefined;
|
|
36
37
|
};
|
|
38
|
+
getPaging: () => InternalPagingType;
|
|
39
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
37
40
|
} | null | undefined;
|
|
38
41
|
readonly isDestroyed: true;
|
|
39
42
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApTableModalProps, OpenOptions } from '../interface';
|
|
2
2
|
import { Recordable } from '../../../type';
|
|
3
3
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
|
+
import { InternalPagingType } from '../../../ap-table/hooks/use-table-paging-ng';
|
|
4
5
|
/** 函数式调用弹框表格 */
|
|
5
6
|
export declare function useTableModal<TableRowType = Record<string, any>>(props: ApTableModalProps<TableRowType>): {
|
|
6
7
|
reloadApTableData: () => void;
|
|
@@ -16,10 +17,10 @@ export declare function useTableModal<TableRowType = Record<string, any>>(props:
|
|
|
16
17
|
select: (item: any) => void;
|
|
17
18
|
selectAll: () => void;
|
|
18
19
|
unSelectAll: () => void;
|
|
20
|
+
clearAll: () => void;
|
|
19
21
|
selectedRows: any[];
|
|
20
22
|
unSelect: (item: any) => void;
|
|
21
23
|
isSelected: (item: any) => boolean;
|
|
22
|
-
clearAll: () => void;
|
|
23
24
|
toggleSelect: (item: any) => void;
|
|
24
25
|
selectMulti: (items: any[]) => void;
|
|
25
26
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -32,6 +33,8 @@ export declare function useTableModal<TableRowType = Record<string, any>>(props:
|
|
|
32
33
|
};
|
|
33
34
|
y: undefined;
|
|
34
35
|
};
|
|
36
|
+
getPaging: () => InternalPagingType;
|
|
37
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
35
38
|
} | null | undefined;
|
|
36
39
|
isDestroyed: true;
|
|
37
40
|
open: (options?: OpenOptions) => Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OpenOptions, UseTableSelectModalProps } from '../interface';
|
|
2
2
|
import { Recordable } from '../../../type';
|
|
3
3
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
|
+
import { InternalPagingType } from '../../../ap-table/hooks/use-table-paging-ng';
|
|
4
5
|
export declare function useTableSelectModal<TableRowType = Record<string, any>>(props: UseTableSelectModalProps<TableRowType>): {
|
|
5
6
|
reloadApTableData: () => void;
|
|
6
7
|
resetApTableData: () => void;
|
|
@@ -15,10 +16,10 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
|
|
|
15
16
|
select: (item: any) => void;
|
|
16
17
|
selectAll: () => void;
|
|
17
18
|
unSelectAll: () => void;
|
|
19
|
+
clearAll: () => void;
|
|
18
20
|
selectedRows: any[];
|
|
19
21
|
unSelect: (item: any) => void;
|
|
20
22
|
isSelected: (item: any) => boolean;
|
|
21
|
-
clearAll: () => void;
|
|
22
23
|
toggleSelect: (item: any) => void;
|
|
23
24
|
selectMulti: (items: any[]) => void;
|
|
24
25
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -31,6 +32,8 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
|
|
|
31
32
|
};
|
|
32
33
|
y: undefined;
|
|
33
34
|
};
|
|
35
|
+
getPaging: () => InternalPagingType;
|
|
36
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
34
37
|
} | null | undefined;
|
|
35
38
|
isDestroyed: true;
|
|
36
39
|
open: (selected?: any[], options?: OpenOptions) => Promise<{
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useTableModal } from './hooks/use-table-modal';
|
|
2
2
|
import { useTableSelectModal } from './hooks/use-table-select-modal';
|
|
3
|
-
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ShallowUnwrapRef, ComputedRef,
|
|
3
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ShallowUnwrapRef, ComputedRef, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
4
4
|
import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
|
|
5
5
|
import { Recordable } from '../../type';
|
|
6
6
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
7
|
+
import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
9
10
|
*/
|
|
@@ -24,10 +25,10 @@ declare const ApTableModal: {
|
|
|
24
25
|
select: (item: any) => void;
|
|
25
26
|
selectAll: () => void;
|
|
26
27
|
unSelectAll: () => void;
|
|
28
|
+
clearAll: () => void;
|
|
27
29
|
selectedRows: any[];
|
|
28
30
|
unSelect: (item: any) => void;
|
|
29
31
|
isSelected: (item: any) => boolean;
|
|
30
|
-
clearAll: () => void;
|
|
31
32
|
toggleSelect: (item: any) => void;
|
|
32
33
|
selectMulti: (items: any[]) => void;
|
|
33
34
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -40,6 +41,14 @@ declare const ApTableModal: {
|
|
|
40
41
|
};
|
|
41
42
|
y: undefined;
|
|
42
43
|
};
|
|
44
|
+
getPaging: () => Partial<{
|
|
45
|
+
current: number;
|
|
46
|
+
pageSize: number;
|
|
47
|
+
}>;
|
|
48
|
+
setPaging: (nextPaging: Partial<{
|
|
49
|
+
current: number;
|
|
50
|
+
pageSize: number;
|
|
51
|
+
}>, refreshImmediately?: boolean) => void;
|
|
43
52
|
} | null;
|
|
44
53
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
45
54
|
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
|
|
@@ -67,6 +76,14 @@ declare const ApTableModal: {
|
|
|
67
76
|
refresh: () => void;
|
|
68
77
|
setSearchFormValues: (fields: any) => void;
|
|
69
78
|
getSearchFormValues: (transform?: boolean) => Partial<any> | undefined;
|
|
79
|
+
setPaging: (nextPaging: Partial<{
|
|
80
|
+
current: number;
|
|
81
|
+
pageSize: number;
|
|
82
|
+
}>, refreshImmediately?: boolean) => void;
|
|
83
|
+
getPaging: () => {
|
|
84
|
+
current?: number | undefined;
|
|
85
|
+
pageSize?: number | undefined;
|
|
86
|
+
};
|
|
70
87
|
getShownColumns: () => TableColumnsType<any>;
|
|
71
88
|
dataSource: ComputedRef<any[]>;
|
|
72
89
|
rowSelection: {
|
|
@@ -83,7 +100,7 @@ declare const ApTableModal: {
|
|
|
83
100
|
};
|
|
84
101
|
scrollBar: {
|
|
85
102
|
x: {
|
|
86
|
-
getCurrentScroll: () =>
|
|
103
|
+
getCurrentScroll: () => number;
|
|
87
104
|
scroll: (percent: number) => void | undefined;
|
|
88
105
|
};
|
|
89
106
|
y: undefined;
|
|
@@ -112,10 +129,10 @@ declare const ApTableModal: {
|
|
|
112
129
|
select: (item: any) => void;
|
|
113
130
|
selectAll: () => void;
|
|
114
131
|
unSelectAll: () => void;
|
|
132
|
+
clearAll: () => void;
|
|
115
133
|
selectedRows: any[];
|
|
116
134
|
unSelect: (item: any) => void;
|
|
117
135
|
isSelected: (item: any) => boolean;
|
|
118
|
-
clearAll: () => void;
|
|
119
136
|
toggleSelect: (item: any) => void;
|
|
120
137
|
selectMulti: (items: any[]) => void;
|
|
121
138
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -128,6 +145,14 @@ declare const ApTableModal: {
|
|
|
128
145
|
};
|
|
129
146
|
y: undefined;
|
|
130
147
|
};
|
|
148
|
+
getPaging: () => Partial<{
|
|
149
|
+
current: number;
|
|
150
|
+
pageSize: number;
|
|
151
|
+
}>;
|
|
152
|
+
setPaging: (nextPaging: Partial<{
|
|
153
|
+
current: number;
|
|
154
|
+
pageSize: number;
|
|
155
|
+
}>, refreshImmediately?: boolean) => void;
|
|
131
156
|
} | null;
|
|
132
157
|
}, {}, {}, {}, {
|
|
133
158
|
mask: boolean;
|
|
@@ -166,10 +191,10 @@ declare const ApTableModal: {
|
|
|
166
191
|
select: (item: any) => void;
|
|
167
192
|
selectAll: () => void;
|
|
168
193
|
unSelectAll: () => void;
|
|
194
|
+
clearAll: () => void;
|
|
169
195
|
selectedRows: any[];
|
|
170
196
|
unSelect: (item: any) => void;
|
|
171
197
|
isSelected: (item: any) => boolean;
|
|
172
|
-
clearAll: () => void;
|
|
173
198
|
toggleSelect: (item: any) => void;
|
|
174
199
|
selectMulti: (items: any[]) => void;
|
|
175
200
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -182,6 +207,8 @@ declare const ApTableModal: {
|
|
|
182
207
|
};
|
|
183
208
|
y: undefined;
|
|
184
209
|
};
|
|
210
|
+
getPaging: () => InternalPagingType;
|
|
211
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
185
212
|
} | null;
|
|
186
213
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
187
214
|
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ShallowUnwrapRef, ComputedRef
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ShallowUnwrapRef, ComputedRef } from 'vue';
|
|
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
|
type __VLS_Props = ApTableModalProps;
|
|
6
7
|
declare const _default: DefineComponent<__VLS_Props, {
|
|
7
8
|
open: <T>(selected?: any[], options?: OpenOptions) => Promise<OpenReturnType<T>>;
|
|
@@ -17,10 +18,10 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
17
18
|
select: (item: any) => void;
|
|
18
19
|
selectAll: () => void;
|
|
19
20
|
unSelectAll: () => void;
|
|
21
|
+
clearAll: () => void;
|
|
20
22
|
selectedRows: any[];
|
|
21
23
|
unSelect: (item: any) => void;
|
|
22
24
|
isSelected: (item: any) => boolean;
|
|
23
|
-
clearAll: () => void;
|
|
24
25
|
toggleSelect: (item: any) => void;
|
|
25
26
|
selectMulti: (items: any[]) => void;
|
|
26
27
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -33,6 +34,8 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
33
34
|
};
|
|
34
35
|
y: undefined;
|
|
35
36
|
};
|
|
37
|
+
getPaging: () => InternalPagingType;
|
|
38
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
36
39
|
} | null;
|
|
37
40
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
38
41
|
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
|
|
@@ -62,6 +65,14 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
62
65
|
refresh: () => void;
|
|
63
66
|
setSearchFormValues: (fields: any) => void;
|
|
64
67
|
getSearchFormValues: (transform?: boolean) => Partial<any> | undefined;
|
|
68
|
+
setPaging: (nextPaging: Partial<{
|
|
69
|
+
current: number;
|
|
70
|
+
pageSize: number;
|
|
71
|
+
}>, refreshImmediately?: boolean) => void;
|
|
72
|
+
getPaging: () => {
|
|
73
|
+
current?: number | undefined;
|
|
74
|
+
pageSize?: number | undefined;
|
|
75
|
+
};
|
|
65
76
|
getShownColumns: () => TableColumnsType<any>;
|
|
66
77
|
dataSource: ComputedRef<any[]>;
|
|
67
78
|
rowSelection: {
|
|
@@ -78,7 +89,7 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
78
89
|
};
|
|
79
90
|
scrollBar: {
|
|
80
91
|
x: {
|
|
81
|
-
getCurrentScroll: () =>
|
|
92
|
+
getCurrentScroll: () => number;
|
|
82
93
|
scroll: (percent: number) => void | undefined;
|
|
83
94
|
};
|
|
84
95
|
y: undefined;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { message as
|
|
1
|
+
import { defineComponent as H, ref as m, unref as s, computed as U, h as q, createBlock as k, openBlock as T, mergeProps as y, withCtx as h, createCommentVNode as V, createVNode as S, resolveDynamicComponent as $ } from "vue";
|
|
2
|
+
import { message as R, Modal as z } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { ApTable as
|
|
5
|
-
import { cloneDeep as J, omit as
|
|
4
|
+
import { ApTable as W } from "../../ap-table/index.mjs";
|
|
5
|
+
import { cloneDeep as J, omit as B } from "lodash-unified";
|
|
6
6
|
import { transformTableParams as Q } from "@aplus-frontend/utils";
|
|
7
7
|
import "./modal-title.vue.mjs";
|
|
8
8
|
import { AsyncOpenResultError as b } from "./interface.mjs";
|
|
9
9
|
import "./table-layout/index.vue.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
const pe = /* @__PURE__ */ U({
|
|
10
|
+
import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import Y from "./modal-title.vue2.mjs";
|
|
12
|
+
import Z from "./table-layout/index.vue2.mjs";
|
|
13
|
+
const ce = /* @__PURE__ */ H({
|
|
15
14
|
__name: "table-modal",
|
|
16
15
|
props: {
|
|
17
16
|
columns: {},
|
|
@@ -62,10 +61,10 @@ const pe = /* @__PURE__ */ U({
|
|
|
62
61
|
mousePosition: {}
|
|
63
62
|
},
|
|
64
63
|
emits: ["finish"],
|
|
65
|
-
setup(
|
|
66
|
-
const e =
|
|
64
|
+
setup(P, { expose: M, emit: K }) {
|
|
65
|
+
const e = P, _ = K, i = m(!1), x = m({}), d = m(null), a = m([]), C = m();
|
|
67
66
|
let c = null, n = null;
|
|
68
|
-
const
|
|
67
|
+
const { t: g } = X(), I = async (o = [], t = {}) => {
|
|
69
68
|
var l, r, u;
|
|
70
69
|
switch (a.value = [...o], i.value = !0, x.value = t == null ? void 0 : t.extraParams, C.value = t.apTableDataSources || ((l = e.apTableProps) == null ? void 0 : l.dataSource), t.refreshMode || "reset") {
|
|
71
70
|
case "reset":
|
|
@@ -82,7 +81,7 @@ const pe = /* @__PURE__ */ U({
|
|
|
82
81
|
});
|
|
83
82
|
}, w = () => {
|
|
84
83
|
i.value = !1, c = null, n == null || n(b.ModalCancel), n = null;
|
|
85
|
-
},
|
|
84
|
+
}, D = async (o) => {
|
|
86
85
|
o = Q({
|
|
87
86
|
...o,
|
|
88
87
|
...x.value
|
|
@@ -92,7 +91,7 @@ const pe = /* @__PURE__ */ U({
|
|
|
92
91
|
data: l,
|
|
93
92
|
total: r
|
|
94
93
|
};
|
|
95
|
-
},
|
|
94
|
+
}, L = () => {
|
|
96
95
|
if (a.value.length > e.maxCount) {
|
|
97
96
|
n == null || n(b.ExceedMaxCount);
|
|
98
97
|
return;
|
|
@@ -105,7 +104,7 @@ const pe = /* @__PURE__ */ U({
|
|
|
105
104
|
return;
|
|
106
105
|
}
|
|
107
106
|
i.value = !1;
|
|
108
|
-
},
|
|
107
|
+
}, N = U(() => {
|
|
109
108
|
if (!e.getRowKey) return;
|
|
110
109
|
const o = e.getRowKey;
|
|
111
110
|
return {
|
|
@@ -116,7 +115,7 @@ const pe = /* @__PURE__ */ U({
|
|
|
116
115
|
onSelectAll(t, l) {
|
|
117
116
|
var u, p;
|
|
118
117
|
if (l.length > e.maxCount) {
|
|
119
|
-
|
|
118
|
+
R.warning(
|
|
120
119
|
g("ap.apTableModal.messageMaxCount", {
|
|
121
120
|
maxCount: e.maxCount
|
|
122
121
|
})
|
|
@@ -125,7 +124,7 @@ const pe = /* @__PURE__ */ U({
|
|
|
125
124
|
}
|
|
126
125
|
const r = (u = d.value) == null ? void 0 : u.dataSource;
|
|
127
126
|
if (t) {
|
|
128
|
-
const f = s(r).filter((v) => !a.value.some((
|
|
127
|
+
const f = s(r).filter((v) => !a.value.some((G) => o(G) === o(v)));
|
|
129
128
|
a.value = a.value.concat(f);
|
|
130
129
|
} else
|
|
131
130
|
a.value = (p = a.value) == null ? void 0 : p.filter((f) => !r.some((v) => o(v) === o(f)));
|
|
@@ -133,7 +132,7 @@ const pe = /* @__PURE__ */ U({
|
|
|
133
132
|
onSelect(t, l) {
|
|
134
133
|
if (l) {
|
|
135
134
|
if (a.value.length >= e.maxCount) {
|
|
136
|
-
|
|
135
|
+
R.warning(
|
|
137
136
|
g("ap.apTableModal.messageMaxCount", {
|
|
138
137
|
maxCount: e.maxCount
|
|
139
138
|
})
|
|
@@ -154,8 +153,8 @@ const pe = /* @__PURE__ */ U({
|
|
|
154
153
|
}),
|
|
155
154
|
...e.rowSelection || {}
|
|
156
155
|
};
|
|
157
|
-
}),
|
|
158
|
-
|
|
156
|
+
}), A = () => e.isRenderModalTitleSuffix ? q(
|
|
157
|
+
Y,
|
|
159
158
|
{
|
|
160
159
|
title: e.title,
|
|
161
160
|
count: a.value.length || 0,
|
|
@@ -164,9 +163,9 @@ const pe = /* @__PURE__ */ U({
|
|
|
164
163
|
{
|
|
165
164
|
default: e.renderModalTitleSuffix ?? void 0
|
|
166
165
|
}
|
|
167
|
-
) : e.title,
|
|
166
|
+
) : e.title, O = () => d.value, E = () => {
|
|
168
167
|
a.value = [];
|
|
169
|
-
},
|
|
168
|
+
}, F = (o) => {
|
|
170
169
|
const t = e.getRowKey;
|
|
171
170
|
if (!t) return;
|
|
172
171
|
const l = a.value.findIndex(
|
|
@@ -174,16 +173,16 @@ const pe = /* @__PURE__ */ U({
|
|
|
174
173
|
);
|
|
175
174
|
a.value.splice(l, 1);
|
|
176
175
|
};
|
|
177
|
-
return
|
|
178
|
-
open:
|
|
176
|
+
return M({
|
|
177
|
+
open: I,
|
|
179
178
|
close: w,
|
|
180
|
-
getApTableInstance:
|
|
181
|
-
}), (o, t) => (T(), k(s(
|
|
179
|
+
getApTableInstance: O
|
|
180
|
+
}), (o, t) => (T(), k(s(z), y(
|
|
182
181
|
{
|
|
183
182
|
open: i.value,
|
|
184
183
|
"onUpdate:open": t[0] || (t[0] = (l) => i.value = l)
|
|
185
184
|
},
|
|
186
|
-
s(
|
|
185
|
+
s(B)(e, [
|
|
187
186
|
"api",
|
|
188
187
|
"getRowKey",
|
|
189
188
|
"centered",
|
|
@@ -198,33 +197,35 @@ const pe = /* @__PURE__ */ U({
|
|
|
198
197
|
"tableLayoutConfig"
|
|
199
198
|
]),
|
|
200
199
|
{
|
|
201
|
-
title:
|
|
202
|
-
"body-style": { maxHeight: "calc(100vh - 205px)", overflowY: "scroll" },
|
|
200
|
+
title: A(),
|
|
203
201
|
centered: e.centered ?? !0,
|
|
204
|
-
onOk:
|
|
202
|
+
onOk: L,
|
|
205
203
|
onCancel: w
|
|
206
204
|
}
|
|
207
205
|
), {
|
|
208
206
|
default: h(() => [
|
|
209
|
-
e.renderHeader ? (T(), k(
|
|
210
|
-
S(
|
|
207
|
+
e.renderHeader ? (T(), k($(e.renderHeader), { key: 0 })) : V("", !0),
|
|
208
|
+
S(Z, y(e.tableLayoutConfig || {}, {
|
|
211
209
|
"selected-list": a.value,
|
|
212
|
-
onClear:
|
|
213
|
-
onDeleteItem:
|
|
210
|
+
onClear: E,
|
|
211
|
+
onDeleteItem: F
|
|
214
212
|
}), {
|
|
215
213
|
default: h(() => [
|
|
216
|
-
S(s(
|
|
214
|
+
S(s(W), y({
|
|
217
215
|
ref_key: "apTableRef",
|
|
218
216
|
ref: d,
|
|
219
|
-
scroll: { y:
|
|
217
|
+
scroll: { y: 450 },
|
|
220
218
|
style: { padding: "0px" },
|
|
221
219
|
columns: o.columns,
|
|
222
|
-
request:
|
|
220
|
+
request: D,
|
|
223
221
|
"row-key": o.getRowKey,
|
|
224
|
-
"row-selection":
|
|
225
|
-
|
|
226
|
-
"
|
|
227
|
-
|
|
222
|
+
"row-selection": N.value,
|
|
223
|
+
"data-source": C.value,
|
|
224
|
+
"search-form": {
|
|
225
|
+
sortable: !1,
|
|
226
|
+
countPerRow: 2
|
|
227
|
+
}
|
|
228
|
+
}, s(B)(e.apTableProps, "dataSource")), null, 16, ["columns", "row-key", "row-selection", "data-source"])
|
|
228
229
|
]),
|
|
229
230
|
_: 1
|
|
230
231
|
}, 16, ["selected-list"])
|
|
@@ -234,5 +235,5 @@ const pe = /* @__PURE__ */ U({
|
|
|
234
235
|
}
|
|
235
236
|
});
|
|
236
237
|
export {
|
|
237
|
-
|
|
238
|
+
ce as default
|
|
238
239
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ApViewProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<ApViewProps, {
|
|
3
|
+
declare const _default: DefineComponent<ApViewProps, {
|
|
4
|
+
setFirstDefaultSystemView: (value: boolean) => void;
|
|
5
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
|
|
4
6
|
maxViewNum: number;
|
|
7
|
+
isDefaultSystemView: boolean;
|
|
8
|
+
isFirstDefaultSystemView: boolean;
|
|
5
9
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
6
10
|
export default _default;
|