@aplus-frontend/ui 0.2.29 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +42 -40
- package/es/src/ap-action/group/index.vue.d.ts +3 -30
- package/es/src/ap-action/item/index.vue.d.ts +4 -36
- package/es/src/ap-action/item/index.vue2.mjs +29 -29
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +5 -39
- package/es/src/ap-action/item-modal/index.vue.d.ts +5 -33
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +5 -33
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.d.ts +5 -31
- package/es/src/ap-button/ap-button.vue.d.ts +5 -31
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +4 -12
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +4 -15
- package/es/src/ap-download/ap-download.vue.d.ts +8 -31
- package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
- package/es/src/ap-field/checkbox/index.vue.d.ts +5 -32
- package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
- package/es/src/ap-field/date/index.vue.d.ts +7 -65
- package/es/src/ap-field/date/index.vue.mjs +2 -2
- package/es/src/ap-field/date-range/index.vue.d.ts +7 -67
- package/es/src/ap-field/date-range/index.vue.mjs +2 -2
- package/es/src/ap-field/hooks/use-options.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.d.ts +12 -169
- package/es/src/ap-field/number/index.vue.mjs +3 -3
- package/es/src/ap-field/radio/index.vue.d.ts +6 -33
- package/es/src/ap-field/radio/index.vue.mjs +5 -5
- package/es/src/ap-field/rate/index.vue.d.ts +12 -75
- package/es/src/ap-field/rate/index.vue.mjs +4 -4
- package/es/src/ap-field/segmented/index.vue.d.ts +7 -33
- package/es/src/ap-field/segmented/index.vue.mjs +3 -3
- package/es/src/ap-field/select/index.vue.d.ts +12 -234
- package/es/src/ap-field/select/index.vue.mjs +4 -4
- package/es/src/ap-field/slider/index.vue.d.ts +12 -144
- package/es/src/ap-field/slider/index.vue.mjs +3 -3
- package/es/src/ap-field/switch/index.vue.d.ts +7 -37
- package/es/src/ap-field/switch/index.vue.mjs +4 -4
- package/es/src/ap-field/text/index.vue.d.ts +8 -40
- package/es/src/ap-field/text/password.vue.d.ts +9 -47
- package/es/src/ap-field/text-area/index.vue.d.ts +6 -39
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-form/ap-form.vue.d.ts +21 -274
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/dependency/index.vue.d.ts +4 -12
- package/es/src/ap-form/drawer-form/index.vue.d.ts +37 -536
- package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.d.ts +37 -278
- package/es/src/ap-form/item-group/index.vue.d.ts +5 -29
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/date/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/date-range/index.vue.d.ts +5 -37
- package/es/src/ap-form/items/number/index.vue.d.ts +53 -510
- package/es/src/ap-form/items/radio/index.vue.d.ts +14 -219
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -38
- package/es/src/ap-form/items/switch/index.vue.d.ts +5 -39
- package/es/src/ap-form/items/text/group.vue.d.ts +5 -25
- package/es/src/ap-form/items/text/index.vue.d.ts +35 -522
- package/es/src/ap-form/items/text/password.vue.d.ts +44 -586
- package/es/src/ap-form/items/text-area/index.vue.d.ts +14 -507
- package/es/src/ap-form/list/index.vue.d.ts +4 -12
- package/es/src/ap-form/modal-form/index.vue.d.ts +37 -535
- package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
- package/es/src/ap-form/render/control.vue.d.ts +4 -12
- package/es/src/ap-form/render/item.vue.d.ts +5 -37
- package/es/src/ap-form/search-form/index.vue.d.ts +37 -532
- package/es/src/ap-form/search-form/index.vue.mjs +2 -2
- package/es/src/ap-form/set/index.vue.d.ts +5 -25
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +4 -12
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +5 -27
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +7 -29
- package/es/src/ap-list/index.vue.d.ts +4 -6
- package/es/src/ap-list/index.vue.mjs +27 -27
- package/es/src/ap-modal/utils/createModal.mjs +10 -10
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -24
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
- package/es/src/ap-scroll-bar/index.d.ts +7 -42
- package/es/src/ap-table/ap-table.vue.d.ts +3 -5
- package/es/src/ap-table/ap-table.vue2.mjs +3 -3
- package/es/src/ap-table/components/index/index.vue.d.ts +3 -24
- package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/modal/index.vue.d.ts +5 -25
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
- package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +6 -15
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
- package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +5 -14
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
- package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/status/index.vue.d.ts +2 -11
- package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
- package/es/src/ap-table/constants.d.ts +162 -13517
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +11 -3
- package/es/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
- package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -3
- package/es/src/ap-table/utils.d.ts +65 -7907
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +5 -29
- package/es/src/ap-tag/ap-tag-group.vue.mjs +88 -88
- package/es/src/ap-tag/ap-tag.vue.d.ts +3 -28
- package/es/src/ap-upload/apUpload.vue.d.ts +66 -16
- package/es/src/ap-upload/apUpload.vue.mjs +56 -37
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
- package/es/src/ap-upload/components/Picture.vue.d.ts +6 -10
- package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
- package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +6 -29
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
- package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +2 -2
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +10 -10
- package/es/src/business/ap-appendix/index.d.ts +7 -108
- package/es/src/business/ap-attachment/ApAttachment.d.ts +5 -5
- package/es/src/business/ap-attachment/index.d.ts +7 -48
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +4 -12
- package/es/src/business/ap-batch-action/index.d.ts +5 -32
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +3 -11
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -14
- package/es/src/business/ap-batch-action-group/index.d.ts +590 -905
- package/es/src/business/ap-button-group/ApButtonGroup.vue.d.ts +2 -19
- package/es/src/business/ap-button-group/index.d.ts +5 -603
- package/es/src/business/ap-card/ApCard.vue.d.ts +4 -12
- package/es/src/business/ap-card/index.d.ts +5 -33
- package/es/src/business/ap-card/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -10
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
- package/es/src/business/ap-expand-alert/index.d.ts +6 -8
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +3 -24
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
- package/es/src/business/ap-export-group/index.d.ts +7 -146
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +8 -30
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +9 -356
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +2 -2
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +18 -18
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +34 -34
- package/es/src/business/ap-group-search/index.d.ts +711 -2447
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +10 -357
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-image/ApImage.vue.d.ts +5 -25
- package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
- package/es/src/business/ap-image/index.d.ts +7 -139
- package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +6 -31
- package/es/src/business/ap-input-radio/index.d.ts +14 -339
- package/es/src/business/ap-label/ApLabel.d.ts +5 -5
- package/es/src/business/ap-label/group/ApLabelGroup.d.ts +5 -5
- package/es/src/business/ap-label/index.d.ts +13 -90
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +5 -71
- package/es/src/business/ap-ladder/index.d.ts +7 -479
- package/es/src/business/ap-select-layout/index.d.ts +5 -7
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -12
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +58 -58
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +84 -0
- package/es/src/business/ap-size-input/ApSizeInput.mjs +62 -0
- package/es/src/business/ap-size-input/constans.d.ts +38 -0
- package/es/src/business/ap-size-input/constans.mjs +40 -0
- package/es/src/business/ap-size-input/index.d.ts +155 -0
- package/es/src/business/ap-size-input/index.mjs +7 -0
- package/es/src/business/ap-size-input/interface.d.ts +11 -0
- package/es/src/business/ap-size-input/interface.mjs +1 -0
- package/es/src/business/ap-size-input/style/css.d.ts +0 -0
- package/es/src/business/ap-size-input/style/css.js +1 -0
- package/es/src/business/ap-size-input/style/index.d.ts +0 -0
- package/es/src/business/ap-size-input/style/index.js +1 -0
- package/es/src/business/ap-status/ApStatus.vue.d.ts +3 -28
- package/es/src/business/ap-status/group/ApStatusGroup.vue.d.ts +3 -30
- package/es/src/business/ap-status/index.d.ts +12 -192
- package/es/src/business/ap-summary/ap-summary.vue.d.ts +3 -28
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-summary/index.d.ts +7 -87
- package/es/src/business/ap-table-modal/index.d.ts +15 -1056
- package/es/src/business/ap-table-modal/modal-title.vue.d.ts +6 -5
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +12 -37
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +8 -58
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
- package/es/src/business/ap-title/ApTitle.vue.d.ts +5 -33
- package/es/src/business/ap-title/index.d.ts +7 -110
- package/es/src/business/ap-title/interface.d.ts +4 -4
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +13 -33
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
- package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +2 -2
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +18 -18
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +10 -10
- package/es/src/business/ap-upload-file/interface.d.ts +2 -0
- package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
- package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
- package/es/src/business/batch-input-group/index.vue.d.ts +5 -38
- package/es/src/business/batch-input-group/index.vue.mjs +5 -5
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +4 -13
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -0
- package/es/src/business/hooks/usePageListApTable.mjs +41 -33
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +20 -18
- package/es/src/check-card/group.vue.d.ts +7 -45
- package/es/src/check-card/index.vue.d.ts +7 -37
- package/es/src/config-provider/config-provider.d.ts +5 -5
- package/es/src/config-provider/index.d.ts +7 -256
- package/es/src/editable-table/form-item.vue.d.ts +5 -7
- package/es/src/editable-table/form-item.vue.mjs +3 -3
- package/es/src/editable-table/index.vue.d.ts +4 -8
- package/es/src/editable-table/index.vue.mjs +6 -6
- package/es/src/hooks/useControllableValue.d.ts +1 -1
- package/es/src/index.mjs +40 -38
- package/es/src/locale/lang/en.mjs +5 -0
- package/es/src/locale/lang/zh-cn.mjs +5 -0
- package/es/src/path-map.mjs +1 -0
- package/es/src/tests/wrapper.d.ts +6 -6
- package/es/src/utils/ap-trans-data/index.d.ts +1 -1
- package/es/src/utils/ap-trans-data/index.mjs +26 -14
- package/es/src/work-order-modal/help-message.vue.d.ts +2 -2
- package/es/src/work-order-modal/help-message.vue2.mjs +19 -19
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -15
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
- package/lib/index.js +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +3 -30
- package/lib/src/ap-action/item/index.vue.d.ts +4 -36
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +5 -39
- package/lib/src/ap-action/item-modal/index.vue.d.ts +5 -33
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -33
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +5 -31
- package/lib/src/ap-button/ap-button.vue.d.ts +5 -31
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +4 -12
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +4 -15
- package/lib/src/ap-download/ap-download.vue.d.ts +8 -31
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +5 -32
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +7 -65
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +7 -67
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-options.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +12 -169
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +6 -33
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +12 -75
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.d.ts +7 -33
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +12 -234
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +12 -144
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +7 -37
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +8 -40
- package/lib/src/ap-field/text/password.vue.d.ts +9 -47
- package/lib/src/ap-field/text-area/index.vue.d.ts +6 -39
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +21 -274
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.d.ts +4 -12
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +37 -536
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.d.ts +37 -278
- package/lib/src/ap-form/item-group/index.vue.d.ts +5 -29
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/date/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +5 -37
- package/lib/src/ap-form/items/number/index.vue.d.ts +53 -510
- package/lib/src/ap-form/items/radio/index.vue.d.ts +14 -219
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -38
- package/lib/src/ap-form/items/switch/index.vue.d.ts +5 -39
- package/lib/src/ap-form/items/text/group.vue.d.ts +5 -25
- package/lib/src/ap-form/items/text/index.vue.d.ts +35 -522
- package/lib/src/ap-form/items/text/password.vue.d.ts +44 -586
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +14 -507
- package/lib/src/ap-form/list/index.vue.d.ts +4 -12
- package/lib/src/ap-form/modal-form/index.vue.d.ts +37 -535
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/render/control.vue.d.ts +4 -12
- package/lib/src/ap-form/render/item.vue.d.ts +5 -37
- package/lib/src/ap-form/search-form/index.vue.d.ts +37 -532
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.d.ts +5 -25
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +4 -12
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +5 -27
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +7 -29
- package/lib/src/ap-list/index.vue.d.ts +4 -6
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -24
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
- package/lib/src/ap-scroll-bar/index.d.ts +7 -42
- package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue.d.ts +3 -24
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +5 -25
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +6 -15
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +5 -14
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/status/index.vue.d.ts +2 -11
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +162 -13517
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +11 -3
- package/lib/src/ap-table/hooks/use-table-content-height.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -3
- package/lib/src/ap-table/utils.d.ts +65 -7907
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +5 -29
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.d.ts +3 -28
- package/lib/src/ap-upload/apUpload.vue.d.ts +66 -16
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +6 -10
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +2 -2
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +6 -29
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-appendix/icons/file-icon.vue.js +1 -1
- package/lib/src/business/ap-appendix/index.d.ts +7 -108
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +5 -5
- package/lib/src/business/ap-attachment/index.d.ts +7 -48
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +4 -12
- package/lib/src/business/ap-batch-action/index.d.ts +5 -32
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +3 -11
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +4 -14
- package/lib/src/business/ap-batch-action-group/index.d.ts +590 -905
- package/lib/src/business/ap-button-group/ApButtonGroup.vue.d.ts +2 -19
- package/lib/src/business/ap-button-group/index.d.ts +5 -603
- package/lib/src/business/ap-card/ApCard.vue.d.ts +4 -12
- package/lib/src/business/ap-card/index.d.ts +5 -33
- package/lib/src/business/ap-card/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +5 -10
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -8
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +3 -24
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +7 -146
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +8 -30
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +9 -356
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +2 -2
- package/lib/src/business/ap-group-search/images/icon-down.vue.js +1 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +2 -2
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +711 -2447
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +10 -357
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-image/ApImage.vue.d.ts +5 -25
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/index.d.ts +7 -139
- package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +6 -31
- package/lib/src/business/ap-input-radio/index.d.ts +14 -339
- package/lib/src/business/ap-label/ApLabel.d.ts +5 -5
- package/lib/src/business/ap-label/group/ApLabelGroup.d.ts +5 -5
- package/lib/src/business/ap-label/index.d.ts +13 -90
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +5 -71
- package/lib/src/business/ap-ladder/index.d.ts +7 -479
- package/lib/src/business/ap-select-layout/index.d.ts +5 -7
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -12
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +84 -0
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -0
- package/lib/src/business/ap-size-input/constans.d.ts +38 -0
- package/lib/src/business/ap-size-input/constans.js +1 -0
- package/lib/src/business/ap-size-input/index.d.ts +155 -0
- package/lib/src/business/ap-size-input/index.js +1 -0
- package/lib/src/business/ap-size-input/interface.d.ts +11 -0
- package/lib/src/business/ap-size-input/interface.js +1 -0
- package/lib/src/business/ap-size-input/style/css.d.ts +0 -0
- package/lib/src/business/ap-size-input/style/css.js +1 -0
- package/lib/src/business/ap-size-input/style/index.d.ts +0 -0
- package/lib/src/business/ap-size-input/style/index.js +1 -0
- package/lib/src/business/ap-status/ApStatus.vue.d.ts +3 -28
- package/lib/src/business/ap-status/group/ApStatusGroup.vue.d.ts +3 -30
- package/lib/src/business/ap-status/index.d.ts +12 -192
- package/lib/src/business/ap-summary/ap-summary.vue.d.ts +3 -28
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/index.d.ts +7 -87
- package/lib/src/business/ap-table-modal/index.d.ts +15 -1056
- package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +6 -5
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +12 -37
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +8 -58
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue.d.ts +5 -33
- package/lib/src/business/ap-title/index.d.ts +7 -110
- package/lib/src/business/ap-title/interface.d.ts +4 -4
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +13 -33
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +2 -2
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
- package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +5 -38
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +4 -13
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -0
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +7 -45
- package/lib/src/check-card/index.vue.d.ts +7 -37
- package/lib/src/config-provider/config-provider.d.ts +5 -5
- package/lib/src/config-provider/index.d.ts +7 -256
- package/lib/src/editable-table/form-item.vue.d.ts +5 -7
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +4 -8
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/hooks/useControllableValue.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/tests/wrapper.d.ts +6 -6
- package/lib/src/utils/ap-trans-data/index.d.ts +1 -1
- package/lib/src/utils/ap-trans-data/index.js +1 -1
- package/lib/src/work-order-modal/help-message.vue.d.ts +2 -2
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -15
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +6 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {
|
|
5
6
|
maxCount: number;
|
|
@@ -7,10 +8,10 @@ declare function __VLS_template(): {
|
|
|
7
8
|
}): any;
|
|
8
9
|
};
|
|
9
10
|
refs: {};
|
|
10
|
-
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
11
12
|
};
|
|
12
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: DefineComponent<{
|
|
14
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
14
15
|
title: {
|
|
15
16
|
type: StringConstructor;
|
|
16
17
|
required: true;
|
|
@@ -23,7 +24,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
23
24
|
type: NumberConstructor;
|
|
24
25
|
required: true;
|
|
25
26
|
};
|
|
26
|
-
}
|
|
27
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
27
28
|
title: {
|
|
28
29
|
type: StringConstructor;
|
|
29
30
|
required: true;
|
|
@@ -36,7 +37,7 @@ declare const __VLS_component: DefineComponent<{
|
|
|
36
37
|
type: NumberConstructor;
|
|
37
38
|
required: true;
|
|
38
39
|
};
|
|
39
|
-
}
|
|
40
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
40
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
42
|
export default _default;
|
|
42
43
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,57 +1,32 @@
|
|
|
1
1
|
import { TableLayoutConfig } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = TableLayoutConfig & {
|
|
4
|
+
selectedList: any[];
|
|
5
|
+
};
|
|
3
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
4
8
|
slots: {
|
|
5
9
|
default?(_: {}): any;
|
|
6
10
|
default?(_: {}): any;
|
|
7
11
|
};
|
|
8
12
|
refs: {};
|
|
9
|
-
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
10
14
|
};
|
|
11
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: DefineComponent<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
selectedList: () => never[];
|
|
17
|
-
layoutType: string;
|
|
18
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
|
-
clear: () => void;
|
|
20
|
-
deleteItem: (record: any) => void;
|
|
21
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TableLayoutConfig & {
|
|
22
|
-
selectedList: any[];
|
|
23
|
-
}>, {
|
|
24
|
-
leftTitle: string;
|
|
25
|
-
selectedList: () => never[];
|
|
26
|
-
layoutType: string;
|
|
27
|
-
}>>> & {
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
clear: () => any;
|
|
18
|
+
deleteItem: (record: any) => any;
|
|
19
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
20
|
onClear?: (() => any) | undefined;
|
|
29
21
|
onDeleteItem?: ((record: any) => any) | undefined;
|
|
30
|
-
}
|
|
22
|
+
}>, {
|
|
31
23
|
leftTitle: string;
|
|
32
24
|
selectedList: any[];
|
|
33
|
-
}, {}>;
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
34
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
27
|
export default _default;
|
|
36
|
-
type __VLS_WithDefaults<P, D> = {
|
|
37
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
38
|
-
default: D[K];
|
|
39
|
-
}> : P[K];
|
|
40
|
-
};
|
|
41
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
-
type __VLS_TypePropsToOption<T> = {
|
|
43
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
-
} : {
|
|
46
|
-
type: PropType<T[K]>;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
28
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
29
|
new (): {
|
|
52
30
|
$slots: S;
|
|
53
31
|
};
|
|
54
32
|
};
|
|
55
|
-
type __VLS_PrettifyLocal<T> = {
|
|
56
|
-
[K in keyof T]: T[K];
|
|
57
|
-
} & {};
|
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
4
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
closable: undefined;
|
|
8
|
-
centered: undefined;
|
|
9
|
-
maskClosable: undefined;
|
|
10
|
-
forceRender: undefined;
|
|
11
|
-
destroyOnClose: undefined;
|
|
12
|
-
getContainer: undefined;
|
|
13
|
-
mask: undefined;
|
|
14
|
-
keyboard: undefined;
|
|
15
|
-
focusTriggerAfterClose: undefined;
|
|
16
|
-
api: () => Promise<{
|
|
17
|
-
records: never[];
|
|
18
|
-
total: number;
|
|
19
|
-
}>;
|
|
20
|
-
maxCount: number;
|
|
21
|
-
isRenderModalTitleSuffix: boolean;
|
|
22
|
-
}>, {
|
|
5
|
+
type __VLS_Props = ApTableModalProps;
|
|
6
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
|
23
7
|
open: <T>(selected?: any[], options?: OpenOptions) => Promise<OpenReturnType<T>>;
|
|
24
8
|
close: () => void;
|
|
25
9
|
getApTableInstance: () => {
|
|
@@ -41,28 +25,11 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
41
25
|
} | undefined;
|
|
42
26
|
getShownColumns: () => TableColumnsType<any>;
|
|
43
27
|
} | null;
|
|
44
|
-
},
|
|
45
|
-
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) =>
|
|
46
|
-
}, string, PublicProps, Readonly<
|
|
47
|
-
confirmLoading: undefined;
|
|
48
|
-
closable: undefined;
|
|
49
|
-
centered: undefined;
|
|
50
|
-
maskClosable: undefined;
|
|
51
|
-
forceRender: undefined;
|
|
52
|
-
destroyOnClose: undefined;
|
|
53
|
-
getContainer: undefined;
|
|
54
|
-
mask: undefined;
|
|
55
|
-
keyboard: undefined;
|
|
56
|
-
focusTriggerAfterClose: undefined;
|
|
57
|
-
api: () => Promise<{
|
|
58
|
-
records: never[];
|
|
59
|
-
total: number;
|
|
60
|
-
}>;
|
|
61
|
-
maxCount: number;
|
|
62
|
-
isRenderModalTitleSuffix: boolean;
|
|
63
|
-
}>>> & {
|
|
28
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
29
|
+
finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => any;
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
64
31
|
onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
|
|
65
|
-
}
|
|
32
|
+
}>, {
|
|
66
33
|
mask: boolean;
|
|
67
34
|
api: (params: any) => Promise<{
|
|
68
35
|
records: any[];
|
|
@@ -79,22 +46,5 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
79
46
|
focusTriggerAfterClose: boolean;
|
|
80
47
|
maxCount: number;
|
|
81
48
|
isRenderModalTitleSuffix: boolean;
|
|
82
|
-
}, {}>;
|
|
49
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
83
50
|
export default _default;
|
|
84
|
-
type __VLS_WithDefaults<P, D> = {
|
|
85
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
86
|
-
default: D[K];
|
|
87
|
-
}> : P[K];
|
|
88
|
-
};
|
|
89
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
90
|
-
type __VLS_TypePropsToOption<T> = {
|
|
91
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
92
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
93
|
-
} : {
|
|
94
|
-
type: PropType<T[K]>;
|
|
95
|
-
required: true;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
type __VLS_PrettifyLocal<T> = {
|
|
99
|
-
[K in keyof T]: T[K];
|
|
100
|
-
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),v=require("@aplus-frontend/antdv");require("../../index.js");const y=require("lodash-unified"),L=require("@aplus-frontend/utils");require("./modal-title.vue.js");const b=require("./interface.js");require("./table-layout/index.vue.js");const N=require("../../config-provider/hooks/use-global-config.js"),D=require("../../config-provider/hooks/use-locale.js"),E=require("./modal-title.vue2.js"),G=require("./table-layout/index.vue2.js"),U=require("../../ap-table/index.js"),F=o.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{}},emits:["finish"],setup(k,{expose:T,emit:h}){const e=k,S=h,i=o.ref(!1),x=o.ref({}),d=o.ref(null),n=o.ref([]),g=o.ref();let c=null,r=null;const _=N.useGlobalConfig("uiMode","admin"),{t:C}=D.useLocale(),R=async(a=[],t={})=>{var l,u,s;switch(n.value=[...a],i.value=!0,x.value=t==null?void 0:t.extraParams,g.value=t.apTableDataSources||((l=e.apTableProps)==null?void 0:l.dataSource),t.refreshMode||"reset"){case"reset":(u=d.value)==null||u.reset();break;case"submit":(s=d.value)==null||s.submit();break;case"none":break}return new Promise((p,f)=>{c=p,r=f})},w=()=>{i.value=!1,c=null,r==null||r(b.AsyncOpenResultError.ModalCancel),r=null},M=async a=>{a=L.transformTableParams({...a,...x.value});const t=e.api,{records:l,total:u}=await t(a);return{data:l,total:u}},P=()=>{if(n.value.length>e.maxCount){r==null||r(b.AsyncOpenResultError.ExceedMaxCount);return}if(e.getRowKey){const a=y.cloneDeep(o.unref(n)),t=a.map(e.getRowKey);S("finish",t,a),c==null||c({keys:t,rows:a})}else{r==null||r(b.AsyncOpenResultError.NotFineGetRowKey);return}i.value=!1},B=o.computed(()=>{if(!e.getRowKey)return;const a=e.getRowKey;return{fixed:!0,selectedRowKeys:n.value.map(a),columnWidth:50,preserveSelectedRowKeys:!0,onSelectAll(t,l){var s,p;if(l.length>e.maxCount){v.message.warning(C("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}const u=(s=d.value)==null?void 0:s.dataSource;if(t){const f=o.unref(u).filter(m=>!n.value.some(A=>a(A)===a(m)));n.value=n.value.concat(f)}else n.value=(p=n.value)==null?void 0:p.filter(f=>!u.some(m=>a(m)===a(f)))},onSelect(t,l){if(l){if(n.value.length>=e.maxCount){v.message.warning(C("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}n.value.push(t)}else{const u=n.value.findIndex(s=>a(t)===a(s));n.value.splice(u,1)}},getCheckboxProps:t=>({disabled:typeof e.disabledCheckbox=="function"?e.disabledCheckbox(t,n.value):e.disabledCheckbox}),...e.rowSelection||{}}}),q=()=>e.isRenderModalTitleSuffix?o.h(E.default,{title:e.title,count:n.value.length||0,maxCount:e.maxCount},{default:e.renderModalTitleSuffix??void 0}):e.title,K=()=>d.value,I=()=>{n.value=[]},O=a=>{const t=e.getRowKey;if(!t)return;const l=n.value.findIndex(u=>t(a)===t(u));n.value.splice(l,1)};return T({open:R,close:w,getApTableInstance:K}),(a,t)=>(o.openBlock(),o.createBlock(o.unref(v.Modal),o.mergeProps({
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),v=require("@aplus-frontend/antdv");require("../../index.js");const y=require("lodash-unified"),L=require("@aplus-frontend/utils");require("./modal-title.vue.js");const b=require("./interface.js");require("./table-layout/index.vue.js");const N=require("../../config-provider/hooks/use-global-config.js"),D=require("../../config-provider/hooks/use-locale.js"),E=require("./modal-title.vue2.js"),G=require("./table-layout/index.vue2.js"),U=require("../../ap-table/index.js"),F=o.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{}},emits:["finish"],setup(k,{expose:T,emit:h}){const e=k,S=h,i=o.ref(!1),x=o.ref({}),d=o.ref(null),n=o.ref([]),g=o.ref();let c=null,r=null;const _=N.useGlobalConfig("uiMode","admin"),{t:C}=D.useLocale(),R=async(a=[],t={})=>{var l,u,s;switch(n.value=[...a],i.value=!0,x.value=t==null?void 0:t.extraParams,g.value=t.apTableDataSources||((l=e.apTableProps)==null?void 0:l.dataSource),t.refreshMode||"reset"){case"reset":(u=d.value)==null||u.reset();break;case"submit":(s=d.value)==null||s.submit();break;case"none":break}return new Promise((p,f)=>{c=p,r=f})},w=()=>{i.value=!1,c=null,r==null||r(b.AsyncOpenResultError.ModalCancel),r=null},M=async a=>{a=L.transformTableParams({...a,...x.value});const t=e.api,{records:l,total:u}=await t(a);return{data:l,total:u}},P=()=>{if(n.value.length>e.maxCount){r==null||r(b.AsyncOpenResultError.ExceedMaxCount);return}if(e.getRowKey){const a=y.cloneDeep(o.unref(n)),t=a.map(e.getRowKey);S("finish",t,a),c==null||c({keys:t,rows:a})}else{r==null||r(b.AsyncOpenResultError.NotFineGetRowKey);return}i.value=!1},B=o.computed(()=>{if(!e.getRowKey)return;const a=e.getRowKey;return{fixed:!0,selectedRowKeys:n.value.map(a),columnWidth:50,preserveSelectedRowKeys:!0,onSelectAll(t,l){var s,p;if(l.length>e.maxCount){v.message.warning(C("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}const u=(s=d.value)==null?void 0:s.dataSource;if(t){const f=o.unref(u).filter(m=>!n.value.some(A=>a(A)===a(m)));n.value=n.value.concat(f)}else n.value=(p=n.value)==null?void 0:p.filter(f=>!u.some(m=>a(m)===a(f)))},onSelect(t,l){if(l){if(n.value.length>=e.maxCount){v.message.warning(C("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}n.value.push(t)}else{const u=n.value.findIndex(s=>a(t)===a(s));n.value.splice(u,1)}},getCheckboxProps:t=>({disabled:typeof e.disabledCheckbox=="function"?e.disabledCheckbox(t,n.value):e.disabledCheckbox}),...e.rowSelection||{}}}),q=()=>e.isRenderModalTitleSuffix?o.h(E.default,{title:e.title,count:n.value.length||0,maxCount:e.maxCount},{default:e.renderModalTitleSuffix??void 0}):e.title,K=()=>d.value,I=()=>{n.value=[]},O=a=>{const t=e.getRowKey;if(!t)return;const l=n.value.findIndex(u=>t(a)===t(u));n.value.splice(l,1)};return T({open:R,close:w,getApTableInstance:K}),(a,t)=>(o.openBlock(),o.createBlock(o.unref(v.Modal),o.mergeProps({open:i.value,"onUpdate:open":t[0]||(t[0]=l=>i.value=l)},o.unref(y.omit)(e,["api","getRowKey","centered","apTableProps","onOk","maxCount","title","renderModalTitleSuffix","isRenderModalTitleSuffix","rowSelection","disabledCheckbox","tableLayoutConfig"]),{title:q(),"body-style":{maxHeight:"calc(100vh - 205px)",overflowY:"scroll"},centered:e.centered??!0,onOk:P,onCancel:w}),{default:o.withCtx(()=>[o.createVNode(G.default,o.mergeProps(e.tableLayoutConfig||{},{"selected-list":n.value,onClear:I,onDeleteItem:O}),{default:o.withCtx(()=>[o.createVNode(o.unref(U.ApTable),o.mergeProps(o.unref(y.omit)(e.apTableProps,"dataSource"),{ref_key:"apTableRef",ref:d,scroll:{y:"100%"},style:{padding:"0px"},columns:a.columns,request:M,"row-key":a.getRowKey,"row-selection":B.value,bordered:o.unref(_)==="admin","data-source":g.value}),null,16,["columns","row-key","row-selection","bordered","data-source"])]),_:1},16,["selected-list"])]),_:1},16,["open","title","centered"]))}});exports.default=F;
|
|
@@ -1,54 +1,26 @@
|
|
|
1
1
|
import { ApTitleProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
4
5
|
slots: {
|
|
5
6
|
prefix?(_: {}): any;
|
|
6
7
|
suffix?(_: {}): any;
|
|
7
8
|
};
|
|
8
9
|
refs: {};
|
|
9
|
-
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: DefineComponent<
|
|
13
|
-
title: string;
|
|
14
|
-
helpMessage: string;
|
|
15
|
-
helpIconColor: string;
|
|
16
|
-
placement: string;
|
|
17
|
-
trigger: string;
|
|
18
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTitleProps>, {
|
|
19
|
-
title: string;
|
|
20
|
-
helpMessage: string;
|
|
21
|
-
helpIconColor: string;
|
|
22
|
-
placement: string;
|
|
23
|
-
trigger: string;
|
|
24
|
-
}>>>, {
|
|
13
|
+
declare const __VLS_component: DefineComponent<ApTitleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTitleProps> & Readonly<{}>, {
|
|
25
14
|
title: string;
|
|
26
15
|
placement: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
27
16
|
trigger: "hover" | "focus" | "click" | "contextmenu";
|
|
28
17
|
helpMessage: string;
|
|
29
18
|
helpIconColor: string;
|
|
30
|
-
}, {}>;
|
|
19
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
31
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
21
|
export default _default;
|
|
33
|
-
type __VLS_WithDefaults<P, D> = {
|
|
34
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
35
|
-
default: D[K];
|
|
36
|
-
}> : P[K];
|
|
37
|
-
};
|
|
38
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
-
type __VLS_TypePropsToOption<T> = {
|
|
40
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
-
} : {
|
|
43
|
-
type: PropType<T[K]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
23
|
new (): {
|
|
49
24
|
$slots: S;
|
|
50
25
|
};
|
|
51
26
|
};
|
|
52
|
-
type __VLS_PrettifyLocal<T> = {
|
|
53
|
-
[K in keyof T]: T[K];
|
|
54
|
-
} & {};
|
|
@@ -1,98 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
|
+
import { ApTitleProps } from './interface';
|
|
2
3
|
export * from './interface';
|
|
3
4
|
declare const ApTitle: {
|
|
4
|
-
new (...args: any[]):
|
|
5
|
-
title: {
|
|
6
|
-
type: PropType<string>;
|
|
7
|
-
required: true;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
placement: {
|
|
11
|
-
type: PropType<"left" | "top" | "topLeft" | "right" | "bottom" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
12
|
-
required: true;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
trigger: {
|
|
16
|
-
type: PropType<"click" | "contextmenu" | "focus" | "hover">;
|
|
17
|
-
required: true;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
helpMessage: {
|
|
21
|
-
type: PropType<string>;
|
|
22
|
-
required: true;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
helpIconColor: {
|
|
26
|
-
type: PropType<string>;
|
|
27
|
-
required: true;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
31
|
-
title: {
|
|
32
|
-
type: PropType<string>;
|
|
33
|
-
required: true;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
placement: {
|
|
37
|
-
type: PropType<"left" | "top" | "topLeft" | "right" | "bottom" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
38
|
-
required: true;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
trigger: {
|
|
42
|
-
type: PropType<"click" | "contextmenu" | "focus" | "hover">;
|
|
43
|
-
required: true;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
helpMessage: {
|
|
47
|
-
type: PropType<string>;
|
|
48
|
-
required: true;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
helpIconColor: {
|
|
52
|
-
type: PropType<string>;
|
|
53
|
-
required: true;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
}>>, {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApTitleProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
57
6
|
title: string;
|
|
58
7
|
placement: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
59
8
|
trigger: "hover" | "focus" | "click" | "contextmenu";
|
|
60
9
|
helpMessage: string;
|
|
61
10
|
helpIconColor: string;
|
|
62
|
-
},
|
|
11
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
63
12
|
P: {};
|
|
64
13
|
B: {};
|
|
65
14
|
D: {};
|
|
66
15
|
C: {};
|
|
67
16
|
M: {};
|
|
68
17
|
Defaults: {};
|
|
69
|
-
}, Readonly<
|
|
70
|
-
title: {
|
|
71
|
-
type: PropType<string>;
|
|
72
|
-
required: true;
|
|
73
|
-
default: string;
|
|
74
|
-
};
|
|
75
|
-
placement: {
|
|
76
|
-
type: PropType<"left" | "top" | "topLeft" | "right" | "bottom" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
77
|
-
required: true;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
trigger: {
|
|
81
|
-
type: PropType<"click" | "contextmenu" | "focus" | "hover">;
|
|
82
|
-
required: true;
|
|
83
|
-
default: string;
|
|
84
|
-
};
|
|
85
|
-
helpMessage: {
|
|
86
|
-
type: PropType<string>;
|
|
87
|
-
required: true;
|
|
88
|
-
default: string;
|
|
89
|
-
};
|
|
90
|
-
helpIconColor: {
|
|
91
|
-
type: PropType<string>;
|
|
92
|
-
required: true;
|
|
93
|
-
default: string;
|
|
94
|
-
};
|
|
95
|
-
}>>, {}, {}, {}, {}, {
|
|
18
|
+
}, Readonly< ApTitleProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
96
19
|
title: string;
|
|
97
20
|
placement: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
98
21
|
trigger: "hover" | "focus" | "click" | "contextmenu";
|
|
@@ -102,39 +25,13 @@ declare const ApTitle: {
|
|
|
102
25
|
__isFragment?: never;
|
|
103
26
|
__isTeleport?: never;
|
|
104
27
|
__isSuspense?: never;
|
|
105
|
-
} & ComponentOptionsBase<Readonly<
|
|
106
|
-
title: {
|
|
107
|
-
type: PropType<string>;
|
|
108
|
-
required: true;
|
|
109
|
-
default: string;
|
|
110
|
-
};
|
|
111
|
-
placement: {
|
|
112
|
-
type: PropType<"left" | "top" | "topLeft" | "right" | "bottom" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
113
|
-
required: true;
|
|
114
|
-
default: string;
|
|
115
|
-
};
|
|
116
|
-
trigger: {
|
|
117
|
-
type: PropType<"click" | "contextmenu" | "focus" | "hover">;
|
|
118
|
-
required: true;
|
|
119
|
-
default: string;
|
|
120
|
-
};
|
|
121
|
-
helpMessage: {
|
|
122
|
-
type: PropType<string>;
|
|
123
|
-
required: true;
|
|
124
|
-
default: string;
|
|
125
|
-
};
|
|
126
|
-
helpIconColor: {
|
|
127
|
-
type: PropType<string>;
|
|
128
|
-
required: true;
|
|
129
|
-
default: string;
|
|
130
|
-
};
|
|
131
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
28
|
+
} & ComponentOptionsBase<Readonly< ApTitleProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
132
29
|
title: string;
|
|
133
30
|
placement: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
134
31
|
trigger: "hover" | "focus" | "click" | "contextmenu";
|
|
135
32
|
helpMessage: string;
|
|
136
33
|
helpIconColor: string;
|
|
137
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
34
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
138
35
|
$slots: {
|
|
139
36
|
prefix?(_: {}): any;
|
|
140
37
|
suffix?(_: {}): any;
|
|
@@ -9,17 +9,17 @@ export interface ApTitleProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* 帮助消息
|
|
11
11
|
*/
|
|
12
|
-
helpMessage
|
|
12
|
+
helpMessage?: string;
|
|
13
13
|
/**
|
|
14
14
|
* 帮助消息图标颜色
|
|
15
15
|
*/
|
|
16
|
-
helpIconColor
|
|
16
|
+
helpIconColor?: string;
|
|
17
17
|
/**
|
|
18
18
|
* 气泡框位置 默认top
|
|
19
19
|
*/
|
|
20
|
-
placement
|
|
20
|
+
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
21
21
|
/**
|
|
22
22
|
* 气泡触发行为 默认hover
|
|
23
23
|
*/
|
|
24
|
-
trigger
|
|
24
|
+
trigger?: 'hover' | 'focus' | 'click' | 'contextmenu';
|
|
25
25
|
}
|
|
@@ -1,50 +1,30 @@
|
|
|
1
|
-
import { ApUploadSingleProps } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
1
|
+
import { ApUploadFile, ApUploadSingleProps } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = ApUploadSingleProps;
|
|
3
4
|
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
4
6
|
slots: {
|
|
5
|
-
default?(_: {
|
|
7
|
+
default?(_: {
|
|
8
|
+
file: ApUploadFile | undefined;
|
|
9
|
+
clear: () => void | undefined;
|
|
10
|
+
}): any;
|
|
6
11
|
};
|
|
7
12
|
refs: {};
|
|
8
|
-
|
|
13
|
+
rootEl: any;
|
|
9
14
|
};
|
|
10
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: DefineComponent<
|
|
12
|
-
needName: boolean;
|
|
13
|
-
maxSize: number;
|
|
14
|
-
accept: string;
|
|
15
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
17
|
"update:fileList": (...args: any[]) => void;
|
|
17
|
-
}, string, PublicProps, Readonly<
|
|
18
|
-
needName: boolean;
|
|
19
|
-
maxSize: number;
|
|
20
|
-
accept: string;
|
|
21
|
-
}>>> & {
|
|
18
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
19
|
"onUpdate:fileList"?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}
|
|
20
|
+
}>, {
|
|
24
21
|
accept: string;
|
|
25
22
|
maxSize: number;
|
|
26
|
-
}, {}>;
|
|
23
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
27
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
25
|
export default _default;
|
|
29
|
-
type __VLS_WithDefaults<P, D> = {
|
|
30
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
31
|
-
default: D[K];
|
|
32
|
-
}> : P[K];
|
|
33
|
-
};
|
|
34
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
-
type __VLS_TypePropsToOption<T> = {
|
|
36
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
-
} : {
|
|
39
|
-
type: PropType<T[K]>;
|
|
40
|
-
required: true;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
27
|
new (): {
|
|
45
28
|
$slots: S;
|
|
46
29
|
};
|
|
47
30
|
};
|
|
48
|
-
type __VLS_PrettifyLocal<T> = {
|
|
49
|
-
[K in keyof T]: T[K];
|
|
50
|
-
} & {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../utils/fileList.js"),d=require("../icon/file-icon.vue.js"),m=require("../icon/delete-icon.vue.js"),r=require("@aplus-frontend/antdv"),P=require("@aplus-frontend/antdv/es/form/FormItemContext"),L=require("../hook/useProps.js"),A=require("../hook/useInjectContext.js"),j=require("lodash-unified");require("../../../config-provider/index.js");const y=require("../../../config-provider/hooks/use-global-config.js"),O=require("../../../config-provider/hooks/use-locale.js"),U=require("../../../config-provider/hooks/use-namespace.js"),$=e.defineComponent({__name:"ap-upload-single",props:{dirName:{},getOssAccess:{},fileList:{},onChange:{},maxSize:{default:500},accept:{default:"*"},beforeUpload:{},customRequest:{},maxSizeErrorMsg:{},acceptErrorMsg:{},title:{type:[Object,String,Number,Boolean,null,Array]},subTitle:{type:[Object,String,Number,Boolean,null,Array]}},emits:["update:fileList"],setup(k,{emit:x}){var g;const E=P.FormItemInputContext.useInject(),z=e.computed(()=>E.status),i=k,b=x,f=r.Form.useInjectFormItemContext(),s=e.computed({get(){return i.fileList||[]},set(o){b("update:fileList",o),f==null||f.onFieldChange()}}),l=e.computed(()=>{var o;return(o=s.value)==null?void 0:o[0]}),q=y.useGlobalConfig("apUpload"),{t:B,lang:S}=O.useLocale(),{title:h,subTitle:w,beforeUpload:T,customRequest:D}=L.useSingleProps(i),F=D;A.useInjectContext(B,S,(i==null?void 0:i.getOssAccess)??((g=q.value)==null?void 0:g.getOssAccess));const{b:p,e:t}=U.useNamespace("ap-upload-single"),v=y.useGlobalConfig("uiMode");function I(o){return j.omit(o,["dirName","needName","getOssAccess","fileList","title","subTitle"])}return(o,n)=>(e.openBlock(),e.createBlock(e.unref(r.UploadDragger),e.mergeProps({...o.$attrs,...I(i)},{"file-list":s.value,"onUpdate:fileList":n[3]||(n[3]=u=>s.value=u),"max-count":1,"show-upload-list":!1,disabled:!!l.value&&[void 0,"uploading","error","success","done"].includes(l.value.status),class:[e.unref(p)(),`${e.unref(p)()}-affix-wrapper-status-${z.value}`],"before-upload":e.unref(T),"custom-request":e.unref(F)}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",e.normalizeProps(e.guardReactiveProps({file:l.value,clear:()=>l.value&&e.unref(c.clearSingleFile)(l.value,s.value,{maxCount:1})})),()=>{var u,C,N,V;return[e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content")])},[(u=l.value)!=null&&u.status&&["uploading"].includes(l.value.status)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(t)("content-file"),e.unref(t)("content-ing")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-icon")])},[e.createVNode(d.default)],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-name"),e.unref(t)("content-ing-name")])},[e.createVNode(e.unref(r.TypographyParagraph),{ellipsis:{rows:2},tooltip:l.value.error},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.name),1)]),_:1},8,["tooltip"]),e.createVNode(e.unref(r.Progress),{percent:l.value.percent||0,size:4,"show-info":!1,"trail-color":e.unref(v)==="admin"?"#D9D9D9":"#DEE4ED","stroke-color":e.unref(v)==="admin"?"#34B77C":"#0070FF"},null,8,["percent","trail-color","stroke-color"])],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-delete")]),onClick:n[0]||(n[0]=a=>e.unref(c.clearAllFile)(s.value))},[e.createVNode(m.default)],2)],2)):(C=l.value)!=null&&C.status&&["error"].includes(l.value.status)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(t)("content-file"),e.unref(t)("content-error")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-icon")])},[e.createVNode(d.default)],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-name"),e.unref(t)("content-error-name")])},[e.createVNode(e.unref(r.Tooltip),null,{title:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString(((a=l.value)==null?void 0:a.error)||"--"),1)]}),default:e.withCtx(()=>[e.createVNode(e.unref(r.TypographyParagraph),{ellipsis:{rows:2},tooltip:l.value.error},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.name),1)]),_:1},8,["tooltip"])]),_:1})],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-delete")]),onClick:n[1]||(n[1]=a=>e.unref(c.clearAllFile)(s.value))},[e.createVNode(m.default)],2)],2)):l.value&&((N=l.value)==null?void 0:N.status)===void 0||(V=l.value)!=null&&V.status&&["success","done"].includes(l.value.status)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([e.unref(t)("content-file"),e.unref(t)("content-done")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-icon")])},[e.createVNode(d.default)],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-name"),e.unref(t)("content-done-name")])},[e.createVNode(e.unref(r.Tooltip),null,{title:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString(((a=l.value)==null?void 0:a.name)||"--"),1)]}),default:e.withCtx(()=>[e.createVNode(e.unref(r.TypographyParagraph),{ellipsis:{rows:2},tooltip:l.value.error},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.name),1)]),_:1},8,["tooltip"])]),_:1})],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-file-delete")]),onClick:n[2]||(n[2]=a=>e.unref(c.clearAllFile)(s.value))},[e.createVNode(m.default)],2)],2)):(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass([e.unref(t)("content-empty")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-empty-icon")])},[e.createVNode(d.default)],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-empty-title")])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[e.unref(h)]))))],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(t)("content-empty-sub-title")])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[e.unref(w)]))))],2)],2))],2)]})]),_:3},16,["file-list","disabled","class","before-upload","custom-request"]))}});exports.default=$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),q=require("../utils/accept.js");require("../../../config-provider/index.js");const a=require("../utils/upload.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),q=require("../utils/accept.js");require("../../../config-provider/index.js");const a=require("../utils/upload.js"),o=require("../../../config-provider/hooks/use-locale.js");function U(e){const{t:l}=o.useLocale(),i=n.computed(()=>e.title||l("ap.apUpload.clickOrDragUpload")),d=n.computed(()=>e.subTitle||`${l("ap.apUpload.supportExtension")}:${q.getAcceptText(e.accept)},${l("ap.apUpload.maxWarnUploadFileSize",{maxSize:e.maxSize})}`);function m(t,u){var c;return a.uploadBeforeUpload(t,u,e)&&(((c=e==null?void 0:e.beforeUpload)==null?void 0:c.call(e,t,u))??!0)}return{title:i,subTitle:d,beforeUpload:m,customRequest:t=>{var u,c;e!=null&&e.customRequest?(u=e==null?void 0:e.customRequest)==null||u.call(e,t):(c=a.uploadCustomRequest)==null||c.call(a,t,e)}}}exports.useSingleProps=U;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
3
3
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../../_virtual/_plugin-vue_export-helper.js"),n={},o={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",viewBox:"0 0 20 20"};function r(i,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",null,[e.createElementVNode("g",null,[e.createElementVNode("path",{d:"M14.2913,4.375L16.875,4.375C17.2202,4.375,17.5,4.65482,17.5,5C17.5,5.34518,17.2202,5.625,16.875,5.625L15.9375,5.625L15.9375,15.625Q15.9375,16.401699999999998,15.3883,16.9508Q14.8392,17.5,14.0625,17.5L5.9375,17.5Q5.16085,17.5,4.61167,16.9508Q4.0625,16.401699999999998,4.0625,15.625L4.0625,5.625L3.125,5.625C2.7798220000000002,5.625,2.5,5.34518,2.5,5C2.5,4.65482,2.7798220000000002,4.375,3.125,4.375L5.70873,4.375C5.71225,4.3689,5.71588,4.3628599999999995,5.719609999999999,4.35687L6.71624,2.75811Q7.26675,1.875,8.307400000000001,1.875L11.6926,1.875Q12.7332,1.875,13.2838,2.75811L14.2802,4.3565000000000005C14.284,4.36261,14.2877,4.36878,14.2913,4.375ZM12.8187,4.375L12.22299,3.41937Q12.03948,3.125,11.6926,3.125L8.307400000000001,3.125Q7.96052,3.125,7.77702,3.41937L7.1813,4.375L12.8187,4.375ZM5.3125,5.625L14.6875,5.625L14.6875,15.625Q14.6875,15.8839,14.5044,16.0669Q14.3214,16.25,14.0625,16.25L5.9375,16.25Q5.6786200000000004,16.25,5.495559999999999,16.0669Q5.3125,15.8839,5.3125,15.625L5.3125,5.625ZM9.375,8.75C9.375,8.40482,9.65482,8.125,10,8.125C10.34518,8.125,10.625,8.40482,10.625,8.75L10.625,13.125C10.625,13.4702,10.34518,13.75,10,13.75C9.65482,13.75,9.375,13.4702,9.375,13.125L9.375,8.75Z","fill-rule":"evenodd",fill:"currentColor","fill-opacity":"1"})])],-1)]))}const L=l.default(n,[["render",r]]);exports.default=L;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
3
3
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),o=require("../../../../_virtual/_plugin-vue_export-helper.js"),i={},l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",viewBox:"0 0 56 56"};function r(p,e){return t.openBlock(),t.createElementBlock("svg",l,e[0]||(e[0]=[t.createStaticVNode('<defs><clipPath id="master_svg0_693_19001"><rect x="0" y="0" width="56" height="56" rx="7"></rect></clipPath><linearGradient id="master_svg1_693_19025" x1="0.5" y1="0" x2="0.5" y2="0.7987817525863647"><stop offset="0%" stop-color="#AED1FF" stop-opacity="1"></stop><stop offset="100%" stop-color="#74B1FF" stop-opacity="1"></stop></linearGradient><linearGradient id="master_svg2_693_19014" x1="0.5" y1="0" x2="0.5" y2="1"><stop offset="0.7142857182770967%" stop-color="#DBEBFF" stop-opacity="1"></stop><stop offset="100%" stop-color="#98C5FF" stop-opacity="1"></stop></linearGradient></defs><g clip-path="url(#master_svg0_693_19001)"><g><g><path d="M49.4644,10.22729L35.1706,10.22729C34.2282,10.22729,33.316,9.89456,32.595,9.287759999999999L29.1746,6.4093C28.0931,5.499102,26.7249,5,25.3113,5L5.5,5C3.29086,5,1.5,6.79086,1.5,9L1.5,45L54.4995,45L54.5,15.2852C54.5,12.49165,52.2455,10.22729,49.4644,10.22729Z" fill="url(#master_svg1_693_19025)" fill-opacity="1"></path></g><g><path d="M10.5,13L45.5,13C46.6046,13,47.5,13.895431,47.5,15L47.5,35.9999L8.5,36L8.5,15C8.5,13.895431,9.395431,13,10.5,13" fill="#FFFFFF" fill-opacity="0.30000001192092896"></path></g><g><path d="M8.5,17L47.5,17C48.6046,17,49.5,17.895431,49.5,19L49.5,41.9998L6.5,42L6.5,19C6.5,17.895431,7.395431,17,8.5,17" fill="#F9FCFF" fill-opacity="1"></path></g><g><rect x="14.5" y="21" width="15" height="2" rx="1" fill="#8DBFFF" fill-opacity="0.30000001192092896"></rect></g><g><rect x="14.5" y="27" width="28" height="2" rx="1" fill="#8DBFFF" fill-opacity="0.6000000238418579"></rect></g><g><path d="M1.5,37L1.5,48C1.5,50.2091,3.29086,52,5.5,52L50.5,52C52.7091,52,54.5,50.2091,54.5,48L54.5,37C54.5,35.34315,53.1569,34,51.5,34L4.5,34C2.84315,34,1.5,35.34315,1.5,37Z" fill="url(#master_svg2_693_19014)" fill-opacity="1"></path></g></g></g>',2)]))}const s=o.default(i,[["render",r]]);exports.default=s;
|
|
@@ -21,6 +21,8 @@ export type ApUploadBaseProps<T = any> = {
|
|
|
21
21
|
accept?: string;
|
|
22
22
|
beforeUpload?: (file: ApUploadFile<T>, fileList: ApUploadFile<T>[]) => boolean | Promise<boolean>;
|
|
23
23
|
customRequest?: ApUploadCustomRequest;
|
|
24
|
+
maxSizeErrorMsg?: string;
|
|
25
|
+
acceptErrorMsg?: string;
|
|
24
26
|
};
|
|
25
27
|
export type ApUploadSingleProps<T = any> = ApUploadBaseProps<T> & {
|
|
26
28
|
title?: VNodeChild;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApUploadFile } from '../interface';
|
|
2
|
-
export declare function clearSingleFile(file
|
|
2
|
+
export declare function clearSingleFile(file?: ApUploadFile | undefined, fileList?: ApUploadFile[], props?: {
|
|
3
3
|
maxCount?: number;
|
|
4
4
|
}): void;
|
|
5
|
-
export declare function clearAllFile(fileList
|
|
5
|
+
export declare function clearAllFile(fileList?: ApUploadFile[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function g(n,a,u){var o;(n==null?void 0:n.status)==="uploading"&&((o=n==null?void 0:n.ossDestroy)==null||o.call(n));const c=a==null?void 0:a.findIndex(d=>d.uid===(n==null?void 0:n.uid));c!==void 0&&c>-1&&(a==null||a.splice(c,1),u!=null&&u.maxCount&&a&&(a==null?void 0:a.length)>=u.maxCount&&(a==null||a.splice(u.maxCount)))}function r(n){n==null||n.forEach(a=>{var u;a.status==="uploading"&&((u=a.ossDestroy)==null||u.call(a))}),n==null||n.splice(0)}exports.clearAllFile=r;exports.clearSingleFile=g;
|