@aplus-frontend/ui 6.17.2 → 6.19.0
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/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +11 -7
- package/es/src/ap-button/ap-button.vue.mjs +24 -20
- package/es/src/ap-button/ap-confirm-button.vue.mjs +15 -11
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +21 -18
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +2 -2
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.mjs +36 -36
- package/es/src/ap-field/number/index.vue.d.ts +29 -29
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +4 -4
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +17 -12
- package/es/src/ap-field/select/index.vue.d.ts +97 -97
- package/es/src/ap-field/select/index.vue.mjs +10 -10
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.d.ts +8 -8
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.d.ts +54 -54
- package/es/src/ap-field/text-area/index.vue.mjs +12 -12
- package/es/src/ap-field/tree-select/index.vue.d.ts +93 -93
- package/es/src/ap-field/tree-select/index.vue.mjs +19 -19
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +14 -15
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +18 -19
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +105 -105
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.d.ts +106 -106
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +48 -20
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +18 -19
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +26 -19
- package/es/src/ap-grid/utils/table.d.ts +1 -1
- package/es/src/ap-grid/utils/table.mjs +31 -31
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +331 -331
- package/es/src/ap-table/constants.mjs +45 -45
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-tag/ap-tag-group.vue.mjs +73 -78
- package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/es/src/ap-tag/ap-tag.vue.mjs +45 -30
- package/es/src/ap-tag/interface.d.ts +6 -0
- package/es/src/ap-tag/utils.d.ts +1 -0
- package/es/src/ap-tag/utils.mjs +12 -0
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +6 -6
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +33 -11
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +9 -9
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -19
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +395 -144
- package/es/src/business/ap-draggable-grid/constans.d.ts +0 -8
- package/es/src/business/ap-draggable-grid/constans.mjs +0 -8
- package/es/src/business/ap-draggable-grid/index.d.ts +3 -31
- package/es/src/business/ap-draggable-grid/interface.d.ts +2 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +7 -7
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-keep-alive/keep-alive.mjs +3 -3
- package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/config-provider-props.d.ts +4 -5
- package/es/src/config-provider/config-provider.d.ts +8 -9
- package/es/src/config-provider/hooks/use-global-config.d.ts +4 -5
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +13 -14
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +5 -5
- package/es/src/utils/config-provider-preset.d.ts +5 -6
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
- package/lib/src/ap-button/ap-action-button.vue.js +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +29 -29
- package/lib/src/ap-field/rate/index.vue.d.ts +4 -4
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +97 -97
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/slider/index.vue.d.ts +8 -8
- package/lib/src/ap-field/text-area/index.vue.d.ts +54 -54
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +93 -93
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +14 -15
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +18 -19
- package/lib/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/select/index.vue.d.ts +105 -105
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +106 -106
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
- package/lib/src/ap-form/modal-form/index.vue.d.ts +48 -20
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
- package/lib/src/ap-form/search-form/index.vue.d.ts +18 -19
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/table.d.ts +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +331 -331
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +6 -0
- package/lib/src/ap-tag/utils.d.ts +1 -0
- package/lib/src/ap-tag/utils.js +1 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +33 -11
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -19
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/constans.d.ts +0 -8
- package/lib/src/business/ap-draggable-grid/constans.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +3 -31
- package/lib/src/business/ap-draggable-grid/interface.d.ts +2 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
- package/lib/src/business/batch-input-group/index.vue.d.ts +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
- package/lib/src/config-provider/config-provider-props.d.ts +4 -5
- package/lib/src/config-provider/config-provider.d.ts +8 -9
- package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -5
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +13 -14
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/config-provider-preset.d.ts +5 -6
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
- package/package.json +3 -3
- package/theme/antdv-override.css +2 -6
- package/theme/antdv-override.less +2 -6
- package/theme/ap-descriptions/ap-descriptions.css +1 -1
- package/theme/ap-descriptions/ap-descriptions.less +1 -1
- package/theme/ap-draggable-grid/ap-draggable-grid.css +4 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +4 -2
- package/theme/ap-label/ap-label.css +1 -0
- package/theme/ap-label/ap-label.less +1 -0
- package/theme/ap-tag/ap-tag.css +3 -1
- package/theme/ap-tag/ap-tag.less +3 -1
- package/theme/index.css +11 -11
- package/theme/antd-global-overwrite/admin/alert.css +0 -37
- package/theme/antd-global-overwrite/admin/alert.less +0 -51
- package/theme/antd-global-overwrite/admin/button.css +0 -27
- package/theme/antd-global-overwrite/admin/button.less +0 -31
- package/theme/antd-global-overwrite/admin/field.css +0 -42
- package/theme/antd-global-overwrite/admin/field.less +0 -43
- package/theme/antd-global-overwrite/admin/form.css +0 -57
- package/theme/antd-global-overwrite/admin/form.less +0 -97
- package/theme/antd-global-overwrite/admin/message.css +0 -10
- package/theme/antd-global-overwrite/admin/message.less +0 -13
- package/theme/antd-global-overwrite/admin/modal.css +0 -94
- package/theme/antd-global-overwrite/admin/modal.less +0 -128
- package/theme/antd-global-overwrite/admin/pagination.css +0 -122
- package/theme/antd-global-overwrite/admin/pagination.less +0 -91
- package/theme/antd-global-overwrite/admin/steps.css +0 -127
- package/theme/antd-global-overwrite/admin/steps.less +0 -197
- package/theme/antd-global-overwrite/admin/table.css +0 -78
- package/theme/antd-global-overwrite/admin/table.less +0 -62
- package/theme/antd-global-overwrite/admin/tooltip.css +0 -3
- package/theme/antd-global-overwrite/admin/tooltip.less +0 -3
- package/theme/antd-global-overwrite/aplus/alert.css +0 -40
- package/theme/antd-global-overwrite/aplus/alert.less +0 -55
- package/theme/antd-global-overwrite/aplus/button.css +0 -27
- package/theme/antd-global-overwrite/aplus/button.less +0 -31
- package/theme/antd-global-overwrite/aplus/field.css +0 -42
- package/theme/antd-global-overwrite/aplus/field.less +0 -43
- package/theme/antd-global-overwrite/aplus/form.css +0 -87
- package/theme/antd-global-overwrite/aplus/form.less +0 -133
- package/theme/antd-global-overwrite/aplus/message.css +0 -10
- package/theme/antd-global-overwrite/aplus/message.less +0 -13
- package/theme/antd-global-overwrite/aplus/modal.css +0 -87
- package/theme/antd-global-overwrite/aplus/modal.less +0 -120
- package/theme/antd-global-overwrite/aplus/pagination.css +0 -147
- package/theme/antd-global-overwrite/aplus/pagination.less +0 -108
- package/theme/antd-global-overwrite/aplus/steps.css +0 -125
- package/theme/antd-global-overwrite/aplus/steps.less +0 -198
- package/theme/antd-global-overwrite/aplus/table.css +0 -78
- package/theme/antd-global-overwrite/aplus/table.less +0 -61
- package/theme/antd-global-overwrite/aplus/tooltip.css +0 -3
- package/theme/antd-global-overwrite/aplus/tooltip.less +0 -3
- package/theme/ap-table/ap-table-pagination.css +0 -12
- package/theme/ap-table/ap-table-pagination.less +0 -14
- package/theme/ui-mode.css +0 -60
- package/theme/ui-mode.less +0 -109
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
4
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath,
|
|
5
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../../type';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
|
|
14
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -26,7 +25,7 @@ declare function __VLS_template(): {
|
|
|
26
25
|
$: ComponentInternalInstance;
|
|
27
26
|
$data: {};
|
|
28
27
|
$props: {
|
|
29
|
-
readonly size?:
|
|
28
|
+
readonly size?: SizeType;
|
|
30
29
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
31
30
|
readonly layout?: string | undefined;
|
|
32
31
|
readonly disabled?: boolean | undefined;
|
|
@@ -116,7 +115,7 @@ declare function __VLS_template(): {
|
|
|
116
115
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
117
116
|
readonly initialValues?: Recordable | undefined;
|
|
118
117
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
119
|
-
readonly syncToUrl?:
|
|
118
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
120
119
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
121
120
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
122
121
|
$attrs: {
|
|
@@ -321,8 +320,8 @@ declare function __VLS_template(): {
|
|
|
321
320
|
default: string | string[];
|
|
322
321
|
};
|
|
323
322
|
size: {
|
|
324
|
-
type: PropType<
|
|
325
|
-
default:
|
|
323
|
+
type: PropType<ButtonSize>;
|
|
324
|
+
default: ButtonSize;
|
|
326
325
|
};
|
|
327
326
|
disabled: {
|
|
328
327
|
type: BooleanConstructor;
|
|
@@ -349,7 +348,7 @@ declare function __VLS_template(): {
|
|
|
349
348
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
350
349
|
};
|
|
351
350
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
352
|
-
size:
|
|
351
|
+
size: ButtonSize;
|
|
353
352
|
onSubmit: (e: Event) => void;
|
|
354
353
|
disabled: boolean;
|
|
355
354
|
validateTrigger: string | string[];
|
|
@@ -641,8 +640,8 @@ declare function __VLS_template(): {
|
|
|
641
640
|
default: string | string[];
|
|
642
641
|
};
|
|
643
642
|
size: {
|
|
644
|
-
type: PropType<
|
|
645
|
-
default:
|
|
643
|
+
type: PropType<ButtonSize>;
|
|
644
|
+
default: ButtonSize;
|
|
646
645
|
};
|
|
647
646
|
disabled: {
|
|
648
647
|
type: BooleanConstructor;
|
|
@@ -669,7 +668,7 @@ declare function __VLS_template(): {
|
|
|
669
668
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
670
669
|
};
|
|
671
670
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
672
|
-
size:
|
|
671
|
+
size: ButtonSize;
|
|
673
672
|
onSubmit: (e: Event) => void;
|
|
674
673
|
disabled: boolean;
|
|
675
674
|
validateTrigger: string | string[];
|
|
@@ -865,7 +864,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
865
864
|
$: ComponentInternalInstance;
|
|
866
865
|
$data: {};
|
|
867
866
|
$props: {
|
|
868
|
-
readonly size?:
|
|
867
|
+
readonly size?: SizeType;
|
|
869
868
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
870
869
|
readonly layout?: string | undefined;
|
|
871
870
|
readonly disabled?: boolean | undefined;
|
|
@@ -955,7 +954,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
955
954
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
956
955
|
readonly initialValues?: Recordable | undefined;
|
|
957
956
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
958
|
-
readonly syncToUrl?:
|
|
957
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
959
958
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
960
959
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
961
960
|
$attrs: {
|
|
@@ -1160,8 +1159,8 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1160
1159
|
default: string | string[];
|
|
1161
1160
|
};
|
|
1162
1161
|
size: {
|
|
1163
|
-
type: PropType<
|
|
1164
|
-
default:
|
|
1162
|
+
type: PropType<ButtonSize>;
|
|
1163
|
+
default: ButtonSize;
|
|
1165
1164
|
};
|
|
1166
1165
|
disabled: {
|
|
1167
1166
|
type: BooleanConstructor;
|
|
@@ -1188,7 +1187,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1188
1187
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1189
1188
|
};
|
|
1190
1189
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
1191
|
-
size:
|
|
1190
|
+
size: ButtonSize;
|
|
1192
1191
|
onSubmit: (e: Event) => void;
|
|
1193
1192
|
disabled: boolean;
|
|
1194
1193
|
validateTrigger: string | string[];
|
|
@@ -1480,8 +1479,8 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1480
1479
|
default: string | string[];
|
|
1481
1480
|
};
|
|
1482
1481
|
size: {
|
|
1483
|
-
type: PropType<
|
|
1484
|
-
default:
|
|
1482
|
+
type: PropType<ButtonSize>;
|
|
1483
|
+
default: ButtonSize;
|
|
1485
1484
|
};
|
|
1486
1485
|
disabled: {
|
|
1487
1486
|
type: BooleanConstructor;
|
|
@@ -1508,7 +1507,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1508
1507
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1509
1508
|
};
|
|
1510
1509
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
1511
|
-
size:
|
|
1510
|
+
size: ButtonSize;
|
|
1512
1511
|
onSubmit: (e: Event) => void;
|
|
1513
1512
|
disabled: boolean;
|
|
1514
1513
|
validateTrigger: string | string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as ne, defineComponent as le, useSlots as re, ref as D, shallowRef as U, computed as S, unref as n, watch as W, createVNode as o, Fragment as _,
|
|
1
|
+
import { isVNode as ne, defineComponent as le, useSlots as re, ref as D, shallowRef as U, computed as S, unref as n, watch as W, createVNode as o, Fragment as _, createBlock as x, openBlock as d, mergeProps as se, withCtx as A, resolveDynamicComponent as B, createElementBlock as ie, renderList as ue } from "vue";
|
|
2
2
|
import { Col as w, Flex as I, Button as M, Row as ce } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, useSlots as f, cloneVNode as d, onMounted as V,
|
|
1
|
+
import { defineComponent as p, useSlots as f, cloneVNode as d, onMounted as V, createElementBlock as _, openBlock as l, Fragment as y, renderList as C, createBlock as F, resolveDynamicComponent as k } from "vue";
|
|
2
2
|
import { useInjectForm as g } from "../context.mjs";
|
|
3
3
|
import { isFunction as h, cloneDeep as w } from "lodash-unified";
|
|
4
4
|
import { isPromise as x } from "@fruits-chain/utils";
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> & {
|
|
10
|
+
}>) => VNode & {
|
|
13
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
12
|
};
|
|
15
13
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, useSlots as H, toRef as P, ref as h, unref as u, watch as A, nextTick as W,
|
|
1
|
+
import { defineComponent as K, useSlots as H, toRef as P, ref as h, unref as u, watch as A, nextTick as W, createBlock as G, openBlock as U, mergeProps as y, withCtx as g, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
|
|
2
2
|
import { ApForm as C } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isUndefined as Z, isNumber as m, cloneDeep as I, isArray as M, omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -265,7 +265,7 @@ const we = /* @__PURE__ */ K({
|
|
|
265
265
|
setTableData: E,
|
|
266
266
|
clear: z,
|
|
267
267
|
removeByKey: T
|
|
268
|
-
}), (e, a) => (
|
|
268
|
+
}), (e, a) => (U(), G(u(C).FormItem, y(e.formItem, {
|
|
269
269
|
name: e.name,
|
|
270
270
|
label: e.label
|
|
271
271
|
}), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditableGridExpose, EditableGridProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,9 +9,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
12
|
+
}>) => VNode & {
|
|
15
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
14
|
};
|
|
17
15
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u,
|
|
1
|
+
import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u, createBlock as J, openBlock as Q, withCtx as h, createVNode as b, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
|
|
2
2
|
import { ApForm as y } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isEqual as ae, isArray as g, isUndefined as oe, isNumber as C, cloneDeep as le, omit as ne } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -288,7 +288,7 @@ const Re = /* @__PURE__ */ $({
|
|
|
288
288
|
clear: U,
|
|
289
289
|
setTableData: I,
|
|
290
290
|
removeByKey: K
|
|
291
|
-
}), (e, t) => (
|
|
291
|
+
}), (e, t) => (Q(), J(u(y), {
|
|
292
292
|
ref_key: "formRef",
|
|
293
293
|
ref: i,
|
|
294
294
|
"initial-values": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeTableSlots } from 'vxe-table';
|
|
2
2
|
import { ApGridColumnType, ApGridExpose, ApGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<ApGridExpose>): void;
|
|
@@ -35,9 +35,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
35
35
|
}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}> & {
|
|
38
|
+
}>) => VNode & {
|
|
41
39
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
42
40
|
};
|
|
43
41
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $e, useSlots as We, getCurrentInstance as Me, ref as E, computed as n, unref as a, toRef as je, nextTick as He, watch as B, openBlock as d,
|
|
1
|
+
import { defineComponent as $e, useSlots as We, getCurrentInstance as Me, ref as E, computed as n, unref as a, toRef as je, nextTick as He, watch as B, createElementBlock as P, openBlock as d, normalizeStyle as V, normalizeClass as g, createCommentVNode as w, createElementVNode as b, createVNode as _, mergeProps as R, createSlots as te, withCtx as h, Fragment as oe, renderList as K, createBlock as f, resolveDynamicComponent as L, renderSlot as D, normalizeProps as qe, guardReactiveProps as Ue } from "vue";
|
|
2
2
|
import { VxeUI as ae, VxeTable as Ge, VxeColumn as re } from "vxe-table";
|
|
3
3
|
import "vxe-table/es/style.css";
|
|
4
4
|
import { isUndefined as x, isFunction as le, omit as Xe } from "lodash-unified";
|
|
@@ -7,12 +7,12 @@ import "../config-provider/index.mjs";
|
|
|
7
7
|
import { noRenderAsFormItemValueList as Qe } from "../ap-table/constants.mjs";
|
|
8
8
|
import { getColumnOrder as ne, updateFormProps as Ye, getFieldProps as Ze, getSearchFormItemRenderNode as et, recursionApColumns as se } from "../ap-table/utils.mjs";
|
|
9
9
|
import { useTablePaging as tt } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { Spin as ot, Empty as ie, Pagination as at } from "@aplus-frontend/antdv";
|
|
11
11
|
import { useInnerParams as rt } from "./hooks/use-inner-params.mjs";
|
|
12
12
|
import { toVxeProps as lt, getRowExpandProps as nt, getRowSelectionProps as st } from "./utils/table.mjs";
|
|
13
13
|
import it from "./hooks/use-row-selection.mjs";
|
|
14
14
|
import { useProvideApTable as dt } from "../ap-table/context.mjs";
|
|
15
|
-
import {
|
|
15
|
+
import { sizeReverseMap as ut, sizeMap as ct, ROW_SELECTION_FIELD as ft } from "./constants.mjs";
|
|
16
16
|
import { useRenderColumns as pt } from "./hooks/use-render-columns.mjs";
|
|
17
17
|
import { useToken as mt } from "@aplus-frontend/antdv/es/theme/internal";
|
|
18
18
|
import "../scroll-bar/index.mjs";
|
|
@@ -216,13 +216,13 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
216
216
|
dt({
|
|
217
217
|
columns: n(() => i.value),
|
|
218
218
|
columnsBackup: n(() => O.value),
|
|
219
|
-
size: n(() =>
|
|
219
|
+
size: n(() => ct[I.value]),
|
|
220
220
|
updateColumns(e) {
|
|
221
221
|
var t;
|
|
222
222
|
i.value = e, (t = o.onShownColumnsChange) == null || t.call(o, e);
|
|
223
223
|
},
|
|
224
224
|
updateSize(e) {
|
|
225
|
-
I.value =
|
|
225
|
+
I.value = ut[e];
|
|
226
226
|
},
|
|
227
227
|
renderConfig: n(() => ({
|
|
228
228
|
className: ce("table-header", "title"),
|
|
@@ -400,7 +400,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
400
400
|
class: g(e.card ? a(F)("search-wrapper") : null),
|
|
401
401
|
style: V(e.searchFormWrapperStyle)
|
|
402
402
|
}, [
|
|
403
|
-
_(a(Je).SearchForm,
|
|
403
|
+
_(a(Je).SearchForm, R(e.searchForm || {}, {
|
|
404
404
|
ref_key: "formRef",
|
|
405
405
|
ref: C,
|
|
406
406
|
"custom-reset": "",
|
|
@@ -423,12 +423,12 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
423
423
|
key: "0"
|
|
424
424
|
} : void 0
|
|
425
425
|
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
426
|
-
], 6)) :
|
|
427
|
-
|
|
426
|
+
], 6)) : w("", !0),
|
|
427
|
+
b("div", {
|
|
428
428
|
class: g([a(F)("table-wrapper"), e.card ? a(F)("table-wrapper-card") : null]),
|
|
429
429
|
style: V(e.tableWrapperStyle)
|
|
430
430
|
}, [
|
|
431
|
-
|
|
431
|
+
b("div", {
|
|
432
432
|
class: g(a(u)("header-wrapper"))
|
|
433
433
|
}, [
|
|
434
434
|
D(e.$slots, "title", {
|
|
@@ -438,10 +438,10 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
438
438
|
clearAll: A
|
|
439
439
|
})
|
|
440
440
|
], 2),
|
|
441
|
-
|
|
441
|
+
b("div", {
|
|
442
442
|
class: g(a(u)("vxe-wrapper"))
|
|
443
443
|
}, [
|
|
444
|
-
(d(), f(a(Ge),
|
|
444
|
+
(d(), f(a(Ge), R(a(lt)(o), {
|
|
445
445
|
ref_key: "tableRef",
|
|
446
446
|
ref: s,
|
|
447
447
|
key: a(Ce),
|
|
@@ -470,20 +470,27 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
470
470
|
}, null, 8, ["image"])
|
|
471
471
|
]),
|
|
472
472
|
loading: h(() => [
|
|
473
|
-
|
|
473
|
+
b("div", {
|
|
474
474
|
class: g(a(F)("table-loading-wrapper"))
|
|
475
475
|
}, [
|
|
476
476
|
_(a(ot))
|
|
477
477
|
], 2)
|
|
478
478
|
]),
|
|
479
479
|
default: h(() => [
|
|
480
|
-
o.expandable && i.value.length ? (d(), f(a(re),
|
|
480
|
+
o.expandable && i.value.length ? (d(), f(a(re), R({ key: 0 }, a(nt)(e.expandable), { fixed: Ee.value }), {
|
|
481
481
|
content: h((l) => [
|
|
482
482
|
(d(), f(L(o.expandable.renderContent(l))))
|
|
483
483
|
]),
|
|
484
484
|
_: 1
|
|
485
|
-
}, 16, ["fixed"])) :
|
|
486
|
-
o.rowSelection && i.value.length ? (d(), f(a(re),
|
|
485
|
+
}, 16, ["fixed"])) : w("", !0),
|
|
486
|
+
o.rowSelection && i.value.length ? (d(), f(a(re), R(
|
|
487
|
+
{ key: 1 },
|
|
488
|
+
a(st)(a(m), i.value, o.size),
|
|
489
|
+
{
|
|
490
|
+
resizable: !1,
|
|
491
|
+
field: a(ft)
|
|
492
|
+
}
|
|
493
|
+
), null, 16, ["field"])) : w("", !0),
|
|
487
494
|
(d(!0), P(oe, null, K(a(he), (l) => (d(), f(L(l), {
|
|
488
495
|
key: l.props.colId
|
|
489
496
|
}))), 128))
|
|
@@ -498,7 +505,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
498
505
|
}))
|
|
499
506
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
|
|
500
507
|
], 2),
|
|
501
|
-
|
|
508
|
+
b("div", {
|
|
502
509
|
class: g(a(u)("pagination-wrapper"))
|
|
503
510
|
}, [
|
|
504
511
|
e.sticky ? (d(), f(a(wt), {
|
|
@@ -508,11 +515,11 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
508
515
|
"extra-size": -4.2,
|
|
509
516
|
"bar-color": "var(--ap-scrollbar-thumb-color-base)",
|
|
510
517
|
"track-color": "var(--ap-table-header-bg, #f2f6f9)"
|
|
511
|
-
}, null, 8, ["scroll-container"])) :
|
|
512
|
-
e.pagination !== !1 ? (d(), f(a(at),
|
|
518
|
+
}, null, 8, ["scroll-container"])) : w("", !0),
|
|
519
|
+
e.pagination !== !1 ? (d(), f(a(at), R({
|
|
513
520
|
key: 1,
|
|
514
521
|
class: a(u)("pagination")
|
|
515
|
-
}, a(q).pagination, { onChange: a(Ie) }), null, 16, ["class", "onChange"])) :
|
|
522
|
+
}, a(q).pagination, { onChange: a(Ie) }), null, 16, ["class", "onChange"])) : w("", !0)
|
|
516
523
|
], 2)
|
|
517
524
|
], 6)
|
|
518
525
|
], 6));
|
|
@@ -2,7 +2,7 @@ import { VxeTableEventProps, VxeTableProps } from 'vxe-table';
|
|
|
2
2
|
import { ApGridColumnType, ApGridProps, ApGridRowSelection } from '../interface';
|
|
3
3
|
import { RowSelectionType } from '@aplus-frontend/antdv/es/table/interface';
|
|
4
4
|
export declare function toVxeProps<RecordType>(props: ApGridProps): VxeTableProps<RecordType> & VxeTableEventProps<RecordType>;
|
|
5
|
-
export declare function getRowSelectionProps(rowSelection: ApGridRowSelection<any> | true, columns: ApGridColumnType[]): {
|
|
5
|
+
export declare function getRowSelectionProps(rowSelection: ApGridRowSelection<any> | true, columns: ApGridColumnType[], size: 'mini' | 'medium'): {
|
|
6
6
|
type: RowSelectionType;
|
|
7
7
|
width: string | number;
|
|
8
8
|
fixed: "left" | "right" | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { omit as s, isUndefined as
|
|
1
|
+
import { omit as s, isUndefined as f, isFunction as m, isNumber as C } from "lodash-unified";
|
|
2
2
|
import { isDef as g } from "../../utils/index.mjs";
|
|
3
3
|
const y = 20, b = 50, w = (e) => e.some((t) => !!t.html);
|
|
4
4
|
function K(e) {
|
|
@@ -22,23 +22,23 @@ function K(e) {
|
|
|
22
22
|
const r = e.rowSelection === !0 ? {} : e.rowSelection;
|
|
23
23
|
r.type === "radio" ? t.radioConfig = {
|
|
24
24
|
highlight: !0,
|
|
25
|
-
checkMethod({ row:
|
|
26
|
-
return r.disabled ? !r.disabled(
|
|
25
|
+
checkMethod({ row: n }) {
|
|
26
|
+
return r.disabled ? !r.disabled(n) : !0;
|
|
27
27
|
},
|
|
28
|
-
visibleMethod({ row:
|
|
29
|
-
return r.shown ? r.shown(
|
|
28
|
+
visibleMethod({ row: n }) {
|
|
29
|
+
return r.shown ? r.shown(n) : !0;
|
|
30
30
|
},
|
|
31
31
|
checkRowKey: (o = r.defaultSelectedRowKeys) == null ? void 0 : o[0],
|
|
32
|
-
reserve:
|
|
32
|
+
reserve: f(r.preserveSelectedRowKeys) ? !0 : r.preserveSelectedRowKeys
|
|
33
33
|
} : t.checkboxConfig = {
|
|
34
34
|
highlight: !0,
|
|
35
|
-
checkMethod({ row:
|
|
36
|
-
return r.disabled ? !r.disabled(
|
|
35
|
+
checkMethod({ row: n }) {
|
|
36
|
+
return r.disabled ? !r.disabled(n) : !0;
|
|
37
37
|
},
|
|
38
|
-
visibleMethod({ row:
|
|
39
|
-
return r.shown ? r.shown(
|
|
38
|
+
visibleMethod({ row: n }) {
|
|
39
|
+
return r.shown ? r.shown(n) : !0;
|
|
40
40
|
},
|
|
41
|
-
reserve:
|
|
41
|
+
reserve: f(r.preserveSelectedRowKeys) ? !0 : r.preserveSelectedRowKeys,
|
|
42
42
|
range: r.range || !1
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -50,7 +50,7 @@ function K(e) {
|
|
|
50
50
|
enabled: !1
|
|
51
51
|
}, t.virtualYConfig = {
|
|
52
52
|
enabled: !1
|
|
53
|
-
}) : (
|
|
53
|
+
}) : (a(t, "X", e.virtual), a(t, "Y", e.virtual)), t.round = g(e.round) ? e.round : !e.card, t.headerCellConfig = {
|
|
54
54
|
height: 36,
|
|
55
55
|
...t.headerCellConfig || {}
|
|
56
56
|
}, t.treeConfig && (t.treeConfig = {
|
|
@@ -65,29 +65,29 @@ function K(e) {
|
|
|
65
65
|
}
|
|
66
66
|
}, t;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const o = t === "X", r = o ? "x" : "y",
|
|
70
|
-
e[
|
|
71
|
-
enabled:
|
|
68
|
+
function a(e, t, i) {
|
|
69
|
+
const o = t === "X", r = o ? "x" : "y", n = o ? "virtualXConfig" : "virtualYConfig", u = i == null ? void 0 : i[r], l = u !== !1, d = o ? y : b, h = C(u) && u >= 0 ? u : d;
|
|
70
|
+
e[n] = {
|
|
71
|
+
enabled: l,
|
|
72
72
|
gt: h,
|
|
73
|
-
oSize: (
|
|
73
|
+
oSize: (i == null ? void 0 : i.oSize) || 0
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function x(e) {
|
|
77
77
|
return e === !0 ? "left" : e;
|
|
78
78
|
}
|
|
79
|
-
function M(e, t) {
|
|
80
|
-
const
|
|
81
|
-
let
|
|
82
|
-
return
|
|
83
|
-
(
|
|
79
|
+
function M(e, t, i) {
|
|
80
|
+
const o = e === !0 || !e.type ? "checkbox" : e.type, r = (i === "mini" ? 9 * 2 : 12 * 2) + 16, n = e === !0 ? r : e.columnWidth || r;
|
|
81
|
+
let u = e === !0 ? void 0 : x(e.fixed);
|
|
82
|
+
return u || (u === !1 ? u = void 0 : u = t.some(
|
|
83
|
+
(l) => l.fixed === "left" || l.fixed === !0
|
|
84
84
|
) ? "left" : void 0), {
|
|
85
|
-
type:
|
|
86
|
-
width:
|
|
87
|
-
fixed:
|
|
85
|
+
type: o,
|
|
86
|
+
width: n,
|
|
87
|
+
fixed: u
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function W(e) {
|
|
91
91
|
const t = (e == null ? void 0 : e.width) || "auto";
|
|
92
92
|
return {
|
|
93
93
|
type: "expand",
|
|
@@ -95,7 +95,7 @@ function k(e) {
|
|
|
95
95
|
width: t
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function c(e) {
|
|
99
99
|
if (!e)
|
|
100
100
|
return 0;
|
|
101
101
|
const t = getComputedStyle(e);
|
|
@@ -104,13 +104,13 @@ function a(e) {
|
|
|
104
104
|
function R(e, t) {
|
|
105
105
|
if (!e)
|
|
106
106
|
return "auto";
|
|
107
|
-
const
|
|
107
|
+
const i = getComputedStyle(e);
|
|
108
108
|
let o = t === "medium" ? 12 * 2 : 9 * 2;
|
|
109
|
-
const r = (Number.parseFloat(
|
|
110
|
-
return o += r, e.querySelector("span.anticon-question-circle") && (o += 20), o +=
|
|
109
|
+
const r = (Number.parseFloat(i.fontSize) || 14) * 1.6;
|
|
110
|
+
return o += r, e.querySelector("span.anticon-question-circle") && (o += 20), o += c(e.querySelector(".vxe-cell--sort")) + c(e.querySelector(".vxe-cell--filter")), Math.ceil(o);
|
|
111
111
|
}
|
|
112
112
|
export {
|
|
113
|
-
|
|
113
|
+
W as getRowExpandProps,
|
|
114
114
|
M as getRowSelectionProps,
|
|
115
115
|
K as toVxeProps
|
|
116
116
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApListExpose, ApListProps } from './interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
5
|
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
@@ -34,9 +34,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
34
34
|
}): any;
|
|
35
35
|
};
|
|
36
36
|
emit: {};
|
|
37
|
-
}>) => VNode
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}> & {
|
|
37
|
+
}>) => VNode & {
|
|
40
38
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
41
39
|
};
|
|
42
40
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, ref as x, toRef as ee, unref as t, computed as p, watch as te,
|
|
1
|
+
import { defineComponent as _, ref as x, toRef as ee, unref as t, computed as p, watch as te, createElementBlock as s, openBlock as i, normalizeStyle as h, normalizeClass as l, renderSlot as u, createElementVNode as ae, createCommentVNode as I, createVNode as g, Fragment as F, createBlock as V, withCtx as b, renderList as ne, mergeProps as re } from "vue";
|
|
2
2
|
import { Empty as E, Spin as oe, Pagination as ie } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useTablePaging as le } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -6,7 +6,7 @@ export type ModalFunc = (props: ModalFuncProps) => {
|
|
|
6
6
|
update: (configUpdate: ConfigUpdate) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const confirm: (config: ModalFuncProps) => {
|
|
9
|
-
destroy: (this: any, ...args: any[]) => void;
|
|
9
|
+
destroy: (this: /*elided*/ any, ...args: any[]) => void;
|
|
10
10
|
update: (configUpdate: ConfigUpdate) => void;
|
|
11
11
|
};
|
|
12
12
|
export default confirm;
|
|
@@ -2,7 +2,7 @@ import { ApColumnType, ApTableProps } from './interface';
|
|
|
2
2
|
import { ApFormSearchFormPopoverSorterItem } from '../ap-form';
|
|
3
3
|
import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
4
4
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
5
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
|
|
6
6
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
8
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -98,9 +98,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
98
98
|
}) => void;
|
|
99
99
|
};
|
|
100
100
|
emit: {};
|
|
101
|
-
}>) => VNode
|
|
102
|
-
[key: string]: any;
|
|
103
|
-
}> & {
|
|
101
|
+
}>) => VNode & {
|
|
104
102
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
105
103
|
};
|
|
106
104
|
export default _default;
|