@aplus-frontend/ui 0.2.0-beta.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/group/index.vue.mjs +1 -1
- package/es/src/ap-action/interface.d.ts +1 -1
- package/es/src/ap-action/item/index.vue2.mjs +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.mjs +1 -1
- package/es/src/ap-action/item-modal/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-modal/index.vue.mjs +1 -1
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +1 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.d.ts +1 -1
- package/es/src/ap-button/ap-button.vue.mjs +1 -1
- package/es/src/ap-button/interface.d.ts +1 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +1 -1
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-descriptions/interface.d.ts +1 -1
- package/es/src/ap-download/ap-download.vue.d.ts +1 -1
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-download/interface.d.ts +1 -1
- package/es/src/ap-field/checkbox/helper.d.ts +3 -3
- package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/constant.d.ts +1 -1
- package/es/src/ap-field/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +1 -1
- package/es/src/ap-field/hooks/use-default-placeholder.mjs +14 -14
- package/es/src/ap-field/interface.d.ts +5 -5
- package/es/src/ap-field/number/index.vue.d.ts +4 -4
- package/es/src/ap-field/number/index.vue.mjs +1 -1
- package/es/src/ap-field/radio/helper.d.ts +1 -1
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +3 -3
- package/es/src/ap-field/rate/index.vue.mjs +1 -1
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +6 -6
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +4 -4
- package/es/src/ap-field/slider/index.vue.mjs +1 -1
- package/es/src/ap-field/switch/index.vue.mjs +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue2.mjs +1 -1
- package/es/src/ap-field/text/input-password-props.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.mjs +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/ap-form.vue.d.ts +7 -7
- package/es/src/ap-form/ap-form.vue2.mjs +1 -1
- package/es/src/ap-form/context.d.ts +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +6 -6
- package/es/src/ap-form/drawer-form/index.vue.mjs +1 -1
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +3 -3
- package/es/src/ap-form/item/index.vue.d.ts +4 -4
- package/es/src/ap-form/item/index.vue.mjs +2 -2
- package/es/src/ap-form/item-group/index.vue.d.ts +2 -2
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/date/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/interface.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/radio/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/select/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/switch/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/text/group.vue2.mjs +1 -1
- package/es/src/ap-form/items/text/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/es/src/ap-form/modal-form/index.vue.d.ts +8 -8
- package/es/src/ap-form/modal-form/index.vue.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/index.d.ts +1 -1
- package/es/src/ap-modal/index.mjs +1 -1
- package/es/src/ap-modal/interface.d.ts +1 -1
- package/es/src/ap-modal/utils/createModal.mjs +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.mjs +104 -109
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/utils.d.ts +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +220 -220
- package/es/src/ap-table/context.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-column-state.mjs +55 -54
- package/es/src/ap-table/hooks/use-table-paging.d.ts +3 -3
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/es/src/ap-table/interface.d.ts +3 -3
- package/es/src/ap-table/utils.d.ts +203 -240
- package/es/src/ap-table/utils.mjs +69 -80
- package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
- package/es/src/ap-tag/interface.d.ts +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +1 -1
- package/es/src/ap-upload/apUploadTypes.d.ts +18 -0
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +56 -58
- package/es/src/ap-upload/components/Picture.vue.d.ts +41 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +103 -82
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +1 -1
- package/es/src/business/ap-attachment/index.d.ts +1 -1
- package/es/src/business/ap-attachment/interface.d.ts +1 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-button-group/index.d.ts +5 -5
- package/es/src/business/ap-button-group/interface.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +1 -1
- package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +1 -1
- package/es/src/business/ap-export-group/handleExportDownload.mjs +1 -1
- package/es/src/business/ap-export-group/interface.d.ts +1 -1
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/index.d.ts +2 -2
- package/es/src/business/ap-input-radio/interface.d.ts +1 -1
- package/es/src/business/ap-label/ApLabel.d.ts +2 -2
- package/es/src/business/ap-label/ApLabel.mjs +1 -1
- package/es/src/business/ap-label/constans.d.ts +2 -2
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-label/group/ApLabelGroup.mjs +1 -1
- package/es/src/business/ap-label/index.d.ts +2 -2
- package/es/src/business/ap-label/interface.d.ts +3 -3
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +5 -5
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
- package/es/src/business/ap-ladder/index.d.ts +5 -5
- package/es/src/business/ap-ladder/interface.d.ts +1 -1
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +1 -1
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-summary/interface.d.ts +2 -2
- package/es/src/business/ap-summary/utils.d.ts +1 -1
- package/es/src/business/ap-summary/utils.mjs +16 -16
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +5 -5
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +1 -1
- package/es/src/business/ap-title/ApTitle.vue2.mjs +1 -1
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +8 -8
- package/es/src/config-provider/config-provider-props.mjs +1 -1
- package/es/src/config-provider/config-provider.d.ts +8 -8
- package/es/src/config-provider/config-provider.mjs +1 -1
- package/es/src/config-provider/constants.d.ts +1 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/es/src/config-provider/index.d.ts +8 -8
- package/es/src/design-token/index.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.mjs +60 -55
- package/es/src/editable-table/hooks/use-get-columns.d.ts +1 -1
- package/es/src/editable-table/hooks/use-get-columns.mjs +29 -34
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.mjs +1 -1
- package/es/src/editable-table/interface.d.ts +6 -6
- package/es/src/editable-table/utils.mjs +69 -69
- package/es/src/hooks/useMessage.d.ts +4 -4
- package/es/src/hooks/useMessage.mjs +1 -1
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/utils/config-provider-preset.d.ts +10 -10
- package/es/src/work-order-modal/help-message.vue2.mjs +1 -1
- package/es/src/work-order-modal/interfaces.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/interface.d.ts +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +1 -1
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +1 -1
- package/lib/src/ap-download/ap-download.vue.d.ts +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/interface.d.ts +1 -1
- package/lib/src/ap-field/checkbox/helper.d.ts +3 -3
- package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/constant.d.ts +1 -1
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
- package/lib/src/ap-field/interface.d.ts +5 -5
- package/lib/src/ap-field/number/index.vue.d.ts +4 -4
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/helper.d.ts +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +3 -3
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +6 -6
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +4 -4
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/input-password-props.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +7 -7
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/context.d.ts +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +6 -6
- 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/interface.d.ts +3 -3
- package/lib/src/ap-form/item/index.vue.d.ts +4 -4
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.d.ts +2 -2
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/interface.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/radio/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/select/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/text/group.vue2.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
- package/lib/src/ap-form/modal-form/index.vue.d.ts +8 -8
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/index.d.ts +1 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/utils.d.ts +1 -1
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +220 -220
- package/lib/src/ap-table/context.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +3 -3
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
- package/lib/src/ap-table/interface.d.ts +3 -3
- package/lib/src/ap-table/utils.d.ts +203 -240
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +2 -2
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/apUploadTypes.d.ts +18 -0
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +41 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.d.ts +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-attachment/index.d.ts +1 -1
- package/lib/src/business/ap-attachment/interface.d.ts +1 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/interface.d.ts +2 -2
- package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
- package/lib/src/business/ap-button-group/index.d.ts +5 -5
- package/lib/src/business/ap-button-group/interface.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
- package/lib/src/business/ap-export-group/interface.d.ts +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/index.d.ts +2 -2
- package/lib/src/business/ap-input-radio/interface.d.ts +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
- package/lib/src/business/ap-label/ApLabel.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +2 -2
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +2 -2
- package/lib/src/business/ap-label/interface.d.ts +3 -3
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +5 -5
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +5 -5
- package/lib/src/business/ap-ladder/interface.d.ts +1 -1
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-summary/interface.d.ts +2 -2
- package/lib/src/business/ap-summary/utils.d.ts +1 -1
- package/lib/src/business/ap-summary/utils.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +5 -5
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +8 -8
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +8 -8
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +8 -8
- package/lib/src/config-provider/index.d.ts +8 -8
- package/lib/src/design-token/index.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +1 -1
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +6 -6
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useMessage.d.ts +4 -4
- package/lib/src/hooks/useMessage.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/utils/config-provider-preset.d.ts +10 -10
- package/lib/src/work-order-modal/help-message.vue2.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { isVNode as b, createVNode as s, mergeProps as a, cloneVNode as
|
|
2
|
-
import { isObject as f, isArray as p, isUndefined as h, isFunction as d, omit as j, isBoolean as
|
|
3
|
-
import { apTableRenderItemMap as
|
|
4
|
-
import { isType as
|
|
1
|
+
import { isVNode as b, createVNode as s, mergeProps as a, cloneVNode as T, Fragment as g } from "vue";
|
|
2
|
+
import { isObject as f, isArray as p, isUndefined as h, isFunction as d, omit as j, isBoolean as O, isString as E } from "lodash-unified";
|
|
3
|
+
import { apTableRenderItemMap as F, apTableFormItemMap as N } from "./constants.mjs";
|
|
4
|
+
import { isType as S } from "@fruits-chain/utils";
|
|
5
5
|
import "../ap-form/index.mjs";
|
|
6
|
-
import { Tooltip as
|
|
6
|
+
import { Tooltip as v } from "@aplus-frontend/antdv";
|
|
7
7
|
import { QuestionCircleOutlined as I } from "@ant-design/icons-vue";
|
|
8
|
-
import
|
|
9
|
-
function
|
|
8
|
+
import V from "../ap-form/item/index.vue.mjs";
|
|
9
|
+
function w(t) {
|
|
10
10
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !b(t);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
let
|
|
12
|
+
const C = (t, e, n) => {
|
|
13
|
+
let i = {};
|
|
14
14
|
return f(t) ? Object.keys(t).forEach((o) => {
|
|
15
|
-
f(t[o]) ?
|
|
16
|
-
}) :
|
|
15
|
+
f(t[o]) ? i[o] = C(t[o], e[o], n) : i[o] = n(t[o], e);
|
|
16
|
+
}) : i = n(t, e), i;
|
|
17
17
|
}, Q = (t, e) => {
|
|
18
18
|
switch (t) {
|
|
19
19
|
case "dayjs":
|
|
@@ -21,8 +21,8 @@ const V = (t, e, n) => {
|
|
|
21
21
|
case "dayjsRange":
|
|
22
22
|
return e.map((n) => n.valueOf());
|
|
23
23
|
case "dayjsDayRange": {
|
|
24
|
-
const [n,
|
|
25
|
-
return [n.startOf("day").valueOf(),
|
|
24
|
+
const [n, i] = e;
|
|
25
|
+
return [n.startOf("day").valueOf(), i.endOf("day").valueOf()];
|
|
26
26
|
}
|
|
27
27
|
case "multiple":
|
|
28
28
|
case "multipleNumber":
|
|
@@ -38,110 +38,100 @@ const V = (t, e, n) => {
|
|
|
38
38
|
function U(t) {
|
|
39
39
|
return p(t) ? t.join(".") : t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function P(t) {
|
|
42
42
|
const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
|
|
43
43
|
return e === "string" && typeof t == "object" ? "object" : t === null ? "null" : t === void 0 ? "undefined" : e;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
const e = [], n =
|
|
47
|
-
return n.forEach((
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
45
|
+
const x = (t) => P(t) === "map" ? t : new Map(Object.entries(t || {})), m = (t) => {
|
|
46
|
+
const e = [], n = x(t);
|
|
47
|
+
return n.forEach((i, o) => {
|
|
48
|
+
const r = n.get(o) || n.get(`${o}`);
|
|
49
|
+
if (r) {
|
|
50
|
+
if (typeof r == "object" && (r != null && r.text)) {
|
|
51
51
|
e.push({
|
|
52
|
-
text:
|
|
52
|
+
text: r == null ? void 0 : r.text,
|
|
53
53
|
value: o,
|
|
54
|
-
label:
|
|
55
|
-
disabled:
|
|
54
|
+
label: r == null ? void 0 : r.text,
|
|
55
|
+
disabled: r.disabled
|
|
56
56
|
});
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
e.push({
|
|
60
|
-
text:
|
|
61
|
-
label:
|
|
60
|
+
text: r,
|
|
61
|
+
label: r,
|
|
62
62
|
value: o
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
}), e;
|
|
66
|
-
}, z = (t) => h(t) || t < 0 ? 0 : t
|
|
67
|
-
|
|
68
|
-
return n;
|
|
69
|
-
const r = ["select", "date"], o = ["text", "textArea", "number"];
|
|
70
|
-
if (e === "dateRange")
|
|
71
|
-
return [t("ap.common.chooseText"), t("ap.common.chooseText")];
|
|
72
|
-
if (r.includes(e))
|
|
73
|
-
return t("ap.common.chooseText");
|
|
74
|
-
if (o.includes(e))
|
|
75
|
-
return t("ap.common.inputText");
|
|
76
|
-
};
|
|
77
|
-
function C(t, e) {
|
|
66
|
+
}, z = (t) => h(t) || t < 0 ? 0 : t;
|
|
67
|
+
function A(t, e) {
|
|
78
68
|
return !t || !d(t) ? t : t(e);
|
|
79
69
|
}
|
|
80
|
-
function
|
|
70
|
+
function G(t) {
|
|
81
71
|
let e = t.valueType || "text";
|
|
82
72
|
return t.valueEnum && (e = "status"), e;
|
|
83
73
|
}
|
|
84
|
-
function
|
|
74
|
+
function K(t, e, n, i) {
|
|
85
75
|
var u;
|
|
86
|
-
const o =
|
|
76
|
+
const o = F[t];
|
|
87
77
|
if (o)
|
|
88
78
|
return s(o, a(e, {
|
|
89
79
|
mode: "read"
|
|
90
80
|
}), null);
|
|
91
|
-
const
|
|
92
|
-
return ((u =
|
|
81
|
+
const r = i == null ? void 0 : i[t];
|
|
82
|
+
return ((u = r == null ? void 0 : r.render) == null ? void 0 : u.call(r, e.value, n, e)) || e.value;
|
|
93
83
|
}
|
|
94
|
-
function
|
|
84
|
+
function X(t, e) {
|
|
95
85
|
if (t.customRenderFormItem)
|
|
96
86
|
return () => {
|
|
97
87
|
const o = t.customRenderFormItem(t);
|
|
98
|
-
return
|
|
88
|
+
return T(o, {
|
|
99
89
|
...t.fieldProps,
|
|
100
90
|
span: t.span,
|
|
101
91
|
...o.props || {}
|
|
102
92
|
});
|
|
103
93
|
};
|
|
104
|
-
const n =
|
|
94
|
+
const n = N[t.valueType];
|
|
105
95
|
if (n)
|
|
106
96
|
return n;
|
|
107
|
-
const
|
|
97
|
+
const i = e == null ? void 0 : e[t.valueType];
|
|
108
98
|
return () => {
|
|
109
|
-
var
|
|
110
|
-
const o = (
|
|
111
|
-
return o ? s(
|
|
99
|
+
var r;
|
|
100
|
+
const o = (r = i == null ? void 0 : i.renderFormItem) == null ? void 0 : r.call(i, t.fieldProps.field);
|
|
101
|
+
return o ? s(V, a(t.fieldProps, {
|
|
112
102
|
span: t.span
|
|
113
|
-
}),
|
|
103
|
+
}), w(o) ? o : {
|
|
114
104
|
default: () => [o]
|
|
115
105
|
}) : null;
|
|
116
106
|
};
|
|
117
107
|
}
|
|
118
|
-
function
|
|
119
|
-
const n =
|
|
108
|
+
function Y(t, e) {
|
|
109
|
+
const n = A(t.fieldProps, e), i = (n == null ? void 0 : n.field) || n || {}, o = t.valueType === "switch", r = t.valueType === "index", u = o ? {
|
|
120
110
|
checked: e.value
|
|
121
111
|
} : {
|
|
122
|
-
value:
|
|
112
|
+
value: r ? e.index + 1 : e.value
|
|
123
113
|
};
|
|
124
|
-
return t.valueEnum && (
|
|
125
|
-
...j(
|
|
114
|
+
return t.valueEnum && (i.valueEnum = t.valueEnum), {
|
|
115
|
+
...j(i, ["request"]),
|
|
126
116
|
...u
|
|
127
117
|
};
|
|
128
118
|
}
|
|
129
|
-
function
|
|
119
|
+
function Z(t) {
|
|
130
120
|
const e = {
|
|
131
121
|
...t
|
|
132
122
|
};
|
|
133
|
-
return
|
|
123
|
+
return O(t.filters) && t.filters && t.valueEnum && (e.filters = m(t.valueEnum)), e;
|
|
134
124
|
}
|
|
135
|
-
function
|
|
136
|
-
var
|
|
125
|
+
function k(t, e) {
|
|
126
|
+
var i;
|
|
137
127
|
const n = e || {};
|
|
138
|
-
return t.valueEnum && !((
|
|
128
|
+
return t.valueEnum && !((i = n.field) != null && i.options) && (n.field = {
|
|
139
129
|
...n.field,
|
|
140
130
|
options: m(t.valueEnum)
|
|
141
131
|
}), n;
|
|
142
132
|
}
|
|
143
|
-
function
|
|
144
|
-
if (!
|
|
133
|
+
function H(t) {
|
|
134
|
+
if (!S("Object")(t))
|
|
145
135
|
return t;
|
|
146
136
|
try {
|
|
147
137
|
return JSON.stringify(t);
|
|
@@ -149,14 +139,14 @@ function M(t) {
|
|
|
149
139
|
return t;
|
|
150
140
|
}
|
|
151
141
|
}
|
|
152
|
-
function
|
|
142
|
+
function M(t, e, n, i) {
|
|
153
143
|
const o = n == null ? void 0 : n({
|
|
154
144
|
title: t.title,
|
|
155
145
|
column: t
|
|
156
|
-
}),
|
|
157
|
-
if (o &&
|
|
146
|
+
}), r = (o == null ? void 0 : o.filter((y) => y.type !== Symbol.for("v-cmt"))) || [];
|
|
147
|
+
if (o && r.length > 0)
|
|
158
148
|
return o;
|
|
159
|
-
const l =
|
|
149
|
+
const l = E(t.title) ? s("span", {
|
|
160
150
|
class: e,
|
|
161
151
|
title: t.title
|
|
162
152
|
}, [t.title]) : t.title, c = t.tooltip ? d(t.tooltip) ? t.tooltip(t) : s(g, null, [t.tooltip]) : null;
|
|
@@ -166,34 +156,33 @@ function tt(t, e, n, r) {
|
|
|
166
156
|
alignItems: "center",
|
|
167
157
|
maxWidth: "100%"
|
|
168
158
|
}
|
|
169
|
-
}, [l, s(
|
|
159
|
+
}, [l, s(v, {
|
|
170
160
|
title: c,
|
|
171
161
|
placement: "bottom"
|
|
172
162
|
}, {
|
|
173
163
|
default: () => [s(I, {
|
|
174
164
|
style: {
|
|
175
165
|
padding: "4px",
|
|
176
|
-
color:
|
|
166
|
+
color: i,
|
|
177
167
|
verticalAlign: "middle"
|
|
178
168
|
}
|
|
179
169
|
}, null)]
|
|
180
170
|
})]) : l;
|
|
181
171
|
}
|
|
182
172
|
export {
|
|
183
|
-
|
|
173
|
+
Z as apColumnToColumn,
|
|
184
174
|
U as dataIndexToStr,
|
|
185
|
-
|
|
175
|
+
C as formatParamsValueType,
|
|
186
176
|
z as getColumnOrder,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
M as objectToString,
|
|
177
|
+
A as getFieldProps,
|
|
178
|
+
X as getSearchFormItemRenderNode,
|
|
179
|
+
K as getTableCellRenderNode,
|
|
180
|
+
Y as getTableRenderProps,
|
|
181
|
+
G as getTableRenderType,
|
|
182
|
+
M as getTableTitle,
|
|
183
|
+
x as objectToMap,
|
|
184
|
+
H as objectToString,
|
|
196
185
|
Q as parseFieldValue,
|
|
197
|
-
|
|
186
|
+
k as updateFormProps,
|
|
198
187
|
m as valueEnumToArray
|
|
199
188
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementVNode as t, defineComponent as D, ref as C, computed as n, unref as d, watch as N, nextTick as S, onMounted as j, onUnmounted as G, openBlock as c, createBlock as f, mergeProps as _, withCtx as g, renderSlot as R, createTextVNode as A, toDisplayString as b, normalizeClass as k, normalizeStyle as W, createElementBlock as T, Fragment as F, renderList as I, createCommentVNode as U } from "vue";
|
|
2
|
-
import { Tooltip as q } from "
|
|
2
|
+
import { Tooltip as q } from "@aplus-frontend/antdv";
|
|
3
3
|
import H from "@ant-design/icons-vue";
|
|
4
4
|
import "./ap-tag.vue2.mjs";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropType, VNode, DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, RendererNode, RendererElement } from 'vue';
|
|
2
|
-
import { FileUploadType, BeforeUpload, CustomRequest } from './apUploadTypes';
|
|
2
|
+
import { FileUploadType, BeforeUpload, CustomRequest, ApUploadSlots } from './apUploadTypes';
|
|
3
3
|
import { GetOssAccess } from './hooks/useOss';
|
|
4
4
|
declare function clear(): void;
|
|
5
5
|
declare function setValue(val: any): void;
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
-
slots:
|
|
7
|
+
slots: Readonly<ApUploadSlots> & ApUploadSlots;
|
|
8
8
|
refs: {
|
|
9
9
|
uploadRef: unknown;
|
|
10
10
|
};
|
|
@@ -5,7 +5,7 @@ import "./components/MultipleFile.vue.mjs";
|
|
|
5
5
|
import "./components/Picture.vue.mjs";
|
|
6
6
|
import { injectLocaleToAccept as G } from "./utils/accept.mjs";
|
|
7
7
|
import { injectLocaleToOss as I } from "./hooks/useOss.mjs";
|
|
8
|
-
import { Form as H } from "
|
|
8
|
+
import { Form as H } from "@aplus-frontend/antdv";
|
|
9
9
|
import { useLocale as J } from "../config-provider/hooks/use-locale.mjs";
|
|
10
10
|
import { useNamespace as K } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import Q from "./components/SingleFile.vue2.mjs";
|
|
@@ -92,3 +92,21 @@ export interface ApUploadExpose<SetValueType = any> {
|
|
|
92
92
|
clear?: () => void;
|
|
93
93
|
setValue?: (value: SetValueType) => void;
|
|
94
94
|
}
|
|
95
|
+
interface ApPictureUploadFile extends File {
|
|
96
|
+
uid: string;
|
|
97
|
+
thumbUrl?: string;
|
|
98
|
+
status: 'error' | 'success' | 'done' | 'uploading' | 'removed';
|
|
99
|
+
percent: number;
|
|
100
|
+
path?: string;
|
|
101
|
+
oss?: {
|
|
102
|
+
pauseUpload?: () => Promise<any>;
|
|
103
|
+
};
|
|
104
|
+
[key: string | number | symbol]: any;
|
|
105
|
+
}
|
|
106
|
+
export interface ApUploadSlots {
|
|
107
|
+
pictureContext: ({ fileList, remove }: {
|
|
108
|
+
fileList: ApPictureUploadFile[];
|
|
109
|
+
remove: (file: ApPictureUploadFile) => void;
|
|
110
|
+
}) => VNode;
|
|
111
|
+
}
|
|
112
|
+
export {};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as $, inject as n, ref as j, watch as V, nextTick as W, openBlock as
|
|
1
|
+
import { defineComponent as $, inject as n, ref as j, watch as V, nextTick as W, openBlock as h, createElementBlock as k, normalizeClass as G, unref as s, createVNode as C, withCtx as E, createElementVNode as L, createTextVNode as H, toDisplayString as b, withModifiers as J, createBlock as K, resolveDynamicComponent as Q, createCommentVNode as X } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import { getPath as Y, getName as Z, getReturnData as
|
|
3
|
+
import { getPath as Y, getName as Z, getReturnData as S } from "../utils/returnData.mjs";
|
|
4
4
|
import { useOss as ee, getOssInstance as te } from "../hooks/useOss.mjs";
|
|
5
|
-
import { message as m, Upload as oe, Button as ae } from "
|
|
5
|
+
import { message as m, Upload as oe, Button as ae } from "@aplus-frontend/antdv";
|
|
6
6
|
import { UploadOutlined as se } from "@ant-design/icons-vue";
|
|
7
7
|
import { fileMatchesAccept as ne, getAcceptText as ie } from "../utils/accept.mjs";
|
|
8
|
-
import { useLocale as
|
|
9
|
-
import { useNamespace as
|
|
8
|
+
import { useLocale as re } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
const ue = { class: "multiple-file-context" }, pe = { key: 0 }, ce = { key: 1 }, Ce = /* @__PURE__ */ $({
|
|
11
11
|
__name: "MultipleFile",
|
|
12
12
|
setup(me, { expose: B }) {
|
|
13
|
-
const { t: i } =
|
|
13
|
+
const { t: i } = re(), { b: U } = le("ap-upload-multiple-file"), { put: I } = ee(), P = n("theme"), z = n("dirName"), x = n("accept") || "*", _ = n("maxSize") ?? 500, R = n("title") || i("ap.apUpload.uploadFile"), f = n("subTitle"), r = n("maxCount") ?? 10, d = n("uploadingCount"), A = n("beforeUpload"), F = n("customRequest"), O = n("getOssAccess"), a = n("value"), p = [], g = n("needName"), l = j(null);
|
|
14
14
|
V(
|
|
15
15
|
() => a == null ? void 0 : a.value,
|
|
16
16
|
function(e) {
|
|
17
17
|
var t, o;
|
|
18
|
-
!((o = (t =
|
|
18
|
+
!((o = (t = l == null ? void 0 : l.value) == null ? void 0 : t.fileList) != null && o.length) && e && N(e);
|
|
19
19
|
},
|
|
20
20
|
{ immediate: !0 }
|
|
21
21
|
);
|
|
22
|
-
function
|
|
22
|
+
function N(e) {
|
|
23
23
|
if (!e) {
|
|
24
|
-
c = [],
|
|
24
|
+
c = [], l.value.fileList = [], a.value = void 0, p.splice(0, p.length);
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
W(() => {
|
|
28
28
|
const t = e.map((o) => {
|
|
29
|
-
const u = Y(
|
|
29
|
+
const u = Y(g, o), y = Z(g, o), w = new File(
|
|
30
30
|
[o],
|
|
31
|
-
|
|
31
|
+
y,
|
|
32
32
|
{}
|
|
33
33
|
);
|
|
34
|
-
return
|
|
34
|
+
return w.response = u, w.uid = u, w;
|
|
35
35
|
});
|
|
36
|
-
if (
|
|
36
|
+
if (r && t.length > r) {
|
|
37
37
|
m.warning(
|
|
38
38
|
i("ap.apUpload.fileInitializationException", {
|
|
39
|
-
maxCount:
|
|
39
|
+
maxCount: r
|
|
40
40
|
})
|
|
41
41
|
);
|
|
42
42
|
return;
|
|
@@ -46,46 +46,46 @@ const ue = { class: "multiple-file-context" }, pe = { key: 0 }, ce = { key: 1 },
|
|
|
46
46
|
uid: o.uid,
|
|
47
47
|
path: o.response
|
|
48
48
|
});
|
|
49
|
-
}),
|
|
49
|
+
}), l.value.fileList = t, a.value = e;
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
B({ setValue:
|
|
53
|
-
let c = [],
|
|
54
|
-
function
|
|
52
|
+
B({ setValue: N });
|
|
53
|
+
let c = [], T;
|
|
54
|
+
function v(e) {
|
|
55
55
|
setTimeout(() => {
|
|
56
|
-
const t =
|
|
56
|
+
const t = l.value.fileList.findIndex(
|
|
57
57
|
(o) => o.uid === e.uid
|
|
58
58
|
);
|
|
59
|
-
t >= 0 &&
|
|
59
|
+
t >= 0 && l.value.fileList.splice(t, 1);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
function q(e) {
|
|
63
|
-
if (
|
|
64
|
-
return clearTimeout(
|
|
63
|
+
if (r && r > 1 && c.length >= r)
|
|
64
|
+
return clearTimeout(T), T = setTimeout(() => {
|
|
65
65
|
m.warning(
|
|
66
66
|
i("ap.apUpload.maxUploadFiles", {
|
|
67
|
-
maxCount:
|
|
67
|
+
maxCount: r
|
|
68
68
|
})
|
|
69
69
|
);
|
|
70
|
-
}),
|
|
71
|
-
if (typeof
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
70
|
+
}), v(e), !1;
|
|
71
|
+
if (typeof A == "function") {
|
|
72
|
+
if (A(e) === !1)
|
|
73
|
+
return v(e), !1;
|
|
74
74
|
} else {
|
|
75
|
-
if (e.size >
|
|
75
|
+
if (e.size > _ * 1024 * 1024)
|
|
76
76
|
return m.warning(
|
|
77
77
|
i("ap.apUpload.maxUploadFileSize", {
|
|
78
|
-
maxSize:
|
|
78
|
+
maxSize: _
|
|
79
79
|
})
|
|
80
|
-
),
|
|
81
|
-
if (!ne(e,
|
|
82
|
-
return m.warning(i("ap.apUpload.fileFormatNotSupported")),
|
|
80
|
+
), v(e), !1;
|
|
81
|
+
if (!ne(e, x))
|
|
82
|
+
return m.warning(i("ap.apUpload.fileFormatNotSupported")), v(e), !1;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
r && r === 1 && (c = [], a.value = void 0), c.push(e);
|
|
85
85
|
}
|
|
86
86
|
async function D(e) {
|
|
87
|
-
if (d.value++, typeof
|
|
88
|
-
|
|
87
|
+
if (d.value++, typeof F == "function") {
|
|
88
|
+
F({
|
|
89
89
|
onProgress: (t) => {
|
|
90
90
|
setTimeout(() => {
|
|
91
91
|
e.onProgress({
|
|
@@ -104,10 +104,9 @@ const ue = { class: "multiple-file-context" }, pe = { key: 0 }, ce = { key: 1 },
|
|
|
104
104
|
onSuccess: (t) => {
|
|
105
105
|
setTimeout(() => {
|
|
106
106
|
e.onSuccess(t);
|
|
107
|
-
}), a.value
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
x(f, t, e.file.name)
|
|
107
|
+
}), a.value = [
|
|
108
|
+
...a.value || [],
|
|
109
|
+
S(g, t, e.file.name)
|
|
111
110
|
], p.push({
|
|
112
111
|
uid: e.file.uid,
|
|
113
112
|
path: t
|
|
@@ -124,10 +123,9 @@ const ue = { class: "multiple-file-context" }, pe = { key: 0 }, ce = { key: 1 },
|
|
|
124
123
|
dirName: z,
|
|
125
124
|
oss: t,
|
|
126
125
|
successCallBack(o) {
|
|
127
|
-
e.onSuccess(o), a.value
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
x(f, o, e.file.name)
|
|
126
|
+
e.onSuccess(o), a.value = [
|
|
127
|
+
...a.value || [],
|
|
128
|
+
S(g, o, e.file.name)
|
|
131
129
|
], p.push({
|
|
132
130
|
uid: e.file.uid,
|
|
133
131
|
path: o
|
|
@@ -158,7 +156,7 @@ const ue = { class: "multiple-file-context" }, pe = { key: 0 }, ce = { key: 1 },
|
|
|
158
156
|
var o;
|
|
159
157
|
if (e.response) {
|
|
160
158
|
if (Array.isArray(a.value)) {
|
|
161
|
-
const u = p.findIndex((
|
|
159
|
+
const u = p.findIndex((y) => y.uid === e.uid);
|
|
162
160
|
u >= 0 && (a == null || a.value.splice(u, 1), p.splice(u, 1)), a.value.length === 0 && (a.value = void 0);
|
|
163
161
|
}
|
|
164
162
|
} else
|
|
@@ -168,18 +166,18 @@ const ue = { class: "multiple-file-context" }, pe = { key: 0 }, ce = { key: 1 },
|
|
|
168
166
|
);
|
|
169
167
|
return c.splice(t, 1), Promise.resolve(!0);
|
|
170
168
|
}
|
|
171
|
-
return (e, t) => (
|
|
169
|
+
return (e, t) => (h(), k("div", {
|
|
172
170
|
class: G({
|
|
173
171
|
[s(U)()]: !0,
|
|
174
172
|
[s(U)("admin")]: s(P) === "admin"
|
|
175
173
|
})
|
|
176
174
|
}, [
|
|
177
|
-
|
|
175
|
+
C(s(oe), {
|
|
178
176
|
ref_key: "uploadRef",
|
|
179
|
-
ref:
|
|
180
|
-
accept: s(
|
|
177
|
+
ref: l,
|
|
178
|
+
accept: s(x),
|
|
181
179
|
multiple: "",
|
|
182
|
-
maxCount: s(
|
|
180
|
+
maxCount: s(r),
|
|
183
181
|
progress: {
|
|
184
182
|
strokeWidth: 3,
|
|
185
183
|
showInfo: !1,
|
|
@@ -189,22 +187,22 @@ const ue = { class: "multiple-file-context" }, pe = { key: 0 }, ce = { key: 1 },
|
|
|
189
187
|
customRequest: D,
|
|
190
188
|
onRemove: M
|
|
191
189
|
}, {
|
|
192
|
-
default:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
default:
|
|
196
|
-
|
|
197
|
-
H(" " +
|
|
190
|
+
default: E(() => [
|
|
191
|
+
L("div", ue, [
|
|
192
|
+
C(s(ae), { class: "file-btn" }, {
|
|
193
|
+
default: E(() => [
|
|
194
|
+
C(s(se)),
|
|
195
|
+
H(" " + b(s(R)), 1)
|
|
198
196
|
]),
|
|
199
197
|
_: 1
|
|
200
198
|
}),
|
|
201
|
-
|
|
199
|
+
L("div", {
|
|
202
200
|
class: "sub-title",
|
|
203
201
|
onClick: t[0] || (t[0] = J(() => {
|
|
204
202
|
}, ["stop"]))
|
|
205
203
|
}, [
|
|
206
|
-
typeof s(
|
|
207
|
-
(
|
|
204
|
+
typeof s(f) == "string" ? (h(), k("div", pe, b(s(f) || `${s(i)("ap.apUpload.supportExtension")}:${s(ie)(s(x))}`), 1)) : s(f) ? (h(), k("div", ce, [
|
|
205
|
+
(h(), K(Q(s(f))))
|
|
208
206
|
])) : X("", !0)
|
|
209
207
|
])
|
|
210
208
|
])
|
|
@@ -1,6 +1,46 @@
|
|
|
1
|
+
import { Oss } from '../hooks/useOss';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
3
|
declare function setValue(val?: (string | Record<string, any>)[]): void;
|
|
3
|
-
|
|
4
|
+
interface UploadFile extends File {
|
|
5
|
+
uid: string;
|
|
6
|
+
thumbUrl?: string;
|
|
7
|
+
status: 'error' | 'success' | 'done' | 'uploading' | 'removed';
|
|
8
|
+
percent: number;
|
|
9
|
+
path?: string;
|
|
10
|
+
oss?: Oss;
|
|
11
|
+
[key: string | number | symbol]: any;
|
|
12
|
+
}
|
|
13
|
+
declare function handleRemove(uploadFile: UploadFile): Promise<boolean>;
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
slots: {
|
|
16
|
+
pictureContext?(_: {
|
|
17
|
+
fileList: {
|
|
18
|
+
oss: {
|
|
19
|
+
pauseUpload: (() => Promise<{
|
|
20
|
+
status: number;
|
|
21
|
+
previewUrl?: string;
|
|
22
|
+
saveUrl?: string;
|
|
23
|
+
originalFileName?: string;
|
|
24
|
+
message: string;
|
|
25
|
+
}>) | undefined;
|
|
26
|
+
};
|
|
27
|
+
}[];
|
|
28
|
+
remove: typeof handleRemove;
|
|
29
|
+
}): any;
|
|
30
|
+
};
|
|
31
|
+
refs: {
|
|
32
|
+
fileRef: HTMLInputElement;
|
|
33
|
+
};
|
|
34
|
+
attrs: Partial<{}>;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
|
+
declare const __VLS_component: DefineComponent<{}, {
|
|
4
38
|
setValue: typeof setValue;
|
|
5
39
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
40
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
6
41
|
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|