@aplus-frontend/ui 6.19.0 → 6.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/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 +2 -31
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +7 -11
- package/es/src/ap-button/ap-button.vue.mjs +20 -24
- package/es/src/ap-button/ap-confirm-button.vue.mjs +11 -15
- 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 +18 -21
- 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 +13 -13
- package/es/src/ap-field/date-range/index.vue.mjs +16 -16
- 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 +12 -17
- 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 +15 -14
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +19 -18
- 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 +107 -107
- 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 +20 -48
- 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 +10 -29
- 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 +19 -18
- 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 +4 -2
- package/es/src/ap-grid/editable/form-item.vue.mjs +9 -9
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.mjs +40 -40
- package/es/src/ap-list/index.vue.d.ts +4 -2
- 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 +4 -2
- package/es/src/ap-table/ap-table.vue2.mjs +14 -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 +332 -332
- 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 +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +30 -46
- 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 +7 -2
- 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 +3 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +11 -33
- 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 -2
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +212 -398
- package/es/src/business/ap-draggable-grid/constans.mjs +1 -1
- package/es/src/business/ap-draggable-grid/index.d.ts +5 -2
- package/es/src/business/ap-draggable-grid/interface.d.ts +3 -2
- package/es/src/business/ap-draggable-grid/utils/sortItemsByRowAndCol.d.ts +2 -0
- package/es/src/business/ap-draggable-grid/utils/sortItemsByRowAndCol.mjs +14 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +33 -33
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- 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 +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- 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 +5 -17
- 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 +11 -10
- 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 +11 -10
- 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 +5 -4
- package/es/src/config-provider/config-provider.d.ts +9 -8
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -4
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/es/src/config-provider/index.d.ts +14 -13
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/form-item.vue.mjs +38 -37
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.mjs +16 -15
- 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 +6 -5
- 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 +11 -10
- 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 +2 -31
- 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/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.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 +15 -14
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +19 -18
- package/lib/src/ap-form/items/number/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/select/index.vue.d.ts +107 -107
- 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 +20 -48
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +10 -29
- package/lib/src/ap-form/search-form/index.vue.d.ts +19 -18
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +332 -332
- 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.vue.js +1 -1
- 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 +7 -2
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +11 -33
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -2
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/constans.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +5 -2
- package/lib/src/business/ap-draggable-grid/interface.d.ts +3 -2
- package/lib/src/business/ap-draggable-grid/utils/sortItemsByRowAndCol.d.ts +2 -0
- package/lib/src/business/ap-draggable-grid/utils/sortItemsByRowAndCol.js +1 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/index.d.ts +5 -17
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +11 -10
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -10
- 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 +5 -4
- package/lib/src/config-provider/config-provider.d.ts +9 -8
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/config-provider/index.d.ts +14 -13
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.js +1 -1
- 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 +6 -5
- 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 +11 -10
- package/package.json +1 -1
- package/theme/antd-global-overwrite/admin/alert.css +37 -0
- package/theme/antd-global-overwrite/admin/alert.less +51 -0
- package/theme/antd-global-overwrite/admin/button.css +27 -0
- package/theme/antd-global-overwrite/admin/button.less +31 -0
- package/theme/antd-global-overwrite/admin/field.css +42 -0
- package/theme/antd-global-overwrite/admin/field.less +43 -0
- package/theme/antd-global-overwrite/admin/form.css +57 -0
- package/theme/antd-global-overwrite/admin/form.less +97 -0
- package/theme/antd-global-overwrite/admin/message.css +10 -0
- package/theme/antd-global-overwrite/admin/message.less +13 -0
- package/theme/antd-global-overwrite/admin/modal.css +94 -0
- package/theme/antd-global-overwrite/admin/modal.less +128 -0
- package/theme/antd-global-overwrite/admin/pagination.css +122 -0
- package/theme/antd-global-overwrite/admin/pagination.less +91 -0
- package/theme/antd-global-overwrite/admin/steps.css +127 -0
- package/theme/antd-global-overwrite/admin/steps.less +197 -0
- package/theme/antd-global-overwrite/admin/table.css +78 -0
- package/theme/antd-global-overwrite/admin/table.less +62 -0
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/alert.css +40 -0
- package/theme/antd-global-overwrite/aplus/alert.less +55 -0
- package/theme/antd-global-overwrite/aplus/button.css +27 -0
- package/theme/antd-global-overwrite/aplus/button.less +31 -0
- package/theme/antd-global-overwrite/aplus/field.css +42 -0
- package/theme/antd-global-overwrite/aplus/field.less +43 -0
- package/theme/antd-global-overwrite/aplus/form.css +87 -0
- package/theme/antd-global-overwrite/aplus/form.less +133 -0
- package/theme/antd-global-overwrite/aplus/message.css +10 -0
- package/theme/antd-global-overwrite/aplus/message.less +13 -0
- package/theme/antd-global-overwrite/aplus/modal.css +87 -0
- package/theme/antd-global-overwrite/aplus/modal.less +120 -0
- package/theme/antd-global-overwrite/aplus/pagination.css +147 -0
- package/theme/antd-global-overwrite/aplus/pagination.less +108 -0
- package/theme/antd-global-overwrite/aplus/steps.css +125 -0
- package/theme/antd-global-overwrite/aplus/steps.less +198 -0
- package/theme/antd-global-overwrite/aplus/table.css +78 -0
- package/theme/antd-global-overwrite/aplus/table.less +61 -0
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-draggable-grid/ap-draggable-grid.css +3 -3
- package/theme/ap-draggable-grid/ap-draggable-grid.less +3 -4
- package/theme/ap-table/ap-table-pagination.css +12 -0
- package/theme/ap-table/ap-table-pagination.less +14 -0
- package/theme/ap-tag/ap-tag.css +4 -3
- package/theme/ap-tag/ap-tag.less +4 -3
- package/theme/index.css +7 -6
- package/theme/ui-mode.css +60 -0
- package/theme/ui-mode.less +109 -0
|
@@ -1,13 +1,14 @@
|
|
|
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 { SizeType, ButtonSize } from '@aplus-frontend/antdv/es/config-provider';
|
|
4
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
6
5
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
6
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
8
|
import { Recordable } from '../../type';
|
|
10
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
|
|
13
14
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -25,7 +26,7 @@ declare function __VLS_template(): {
|
|
|
25
26
|
$: ComponentInternalInstance;
|
|
26
27
|
$data: {};
|
|
27
28
|
$props: {
|
|
28
|
-
readonly size?:
|
|
29
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
29
30
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
30
31
|
readonly layout?: string | undefined;
|
|
31
32
|
readonly disabled?: boolean | undefined;
|
|
@@ -115,7 +116,7 @@ declare function __VLS_template(): {
|
|
|
115
116
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
116
117
|
readonly initialValues?: Recordable | undefined;
|
|
117
118
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
118
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
119
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
119
120
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
120
121
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
121
122
|
$attrs: {
|
|
@@ -320,8 +321,8 @@ declare function __VLS_template(): {
|
|
|
320
321
|
default: string | string[];
|
|
321
322
|
};
|
|
322
323
|
size: {
|
|
323
|
-
type: PropType<
|
|
324
|
-
default:
|
|
324
|
+
type: PropType<SizeType>;
|
|
325
|
+
default: SizeType;
|
|
325
326
|
};
|
|
326
327
|
disabled: {
|
|
327
328
|
type: BooleanConstructor;
|
|
@@ -348,7 +349,7 @@ declare function __VLS_template(): {
|
|
|
348
349
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
349
350
|
};
|
|
350
351
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
351
|
-
size:
|
|
352
|
+
size: SizeType;
|
|
352
353
|
onSubmit: (e: Event) => void;
|
|
353
354
|
disabled: boolean;
|
|
354
355
|
validateTrigger: string | string[];
|
|
@@ -640,8 +641,8 @@ declare function __VLS_template(): {
|
|
|
640
641
|
default: string | string[];
|
|
641
642
|
};
|
|
642
643
|
size: {
|
|
643
|
-
type: PropType<
|
|
644
|
-
default:
|
|
644
|
+
type: PropType<SizeType>;
|
|
645
|
+
default: SizeType;
|
|
645
646
|
};
|
|
646
647
|
disabled: {
|
|
647
648
|
type: BooleanConstructor;
|
|
@@ -668,7 +669,7 @@ declare function __VLS_template(): {
|
|
|
668
669
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
669
670
|
};
|
|
670
671
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
671
|
-
size:
|
|
672
|
+
size: SizeType;
|
|
672
673
|
onSubmit: (e: Event) => void;
|
|
673
674
|
disabled: boolean;
|
|
674
675
|
validateTrigger: string | string[];
|
|
@@ -864,7 +865,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
864
865
|
$: ComponentInternalInstance;
|
|
865
866
|
$data: {};
|
|
866
867
|
$props: {
|
|
867
|
-
readonly size?:
|
|
868
|
+
readonly size?: "small" | "large" | "middle" | undefined;
|
|
868
869
|
readonly onSubmit?: ((e: Event) => void) | undefined;
|
|
869
870
|
readonly layout?: string | undefined;
|
|
870
871
|
readonly disabled?: boolean | undefined;
|
|
@@ -954,7 +955,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
954
955
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
955
956
|
readonly initialValues?: Recordable | undefined;
|
|
956
957
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
957
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
958
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
958
959
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
959
960
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
960
961
|
$attrs: {
|
|
@@ -1159,8 +1160,8 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1159
1160
|
default: string | string[];
|
|
1160
1161
|
};
|
|
1161
1162
|
size: {
|
|
1162
|
-
type: PropType<
|
|
1163
|
-
default:
|
|
1163
|
+
type: PropType<SizeType>;
|
|
1164
|
+
default: SizeType;
|
|
1164
1165
|
};
|
|
1165
1166
|
disabled: {
|
|
1166
1167
|
type: BooleanConstructor;
|
|
@@ -1187,7 +1188,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1187
1188
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1188
1189
|
};
|
|
1189
1190
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
1190
|
-
size:
|
|
1191
|
+
size: SizeType;
|
|
1191
1192
|
onSubmit: (e: Event) => void;
|
|
1192
1193
|
disabled: boolean;
|
|
1193
1194
|
validateTrigger: string | string[];
|
|
@@ -1479,8 +1480,8 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1479
1480
|
default: string | string[];
|
|
1480
1481
|
};
|
|
1481
1482
|
size: {
|
|
1482
|
-
type: PropType<
|
|
1483
|
-
default:
|
|
1483
|
+
type: PropType<SizeType>;
|
|
1484
|
+
default: SizeType;
|
|
1484
1485
|
};
|
|
1485
1486
|
disabled: {
|
|
1486
1487
|
type: BooleanConstructor;
|
|
@@ -1507,7 +1508,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1507
1508
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
1508
1509
|
};
|
|
1509
1510
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
1510
|
-
size:
|
|
1511
|
+
size: SizeType;
|
|
1511
1512
|
onSubmit: (e: Event) => void;
|
|
1512
1513
|
disabled: boolean;
|
|
1513
1514
|
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 _, openBlock as d, createBlock as x, 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, openBlock as l, createElementBlock as _, 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,13 +1,15 @@
|
|
|
1
1
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } 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
|
|
10
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}> & {
|
|
11
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
14
|
};
|
|
13
15
|
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, openBlock as G, createBlock 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";
|
|
@@ -113,7 +113,7 @@ const we = /* @__PURE__ */ K({
|
|
|
113
113
|
type: Boolean
|
|
114
114
|
},
|
|
115
115
|
rowSelection: {
|
|
116
|
-
type: Boolean,
|
|
116
|
+
type: [Boolean, Object],
|
|
117
117
|
default: void 0
|
|
118
118
|
},
|
|
119
119
|
onLoadingChange: {},
|
|
@@ -221,14 +221,14 @@ const we = /* @__PURE__ */ K({
|
|
|
221
221
|
t[n] = t[n].filter((f) => !a.has(f[l.rowKey]));
|
|
222
222
|
}));
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function j() {
|
|
225
225
|
return u(d);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function k(e) {
|
|
228
228
|
var a;
|
|
229
229
|
return (a = u(d)) == null ? void 0 : a[e];
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function _(e, a, r = !0) {
|
|
232
232
|
o == null || o.setFieldValue(l.name, void 0, !0, (t, n) => {
|
|
233
233
|
if (!(!t[n] || !t[n][e])) {
|
|
234
234
|
if (!r) {
|
|
@@ -257,15 +257,15 @@ const we = /* @__PURE__ */ K({
|
|
|
257
257
|
return x({
|
|
258
258
|
add: D,
|
|
259
259
|
remove: L,
|
|
260
|
-
getRowData:
|
|
261
|
-
getRowsData:
|
|
262
|
-
setRowData:
|
|
260
|
+
getRowData: k,
|
|
261
|
+
getRowsData: j,
|
|
262
|
+
setRowData: _,
|
|
263
263
|
addMultiple: V,
|
|
264
264
|
scrollTo: O,
|
|
265
265
|
setTableData: E,
|
|
266
266
|
clear: z,
|
|
267
267
|
removeByKey: T
|
|
268
|
-
}), (e, a) => (
|
|
268
|
+
}), (e, a) => (G(), U(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 } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } 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,7 +9,9 @@ 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
|
|
12
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}> & {
|
|
13
15
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
16
|
};
|
|
15
17
|
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, openBlock as J, createBlock 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";
|
|
@@ -113,7 +113,7 @@ const Re = /* @__PURE__ */ $({
|
|
|
113
113
|
type: Boolean
|
|
114
114
|
},
|
|
115
115
|
rowSelection: {
|
|
116
|
-
type: Boolean,
|
|
116
|
+
type: [Boolean, Object],
|
|
117
117
|
default: void 0
|
|
118
118
|
},
|
|
119
119
|
onLoadingChange: {},
|
|
@@ -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) => (J(), Q(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 } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } 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,7 +35,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
35
35
|
}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
38
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}> & {
|
|
39
41
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
42
|
};
|
|
41
43
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $e, useSlots as We, getCurrentInstance as
|
|
1
|
+
import { defineComponent as $e, useSlots as We, getCurrentInstance as je, ref as E, computed as n, unref as a, toRef as Me, nextTick as He, watch as B, openBlock as d, createElementBlock as P, normalizeClass as g, normalizeStyle as V, createVNode as _, mergeProps as b, createSlots as te, withCtx as h, Fragment as oe, renderList as K, createBlock as f, resolveDynamicComponent as L, renderSlot as O, createCommentVNode as w, createElementVNode as R, 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 { Empty as ie, Spin as ot, 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 { sizeMap as ut, sizeReverseMap 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";
|
|
@@ -22,7 +22,7 @@ import { useTableStyle as Ct } from "./hooks/use-table-style.mjs";
|
|
|
22
22
|
import { useNamespace as vt } from "../config-provider/hooks/use-namespace.mjs";
|
|
23
23
|
import { useGlobalConfig as yt } from "../config-provider/hooks/use-global-config.mjs";
|
|
24
24
|
import { useLocale as St } from "../config-provider/hooks/use-locale.mjs";
|
|
25
|
-
import
|
|
25
|
+
import bt from "../scroll-bar/index.vue.mjs";
|
|
26
26
|
const Gt = /* @__PURE__ */ $e({
|
|
27
27
|
name: "ApGrid",
|
|
28
28
|
__name: "index",
|
|
@@ -88,7 +88,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
88
88
|
footerCellConfig: {},
|
|
89
89
|
round: { type: Boolean, default: void 0 },
|
|
90
90
|
columns: {},
|
|
91
|
-
rowSelection: { type: Boolean },
|
|
91
|
+
rowSelection: { type: [Boolean, Object] },
|
|
92
92
|
card: { type: Boolean, default: !1 },
|
|
93
93
|
params: {},
|
|
94
94
|
request: {},
|
|
@@ -116,9 +116,9 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
116
116
|
},
|
|
117
117
|
setup(de, { expose: ue }) {
|
|
118
118
|
var ee;
|
|
119
|
-
const v = We(), o = de, k = (ee =
|
|
119
|
+
const v = We(), o = de, k = (ee = je()) == null ? void 0 : ee.appContext.app;
|
|
120
120
|
k && !k.__VXE_PC_UI_INSTALLED__ && (k.use(ae), k.__VXE_PC_UI_INSTALLED__ = !0);
|
|
121
|
-
const { e: F, b: u, be: ce } = vt("ap-grid"), fe = yt("valueTypeMap"), i = E([]),
|
|
121
|
+
const { e: F, b: u, be: ce } = vt("ap-grid"), fe = yt("valueTypeMap"), i = E([]), D = E([]), s = E(), I = E(o.size), pe = Ct(), [, me] = mt(), { t: ge } = St();
|
|
122
122
|
ae.setConfig({
|
|
123
123
|
i18n: (e, t) => ge(`ap.${e}`, t)
|
|
124
124
|
});
|
|
@@ -168,10 +168,10 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
168
168
|
o.card ? null : u("wrapper"),
|
|
169
169
|
o.adaptive ? u("adaptive") : null,
|
|
170
170
|
o.sticky ? u("sticky") : null
|
|
171
|
-
].filter(Boolean)),
|
|
171
|
+
].filter(Boolean)), j = n(() => se(a(i), (e) => {
|
|
172
172
|
if (e.sorter === !0)
|
|
173
173
|
return e.key || e.dataIndex;
|
|
174
|
-
}).filter(Boolean)),
|
|
174
|
+
}).filter(Boolean)), M = n(() => se(a(i), (e) => {
|
|
175
175
|
if (e.filters && !e.onFilter)
|
|
176
176
|
return e.key || e.dataIndex;
|
|
177
177
|
}).filter(Boolean)), {
|
|
@@ -181,8 +181,8 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
181
181
|
refresh: H,
|
|
182
182
|
data: p,
|
|
183
183
|
tableProps: q,
|
|
184
|
-
setDataSource:
|
|
185
|
-
handleTableChangeOptional:
|
|
184
|
+
setDataSource: be,
|
|
185
|
+
handleTableChangeOptional: we,
|
|
186
186
|
getPaging: Re,
|
|
187
187
|
setPaging: xe,
|
|
188
188
|
submitWith: U
|
|
@@ -203,26 +203,26 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
203
203
|
};
|
|
204
204
|
},
|
|
205
205
|
namespace: "ap-grid",
|
|
206
|
-
filterFields:
|
|
207
|
-
sortFields:
|
|
208
|
-
params:
|
|
206
|
+
filterFields: M,
|
|
207
|
+
sortFields: j,
|
|
208
|
+
params: Me(o, "params"),
|
|
209
209
|
defaultData: o.defaultData,
|
|
210
210
|
manual: a(ye),
|
|
211
211
|
formatParams: o.beforeSearchSubmit,
|
|
212
212
|
pagination: o.pagination,
|
|
213
|
-
onClickReset:
|
|
213
|
+
onClickReset: Oe,
|
|
214
214
|
onAfterRequest: Z
|
|
215
|
-
}), { sortChangeEvent: ke, filterChangeEvent: Fe, paginationChangeEvent: Ie } = rt(
|
|
215
|
+
}), { sortChangeEvent: ke, filterChangeEvent: Fe, paginationChangeEvent: Ie } = rt(we);
|
|
216
216
|
dt({
|
|
217
217
|
columns: n(() => i.value),
|
|
218
|
-
columnsBackup: n(() =>
|
|
219
|
-
size: n(() =>
|
|
218
|
+
columnsBackup: n(() => D.value),
|
|
219
|
+
size: n(() => ut[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 = ct[e];
|
|
226
226
|
},
|
|
227
227
|
renderConfig: n(() => ({
|
|
228
228
|
className: ce("table-header", "title"),
|
|
@@ -323,7 +323,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
323
323
|
const l = String(e[o.rowKey]), r = t.getRowById(l);
|
|
324
324
|
t.setCurrentRow(r);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Oe() {
|
|
327
327
|
const e = s.value;
|
|
328
328
|
e && (e.clearSort(), e.clearFilter());
|
|
329
329
|
}
|
|
@@ -336,7 +336,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
336
336
|
);
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
async function
|
|
339
|
+
async function De(e, t) {
|
|
340
340
|
var r;
|
|
341
341
|
const l = p.records[e];
|
|
342
342
|
if (l)
|
|
@@ -347,7 +347,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
347
347
|
() => {
|
|
348
348
|
var t;
|
|
349
349
|
const e = _e();
|
|
350
|
-
i.value = e, (t = o.onShownColumnsChange) == null || t.call(o, e),
|
|
350
|
+
i.value = e, (t = o.onShownColumnsChange) == null || t.call(o, e), D.value = e;
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
deep: !0,
|
|
@@ -356,7 +356,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
356
356
|
), B(
|
|
357
357
|
() => o.dataSource,
|
|
358
358
|
(e) => {
|
|
359
|
-
|
|
359
|
+
be(e);
|
|
360
360
|
},
|
|
361
361
|
{ immediate: !0, deep: !0 }
|
|
362
362
|
), B(
|
|
@@ -383,7 +383,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
383
383
|
setSelectedRowKeys: Ke,
|
|
384
384
|
clearAll: A
|
|
385
385
|
},
|
|
386
|
-
scrollToRow:
|
|
386
|
+
scrollToRow: De,
|
|
387
387
|
getDataSource: () => a(p.records),
|
|
388
388
|
setCurrentRow: Le,
|
|
389
389
|
getPaging: Re,
|
|
@@ -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, b(e.searchForm || {}, {
|
|
404
404
|
ref_key: "formRef",
|
|
405
405
|
ref: C,
|
|
406
406
|
"custom-reset": "",
|
|
@@ -418,40 +418,40 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
418
418
|
v.searchFormExtra ? {
|
|
419
419
|
name: "extra",
|
|
420
420
|
fn: h(() => [
|
|
421
|
-
|
|
421
|
+
O(e.$slots, "searchFormExtra")
|
|
422
422
|
]),
|
|
423
423
|
key: "0"
|
|
424
424
|
} : void 0
|
|
425
425
|
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
426
426
|
], 6)) : w("", !0),
|
|
427
|
-
|
|
427
|
+
R("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
|
+
R("div", {
|
|
432
432
|
class: g(a(u)("header-wrapper"))
|
|
433
433
|
}, [
|
|
434
|
-
|
|
434
|
+
O(e.$slots, "title", {
|
|
435
435
|
selectedRows: a(z),
|
|
436
436
|
selectedRowKeys: a(m).selectedRowKeys,
|
|
437
437
|
shownColumns: i.value,
|
|
438
438
|
clearAll: A
|
|
439
439
|
})
|
|
440
440
|
], 2),
|
|
441
|
-
|
|
441
|
+
R("div", {
|
|
442
442
|
class: g(a(u)("vxe-wrapper"))
|
|
443
443
|
}, [
|
|
444
|
-
(d(), f(a(Ge),
|
|
444
|
+
(d(), f(a(Ge), b(a(lt)(o), {
|
|
445
445
|
ref_key: "tableRef",
|
|
446
446
|
ref: s,
|
|
447
447
|
key: a(Ce),
|
|
448
448
|
data: a(p).records,
|
|
449
449
|
"sort-config": {
|
|
450
|
-
remote:
|
|
450
|
+
remote: j.value.length > 0,
|
|
451
451
|
trigger: "cell"
|
|
452
452
|
},
|
|
453
453
|
"filter-config": {
|
|
454
|
-
remote:
|
|
454
|
+
remote: M.value.length > 0
|
|
455
455
|
},
|
|
456
456
|
loading: Be.value,
|
|
457
457
|
style: a(pe),
|
|
@@ -470,20 +470,20 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
470
470
|
}, null, 8, ["image"])
|
|
471
471
|
]),
|
|
472
472
|
loading: h(() => [
|
|
473
|
-
|
|
473
|
+
R("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), b({ 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
485
|
}, 16, ["fixed"])) : w("", !0),
|
|
486
|
-
o.rowSelection && i.value.length ? (d(), f(a(re),
|
|
486
|
+
o.rowSelection && i.value.length ? (d(), f(a(re), b(
|
|
487
487
|
{ key: 1 },
|
|
488
488
|
a(st)(a(m), i.value, o.size),
|
|
489
489
|
{
|
|
@@ -500,15 +500,15 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
500
500
|
K(a(Xe)(v, ["searchFormExtra"]), (l, r) => ({
|
|
501
501
|
name: r,
|
|
502
502
|
fn: h((c) => [
|
|
503
|
-
|
|
503
|
+
O(e.$slots, r, qe(Ue(c || {})))
|
|
504
504
|
])
|
|
505
505
|
}))
|
|
506
506
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
|
|
507
507
|
], 2),
|
|
508
|
-
|
|
508
|
+
R("div", {
|
|
509
509
|
class: g(a(u)("pagination-wrapper"))
|
|
510
510
|
}, [
|
|
511
|
-
e.sticky ? (d(), f(a(
|
|
511
|
+
e.sticky ? (d(), f(a(bt), {
|
|
512
512
|
key: 0,
|
|
513
513
|
direction: "horizontal",
|
|
514
514
|
"scroll-container": ve.value,
|
|
@@ -516,7 +516,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
516
516
|
"bar-color": "var(--ap-scrollbar-thumb-color-base)",
|
|
517
517
|
"track-color": "var(--ap-table-header-bg, #f2f6f9)"
|
|
518
518
|
}, null, 8, ["scroll-container"])) : w("", !0),
|
|
519
|
-
e.pagination !== !1 ? (d(), f(a(at),
|
|
519
|
+
e.pagination !== !1 ? (d(), f(a(at), b({
|
|
520
520
|
key: 1,
|
|
521
521
|
class: a(u)("pagination")
|
|
522
522
|
}, a(q).pagination, { onChange: a(Ie) }), null, 16, ["class", "onChange"])) : w("", !0)
|
|
@@ -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 } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } 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,7 +34,9 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
34
34
|
}): any;
|
|
35
35
|
};
|
|
36
36
|
emit: {};
|
|
37
|
-
}>) => VNode
|
|
37
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}> & {
|
|
38
40
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
41
|
};
|
|
40
42
|
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, openBlock as i, createElementBlock as s, normalizeClass as l, normalizeStyle as h, renderSlot as u, createElementVNode as ae, createVNode as g, createCommentVNode as I, 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:
|
|
9
|
+
destroy: (this: 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 } from 'vue';
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } 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,7 +98,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
98
98
|
}) => void;
|
|
99
99
|
};
|
|
100
100
|
emit: {};
|
|
101
|
-
}>) => VNode
|
|
101
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}> & {
|
|
102
104
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
103
105
|
};
|
|
104
106
|
export default _default;
|