@aplus-frontend/ui 0.6.0-beta.9 → 0.6.1
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-button/ap-button.vue.mjs +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/components/ApDrawerClose.vue.d.ts +7 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +4 -0
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +25 -0
- package/es/src/ap-drawer/index.d.ts +2 -0
- package/es/src/ap-drawer/index.mjs +5 -2
- package/es/src/ap-drawer/utils/createDrawer.mjs +38 -33
- 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 +2 -4
- package/es/src/ap-field/radio/index.vue.d.ts +2 -4
- package/es/src/ap-field/rate/index.vue.d.ts +2 -4
- package/es/src/ap-field/select/index.vue.d.ts +3 -6
- 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.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 +13 -7
- package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
- package/es/src/ap-form/interface.d.ts +9 -5
- package/es/src/ap-form/item/index.vue.d.ts +5 -10
- package/es/src/ap-form/item/index.vue.mjs +69 -73
- package/es/src/ap-form/item-group/index.vue.mjs +34 -35
- package/es/src/ap-form/items/select/index.vue.mjs +12 -14
- 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.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/search-form/components/popover-sorter/index.vue2.mjs +4 -1
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +31 -13
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -8
- package/es/src/ap-form/search-form/index.vue.mjs +63 -62
- package/es/src/ap-form/set/index.vue.mjs +20 -20
- package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
- package/es/src/ap-grid/editable/index.vue.mjs +13 -10
- 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/hooks/use-table-style.d.ts +18 -0
- package/es/src/ap-grid/hooks/use-table-style.mjs +28 -0
- package/es/src/ap-grid/index.vue.mjs +295 -243
- package/es/src/ap-grid/interface.d.ts +32 -3
- package/es/src/ap-grid/utils/table.mjs +15 -15
- package/es/src/ap-list/index.vue.d.ts +2 -9
- package/es/src/ap-list/index.vue.mjs +113 -103
- package/es/src/ap-list/interface.d.ts +24 -3
- package/es/src/ap-modal/interface.d.ts +2 -1
- package/es/src/ap-modal/utils/createModalStream.mjs +24 -24
- package/es/src/ap-table/ap-table.vue.d.ts +10 -2
- package/es/src/ap-table/ap-table.vue2.mjs +86 -82
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
- package/es/src/ap-table/constants.d.ts +22 -22
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +158 -130
- package/es/src/ap-table/interface.d.ts +17 -4
- package/es/src/ap-table/utils.d.ts +21 -21
- package/es/src/business/ap-card/ApCard.vue.d.ts +2 -4
- package/es/src/business/ap-card/ApCard.vue2.mjs +34 -33
- package/es/src/business/ap-card/index.d.ts +2 -4
- package/es/src/business/ap-card/interface.d.ts +5 -0
- 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.vue2.mjs +51 -49
- 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 +108 -0
- package/es/src/business/ap-keep-alive/index.mjs +15 -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 +23 -0
- package/es/src/business/ap-keep-alive/utils.mjs +42 -0
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
- package/es/src/business/ap-label/interface.d.ts +2 -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 +21 -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 +73 -0
- package/es/src/business/ap-radio-group/index.d.ts +66 -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-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 +4 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +135 -115
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
- package/es/src/business/ap-view/index.d.ts +12 -3
- package/es/src/business/ap-view/interface.d.ts +7 -0
- package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
- 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/components.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.mjs +23 -23
- package/es/src/full-screen/interface.d.ts +5 -6
- package/es/src/index.mjs +112 -97
- 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/mock-warning.d.ts +1 -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-button/ap-button.vue.js +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/components/ApDrawerClose.vue.d.ts +7 -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 +2 -0
- package/lib/src/ap-drawer/index.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +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 +2 -4
- package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
- package/lib/src/ap-field/select/index.vue.d.ts +3 -6
- 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.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 +13 -7
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +9 -5
- package/lib/src/ap-form/item/index.vue.d.ts +5 -10
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- 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.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/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 +4 -8
- 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/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/hooks/use-table-style.d.ts +18 -0
- package/lib/src/ap-grid/hooks/use-table-style.js +1 -0
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +32 -3
- package/lib/src/ap-grid/utils/table.js +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 +24 -3
- package/lib/src/ap-modal/interface.d.ts +2 -1
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- 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/constants.d.ts +22 -22
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +17 -4
- package/lib/src/ap-table/utils.d.ts +21 -21
- package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -4
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-card/index.d.ts +2 -4
- package/lib/src/business/ap-card/interface.d.ts +5 -0
- 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.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 +108 -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 +23 -0
- package/lib/src/business/ap-keep-alive/utils.js +1 -0
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/interface.d.ts +2 -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 +21 -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 +66 -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-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 +4 -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/menu-list-content.vue.d.ts +1 -1
- package/lib/src/business/ap-view/index.d.ts +12 -3
- package/lib/src/business/ap-view/interface.d.ts +7 -0
- package/lib/src/business/batch-input-group/form-item.vue.js +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/components.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- 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/mock-warning.d.ts +1 -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 +5 -18
- 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/drawer.css +3 -0
- package/theme/antd-global-overwrite/admin/drawer.less +5 -0
- package/theme/antd-global-overwrite/admin/field.css +42 -0
- package/theme/antd-global-overwrite/admin/field.less +43 -0
- package/theme/antd-global-overwrite/admin/index.css +93 -634
- package/theme/antd-global-overwrite/admin/index.less +1 -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 +20 -37
- package/theme/antd-global-overwrite/admin/modal.less +20 -41
- 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/aplus/alert.css +8 -18
- 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/drawer.css +3 -0
- package/theme/antd-global-overwrite/aplus/drawer.less +5 -0
- package/theme/antd-global-overwrite/aplus/field.css +36 -0
- package/theme/antd-global-overwrite/aplus/field.less +36 -0
- package/theme/antd-global-overwrite/aplus/index.css +94 -683
- package/theme/antd-global-overwrite/aplus/index.less +0 -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 +19 -43
- package/theme/antd-global-overwrite/aplus/modal.less +20 -49
- package/theme/antd-global-overwrite/aplus/table.css +11 -236
- package/theme/antd-global-overwrite/aplus/table.less +4 -134
- package/theme/ap-action/item-dropdown.css +3 -3
- package/theme/ap-action/item.css +21 -10
- package/theme/ap-action/item.less +18 -6
- package/theme/ap-appendix/ap-appendix.css +10 -10
- package/theme/ap-appendix/ap-appendix.less +6 -6
- package/theme/ap-attachment/ap-attachment.css +4 -4
- package/theme/ap-batch-action/ap-batch-action.css +6 -6
- package/theme/ap-batch-action/ap-batch-action.less +3 -3
- package/theme/ap-button/ap-button.css +3 -3
- package/theme/ap-card/ap-card.css +4 -4
- 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 +9 -7
- package/theme/ap-descriptions/ap-descriptions.less +6 -4
- package/theme/ap-download/ap-download.css +6 -6
- package/theme/ap-drawer/ap-drawer.css +66 -0
- package/theme/ap-drawer/ap-drawer.less +27 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +4 -3
- package/theme/ap-expand-alert/ap-expand-alert.less +2 -2
- package/theme/ap-field/checkbox.css +3 -3
- package/theme/ap-field/index.css +3 -3
- package/theme/ap-field/number.css +3 -3
- package/theme/ap-field/radio.css +3 -3
- package/theme/ap-field/text-area.css +3 -3
- package/theme/ap-form/ap-form-item-group.css +3 -3
- package/theme/ap-form/ap-form-item.css +11 -8
- package/theme/ap-form/ap-form-item.less +8 -5
- package/theme/ap-form/drawer-form.css +3 -3
- package/theme/ap-form/index.css +25 -20
- package/theme/ap-form/item-text-group.css +3 -3
- package/theme/ap-form/item-text.css +3 -3
- package/theme/ap-form/modal-form.css +3 -3
- package/theme/ap-form/search-form-sorter.css +14 -12
- package/theme/ap-form/search-form-sorter.less +7 -5
- package/theme/ap-form/search-form.css +25 -20
- package/theme/ap-form/search-form.less +3 -3
- package/theme/ap-grid/editable.css +3 -3
- package/theme/ap-grid/index.css +73 -40
- package/theme/ap-grid/index.less +26 -8
- package/theme/ap-group-search/ap-extension-select.css +3 -3
- package/theme/ap-group-search/ap-group-search.css +3 -3
- package/theme/ap-group-search/ap-popover-select.css +3 -3
- package/theme/ap-image/ap-image.css +3 -3
- package/theme/ap-input-radio/ap-input-radio.css +3 -3
- package/theme/ap-label/ap-label.css +3 -3
- package/theme/ap-ladder/ap-ladder.css +6 -6
- package/theme/ap-layout/ap-info-layout.css +3 -3
- package/theme/ap-list/index.css +3 -3
- package/theme/ap-product-info/ap-product-info.css +23 -33
- package/theme/ap-product-info/ap-product-info.less +28 -42
- package/theme/ap-radio-group/ap-radio-group.css +66 -0
- package/theme/ap-radio-group/ap-radio-group.less +26 -0
- package/theme/ap-select-layout/ap-select-layout.css +5 -5
- package/theme/ap-size-input/ap-size-input.css +3 -3
- package/theme/ap-status/ap-status.css +3 -3
- package/theme/ap-summary/index.css +3 -3
- package/theme/ap-table/ap-table-index.css +3 -3
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +4 -4
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +80 -47
- package/theme/ap-table/ap-table.less +19 -7
- package/theme/ap-table/setting/index.css +18 -12
- package/theme/ap-table/setting/modal.css +10 -5
- package/theme/ap-table/setting/modal.less +6 -1
- package/theme/ap-table/setting/select-group.css +3 -3
- package/theme/ap-table/setting/sortable-item-meta.css +5 -5
- package/theme/ap-table/setting/sortable-item-meta.less +2 -2
- package/theme/ap-table/setting/sortable-item.css +3 -3
- package/theme/ap-table/setting/sorter.css +9 -8
- package/theme/ap-table/setting/sorter.less +4 -4
- package/theme/ap-table-modal/index.css +95 -60
- package/theme/ap-table-modal/index.less +15 -13
- package/theme/ap-tag/ap-tag-group.css +3 -3
- package/theme/ap-tag/ap-tag.css +7 -7
- package/theme/ap-tag/ap-tag.less +1 -1
- package/theme/ap-title/ap-title.css +3 -3
- package/theme/ap-upload/index.css +4 -4
- package/theme/ap-upload/multiple-file.css +3 -3
- package/theme/ap-upload/picture.css +3 -3
- package/theme/ap-upload/single-file.css +4 -4
- package/theme/ap-upload/upload.css +3 -3
- package/theme/ap-upload-single/index.css +7 -7
- package/theme/ap-upload-single/index.less +4 -4
- package/theme/ap-view/ap-view.css +10 -10
- package/theme/ap-view/ap-view.less +7 -7
- package/theme/batch-input-group/index.css +5 -5
- package/theme/batch-input-group/popover-input.css +5 -5
- package/theme/batch-input-group/popover-input.less +2 -2
- package/theme/check-card/index.css +11 -11
- package/theme/check-card/index.less +5 -5
- package/theme/editable-table/index.css +43 -27
- package/theme/full-screen/index.css +3 -3
- package/theme/index.css +350 -245
- package/theme/index.less +3 -0
- package/theme/mask/index.css +3 -3
- package/theme/mixins/config.less +3 -3
- package/theme/mixins/mixins.css +3 -3
- package/theme/mixins/mixins.less +2 -2
- package/theme/scroll-bar/index.css +3 -3
- package/theme/scroll-view/index.css +3 -3
- package/theme/splitter/index.css +7 -7
- package/theme/splitter/index.less +1 -1
- package/theme/text/group.css +3 -3
- package/theme/text/index.css +8 -8
- package/theme/text/index.less +4 -4
- package/theme/ui-mode.css +53 -83
- package/theme/ui-mode.less +103 -83
- package/theme/work-order-modal/index.css +3 -3
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { defineComponent as j, getCurrentInstance as M, ref as E, onMounted as z, onUpdated as F, onBeforeUnmount as L, onBeforeUpdate as O } from "vue";
|
|
2
|
+
import I from "./keeper/index.mjs";
|
|
3
|
+
import { matches as D, getAliveKey as T, isNoValue as W, getVNodeObjByVNodeChild as b, getVNodeObjByVNodeArrayChildren as K, getVNodeChirldren as w, getFirstVNodeChirldren as x } from "./utils.mjs";
|
|
4
|
+
import { catchWrapper as B, measureWrapper as A } from "@aplus-frontend/utils";
|
|
5
|
+
import { LruCacher as C } from "./cacher/lru-cacher.mjs";
|
|
6
|
+
import { forceStopTags as R, ApKeepAliveProps as _ } from "./interface.mjs";
|
|
7
|
+
import { throttle as S } from "lodash-unified";
|
|
8
|
+
import { useApKeepAliveProvide as $ } from "./hook.mjs";
|
|
9
|
+
const c = console, a = "|", te = j({
|
|
10
|
+
name: "ApKeepAlive",
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
props: _(),
|
|
13
|
+
setup(o, { slots: h }) {
|
|
14
|
+
const g = M(), v = (e) => !(o.include && (!e || !D(o.include, e)) || o.exclude && e && D(o.exclude, e)), d = o.store || new C(o.max), u = E("");
|
|
15
|
+
let m = "";
|
|
16
|
+
const k = /* @__PURE__ */ new Set([...R, ...o.stopTags]), p = (e, n = "") => {
|
|
17
|
+
var f;
|
|
18
|
+
const t = [];
|
|
19
|
+
if (!e) return t;
|
|
20
|
+
const { VnodeName: i, vnodeSubPath: s } = T(
|
|
21
|
+
e,
|
|
22
|
+
u.value
|
|
23
|
+
);
|
|
24
|
+
s && (n += a + s);
|
|
25
|
+
const l = I[i];
|
|
26
|
+
if (l) {
|
|
27
|
+
const r = l.get(e);
|
|
28
|
+
!W(r) && t.push([n, r]);
|
|
29
|
+
}
|
|
30
|
+
if (k.has(i))
|
|
31
|
+
return o.debug && c.log("[ stop-VnodeName ] >", i, n), t;
|
|
32
|
+
if (e.children)
|
|
33
|
+
if (Array.isArray(e.children))
|
|
34
|
+
e.children.forEach((r) => {
|
|
35
|
+
r = b(r), r && t.push(...p(r, n));
|
|
36
|
+
});
|
|
37
|
+
else {
|
|
38
|
+
const r = K(e.children);
|
|
39
|
+
r && t.push(...p(r, n));
|
|
40
|
+
}
|
|
41
|
+
return (f = e.component) != null && f.subTree && t.push(...p(e.component.subTree, n)), t;
|
|
42
|
+
}, N = async (e, n, t = "") => {
|
|
43
|
+
var f;
|
|
44
|
+
if (!e || !n || (n == null ? void 0 : n.size) < 1) return;
|
|
45
|
+
const { VnodeName: i, vnodeSubPath: s } = T(
|
|
46
|
+
e,
|
|
47
|
+
u.value
|
|
48
|
+
);
|
|
49
|
+
s && (t += a + s);
|
|
50
|
+
const l = I[i];
|
|
51
|
+
if (l) {
|
|
52
|
+
o.debug && c.log("[ vnkeeper ] >", i, e.key);
|
|
53
|
+
const r = t.split(a).slice(-1).join(a), U = n.get(r);
|
|
54
|
+
await l.set(e, U);
|
|
55
|
+
}
|
|
56
|
+
if (k.has(i)) {
|
|
57
|
+
o.debug && c.log("[ stop VnodeName ] >", i, t);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (e.children)
|
|
61
|
+
if (Array.isArray(e.children))
|
|
62
|
+
e.children.forEach((r) => {
|
|
63
|
+
r = b(r), r && N(r, n, t);
|
|
64
|
+
});
|
|
65
|
+
else {
|
|
66
|
+
const r = K(e.children);
|
|
67
|
+
r && N(r, n, t);
|
|
68
|
+
}
|
|
69
|
+
(f = e.component) != null && f.subTree && N(e.component.subTree, n, t);
|
|
70
|
+
}, V = S(() => {
|
|
71
|
+
B(() => {
|
|
72
|
+
const e = w(g), n = x(e), t = b(n);
|
|
73
|
+
if (!t || typeof t.type == "string" || (typeof t.type == "object" && "name" in t.type && (m = t.type.name || ""), u.value = t.key || m || "", !v(m)) || !u.value)
|
|
74
|
+
return;
|
|
75
|
+
const i = d.get(u.value);
|
|
76
|
+
N(t, i), c.log(
|
|
77
|
+
"resetDataInVNode",
|
|
78
|
+
g.vnode.key,
|
|
79
|
+
u.value,
|
|
80
|
+
i
|
|
81
|
+
);
|
|
82
|
+
});
|
|
83
|
+
}, 100, {
|
|
84
|
+
trailing: !1
|
|
85
|
+
});
|
|
86
|
+
z(() => {
|
|
87
|
+
if (o.debug) {
|
|
88
|
+
c.log("[ onMounted ] >", o.exclude), A(() => {
|
|
89
|
+
V();
|
|
90
|
+
});
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
V();
|
|
94
|
+
}), F(() => {
|
|
95
|
+
if (o.debug) {
|
|
96
|
+
c.log("[ onUpdated ] >", o.exclude), A(() => {
|
|
97
|
+
V();
|
|
98
|
+
});
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
V();
|
|
102
|
+
});
|
|
103
|
+
const y = S(() => {
|
|
104
|
+
B(() => {
|
|
105
|
+
const e = w(g), n = x(e), t = b(n);
|
|
106
|
+
if (!t) return;
|
|
107
|
+
if (!u.value) {
|
|
108
|
+
c.warn(
|
|
109
|
+
"ap-keep-alive 子组件 key 不存在,请检查组件是否设置了 key"
|
|
110
|
+
);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (!v(m)) return;
|
|
114
|
+
let i = p(t);
|
|
115
|
+
i = i.map((l) => [l[0].split(a).slice(-1).join(a), l[1]]);
|
|
116
|
+
const s = i.map((l) => l[0]);
|
|
117
|
+
s.length > new Set(s).size && c.warn(
|
|
118
|
+
"需要缓存的路径重复请合理设置组件key,保证在当前ApKeepAlive模块下唯一",
|
|
119
|
+
s
|
|
120
|
+
), d.set(u.value, new Map(i)), o.debug && c.log(
|
|
121
|
+
"[ loadDataInVNode ] >",
|
|
122
|
+
g.vnode.key,
|
|
123
|
+
u.value,
|
|
124
|
+
d.get(u.value)
|
|
125
|
+
);
|
|
126
|
+
});
|
|
127
|
+
}, 100, {
|
|
128
|
+
trailing: !1
|
|
129
|
+
});
|
|
130
|
+
return L(() => {
|
|
131
|
+
if (o.debug) {
|
|
132
|
+
c.log("[ onBeforeUnmount ] >"), A(() => {
|
|
133
|
+
y();
|
|
134
|
+
});
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
y();
|
|
138
|
+
}), O(() => {
|
|
139
|
+
if (o.debug) {
|
|
140
|
+
c.log("[ onBeforeUpdate ] >"), A(() => {
|
|
141
|
+
y();
|
|
142
|
+
});
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
y();
|
|
146
|
+
}), $(d, u), () => {
|
|
147
|
+
var e;
|
|
148
|
+
return (e = h.default) == null ? void 0 : e.call(h);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
export {
|
|
153
|
+
te as default
|
|
154
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { nextTick as r } from "vue";
|
|
2
|
+
import { isNoValue as s } from "../utils.mjs";
|
|
3
|
+
const p = {
|
|
4
|
+
get(n) {
|
|
5
|
+
var o;
|
|
6
|
+
let e;
|
|
7
|
+
const t = (o = n.component) == null ? void 0 : o.exposed;
|
|
8
|
+
return t && (e = t.getFieldsValue()), e;
|
|
9
|
+
},
|
|
10
|
+
set(n, e) {
|
|
11
|
+
var o;
|
|
12
|
+
if (s(e)) return;
|
|
13
|
+
const t = (o = n.component) == null ? void 0 : o.exposed;
|
|
14
|
+
t && r(() => {
|
|
15
|
+
t.setFieldsValue(e);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
p as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { Recordable } from '../../../type';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
get(node: VNode): {
|
|
5
|
+
selectedKeys: any[];
|
|
6
|
+
data: Recordable | undefined;
|
|
7
|
+
pagination: Partial<{
|
|
8
|
+
current: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
}> | undefined;
|
|
11
|
+
};
|
|
12
|
+
set(node: VNode, { data, pagination }: Recordable): void;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { unref as g } from "vue";
|
|
2
|
+
import { isNoValue as l } from "../utils.mjs";
|
|
3
|
+
const u = {
|
|
4
|
+
get(r) {
|
|
5
|
+
var c, a, i;
|
|
6
|
+
let e, t, o = [];
|
|
7
|
+
const s = ((c = r.props) == null ? void 0 : c.rowKey) || "key", n = (a = r.component) == null ? void 0 : a.exposed;
|
|
8
|
+
return n && (e = n.getSearchFormValues(), o = g((i = n.rowSelection) == null ? void 0 : i.selectedRows).map(
|
|
9
|
+
(p) => p[s]
|
|
10
|
+
), t = n.getPaging()), {
|
|
11
|
+
selectedKeys: o,
|
|
12
|
+
data: e,
|
|
13
|
+
pagination: t
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
set(r, { data: e, pagination: t }) {
|
|
17
|
+
var s;
|
|
18
|
+
const o = (s = r.component) == null ? void 0 : s.exposed;
|
|
19
|
+
if (o) {
|
|
20
|
+
if (l(e)) return;
|
|
21
|
+
e && o.setSearchFormValues(e), t && o.setPaging(t, !1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
u as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { Recordable } from '../../../type';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
get(node: VNode): {
|
|
5
|
+
data: Recordable | undefined;
|
|
6
|
+
pagination: Partial<{
|
|
7
|
+
current: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
}> | undefined;
|
|
10
|
+
};
|
|
11
|
+
set(node: VNode, { pagination, data }: Recordable): void;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isNoValue as a } from "../utils.mjs";
|
|
2
|
+
const i = {
|
|
3
|
+
get(o) {
|
|
4
|
+
var n;
|
|
5
|
+
let s, t;
|
|
6
|
+
const e = (n = o.component) == null ? void 0 : n.exposed;
|
|
7
|
+
return e && (s = e.getSearchFormValuesIfSetted(), t = e.getPaging()), { data: s, pagination: t };
|
|
8
|
+
},
|
|
9
|
+
set(o, { pagination: s, data: t }) {
|
|
10
|
+
var n;
|
|
11
|
+
if (a(t)) return;
|
|
12
|
+
const e = (n = o.component) == null ? void 0 : n.exposed;
|
|
13
|
+
e && (t && e.setSearchFormValuesIfSetted(t), s && e.setPaging(s));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
i as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isNoValue as r } from "../utils.mjs";
|
|
2
|
+
const a = {
|
|
3
|
+
get(t) {
|
|
4
|
+
var n;
|
|
5
|
+
let e;
|
|
6
|
+
const o = (n = t.component) == null ? void 0 : n.proxy;
|
|
7
|
+
return o && (e = o.value), e;
|
|
8
|
+
},
|
|
9
|
+
set(t, e) {
|
|
10
|
+
if (r(e)) return;
|
|
11
|
+
const o = t.component;
|
|
12
|
+
o && (o.emit("update:value", e), o.emit("change", e));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
a as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isNoValue as a } from "../utils.mjs";
|
|
2
|
+
const n = {
|
|
3
|
+
get(r) {
|
|
4
|
+
var t;
|
|
5
|
+
let e;
|
|
6
|
+
const o = (t = r.component) == null ? void 0 : t.exposed;
|
|
7
|
+
return o && (e = o.apForm.value.getFieldsValue()), e;
|
|
8
|
+
},
|
|
9
|
+
set(r, e) {
|
|
10
|
+
var t;
|
|
11
|
+
if (a(e)) return;
|
|
12
|
+
const o = (t = r.component) == null ? void 0 : t.exposed;
|
|
13
|
+
o && o.apForm.value.setFieldsValue(e);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
n as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { Recordable } from '../../../type';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
get(node: VNode): {
|
|
5
|
+
data: Recordable | undefined;
|
|
6
|
+
pagination: Partial<{
|
|
7
|
+
current: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
}> | undefined;
|
|
10
|
+
};
|
|
11
|
+
set(node: VNode, { pagination, data }: Recordable): void;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isNoValue as s } from "../utils.mjs";
|
|
2
|
+
const p = {
|
|
3
|
+
get(o) {
|
|
4
|
+
var n;
|
|
5
|
+
let a, t;
|
|
6
|
+
const e = (n = o.component) == null ? void 0 : n.exposed;
|
|
7
|
+
return e && (a = e.getSearchFormValues(), t = e.getPaging()), { data: a, pagination: t };
|
|
8
|
+
},
|
|
9
|
+
set(o, { pagination: a, data: t }) {
|
|
10
|
+
var n;
|
|
11
|
+
if (s(t)) return;
|
|
12
|
+
const e = (n = o.component) == null ? void 0 : n.exposed;
|
|
13
|
+
e && (t && e.setSearchFormValues(t), a && e.setPaging(a));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
p as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isNoValue as a } from "../utils.mjs";
|
|
2
|
+
const i = {
|
|
3
|
+
get(n) {
|
|
4
|
+
var o;
|
|
5
|
+
let e = [];
|
|
6
|
+
const t = (o = n.component) == null ? void 0 : o.exposed;
|
|
7
|
+
return t && (e = t.getRowsData()), e;
|
|
8
|
+
},
|
|
9
|
+
set(n, e) {
|
|
10
|
+
var o;
|
|
11
|
+
if (a(e)) return;
|
|
12
|
+
const t = (o = n.component) == null ? void 0 : o.exposed;
|
|
13
|
+
t && t.setTableData(e);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
i as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isNoValue as n } from "../utils.mjs";
|
|
2
|
+
const l = {
|
|
3
|
+
get(o) {
|
|
4
|
+
var a;
|
|
5
|
+
let e = [];
|
|
6
|
+
const t = (a = o.component) == null ? void 0 : a.exposed;
|
|
7
|
+
return t && (e = t.getRowsData()), e;
|
|
8
|
+
},
|
|
9
|
+
set(o, e) {
|
|
10
|
+
var a;
|
|
11
|
+
if (n(e)) return;
|
|
12
|
+
const t = (a = o.component) == null ? void 0 : a.exposed;
|
|
13
|
+
t && t.setTableData(e);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import r from "./ap-form-keeper.mjs";
|
|
2
|
+
import e from "./ap-grid-keeper.mjs";
|
|
3
|
+
import p from "./ap-table-keeper.mjs";
|
|
4
|
+
import o from "./ap-search-form-keeper.mjs";
|
|
5
|
+
import m from "./tab-keeper.mjs";
|
|
6
|
+
import i from "./ap-view-keeper.mjs";
|
|
7
|
+
import t from "./edit-table-keeper.mjs";
|
|
8
|
+
import a from "./ap-radio-group-keeper.mjs";
|
|
9
|
+
import f from "./edit-grid-keeper.mjs";
|
|
10
|
+
import d from "./step-keeper.mjs";
|
|
11
|
+
import K from "./ap-list-keeper.mjs";
|
|
12
|
+
const w = {
|
|
13
|
+
ApList: K,
|
|
14
|
+
ApForm: r,
|
|
15
|
+
ApGrid: e,
|
|
16
|
+
ApTable: p,
|
|
17
|
+
ATabs: m,
|
|
18
|
+
ApFormSearchForm: o,
|
|
19
|
+
ApView: i,
|
|
20
|
+
EditableTable: t,
|
|
21
|
+
ApRadioGroup: a,
|
|
22
|
+
EditableGrid: f,
|
|
23
|
+
ASteps: d
|
|
24
|
+
// AFormItem: formItemKeeper
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
w as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isNoValue as o } from "../utils.mjs";
|
|
2
|
+
const s = {
|
|
3
|
+
get(n) {
|
|
4
|
+
var r;
|
|
5
|
+
let e;
|
|
6
|
+
const t = (r = n.component) == null ? void 0 : r.proxy;
|
|
7
|
+
return t && (e = t.current), e;
|
|
8
|
+
},
|
|
9
|
+
set(n, e) {
|
|
10
|
+
if (o(e)) return;
|
|
11
|
+
const t = n.component;
|
|
12
|
+
t && (t.emit("update:current", e), t.emit("change", e));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
s as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isNoValue as a } from "../utils.mjs";
|
|
2
|
+
const i = {
|
|
3
|
+
get(n) {
|
|
4
|
+
var o;
|
|
5
|
+
let e;
|
|
6
|
+
const t = (o = n.component) == null ? void 0 : o.proxy;
|
|
7
|
+
return t && (e = t.activeKey), e;
|
|
8
|
+
},
|
|
9
|
+
set(n, e) {
|
|
10
|
+
if (a(e)) return;
|
|
11
|
+
const t = n.component;
|
|
12
|
+
t && (t.emit("update:activeKey", e), t.emit("change", e));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
i as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentInternalInstance, VNode, VNodeArrayChildren, VNodeChild, VNodeNormalizedChildren, RendererNode, RendererElement } from 'vue';
|
|
2
|
+
import { MatchPattern, PropertyKeyType } from './interface';
|
|
3
|
+
export declare const getVNodeChirldren: (conponentInstance: ComponentInternalInstance) => VNodeArrayChildren | undefined;
|
|
4
|
+
export declare const getFirstVNodeChirldren: (childVNodes?: VNodeArrayChildren) => string | number | true | VNodeArrayChildren | VNode< RendererNode, RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}> | undefined;
|
|
7
|
+
export declare const getVNodeObjByVNodeChild: (childVNode: VNodeChild) => VNode< RendererNode, RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}> | undefined;
|
|
10
|
+
export declare const getVNodeObjByVNodeArrayChildren: (childVNode: VNodeNormalizedChildren) => VNode | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* 获取当前组件的key,如果没有以组件name代替(兼容处理)
|
|
13
|
+
* @param node
|
|
14
|
+
* @param currentModuleKey
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export declare const getAliveKey: (node: VNode, currentModuleKey: PropertyKeyType) => {
|
|
18
|
+
VnodeName: string;
|
|
19
|
+
vnodeSubPath: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const getComponentName: (Component: VNode) => {};
|
|
22
|
+
export declare function matches(pattern: MatchPattern, name: string): boolean;
|
|
23
|
+
export declare function isNoValue(data: any): boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { isArray as f, isString as y, isRegExp as n } from "lodash-unified";
|
|
2
|
+
const l = (r) => {
|
|
3
|
+
var u;
|
|
4
|
+
const e = (u = r == null ? void 0 : r.subTree) == null ? void 0 : u.children;
|
|
5
|
+
if (typeof e == "string") return;
|
|
6
|
+
const t = Array.isArray(e) ? e : null;
|
|
7
|
+
if (t)
|
|
8
|
+
return t.filter((i) => !["string", "number", "boolean"].includes(typeof i)).filter((i) => i && typeof i == "object" && "type" in i ? i.type != Symbol.for("v-cmt") : !1);
|
|
9
|
+
}, b = (r) => {
|
|
10
|
+
if (r) {
|
|
11
|
+
if (r.length > 1)
|
|
12
|
+
throw Error("ApKeepAlive 组件只能有一个字节点");
|
|
13
|
+
if (r[0])
|
|
14
|
+
return r[0];
|
|
15
|
+
}
|
|
16
|
+
}, g = (r) => {
|
|
17
|
+
if (r && !(typeof r == "string" || typeof r == "number" || typeof r == "boolean" || Array.isArray(r)))
|
|
18
|
+
return r;
|
|
19
|
+
}, m = (r) => {
|
|
20
|
+
if (r && !(typeof r == "string" || typeof r == "number" || typeof r == "boolean" || Array.isArray(r) || !r.type))
|
|
21
|
+
return r;
|
|
22
|
+
}, p = (r, e) => {
|
|
23
|
+
const t = typeof r.type == "object" && "name" in r.type && r.type.name || "";
|
|
24
|
+
let u = t;
|
|
25
|
+
return r.key && r.key !== e && (u = r.key), { VnodeName: t, vnodeSubPath: u };
|
|
26
|
+
}, a = (r) => typeof r == "object" && "name" in r && r.name || "";
|
|
27
|
+
function s(r, e) {
|
|
28
|
+
return f(r) ? r.some((t) => s(t, e)) : y(r) ? r.split(",").includes(e) : n(r) ? (r.lastIndex = 0, r.test(e)) : !1;
|
|
29
|
+
}
|
|
30
|
+
function A(r) {
|
|
31
|
+
return [void 0, null].includes(r);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
p as getAliveKey,
|
|
35
|
+
a as getComponentName,
|
|
36
|
+
b as getFirstVNodeChirldren,
|
|
37
|
+
l as getVNodeChirldren,
|
|
38
|
+
m as getVNodeObjByVNodeArrayChildren,
|
|
39
|
+
g as getVNodeObjByVNodeChild,
|
|
40
|
+
A as isNoValue,
|
|
41
|
+
s as matches
|
|
42
|
+
};
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { defineComponent as n, createVNode as o, mergeProps as
|
|
1
|
+
import { defineComponent as n, createVNode as o, mergeProps as a, createTextVNode as l } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import { omit as
|
|
5
|
-
import { ApLabelGroupProps as
|
|
6
|
-
import
|
|
7
|
-
import { useNamespace as
|
|
3
|
+
import m from "../ApLabel.mjs";
|
|
4
|
+
import { omit as s } from "lodash-unified";
|
|
5
|
+
import { ApLabelGroupProps as c } from "../constans.mjs";
|
|
6
|
+
import "../../../ap-tag/index.mjs";
|
|
7
|
+
import { useNamespace as f } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import i from "../../../ap-tag/ap-tag.vue.mjs";
|
|
8
9
|
const {
|
|
9
10
|
b: p
|
|
10
|
-
} =
|
|
11
|
+
} = f("ap-label-group"), _ = /* @__PURE__ */ n({
|
|
11
12
|
name: "ApLabelGroup",
|
|
12
|
-
props:
|
|
13
|
+
props: c(),
|
|
13
14
|
setup(r) {
|
|
14
|
-
const
|
|
15
|
-
default: () => [u.text]
|
|
16
|
-
})) : e.customRender ? () => o("div", null, [e.customRender(r.record)]) : null;
|
|
15
|
+
const t = (e) => (r.tagValue || r.tagValue === 0) && e.tagConfig && e.tagConfig.length > 0 ? () => e.tagConfig.filter((u) => r.tagValue === u.value).map((u) => o(i, u, null)) : e.customRender ? () => o("div", null, [e.customRender(r.record)]) : null;
|
|
17
16
|
return () => o("div", {
|
|
18
17
|
class: p()
|
|
19
|
-
}, [r.columns ? r.columns.map((e, u) => o(
|
|
18
|
+
}, [r.columns ? r.columns.map((e, u) => o(m, a({
|
|
20
19
|
key: u,
|
|
21
20
|
show: r.value === e.value
|
|
22
|
-
},
|
|
23
|
-
custom:
|
|
24
|
-
})) : o("div", null, [
|
|
21
|
+
}, s(e, ["value", "tagConfig", "customRender"])), {
|
|
22
|
+
custom: t(e)
|
|
23
|
+
})) : o("div", null, [l("columns数组不能为空")])]);
|
|
25
24
|
}
|
|
26
25
|
});
|
|
27
26
|
export {
|
|
28
|
-
|
|
27
|
+
_ as default
|
|
29
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BadgeProps } from '@aplus-frontend/antdv';
|
|
2
2
|
import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
|
|
3
|
-
import {
|
|
3
|
+
import { ApTagProps } from '../../ap-tag';
|
|
4
4
|
import { VNode, VNodeChild } from 'vue';
|
|
5
5
|
type Recordable = Record<string, any>;
|
|
6
6
|
export type ApLabelProps = BadgeProps & Partial<{
|
|
@@ -12,9 +12,8 @@ export type ApLabelProps = BadgeProps & Partial<{
|
|
|
12
12
|
show: boolean;
|
|
13
13
|
toolTipBgColor: string;
|
|
14
14
|
}>;
|
|
15
|
-
export type tagConfigKey =
|
|
15
|
+
export type tagConfigKey = ApTagProps & {
|
|
16
16
|
value: number | string | undefined | null;
|
|
17
|
-
text: string;
|
|
18
17
|
};
|
|
19
18
|
export type ApLabelGroupItemProps<T extends Recordable = Recordable> = ApLabelProps & {
|
|
20
19
|
value?: string | number | null | undefined;
|