@aplus-frontend/ui 0.0.1-beta.7 → 0.0.1-beta.8
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 +165 -160
- package/es/src/ap-action/group/index.vue.mjs +22 -18
- package/es/src/ap-action/index.mjs +7 -4
- package/es/src/ap-action/interface.mjs +1 -0
- package/es/src/ap-action/item/index.vue.mjs +2 -47
- package/es/src/ap-action/item/index.vue2.mjs +47 -2
- package/es/src/ap-action/item-dropdown/index.vue.mjs +14 -11
- package/es/src/ap-action/item-modal/index.vue.mjs +9 -8
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +10 -8
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
- package/es/src/ap-field/date/index.vue.mjs +19 -20
- package/es/src/ap-field/date-range/index.vue.mjs +9 -9
- package/es/src/ap-field/index.d.ts +12 -0
- package/es/src/ap-field/index.mjs +42 -0
- package/es/src/ap-field/interface.d.ts +3 -2
- package/es/src/ap-field/interface.mjs +1 -0
- package/es/src/ap-field/number/helper.mjs +2 -2
- package/es/src/ap-field/number/index.vue.mjs +30 -32
- package/es/src/ap-field/radio/index.vue.mjs +40 -34
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +6 -6
- package/es/src/ap-field/text/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
- package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
- package/es/src/ap-form/ap-form-item.vue2.mjs +74 -2
- package/es/src/ap-form/components/interface.d.ts +0 -0
- package/es/src/ap-form/index.d.ts +11 -1682
- package/es/src/ap-form/index.mjs +11 -7
- package/es/src/base-button/button.vue.mjs +2 -58
- package/es/src/base-button/button.vue2.mjs +59 -2
- package/es/src/base-button/index.mjs +8 -8
- package/es/src/base-button/interface.mjs +1 -0
- package/es/src/base-button/modal-button.vue.mjs +12 -11
- package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
- package/es/src/basic/arrow.vue.mjs +2 -38
- package/es/src/basic/arrow.vue2.mjs +38 -2
- package/es/src/basic/help.vue.mjs +2 -96
- package/es/src/basic/help.vue2.mjs +96 -2
- package/es/src/basic/index.mjs +11 -7
- package/es/src/basic/interface.mjs +1 -0
- package/es/src/basic/title.vue.mjs +2 -32
- package/es/src/basic/title.vue2.mjs +33 -2
- package/es/src/config-provider/config-provider.mjs +4 -4
- package/es/src/config-provider/hooks/use-locale.mjs +1 -0
- package/es/src/config-provider/index.mjs +26 -13
- package/es/src/container/collapse/header.vue.mjs +2 -49
- package/es/src/container/collapse/header.vue2.mjs +49 -2
- package/es/src/container/collapse/index.vue.mjs +2 -85
- package/es/src/container/collapse/index.vue2.mjs +86 -2
- package/es/src/container/index.mjs +8 -5
- package/es/src/container/interface.mjs +1 -0
- package/es/src/container/scroll-container.vue.mjs +2 -60
- package/es/src/container/scroll-container.vue2.mjs +60 -2
- package/es/src/count-down/button.vue.mjs +2 -44
- package/es/src/count-down/button.vue2.mjs +44 -2
- package/es/src/count-down/index.mjs +8 -5
- package/es/src/count-down/input.vue.mjs +2 -44
- package/es/src/count-down/input.vue2.mjs +45 -2
- package/es/src/count-down/interface.mjs +1 -0
- package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
- package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
- package/es/src/cropper/cropper-image.vue.mjs +2 -129
- package/es/src/cropper/cropper-image.vue2.mjs +129 -2
- package/es/src/cropper/cropper-modal.vue.mjs +2 -270
- package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
- package/es/src/cropper/index.mjs +8 -5
- package/es/src/cropper/interface.mjs +1 -0
- package/es/src/description/description.vue.mjs +2 -169
- package/es/src/description/description.vue2.mjs +169 -2
- package/es/src/description/index.mjs +8 -5
- package/es/src/description/interface.mjs +1 -0
- package/es/src/dropdown/dropdown.vue.mjs +2 -92
- package/es/src/dropdown/dropdown.vue2.mjs +92 -2
- package/es/src/dropdown/index.mjs +5 -3
- package/es/src/dropdown/interface.mjs +1 -0
- package/es/src/hooks/index.mjs +6 -0
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/icon/icon.vue.mjs +2 -66
- package/es/src/icon/icon.vue2.mjs +67 -2
- package/es/src/icon/index.mjs +8 -5
- package/es/src/icon/interface.mjs +1 -0
- package/es/src/icon/svg-icon.vue.mjs +2 -32
- package/es/src/icon/svg-icon.vue2.mjs +32 -2
- package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
- package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
- package/es/src/icon-picker/index.mjs +7 -5
- package/es/src/icon-picker/interface.mjs +1 -0
- package/es/src/index.mjs +161 -155
- package/es/src/locale/index.mjs +7 -0
- package/es/src/locale/interface.mjs +1 -0
- package/es/src/modal/basic.vue.mjs +2 -195
- package/es/src/modal/basic.vue2.mjs +199 -2
- package/es/src/modal/components/modal-close.vue.mjs +2 -72
- package/es/src/modal/components/modal-close.vue2.mjs +72 -2
- package/es/src/modal/components/modal-footer.vue.mjs +2 -43
- package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
- package/es/src/modal/components/modal-header.vue.mjs +1 -18
- package/es/src/modal/components/modal-header.vue2.mjs +18 -1
- package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
- package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
- package/es/src/modal/components/modal.mjs +6 -6
- package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
- package/es/src/modal/hooks/use-modal.mjs +8 -8
- package/es/src/modal/index.mjs +10 -7
- package/es/src/modal/interface.mjs +1 -0
- package/es/src/pro-form/component-map.mjs +56 -41
- package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
- package/es/src/pro-form/components/form-action.vue.mjs +2 -105
- package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
- package/es/src/pro-form/components/form-item.vue.mjs +2 -352
- package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
- package/es/src/pro-form/components/interface.mjs +1 -0
- package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
- package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
- package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
- package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
- package/es/src/pro-form/hooks/use-form.mjs +4 -4
- package/es/src/pro-form/index.d.ts +1 -0
- package/es/src/pro-form/index.mjs +34 -34
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-form/pro-form.vue.mjs +39 -37
- package/es/src/pro-form/types/form-item.mjs +1 -0
- package/es/src/pro-form/types/form.d.ts +8 -8
- package/es/src/pro-table/component-map.mjs +29 -37
- package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
- package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
- package/es/src/pro-table/components/editable/index.mjs +7 -6
- package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
- package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
- package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
- package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
- package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
- package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
- package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
- package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
- package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
- package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
- package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
- package/es/src/pro-table/components/table-action.vue.mjs +2 -2
- package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
- package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
- package/es/src/pro-table/components/table-header.vue.mjs +2 -86
- package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
- package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
- package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
- package/es/src/pro-table/components/table-title.vue.mjs +2 -41
- package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
- package/es/src/pro-table/hooks/use-columns.mjs +5 -5
- package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
- package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
- package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
- package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
- package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
- package/es/src/pro-table/index.mjs +12 -0
- package/es/src/pro-table/interface.mjs +1 -0
- package/es/src/pro-table/pro-table.vue.mjs +55 -56
- package/es/src/pro-table/types/pagination.mjs +1 -0
- package/es/src/pro-table/types/table-action.mjs +1 -0
- package/es/src/pro-table/types/table.mjs +1 -0
- package/es/src/prompt/dialog.vue.mjs +2 -61
- package/es/src/prompt/dialog.vue2.mjs +58 -2
- package/es/src/prompt/index.mjs +9 -8
- package/es/src/prompt/utils.d.ts +3 -3
- package/es/src/scroll-bar/bar-item.mjs +4 -4
- package/es/src/scroll-bar/index.mjs +5 -3
- package/es/src/scroll-bar/interface.mjs +1 -0
- package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
- package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
- package/es/src/strength-meter/index.mjs +5 -3
- package/es/src/strength-meter/interface.mjs +1 -0
- package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
- package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
- package/es/src/transition/index.mjs +21 -24
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/index.d.ts +1 -0
- package/es/src/utils/index.mjs +21 -8
- package/es/src/utils/tree.mjs +103 -13
- package/es/src/utils/uuid.mjs +15 -9
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/index.js +1 -1
- package/lib/src/ap-action/interface.js +1 -0
- package/lib/src/ap-action/item/index.vue.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +12 -0
- package/lib/src/ap-field/index.js +1 -0
- package/lib/src/ap-field/interface.d.ts +3 -2
- package/lib/src/ap-field/interface.js +1 -0
- package/lib/src/ap-field/number/helper.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
- package/lib/src/ap-form/components/interface.d.ts +0 -0
- package/lib/src/ap-form/index.d.ts +11 -1682
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/base-button/button.vue.js +1 -1
- package/lib/src/base-button/button.vue2.js +1 -1
- package/lib/src/base-button/index.js +1 -1
- package/lib/src/base-button/interface.js +1 -0
- package/lib/src/base-button/modal-button.vue.js +1 -1
- package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
- package/lib/src/basic/arrow.vue.js +1 -1
- package/lib/src/basic/arrow.vue2.js +1 -1
- package/lib/src/basic/help.vue.js +1 -1
- package/lib/src/basic/help.vue2.js +1 -1
- package/lib/src/basic/index.js +1 -1
- package/lib/src/basic/interface.js +1 -0
- package/lib/src/basic/title.vue.js +1 -1
- package/lib/src/basic/title.vue2.js +1 -1
- package/lib/src/config-provider/hooks/use-locale.js +1 -1
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/container/collapse/header.vue.js +1 -1
- package/lib/src/container/collapse/header.vue2.js +1 -1
- package/lib/src/container/collapse/index.vue.js +1 -1
- package/lib/src/container/collapse/index.vue2.js +1 -1
- package/lib/src/container/index.js +1 -1
- package/lib/src/container/interface.js +1 -0
- package/lib/src/container/scroll-container.vue.js +1 -1
- package/lib/src/container/scroll-container.vue2.js +1 -1
- package/lib/src/count-down/button.vue.js +1 -1
- package/lib/src/count-down/button.vue2.js +1 -1
- package/lib/src/count-down/index.js +1 -1
- package/lib/src/count-down/input.vue.js +1 -1
- package/lib/src/count-down/input.vue2.js +1 -1
- package/lib/src/count-down/interface.js +1 -0
- package/lib/src/cropper/cropper-avatar.vue.js +1 -1
- package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
- package/lib/src/cropper/cropper-image.vue.js +1 -1
- package/lib/src/cropper/cropper-image.vue2.js +1 -1
- package/lib/src/cropper/cropper-modal.vue.js +1 -1
- package/lib/src/cropper/cropper-modal.vue2.js +1 -1
- package/lib/src/cropper/index.js +1 -1
- package/lib/src/cropper/interface.js +1 -0
- package/lib/src/description/description.vue.js +1 -1
- package/lib/src/description/description.vue2.js +1 -1
- package/lib/src/description/index.js +1 -1
- package/lib/src/description/interface.js +1 -0
- package/lib/src/dropdown/dropdown.vue.js +1 -1
- package/lib/src/dropdown/dropdown.vue2.js +1 -1
- package/lib/src/dropdown/index.js +1 -1
- package/lib/src/dropdown/interface.js +1 -0
- package/lib/src/hooks/index.js +1 -0
- package/lib/src/icon/icon.vue.js +1 -1
- package/lib/src/icon/icon.vue2.js +1 -1
- package/lib/src/icon/index.js +1 -1
- package/lib/src/icon/interface.js +1 -0
- package/lib/src/icon/svg-icon.vue.js +1 -1
- package/lib/src/icon/svg-icon.vue2.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue.js +1 -1
- package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
- package/lib/src/icon-picker/index.js +1 -1
- package/lib/src/icon-picker/interface.js +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/index.js +1 -0
- package/lib/src/locale/interface.js +1 -0
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/basic.vue2.js +1 -1
- package/lib/src/modal/components/modal-close.vue.js +1 -1
- package/lib/src/modal/components/modal-close.vue2.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue2.js +1 -1
- package/lib/src/modal/components/modal-header.vue.js +1 -1
- package/lib/src/modal/components/modal-header.vue2.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
- package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/interface.js +1 -0
- package/lib/src/pro-form/component-map.js +1 -1
- package/lib/src/pro-form/components/form-action.vue.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/components/form-item.vue.js +1 -1
- package/lib/src/pro-form/components/form-item.vue2.js +1 -1
- package/lib/src/pro-form/components/interface.js +1 -0
- package/lib/src/pro-form/hooks/use-break-point.js +1 -1
- package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
- package/lib/src/pro-form/hooks/use-component-register.js +1 -0
- package/lib/src/pro-form/index.d.ts +1 -0
- package/lib/src/pro-form/index.js +1 -1
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-form/types/form-item.js +1 -0
- package/lib/src/pro-form/types/form.d.ts +8 -8
- package/lib/src/pro-table/component-map.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/editable/index.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue.js +1 -1
- package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue.js +1 -1
- package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
- package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
- package/lib/src/pro-table/components/table-action.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue.js +1 -1
- package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
- package/lib/src/pro-table/components/table-header.vue.js +1 -1
- package/lib/src/pro-table/components/table-header.vue2.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
- package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
- package/lib/src/pro-table/components/table-title.vue.js +1 -1
- package/lib/src/pro-table/components/table-title.vue2.js +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
- package/lib/src/pro-table/hooks/use-table-header.js +1 -1
- package/lib/src/pro-table/index.js +1 -0
- package/lib/src/pro-table/interface.js +1 -0
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/types/pagination.js +1 -0
- package/lib/src/pro-table/types/table-action.js +1 -0
- package/lib/src/pro-table/types/table.js +1 -0
- package/lib/src/prompt/dialog.vue.js +1 -1
- package/lib/src/prompt/dialog.vue2.js +1 -1
- package/lib/src/prompt/index.js +1 -1
- package/lib/src/prompt/utils.d.ts +3 -3
- package/lib/src/scroll-bar/index.js +1 -1
- package/lib/src/scroll-bar/interface.js +1 -0
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
- package/lib/src/strength-meter/index.js +1 -1
- package/lib/src/strength-meter/interface.js +1 -0
- package/lib/src/strength-meter/strength-meter.vue.js +1 -1
- package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
- package/lib/src/transition/index.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/utils/tree.js +1 -1
- package/lib/src/utils/uuid.js +1 -1
- package/package.json +3 -3
|
@@ -1,42 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../config-provider/index.mjs";
|
|
3
|
-
import { Alert as k, Button as y } from "ant-design-vue";
|
|
4
|
-
import "./style/table-selection-bar.css";
|
|
5
|
-
import { useLocale as B } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
-
import { useNamespace as h } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
const w = { key: 0 }, C = { key: 1 }, D = /* @__PURE__ */ p({
|
|
8
|
-
name: "TableSelectBar",
|
|
9
|
-
__name: "table-selection-bar",
|
|
10
|
-
props: {
|
|
11
|
-
count: { default: () => 0 },
|
|
12
|
-
clearSelectedRowKeys: {}
|
|
13
|
-
},
|
|
14
|
-
setup(n) {
|
|
15
|
-
const { t } = B(), { b: r } = h("basic-table-select-bar"), o = n;
|
|
16
|
-
return (i, S) => (a(), m(e(k), {
|
|
17
|
-
type: "info",
|
|
18
|
-
showIcon: "",
|
|
19
|
-
class: u(e(r)())
|
|
20
|
-
}, {
|
|
21
|
-
message: s(() => [
|
|
22
|
-
o.count > 0 ? (a(), l("span", w, c(e(t)("ap.table.selectionBarTips", { count: o.count })), 1)) : (a(), l("span", C, c(e(t)("ap.table.selectionBarEmpty")), 1)),
|
|
23
|
-
f(_(e(y), {
|
|
24
|
-
type: "link",
|
|
25
|
-
onClick: i.clearSelectedRowKeys,
|
|
26
|
-
size: "small"
|
|
27
|
-
}, {
|
|
28
|
-
default: s(() => [
|
|
29
|
-
b(c(e(t)("ap.table.selectionBarClear")), 1)
|
|
30
|
-
]),
|
|
31
|
-
_: 1
|
|
32
|
-
}, 8, ["onClick"]), [
|
|
33
|
-
[d, o.count > 0]
|
|
34
|
-
])
|
|
35
|
-
]),
|
|
36
|
-
_: 1
|
|
37
|
-
}, 8, ["class"]));
|
|
38
|
-
}
|
|
39
|
-
});
|
|
1
|
+
import f from "./table-selection-bar.vue2.mjs";
|
|
40
2
|
export {
|
|
41
|
-
|
|
3
|
+
f as default
|
|
42
4
|
};
|
|
@@ -1,4 +1,42 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as p, openBlock as a, createBlock as m, unref as e, normalizeClass as u, withCtx as s, createElementBlock as l, toDisplayString as c, withDirectives as f, createVNode as _, createTextVNode as b, vShow as d } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
|
+
import { Alert as k, Button as y } from "ant-design-vue";
|
|
4
|
+
import "./style/table-selection-bar.css";
|
|
5
|
+
import { useLocale as B } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useNamespace as h } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const w = { key: 0 }, C = { key: 1 }, D = /* @__PURE__ */ p({
|
|
8
|
+
name: "TableSelectBar",
|
|
9
|
+
__name: "table-selection-bar",
|
|
10
|
+
props: {
|
|
11
|
+
count: { default: () => 0 },
|
|
12
|
+
clearSelectedRowKeys: {}
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
const { t } = B(), { b: r } = h("basic-table-select-bar"), o = n;
|
|
16
|
+
return (i, S) => (a(), m(e(k), {
|
|
17
|
+
type: "info",
|
|
18
|
+
showIcon: "",
|
|
19
|
+
class: u(e(r)())
|
|
20
|
+
}, {
|
|
21
|
+
message: s(() => [
|
|
22
|
+
o.count > 0 ? (a(), l("span", w, c(e(t)("ap.table.selectionBarTips", { count: o.count })), 1)) : (a(), l("span", C, c(e(t)("ap.table.selectionBarEmpty")), 1)),
|
|
23
|
+
f(_(e(y), {
|
|
24
|
+
type: "link",
|
|
25
|
+
onClick: i.clearSelectedRowKeys,
|
|
26
|
+
size: "small"
|
|
27
|
+
}, {
|
|
28
|
+
default: s(() => [
|
|
29
|
+
b(c(e(t)("ap.table.selectionBarClear")), 1)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}, 8, ["onClick"]), [
|
|
33
|
+
[d, o.count > 0]
|
|
34
|
+
])
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 8, ["class"]));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
2
40
|
export {
|
|
3
|
-
|
|
41
|
+
D as default
|
|
4
42
|
};
|
|
@@ -1,43 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BasicTitle as y } from "../../basic/index.mjs";
|
|
3
|
-
import "../../config-provider/index.mjs";
|
|
4
|
-
import { isFunction as b } from "lodash-unified";
|
|
5
|
-
import "./style/table-title.css";
|
|
6
|
-
import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
const M = /* @__PURE__ */ c({
|
|
8
|
-
name: "BasicTableTitle",
|
|
9
|
-
__name: "table-title",
|
|
10
|
-
props: {
|
|
11
|
-
title: {
|
|
12
|
-
type: [Function, String]
|
|
13
|
-
},
|
|
14
|
-
getSelectRows: {
|
|
15
|
-
type: Function
|
|
16
|
-
},
|
|
17
|
-
helpMessage: {
|
|
18
|
-
type: [String, Array]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(t) {
|
|
22
|
-
const l = t, { b: r } = S("basic-table-title"), o = n(() => {
|
|
23
|
-
const { title: e, getSelectRows: s = () => [] } = l;
|
|
24
|
-
let a = e;
|
|
25
|
-
return b(e) && (a = e({
|
|
26
|
-
selectRows: s()
|
|
27
|
-
})), a;
|
|
28
|
-
});
|
|
29
|
-
return (e, s) => o.value ? (p(), m(i(y), {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: u(i(r)()),
|
|
32
|
-
helpMessage: t.helpMessage
|
|
33
|
-
}, {
|
|
34
|
-
default: f(() => [
|
|
35
|
-
g(d(o.value), 1)
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
}, 8, ["class", "helpMessage"])) : h("", !0);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
1
|
+
import f from "./table-title.vue2.mjs";
|
|
41
2
|
export {
|
|
42
|
-
|
|
3
|
+
f as default
|
|
43
4
|
};
|
|
@@ -1,4 +1,43 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as c, computed as n, openBlock as p, createBlock as m, unref as i, normalizeClass as u, withCtx as f, createTextVNode as g, toDisplayString as d, createCommentVNode as h } from "vue";
|
|
2
|
+
import { BasicTitle as y } from "../../basic/index.mjs";
|
|
3
|
+
import "../../config-provider/index.mjs";
|
|
4
|
+
import { isFunction as b } from "lodash-unified";
|
|
5
|
+
import "./style/table-title.css";
|
|
6
|
+
import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const M = /* @__PURE__ */ c({
|
|
8
|
+
name: "BasicTableTitle",
|
|
9
|
+
__name: "table-title",
|
|
10
|
+
props: {
|
|
11
|
+
title: {
|
|
12
|
+
type: [Function, String]
|
|
13
|
+
},
|
|
14
|
+
getSelectRows: {
|
|
15
|
+
type: Function
|
|
16
|
+
},
|
|
17
|
+
helpMessage: {
|
|
18
|
+
type: [String, Array]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(t) {
|
|
22
|
+
const l = t, { b: r } = S("basic-table-title"), o = n(() => {
|
|
23
|
+
const { title: e, getSelectRows: s = () => [] } = l;
|
|
24
|
+
let a = e;
|
|
25
|
+
return b(e) && (a = e({
|
|
26
|
+
selectRows: s()
|
|
27
|
+
})), a;
|
|
28
|
+
});
|
|
29
|
+
return (e, s) => o.value ? (p(), m(i(y), {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: u(i(r)()),
|
|
32
|
+
helpMessage: t.helpMessage
|
|
33
|
+
}, {
|
|
34
|
+
default: f(() => [
|
|
35
|
+
g(d(o.value), 1)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 8, ["class", "helpMessage"])) : h("", !0);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
2
41
|
export {
|
|
3
|
-
|
|
42
|
+
M as default
|
|
4
43
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unref as C, ref as K, computed as v, reactive as V, watch as W, toRaw as X } from "vue";
|
|
2
2
|
import { renderEditCell as q } from "../components/editable/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { isBoolean as b, cloneDeep as F, isFunction as O, isArray as S, isString as R, isEqual as Z, isMap as $ } from "lodash-unified";
|
|
4
|
+
import { DEFAULT_ALIGN as J, ACTION_COLUMN_FLAG as A, INDEX_COLUMN_FLAG as w } from "../const.mjs";
|
|
5
5
|
import Q from "dayjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { useGlobalConfig as Y } from "../../config-provider/hooks/use-global-config.mjs";
|
|
@@ -64,14 +64,14 @@ function dn(t, r) {
|
|
|
64
64
|
text: y,
|
|
65
65
|
record: B,
|
|
66
66
|
index: H
|
|
67
|
-
}) => tn(y, a, B, H)), (m || d) && !x && (o.customRender = q(o)),
|
|
67
|
+
}) => tn(y, a, B, H)), (m || d) && !x && (o.customRender = q(o)), V(o);
|
|
68
68
|
};
|
|
69
69
|
return F(n).filter((o) => I(o.auth) && j(o)).map((o) => {
|
|
70
70
|
var i;
|
|
71
71
|
return (i = o.children) != null && i.length && (o.children = o.children.map(e)), e(o);
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
|
-
|
|
74
|
+
W(
|
|
75
75
|
() => C(t).columns,
|
|
76
76
|
(n) => {
|
|
77
77
|
h.value = n, f = (n == null ? void 0 : n.filter((e) => !e.flag)) ?? [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unref as r, reactive as ue, ref as Y, watchEffect as ie, watch as fe, computed as E, onMounted as se } from "vue";
|
|
2
2
|
import { useTimeoutFn as he } from "@vueuse/core";
|
|
3
3
|
import { buildUUID as Z } from "../../utils/uuid.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { isFunction as b, cloneDeep as de, isObject as ge, isBoolean as q, merge as me, get as x } from "lodash-unified";
|
|
5
5
|
import { ROW_KEY as d } from "../const.mjs";
|
|
6
6
|
import { parseRowKeyValue as J } from "../helper.mjs";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createVNode as s, ref as c, watch as d, unref as t, computed as w } from "vue";
|
|
2
2
|
import { LeftOutlined as v, RightOutlined as z } from "@ant-design/icons-vue";
|
|
3
3
|
import { isBoolean as a } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -9,12 +9,12 @@ function I({
|
|
|
9
9
|
type: e,
|
|
10
10
|
originalElement: u
|
|
11
11
|
}) {
|
|
12
|
-
return e === "prev" ? o === 0 ? null :
|
|
12
|
+
return e === "prev" ? o === 0 ? null : s(v, null, null) : e === "next" ? o === 1 ? null : s(z, null, null) : u;
|
|
13
13
|
}
|
|
14
14
|
function A(o) {
|
|
15
|
-
const e =
|
|
15
|
+
const e = c({}), {
|
|
16
16
|
t: u
|
|
17
|
-
} = O(), f = b(), g = f.value.table.defaultPageSize, m = f.value.table.pageSizeOptions, r =
|
|
17
|
+
} = O(), f = b(), g = f.value.table.defaultPageSize, m = f.value.table.pageSizeOptions, r = c(!0);
|
|
18
18
|
d(() => t(o).pagination, (n) => {
|
|
19
19
|
!a(n) && n && (e.value = {
|
|
20
20
|
...t(e),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { computed as c, unref as t, h as y, watchEffect as b, nextTick as
|
|
2
|
-
import
|
|
3
|
-
import { useEventListener as
|
|
4
|
-
|
|
1
|
+
import { computed as c, unref as t, h as y, watchEffect as b, nextTick as p } from "vue";
|
|
2
|
+
import "../components/table-footer.vue.mjs";
|
|
3
|
+
import { useEventListener as d } from "@aplus-frontend/hooks";
|
|
4
|
+
import h from "../components/table-footer.vue2.mjs";
|
|
5
|
+
function g(n, s, m, u) {
|
|
5
6
|
const a = c(() => (t(u) || []).length === 0), i = c(() => {
|
|
6
7
|
const { summaryFunc: r, showSummary: e, summaryData: o } = t(n);
|
|
7
8
|
return e && !t(a) ? () => y(h, { summaryFunc: r, summaryData: o, scroll: t(s) }) : void 0;
|
|
@@ -11,14 +12,14 @@ function E(n, s, m, u) {
|
|
|
11
12
|
});
|
|
12
13
|
function f() {
|
|
13
14
|
const { showSummary: r } = t(n);
|
|
14
|
-
!r || t(a) ||
|
|
15
|
+
!r || t(a) || p(() => {
|
|
15
16
|
const e = t(m);
|
|
16
17
|
if (!e)
|
|
17
18
|
return;
|
|
18
19
|
const o = e.$el.querySelector(
|
|
19
20
|
" .ant-table-content, .ant-table-body"
|
|
20
21
|
);
|
|
21
|
-
|
|
22
|
+
d({
|
|
22
23
|
el: o,
|
|
23
24
|
name: "scroll",
|
|
24
25
|
listener: () => {
|
|
@@ -35,5 +36,5 @@ function E(n, s, m, u) {
|
|
|
35
36
|
return { getFooterProps: i };
|
|
36
37
|
}
|
|
37
38
|
export {
|
|
38
|
-
|
|
39
|
+
g as useTableFooter
|
|
39
40
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import
|
|
3
|
-
import { isString as
|
|
1
|
+
import { computed as b, unref as g, h as u } from "vue";
|
|
2
|
+
import "../components/table-header.vue.mjs";
|
|
3
|
+
import { isString as T } from "lodash-unified";
|
|
4
4
|
import { getSlot as r } from "../../utils/slot.mjs";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import d from "../components/table-header.vue2.mjs";
|
|
6
|
+
function y(n, e, i, o) {
|
|
7
|
+
return { getHeaderProps: b(() => {
|
|
7
8
|
const {
|
|
8
9
|
title: t,
|
|
9
10
|
showTableSetting: l,
|
|
10
11
|
titleHelpMessage: c,
|
|
11
12
|
tableSetting: p,
|
|
12
|
-
showSelectionBar:
|
|
13
|
-
} =
|
|
14
|
-
return a && !
|
|
13
|
+
showSelectionBar: m
|
|
14
|
+
} = g(n), a = !e.tableTitle && !t && !e.toolbar && !l;
|
|
15
|
+
return a && !T(t) ? {} : {
|
|
15
16
|
title: a ? null : () => u(
|
|
16
|
-
|
|
17
|
+
d,
|
|
17
18
|
{
|
|
18
19
|
title: t,
|
|
19
20
|
titleHelpMessage: c,
|
|
@@ -23,7 +24,7 @@ function H(n, e, i, o) {
|
|
|
23
24
|
//
|
|
24
25
|
clearSelectedRowKeys: o.clearSelectedRowKeys,
|
|
25
26
|
count: o.getSelectRowKeys().length,
|
|
26
|
-
showSelectionBar:
|
|
27
|
+
showSelectionBar: m
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
...e.toolbar ? {
|
|
@@ -41,5 +42,5 @@ function H(n, e, i, o) {
|
|
|
41
42
|
}) };
|
|
42
43
|
}
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
y as useTableHeader
|
|
45
46
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./pro-table.vue2.mjs";
|
|
2
|
+
import "./components/table-action.vue2.mjs";
|
|
3
|
+
import "./components/edit-table-header-icon.vue2.mjs";
|
|
4
|
+
import "./components/table-image.vue2.mjs";
|
|
5
|
+
import "./types/table.mjs";
|
|
6
|
+
import "./types/pagination.mjs";
|
|
7
|
+
import "./types/table-action.mjs";
|
|
8
|
+
import "./interface.mjs";
|
|
9
|
+
import { useTable as l } from "./hooks/use-table.mjs";
|
|
10
|
+
export {
|
|
11
|
+
l as useTable
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import { defineComponent as Je, useAttrs as Qe, useSlots as Ue, ref as d, computed as p, unref as e, inject as Xe, watchEffect as Ye, toRaw as O, openBlock as V, createElementBlock as L, normalizeClass as W, normalizeStyle as Ze, createVNode as D, mergeProps as j, createSlots as M, renderList as G, withCtx as S, renderSlot as C, normalizeProps as y, guardReactiveProps as b, createCommentVNode as et, withDirectives as tt, vShow as ot } from "vue";
|
|
2
2
|
import { Table as at } from "ant-design-vue";
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
3
|
+
import "../pro-form/index.mjs";
|
|
4
|
+
import "./components/header-cell.vue.mjs";
|
|
5
|
+
import { usePagination as nt } from "./hooks/use-pagination.mjs";
|
|
6
|
+
import { useColumns as lt } from "./hooks/use-columns.mjs";
|
|
7
|
+
import { useDataSource as rt } from "./hooks/use-data-source.mjs";
|
|
8
|
+
import { useLoading as st } from "./hooks/use-loading.mjs";
|
|
9
|
+
import { useRowSelection as it } from "./hooks/use-row-selection.mjs";
|
|
10
|
+
import { useTableScroll as ct } from "./hooks/use-table-scroll.mjs";
|
|
11
|
+
import { useTableScrollTo as mt } from "./hooks/use-scroll-to.mjs";
|
|
12
|
+
import { useCustomRow as ut } from "./hooks/use-custom-row.mjs";
|
|
13
|
+
import { useTableStyle as dt } from "./hooks/use-table-style.mjs";
|
|
14
|
+
import { useTableHeader as pt } from "./hooks/use-table-header.mjs";
|
|
15
|
+
import { useTableExpand as ft } from "./hooks/use-table-expand.mjs";
|
|
16
|
+
import { createTableContext as gt } from "./hooks/use-table-context.mjs";
|
|
17
|
+
import { useTableFooter as ht } from "./hooks/use-table-footer.mjs";
|
|
18
|
+
import { useTableForm as St } from "./hooks/use-table-form.mjs";
|
|
5
19
|
import "../config-provider/index.mjs";
|
|
6
|
-
import "
|
|
7
|
-
import "@aplus-frontend/hooks";
|
|
8
|
-
import st from "../pro-form/pro-form.vue.mjs";
|
|
9
|
-
import { useForm as it } from "../pro-form/hooks/use-form.mjs";
|
|
10
|
-
import ct from "./components/header-cell.vue.mjs";
|
|
11
|
-
import { usePagination as mt } from "./hooks/use-pagination.mjs";
|
|
12
|
-
import { useColumns as ut } from "./hooks/use-columns.mjs";
|
|
13
|
-
import { useDataSource as dt } from "./hooks/use-data-source.mjs";
|
|
14
|
-
import { useLoading as pt } from "./hooks/use-loading.mjs";
|
|
15
|
-
import { useRowSelection as ft } from "./hooks/use-row-selection.mjs";
|
|
16
|
-
import { useTableScroll as gt } from "./hooks/use-table-scroll.mjs";
|
|
17
|
-
import { useTableScrollTo as ht } from "./hooks/use-scroll-to.mjs";
|
|
18
|
-
import { useCustomRow as St } from "./hooks/use-custom-row.mjs";
|
|
19
|
-
import { useTableStyle as Ct } from "./hooks/use-table-style.mjs";
|
|
20
|
-
import { useTableHeader as yt } from "./hooks/use-table-header.mjs";
|
|
21
|
-
import { useTableExpand as bt } from "./hooks/use-table-expand.mjs";
|
|
22
|
-
import { createTableContext as wt } from "./hooks/use-table-context.mjs";
|
|
23
|
-
import { useTableFooter as Rt } from "./hooks/use-table-footer.mjs";
|
|
24
|
-
import { useTableForm as Ft } from "./hooks/use-table-form.mjs";
|
|
20
|
+
import { isString as Ct, isFunction as yt, omit as bt } from "lodash-unified";
|
|
25
21
|
import "./style/pro-table.css";
|
|
26
|
-
import { formTableDivideSpaceMap as
|
|
27
|
-
import { useGlobalConfig as
|
|
28
|
-
import { useNamespace as
|
|
29
|
-
|
|
22
|
+
import { formTableDivideSpaceMap as wt } from "./const.mjs";
|
|
23
|
+
import { useGlobalConfig as Rt } from "../config-provider/hooks/use-global-config.mjs";
|
|
24
|
+
import { useNamespace as Ft } from "../config-provider/hooks/use-namespace.mjs";
|
|
25
|
+
import { useForm as Tt } from "../pro-form/hooks/use-form.mjs";
|
|
26
|
+
import Bt from "../pro-form/pro-form.vue.mjs";
|
|
27
|
+
import vt from "./components/header-cell.vue2.mjs";
|
|
28
|
+
const Pt = "PageWrapperFixedHeight", oo = /* @__PURE__ */ Je({
|
|
30
29
|
name: "BasicTable",
|
|
31
30
|
__name: "pro-table",
|
|
32
31
|
props: {
|
|
@@ -99,36 +98,36 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
99
98
|
"columns-change"
|
|
100
99
|
],
|
|
101
100
|
setup(q, { expose: J, emit: Q }) {
|
|
102
|
-
const f =
|
|
103
|
-
...
|
|
104
|
-
sortFn:
|
|
105
|
-
filterFn:
|
|
106
|
-
fetchSetting:
|
|
107
|
-
size:
|
|
101
|
+
const f = Rt().value.table, l = q, r = Q, z = Qe(), x = Ue(), s = d(null), w = d([]), R = d(null), K = d(null), F = d(), { b: i, m: U } = Ft("pro-table"), [X, k] = Tt(), T = p(() => Ct(l.divideSpace) ? wt[l.divideSpace] : l.divideSpace), a = p(() => ({
|
|
102
|
+
...l,
|
|
103
|
+
sortFn: l.sortFn || f.defaultSortFn,
|
|
104
|
+
filterFn: l.filterFn || f.defaultFilterFn,
|
|
105
|
+
fetchSetting: l.fetchSetting || f.fetchSetting,
|
|
106
|
+
size: l.size || f.defaultSize,
|
|
108
107
|
...e(F)
|
|
109
108
|
})), Y = Xe(Pt, !1);
|
|
110
109
|
Ye(() => {
|
|
111
|
-
e(Y) &&
|
|
110
|
+
e(Y) && l.canResize && console.warn(
|
|
112
111
|
"'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)"
|
|
113
112
|
);
|
|
114
113
|
});
|
|
115
|
-
const { getLoading: E, setLoading: H } =
|
|
114
|
+
const { getLoading: E, setLoading: H } = st(a), {
|
|
116
115
|
getPaginationInfo: B,
|
|
117
116
|
getPagination: Z,
|
|
118
117
|
setPagination: _,
|
|
119
118
|
setShowPagination: ee,
|
|
120
119
|
getShowPagination: te
|
|
121
|
-
} =
|
|
120
|
+
} = nt(a), {
|
|
122
121
|
getRowSelection: oe,
|
|
123
122
|
getRowSelectionRef: A,
|
|
124
123
|
getSelectRows: ae,
|
|
125
124
|
setSelectedRows: ne,
|
|
126
125
|
clearSelectedRowKeys: g,
|
|
127
126
|
getSelectRowKeys: v,
|
|
128
|
-
deleteSelectRowByKey:
|
|
127
|
+
deleteSelectRowByKey: le,
|
|
129
128
|
setSelectedRowKeys: I
|
|
130
|
-
} =
|
|
131
|
-
handleTableChange:
|
|
129
|
+
} = it(a, w, r), {
|
|
130
|
+
handleTableChange: re,
|
|
132
131
|
getDataSourceRef: c,
|
|
133
132
|
getDataSource: se,
|
|
134
133
|
getRawDataSource: ie,
|
|
@@ -142,7 +141,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
142
141
|
reload: he,
|
|
143
142
|
getAutoCreateKey: Se,
|
|
144
143
|
updateTableData: Ce
|
|
145
|
-
} =
|
|
144
|
+
} = rt(
|
|
146
145
|
a,
|
|
147
146
|
{
|
|
148
147
|
tableData: w,
|
|
@@ -152,12 +151,12 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
152
151
|
getFieldsValue: k.getFieldsValue,
|
|
153
152
|
clearSelectedRowKeys: g
|
|
154
153
|
},
|
|
155
|
-
|
|
154
|
+
r
|
|
156
155
|
);
|
|
157
156
|
function ye(t, n, o, u) {
|
|
158
|
-
|
|
157
|
+
re(t, n, o), r("change", t, n, o);
|
|
159
158
|
const { onChange: P } = e(a);
|
|
160
|
-
P &&
|
|
159
|
+
P && yt(P) && P(t, n, o, u);
|
|
161
160
|
}
|
|
162
161
|
const {
|
|
163
162
|
getViewColumns: be,
|
|
@@ -168,7 +167,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
168
167
|
setColumns: Be,
|
|
169
168
|
getColumnsRef: ve,
|
|
170
169
|
getCacheColumns: Pe
|
|
171
|
-
} =
|
|
170
|
+
} = lt(a, B), { getScrollRef: N, redoHeight: $ } = ct(
|
|
172
171
|
a,
|
|
173
172
|
s,
|
|
174
173
|
ve,
|
|
@@ -176,28 +175,28 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
176
175
|
c,
|
|
177
176
|
R,
|
|
178
177
|
K
|
|
179
|
-
), { scrollTo: De } =
|
|
178
|
+
), { scrollTo: De } = mt(s, c), { customRow: ze } = ut(a, {
|
|
180
179
|
setSelectedRowKeys: I,
|
|
181
180
|
getSelectRowKeys: v,
|
|
182
181
|
clearSelectedRowKeys: g,
|
|
183
182
|
getAutoCreateKey: Se,
|
|
184
|
-
emit:
|
|
185
|
-
}), { getRowClassName: xe } =
|
|
183
|
+
emit: r
|
|
184
|
+
}), { getRowClassName: xe } = dt(a, i()), {
|
|
186
185
|
getExpandOption: Ke,
|
|
187
186
|
expandAll: ke,
|
|
188
187
|
expandRows: Ee,
|
|
189
188
|
collapseRows: He,
|
|
190
189
|
collapseAll: _e,
|
|
191
190
|
handleTableExpand: Ae
|
|
192
|
-
} =
|
|
191
|
+
} = ft(a, w, r), Ie = {
|
|
193
192
|
onColumnsChange: (t) => {
|
|
194
193
|
var n, o;
|
|
195
|
-
|
|
194
|
+
r("columns-change", t), (o = (n = e(a)).onColumnsChange) == null || o.call(n, t);
|
|
196
195
|
}
|
|
197
196
|
}, Ne = {
|
|
198
197
|
clearSelectedRowKeys: g,
|
|
199
198
|
getSelectRowKeys: v
|
|
200
|
-
}, { getHeaderProps: $e } =
|
|
199
|
+
}, { getHeaderProps: $e } = pt(a, x, Ie, Ne), { getFooterProps: Oe } = ht(
|
|
201
200
|
a,
|
|
202
201
|
N,
|
|
203
202
|
s,
|
|
@@ -207,7 +206,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
207
206
|
replaceFormSlotKey: Le,
|
|
208
207
|
getFormSlotKeys: We,
|
|
209
208
|
handleSearchInfoChange: je
|
|
210
|
-
} =
|
|
209
|
+
} = St(a, x, fe, E), m = p(() => {
|
|
211
210
|
const t = e(c);
|
|
212
211
|
let n = {
|
|
213
212
|
...z,
|
|
@@ -225,7 +224,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
225
224
|
footer: e(Oe),
|
|
226
225
|
...e(Ke)
|
|
227
226
|
};
|
|
228
|
-
return n =
|
|
227
|
+
return n = bt(n, ["class", "style", "onChange"]), n;
|
|
229
228
|
}), Me = p(() => {
|
|
230
229
|
const t = e(m);
|
|
231
230
|
return [
|
|
@@ -249,7 +248,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
249
248
|
setSelectedRows: ne,
|
|
250
249
|
clearSelectedRowKeys: g,
|
|
251
250
|
getSelectRowKeys: v,
|
|
252
|
-
deleteSelectRowByKey:
|
|
251
|
+
deleteSelectRowByKey: le,
|
|
253
252
|
setPagination: _,
|
|
254
253
|
setTableData: ce,
|
|
255
254
|
updateTableDataRecord: me,
|
|
@@ -267,7 +266,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
267
266
|
getPaginationRef: Z,
|
|
268
267
|
getColumns: we,
|
|
269
268
|
getCacheColumns: Pe,
|
|
270
|
-
emit:
|
|
269
|
+
emit: r,
|
|
271
270
|
updateTableData: Ce,
|
|
272
271
|
setShowPagination: ee,
|
|
273
272
|
getShowPagination: te,
|
|
@@ -280,7 +279,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
280
279
|
getSize: () => e(m).size,
|
|
281
280
|
setCacheColumns: Fe
|
|
282
281
|
};
|
|
283
|
-
return
|
|
282
|
+
return gt({ ...h, wrapRef: R, getBindValues: m }), r("register", h, k), J({ tableElRef: s, ...h }), (t, n) => (V(), L("div", {
|
|
284
283
|
ref_key: "wrapRef",
|
|
285
284
|
ref: R,
|
|
286
285
|
class: W(Me.value)
|
|
@@ -293,7 +292,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
293
292
|
]),
|
|
294
293
|
style: Ze({ marginBottom: T.value + "px" })
|
|
295
294
|
}, [
|
|
296
|
-
D(e(
|
|
295
|
+
D(e(Bt), j({
|
|
297
296
|
ref_key: "formRef",
|
|
298
297
|
ref: K,
|
|
299
298
|
submitOnReset: ""
|
|
@@ -322,7 +321,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
322
321
|
}), M({
|
|
323
322
|
headerCell: S(({ column: o }) => [
|
|
324
323
|
C(t.$slots, "headerCell", y(b({ column: o })), () => [
|
|
325
|
-
D(
|
|
324
|
+
D(vt, { column: o }, null, 8, ["column"])
|
|
326
325
|
])
|
|
327
326
|
]),
|
|
328
327
|
bodyCell: S((o) => [
|
|
@@ -343,5 +342,5 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
|
343
342
|
}
|
|
344
343
|
});
|
|
345
344
|
export {
|
|
346
|
-
|
|
345
|
+
oo as default
|
|
347
346
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|