@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,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as Q, computed as
|
|
2
|
-
import { clearAllFile as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { Form as
|
|
6
|
-
import { FormItemInputContext as
|
|
7
|
-
import { useSingleProps as
|
|
8
|
-
import { useInjectContext as
|
|
9
|
-
import { omit as
|
|
1
|
+
import { defineComponent as Q, computed as C, openBlock as m, createBlock as k, unref as e, mergeProps as W, withCtx as u, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z, createElementVNode as s, normalizeClass as l, createElementBlock as g, createVNode as n, createTextVNode as p, toDisplayString as f, resolveDynamicComponent as E, h as P, Fragment as $ } from "vue";
|
|
2
|
+
import { clearSingleFile as ee, clearAllFile as x } from "../utils/fileList.mjs";
|
|
3
|
+
import b from "../icon/file-icon.vue.mjs";
|
|
4
|
+
import F from "../icon/delete-icon.vue.mjs";
|
|
5
|
+
import { Form as te, UploadDragger as oe, TypographyParagraph as I, Progress as le, Tooltip as q } from "@aplus-frontend/antdv";
|
|
6
|
+
import { FormItemInputContext as se } from "@aplus-frontend/antdv/es/form/FormItemContext";
|
|
7
|
+
import { useSingleProps as ne } from "../hook/useProps.mjs";
|
|
8
|
+
import { useInjectContext as ae } from "../hook/useInjectContext.mjs";
|
|
9
|
+
import { omit as ie } from "lodash-unified";
|
|
10
10
|
import "../../../config-provider/index.mjs";
|
|
11
|
-
import { useGlobalConfig as
|
|
12
|
-
import { useLocale as
|
|
13
|
-
import { useNamespace as
|
|
14
|
-
const
|
|
11
|
+
import { useGlobalConfig as B } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
12
|
+
import { useLocale as re } from "../../../config-provider/hooks/use-locale.mjs";
|
|
13
|
+
import { useNamespace as ue } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
const Ie = /* @__PURE__ */ Q({
|
|
15
15
|
__name: "ap-upload-single",
|
|
16
16
|
props: {
|
|
17
17
|
dirName: {},
|
|
@@ -22,36 +22,38 @@ const ke = /* @__PURE__ */ Q({
|
|
|
22
22
|
accept: { default: "*" },
|
|
23
23
|
beforeUpload: {},
|
|
24
24
|
customRequest: {},
|
|
25
|
+
maxSizeErrorMsg: {},
|
|
26
|
+
acceptErrorMsg: {},
|
|
25
27
|
title: { type: [Object, String, Number, Boolean, null, Array] },
|
|
26
28
|
subTitle: { type: [Object, String, Number, Boolean, null, Array] }
|
|
27
29
|
},
|
|
28
30
|
emits: ["update:fileList"],
|
|
29
|
-
setup(
|
|
31
|
+
setup(O, { emit: T }) {
|
|
30
32
|
var D;
|
|
31
|
-
const
|
|
33
|
+
const U = se.useInject(), j = C(() => U.status), d = O, z = T, y = te.useInjectFormItemContext(), c = C({
|
|
32
34
|
get() {
|
|
33
35
|
return d.fileList || [];
|
|
34
36
|
},
|
|
35
|
-
set(
|
|
36
|
-
|
|
37
|
+
set(a) {
|
|
38
|
+
z("update:fileList", a), y == null || y.onFieldChange();
|
|
37
39
|
}
|
|
38
|
-
}), o =
|
|
39
|
-
var
|
|
40
|
-
return (
|
|
41
|
-
}),
|
|
42
|
-
title:
|
|
40
|
+
}), o = C(() => {
|
|
41
|
+
var a;
|
|
42
|
+
return (a = c.value) == null ? void 0 : a[0];
|
|
43
|
+
}), R = B("apUpload"), { t: M, lang: V } = re(), {
|
|
44
|
+
title: _,
|
|
43
45
|
subTitle: h,
|
|
44
46
|
beforeUpload: G,
|
|
45
47
|
customRequest: H
|
|
46
|
-
} =
|
|
47
|
-
|
|
48
|
+
} = ne(d), J = H;
|
|
49
|
+
ae(
|
|
50
|
+
M,
|
|
48
51
|
V,
|
|
49
|
-
|
|
50
|
-
(d == null ? void 0 : d.getOssAccess) ?? ((D = z.value) == null ? void 0 : D.getOssAccess)
|
|
52
|
+
(d == null ? void 0 : d.getOssAccess) ?? ((D = R.value) == null ? void 0 : D.getOssAccess)
|
|
51
53
|
);
|
|
52
|
-
const { b:
|
|
53
|
-
function K(
|
|
54
|
-
return
|
|
54
|
+
const { b: N, e: t } = ue("ap-upload-single"), S = B("uiMode");
|
|
55
|
+
function K(a) {
|
|
56
|
+
return ie(a, [
|
|
55
57
|
"dirName",
|
|
56
58
|
"needName",
|
|
57
59
|
"getOssAccess",
|
|
@@ -60,40 +62,42 @@ const ke = /* @__PURE__ */ Q({
|
|
|
60
62
|
"subTitle"
|
|
61
63
|
]);
|
|
62
64
|
}
|
|
63
|
-
return (
|
|
64
|
-
|
|
65
|
-
showUploadList: !1,
|
|
66
|
-
disabled: !!o.value && [void 0, "uploading", "error", "success", "done"].includes(o.value.status)
|
|
67
|
-
}, {
|
|
68
|
-
...i.$attrs,
|
|
65
|
+
return (a, i) => (m(), k(e(oe), W({
|
|
66
|
+
...a.$attrs,
|
|
69
67
|
...K(d)
|
|
70
68
|
}, {
|
|
71
|
-
"file-list":
|
|
72
|
-
"onUpdate:fileList":
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
"file-list": c.value,
|
|
70
|
+
"onUpdate:fileList": i[3] || (i[3] = (v) => c.value = v),
|
|
71
|
+
"max-count": 1,
|
|
72
|
+
"show-upload-list": !1,
|
|
73
|
+
disabled: !!o.value && [void 0, "uploading", "error", "success", "done"].includes(o.value.status),
|
|
74
|
+
class: [e(N)(), `${e(N)()}-affix-wrapper-status-${j.value}`],
|
|
75
|
+
"before-upload": e(G),
|
|
76
|
+
"custom-request": e(J)
|
|
76
77
|
}), {
|
|
77
78
|
default: u(() => [
|
|
78
|
-
X(
|
|
79
|
-
|
|
79
|
+
X(a.$slots, "default", Y(Z({
|
|
80
|
+
file: o.value,
|
|
81
|
+
clear: () => o.value && e(ee)(o.value, c.value, { maxCount: 1 })
|
|
82
|
+
})), () => {
|
|
83
|
+
var v, L, w, A;
|
|
80
84
|
return [
|
|
81
85
|
s("div", {
|
|
82
86
|
class: l([e(t)("content")])
|
|
83
87
|
}, [
|
|
84
|
-
(v = o.value) != null && v.status && ["uploading"].includes(o.value.status) ? (
|
|
88
|
+
(v = o.value) != null && v.status && ["uploading"].includes(o.value.status) ? (m(), g("div", {
|
|
85
89
|
key: 0,
|
|
86
90
|
class: l([e(t)("content-file"), e(t)("content-ing")])
|
|
87
91
|
}, [
|
|
88
92
|
s("div", {
|
|
89
93
|
class: l([e(t)("content-file-icon")])
|
|
90
94
|
}, [
|
|
91
|
-
n(
|
|
95
|
+
n(b)
|
|
92
96
|
], 2),
|
|
93
97
|
s("div", {
|
|
94
98
|
class: l([e(t)("content-file-name"), e(t)("content-ing-name")])
|
|
95
99
|
}, [
|
|
96
|
-
n(e(
|
|
100
|
+
n(e(I), {
|
|
97
101
|
ellipsis: { rows: 2 },
|
|
98
102
|
tooltip: o.value.error
|
|
99
103
|
}, {
|
|
@@ -102,33 +106,33 @@ const ke = /* @__PURE__ */ Q({
|
|
|
102
106
|
]),
|
|
103
107
|
_: 1
|
|
104
108
|
}, 8, ["tooltip"]),
|
|
105
|
-
n(e(
|
|
109
|
+
n(e(le), {
|
|
106
110
|
percent: o.value.percent || 0,
|
|
107
111
|
size: 4,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}, null, 8, ["percent", "
|
|
112
|
+
"show-info": !1,
|
|
113
|
+
"trail-color": e(S) === "admin" ? "#D9D9D9" : "#DEE4ED",
|
|
114
|
+
"stroke-color": e(S) === "admin" ? "#34B77C" : "#0070FF"
|
|
115
|
+
}, null, 8, ["percent", "trail-color", "stroke-color"])
|
|
112
116
|
], 2),
|
|
113
117
|
s("div", {
|
|
114
118
|
class: l([e(t)("content-file-delete")]),
|
|
115
|
-
onClick:
|
|
119
|
+
onClick: i[0] || (i[0] = (r) => e(x)(c.value))
|
|
116
120
|
}, [
|
|
117
|
-
n(
|
|
121
|
+
n(F)
|
|
118
122
|
], 2)
|
|
119
|
-
], 2)) : (
|
|
123
|
+
], 2)) : (L = o.value) != null && L.status && ["error"].includes(o.value.status) ? (m(), g("div", {
|
|
120
124
|
key: 1,
|
|
121
125
|
class: l([e(t)("content-file"), e(t)("content-error")])
|
|
122
126
|
}, [
|
|
123
127
|
s("div", {
|
|
124
128
|
class: l([e(t)("content-file-icon")])
|
|
125
129
|
}, [
|
|
126
|
-
n(
|
|
130
|
+
n(b)
|
|
127
131
|
], 2),
|
|
128
132
|
s("div", {
|
|
129
133
|
class: l([e(t)("content-file-name"), e(t)("content-error-name")])
|
|
130
134
|
}, [
|
|
131
|
-
n(e(
|
|
135
|
+
n(e(q), null, {
|
|
132
136
|
title: u(() => {
|
|
133
137
|
var r;
|
|
134
138
|
return [
|
|
@@ -136,7 +140,7 @@ const ke = /* @__PURE__ */ Q({
|
|
|
136
140
|
];
|
|
137
141
|
}),
|
|
138
142
|
default: u(() => [
|
|
139
|
-
n(e(
|
|
143
|
+
n(e(I), {
|
|
140
144
|
ellipsis: { rows: 2 },
|
|
141
145
|
tooltip: o.value.error
|
|
142
146
|
}, {
|
|
@@ -151,23 +155,23 @@ const ke = /* @__PURE__ */ Q({
|
|
|
151
155
|
], 2),
|
|
152
156
|
s("div", {
|
|
153
157
|
class: l([e(t)("content-file-delete")]),
|
|
154
|
-
onClick:
|
|
158
|
+
onClick: i[1] || (i[1] = (r) => e(x)(c.value))
|
|
155
159
|
}, [
|
|
156
|
-
n(
|
|
160
|
+
n(F)
|
|
157
161
|
], 2)
|
|
158
|
-
], 2)) : o.value && ((w = o.value) == null ? void 0 : w.status) === void 0 || (A = o.value) != null && A.status && ["success", "done"].includes(o.value.status) ? (
|
|
162
|
+
], 2)) : o.value && ((w = o.value) == null ? void 0 : w.status) === void 0 || (A = o.value) != null && A.status && ["success", "done"].includes(o.value.status) ? (m(), g("div", {
|
|
159
163
|
key: 2,
|
|
160
164
|
class: l([e(t)("content-file"), e(t)("content-done")])
|
|
161
165
|
}, [
|
|
162
166
|
s("div", {
|
|
163
167
|
class: l([e(t)("content-file-icon")])
|
|
164
168
|
}, [
|
|
165
|
-
n(
|
|
169
|
+
n(b)
|
|
166
170
|
], 2),
|
|
167
171
|
s("div", {
|
|
168
172
|
class: l([e(t)("content-file-name"), e(t)("content-done-name")])
|
|
169
173
|
}, [
|
|
170
|
-
n(e(
|
|
174
|
+
n(e(q), null, {
|
|
171
175
|
title: u(() => {
|
|
172
176
|
var r;
|
|
173
177
|
return [
|
|
@@ -175,7 +179,7 @@ const ke = /* @__PURE__ */ Q({
|
|
|
175
179
|
];
|
|
176
180
|
}),
|
|
177
181
|
default: u(() => [
|
|
178
|
-
n(e(
|
|
182
|
+
n(e(I), {
|
|
179
183
|
ellipsis: { rows: 2 },
|
|
180
184
|
tooltip: o.value.error
|
|
181
185
|
}, {
|
|
@@ -190,28 +194,28 @@ const ke = /* @__PURE__ */ Q({
|
|
|
190
194
|
], 2),
|
|
191
195
|
s("div", {
|
|
192
196
|
class: l([e(t)("content-file-delete")]),
|
|
193
|
-
onClick:
|
|
197
|
+
onClick: i[2] || (i[2] = (r) => e(x)(c.value))
|
|
194
198
|
}, [
|
|
195
|
-
n(
|
|
199
|
+
n(F)
|
|
196
200
|
], 2)
|
|
197
|
-
], 2)) : (
|
|
201
|
+
], 2)) : (m(), g("div", {
|
|
198
202
|
key: 3,
|
|
199
203
|
class: l([e(t)("content-empty")])
|
|
200
204
|
}, [
|
|
201
205
|
s("div", {
|
|
202
206
|
class: l([e(t)("content-empty-icon")])
|
|
203
207
|
}, [
|
|
204
|
-
n(
|
|
208
|
+
n(b)
|
|
205
209
|
], 2),
|
|
206
210
|
s("div", {
|
|
207
211
|
class: l([e(t)("content-empty-title")])
|
|
208
212
|
}, [
|
|
209
|
-
(
|
|
213
|
+
(m(), k(E(P($, [e(_)]))))
|
|
210
214
|
], 2),
|
|
211
215
|
s("div", {
|
|
212
216
|
class: l([e(t)("content-empty-sub-title")])
|
|
213
217
|
}, [
|
|
214
|
-
(
|
|
218
|
+
(m(), k(E(P($, [e(h)]))))
|
|
215
219
|
], 2)
|
|
216
220
|
], 2))
|
|
217
221
|
], 2)
|
|
@@ -219,9 +223,9 @@ const ke = /* @__PURE__ */ Q({
|
|
|
219
223
|
})
|
|
220
224
|
]),
|
|
221
225
|
_: 3
|
|
222
|
-
}, 16, ["
|
|
226
|
+
}, 16, ["file-list", "disabled", "class", "before-upload", "custom-request"]));
|
|
223
227
|
}
|
|
224
228
|
});
|
|
225
229
|
export {
|
|
226
|
-
|
|
230
|
+
Ie as default
|
|
227
231
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as m } from "vue";
|
|
2
2
|
import { getAcceptText as d } from "../utils/accept.mjs";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
|
-
import { uploadBeforeUpload as
|
|
5
|
-
import { useLocale as
|
|
4
|
+
import { uploadBeforeUpload as o, uploadCustomRequest as f } from "../utils/upload.mjs";
|
|
5
|
+
import { useLocale as U } from "../../../config-provider/hooks/use-locale.mjs";
|
|
6
6
|
function z(e) {
|
|
7
|
-
const { t: c } =
|
|
7
|
+
const { t: c } = U(), l = m(
|
|
8
8
|
() => e.title || c("ap.apUpload.clickOrDragUpload")
|
|
9
|
-
), i =
|
|
9
|
+
), i = m(
|
|
10
10
|
() => e.subTitle || `${c("ap.apUpload.supportExtension")}:${d(e.accept)},${c(
|
|
11
11
|
"ap.apUpload.maxWarnUploadFileSize",
|
|
12
12
|
{
|
|
@@ -16,11 +16,11 @@ function z(e) {
|
|
|
16
16
|
);
|
|
17
17
|
function n(t, a) {
|
|
18
18
|
var u;
|
|
19
|
-
return
|
|
19
|
+
return o(t, a, e) && (((u = e == null ? void 0 : e.beforeUpload) == null ? void 0 : u.call(e, t, a)) ?? !0);
|
|
20
20
|
}
|
|
21
|
-
return { title:
|
|
21
|
+
return { title: l, subTitle: i, beforeUpload: n, customRequest: (t) => {
|
|
22
22
|
var a, u;
|
|
23
|
-
e != null && e.customRequest ? (a = e == null ? void 0 : e.customRequest) == null || a.call(e, t) : (u =
|
|
23
|
+
e != null && e.customRequest ? (a = e == null ? void 0 : e.customRequest) == null || a.call(e, t) : (u = f) == null || u(t, e);
|
|
24
24
|
} };
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
@@ -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,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { openBlock as l, createElementBlock as n, createElementVNode as e } from "vue";
|
|
2
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
+
const r = {}, L = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
6
6
|
fill: "none",
|
|
7
7
|
version: "1.1",
|
|
8
8
|
viewBox: "0 0 20 20"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
};
|
|
10
|
+
function i(c, o) {
|
|
11
|
+
return l(), n("svg", L, o[0] || (o[0] = [
|
|
12
|
+
e("g", null, [
|
|
13
|
+
e("g", null, [
|
|
14
|
+
e("path", {
|
|
15
|
+
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",
|
|
16
|
+
"fill-rule": "evenodd",
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
"fill-opacity": "1"
|
|
19
|
+
})
|
|
20
|
+
])
|
|
21
|
+
], -1)
|
|
22
|
+
]));
|
|
23
23
|
}
|
|
24
|
-
const f = /* @__PURE__ */
|
|
24
|
+
const f = /* @__PURE__ */ t(r, [["render", i]]);
|
|
25
25
|
export {
|
|
26
26
|
f as default
|
|
27
27
|
};
|
|
@@ -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,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { openBlock as o, createElementBlock as i, createStaticVNode as e } from "vue";
|
|
2
|
+
import l from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
+
const r = {}, s = {
|
|
4
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5
5
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
6
6
|
fill: "none",
|
|
7
7
|
version: "1.1",
|
|
8
8
|
viewBox: "0 0 56 56"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
]
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
};
|
|
10
|
+
function p(a, t) {
|
|
11
|
+
return o(), i("svg", s, t[0] || (t[0] = [
|
|
12
|
+
e('<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)
|
|
13
|
+
]));
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const g = /* @__PURE__ */ l(r, [["render", p]]);
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
g as default
|
|
18
18
|
};
|
|
@@ -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,16 +1,16 @@
|
|
|
1
|
-
function
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
function x(n, u, a) {
|
|
2
|
+
var d;
|
|
3
|
+
(n == null ? void 0 : n.status) === "uploading" && ((d = n == null ? void 0 : n.ossDestroy) == null || d.call(n));
|
|
4
|
+
const c = u == null ? void 0 : u.findIndex((o) => o.uid === (n == null ? void 0 : n.uid));
|
|
5
|
+
c !== void 0 && c > -1 && (u == null || u.splice(c, 1), a != null && a.maxCount && u && (u == null ? void 0 : u.length) >= a.maxCount && (u == null || u.splice(a.maxCount)));
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
}),
|
|
7
|
+
function g(n) {
|
|
8
|
+
n == null || n.forEach((u) => {
|
|
9
|
+
var a;
|
|
10
|
+
u.status === "uploading" && ((a = u.ossDestroy) == null || a.call(u));
|
|
11
|
+
}), n == null || n.splice(0);
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
g as clearAllFile,
|
|
15
|
+
x as clearSingleFile
|
|
16
16
|
};
|
|
@@ -6,5 +6,8 @@ export declare function uploadBeforeUpload(file: ApUploadFile, fileList: ApUploa
|
|
|
6
6
|
maxSize?: number;
|
|
7
7
|
maxCount?: number;
|
|
8
8
|
accept?: string;
|
|
9
|
+
maxCountErrorMsg?: string;
|
|
10
|
+
maxSizeErrorMsg?: string;
|
|
11
|
+
acceptErrorMsg?: string;
|
|
9
12
|
}): boolean;
|
|
10
13
|
export declare const uploadCustomRequest: ApUploadCustomRequest;
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { message as
|
|
2
|
-
import { fileMatchesAccept as
|
|
3
|
-
import { getOssInstance as
|
|
1
|
+
import { message as g } from "@aplus-frontend/antdv";
|
|
2
|
+
import { fileMatchesAccept as U } from "./accept.mjs";
|
|
3
|
+
import { getOssInstance as C } from "../hook/useOss.mjs";
|
|
4
4
|
let u;
|
|
5
|
-
function
|
|
5
|
+
function S(e) {
|
|
6
6
|
u = e;
|
|
7
7
|
}
|
|
8
8
|
function x(e, n, a) {
|
|
9
9
|
e.status = n, e.error = a;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function w(e, n, a) {
|
|
12
12
|
if (a != null && a.maxCount && a.maxCount > 1 && n.length >= a.maxCount) {
|
|
13
|
-
const t = u("ap.apUpload.
|
|
13
|
+
const t = (a == null ? void 0 : a.maxCountErrorMsg) || u("ap.apUpload.maxUploadFiles", {
|
|
14
14
|
maxCount: a.maxCount
|
|
15
15
|
});
|
|
16
|
-
return
|
|
16
|
+
return g.warning(t), x(e, "error", t), !1;
|
|
17
17
|
}
|
|
18
18
|
if (a != null && a.maxSize && ((e == null ? void 0 : e.size) || 0) > (a == null ? void 0 : a.maxSize) * 1024 * 1024) {
|
|
19
|
-
const t = u("ap.apUpload.maxUploadFileSize", {
|
|
19
|
+
const t = (a == null ? void 0 : a.maxSizeErrorMsg) || u("ap.apUpload.maxUploadFileSize", {
|
|
20
20
|
maxSize: a == null ? void 0 : a.maxSize
|
|
21
21
|
});
|
|
22
|
-
return
|
|
22
|
+
return g.warning(t), x(e, "error", t), !1;
|
|
23
23
|
}
|
|
24
|
-
if (!
|
|
25
|
-
const t = u("ap.apUpload.fileFormatNotSupported");
|
|
26
|
-
return
|
|
24
|
+
if (!U(e, a.accept)) {
|
|
25
|
+
const t = (a == null ? void 0 : a.acceptErrorMsg) || u("ap.apUpload.fileFormatNotSupported");
|
|
26
|
+
return g.warning(t), x(e, "error", t), !1;
|
|
27
27
|
}
|
|
28
28
|
return !0;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
31
|
-
const { file: a, onError: t, onProgress: i, onSuccess:
|
|
30
|
+
const h = async (e, n) => {
|
|
31
|
+
const { file: a, onError: t, onProgress: i, onSuccess: l } = e;
|
|
32
32
|
try {
|
|
33
|
-
const c = await
|
|
33
|
+
const c = await C(), m = await (c == null ? void 0 : c.put({
|
|
34
34
|
dirName: n == null ? void 0 : n.dirName,
|
|
35
35
|
fileName: a == null ? void 0 : a.name,
|
|
36
36
|
data: a,
|
|
37
|
-
progressCallBack: (
|
|
37
|
+
progressCallBack: (d) => {
|
|
38
38
|
i == null || i({
|
|
39
|
-
percent:
|
|
39
|
+
percent: d
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}));
|
|
43
43
|
if (m.status === 204)
|
|
44
44
|
return;
|
|
45
45
|
if (m.status === 200) {
|
|
46
|
-
const { saveUrl:
|
|
47
|
-
|
|
46
|
+
const { saveUrl: d } = m;
|
|
47
|
+
l == null || l({
|
|
48
48
|
fileName: a == null ? void 0 : a.name,
|
|
49
|
-
path:
|
|
49
|
+
path: d
|
|
50
50
|
});
|
|
51
51
|
} else
|
|
52
52
|
t == null || t((m == null ? void 0 : m.message) || u("ap.apUpload.networkAnomaly"));
|
|
@@ -56,7 +56,7 @@ const S = async (e, n) => {
|
|
|
56
56
|
};
|
|
57
57
|
export {
|
|
58
58
|
x as changeFileStatus,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
S as injectUtilUpload,
|
|
60
|
+
w as uploadBeforeUpload,
|
|
61
|
+
h as uploadCustomRequest
|
|
62
62
|
};
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
import { BatchInputGroupProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps,
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { FieldMode } from '../../ap-field';
|
|
4
|
-
declare const _default: DefineComponent<
|
|
5
|
-
hasAll: boolean;
|
|
6
|
-
emptyText: string;
|
|
7
|
-
mode: string;
|
|
8
|
-
bordered: boolean;
|
|
9
|
-
type: string;
|
|
10
|
-
lazy: boolean;
|
|
11
|
-
allowClear: boolean;
|
|
12
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
+
declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
5
|
"update:value": (...args: any[]) => void;
|
|
14
|
-
}, string, PublicProps, Readonly<
|
|
15
|
-
hasAll: boolean;
|
|
16
|
-
emptyText: string;
|
|
17
|
-
mode: string;
|
|
18
|
-
bordered: boolean;
|
|
19
|
-
type: string;
|
|
20
|
-
lazy: boolean;
|
|
21
|
-
allowClear: boolean;
|
|
22
|
-
}>>> & {
|
|
6
|
+
}, string, PublicProps, Readonly<BatchInputGroupProps> & Readonly<{
|
|
23
7
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
}
|
|
8
|
+
}>, {
|
|
25
9
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
26
10
|
mode: FieldMode;
|
|
27
11
|
bordered: boolean;
|
|
@@ -29,22 +13,5 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
|
|
|
29
13
|
allowClear: boolean;
|
|
30
14
|
emptyText: string;
|
|
31
15
|
hasAll: boolean;
|
|
32
|
-
}, {}>;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
33
17
|
export default _default;
|
|
34
|
-
type __VLS_WithDefaults<P, D> = {
|
|
35
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
36
|
-
default: D[K];
|
|
37
|
-
}> : P[K];
|
|
38
|
-
};
|
|
39
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
-
type __VLS_TypePropsToOption<T> = {
|
|
41
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
-
} : {
|
|
44
|
-
type: PropType<T[K]>;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
type __VLS_PrettifyLocal<T> = {
|
|
49
|
-
[K in keyof T]: T[K];
|
|
50
|
-
} & {};
|