fast-element-plus 1.0.20 → 1.0.21
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/dist/index.full.js +27739 -28664
- package/dist/index.full.js.map +1 -1
- package/dist/index.full.min.js +11042 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11033 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +27730 -28662
- package/dist/index.full.mjs.map +1 -1
- package/es/_virtual/_rolldown/runtime.mjs +1 -0
- package/es/component.mjs +2 -2
- package/es/component.mjs.map +1 -1
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/index.mjs.map +1 -1
- package/es/components/avatar/src/avatar.d.ts +10 -10
- package/es/components/avatar/src/avatar.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/index.mjs.map +1 -1
- package/es/components/button/src/button.d.ts +21 -17
- package/es/components/button/src/button.mjs +2 -2
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/carNumber/index.mjs +2 -2
- package/es/components/carNumber/index.mjs.map +1 -1
- package/es/components/carNumber/src/carNumber.d.ts +36 -33
- package/es/components/carNumber/src/carNumber.mjs +2 -2
- package/es/components/carNumber/src/carNumber.mjs.map +1 -1
- package/es/components/carNumber/src/common.mjs +2 -2
- package/es/components/carNumber/src/common.mjs.map +1 -1
- package/es/components/contextMenu/index.mjs +2 -2
- package/es/components/contextMenu/index.mjs.map +1 -1
- package/es/components/contextMenu/src/contextMenu.mjs +2 -2
- package/es/components/contextMenu/src/contextMenu.mjs.map +1 -1
- package/es/components/contextMenu/src/contextMenu.type.mjs +0 -2
- package/es/components/dialog/index.mjs +2 -2
- package/es/components/dialog/index.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +11 -11
- package/es/components/dialog/src/dialog.mjs +2 -2
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/index.mjs.map +1 -1
- package/es/components/drawer/src/drawer.d.ts +10 -18
- package/es/components/drawer/src/drawer.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/index.mjs.map +1 -1
- package/es/components/form/src/form.d.ts +15 -15
- package/es/components/form/src/form.mjs +2 -2
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/formItem.d.ts +14 -14
- package/es/components/form/src/formItem.mjs +2 -2
- package/es/components/form/src/formItem.mjs.map +1 -1
- package/es/components/form/utils/form.mjs +2 -2
- package/es/components/form/utils/form.mjs.map +1 -1
- package/es/components/formItemTip/index.mjs +2 -2
- package/es/components/formItemTip/index.mjs.map +1 -1
- package/es/components/formItemTip/src/formItemTip.mjs +2 -2
- package/es/components/formItemTip/src/formItemTip.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/index.mjs.map +1 -1
- package/es/components/icon/src/icon.mjs +2 -2
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/iconSelector/index.mjs +2 -2
- package/es/components/iconSelector/index.mjs.map +1 -1
- package/es/components/iconSelector/src/iconSelector.mjs +2 -2
- package/es/components/iconSelector/src/iconSelector.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/index.mjs.map +1 -1
- package/es/components/image/src/image.d.ts +13 -13
- package/es/components/image/src/image.mjs +2 -2
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/index.mjs.map +1 -1
- package/es/components/inputDialogPage/index.mjs +2 -2
- package/es/components/inputDialogPage/index.mjs.map +1 -1
- package/es/components/inputDialogPage/src/inputDialogPage.mjs +2 -2
- package/es/components/inputDialogPage/src/inputDialogPage.mjs.map +1 -1
- package/es/components/layoutGrid/index.mjs +2 -2
- package/es/components/layoutGrid/index.mjs.map +1 -1
- package/es/components/layoutGrid/src/layoutGrid.mjs +2 -2
- package/es/components/layoutGrid/src/layoutGrid.mjs.map +1 -1
- package/es/components/layoutGrid/src/layoutGrid.type.mjs +0 -2
- package/es/components/layoutGrid/src/layoutGridItem.mjs +2 -2
- package/es/components/layoutGrid/src/layoutGridItem.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/index.mjs.map +1 -1
- package/es/components/select/src/select.d.ts +21 -21
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.type.mjs +0 -2
- package/es/components/select/src/selectOption.mjs +2 -2
- package/es/components/select/src/selectOption.mjs.map +1 -1
- package/es/components/selectPage/index.mjs +2 -2
- package/es/components/selectPage/index.mjs.map +1 -1
- package/es/components/selectPage/src/selectPage.d.ts +27 -27
- package/es/components/selectPage/src/selectPage.mjs +2 -2
- package/es/components/selectPage/src/selectPage.mjs.map +1 -1
- package/es/components/selectV2/index.mjs +2 -2
- package/es/components/selectV2/index.mjs.map +1 -1
- package/es/components/selectV2/src/selectV2.d.ts +19 -19
- package/es/components/selectV2/src/selectV2.mjs +2 -2
- package/es/components/selectV2/src/selectV2.mjs.map +1 -1
- package/es/components/table/images/artwork.mjs +2 -0
- package/es/components/table/images/artwork.mjs.map +1 -0
- package/es/components/table/images/notImage.mjs +2 -0
- package/es/components/table/images/notImage.mjs.map +1 -0
- package/es/components/table/index.mjs +2 -2
- package/es/components/table/index.mjs.map +1 -1
- package/es/components/table/src/page.type.mjs +2 -2
- package/es/components/table/src/page.type.mjs.map +1 -1
- package/es/components/table/src/table.d.ts +20 -4
- package/es/components/table/src/table.mjs +2 -2
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.state.mjs +0 -2
- package/es/components/table/src/table.type.d.ts +1 -1
- package/es/components/table/src/table.type.mjs +2 -2
- package/es/components/table/src/table.type.mjs.map +1 -1
- package/es/components/table/src/tableColumn.mjs +2 -2
- package/es/components/table/src/tableColumn.mjs.map +1 -1
- package/es/components/table/src/tableColumnSettingDialog.mjs +2 -2
- package/es/components/table/src/tableColumnSettingDialog.mjs.map +1 -1
- package/es/components/table/src/tablePagination.mjs +2 -2
- package/es/components/table/src/tablePagination.mjs.map +1 -1
- package/es/components/table/src/tableSearchForm.mjs +2 -2
- package/es/components/table/src/tableSearchForm.mjs.map +1 -1
- package/es/components/table/src/tableSearchFormItem.mjs +2 -2
- package/es/components/table/src/tableSearchFormItem.mjs.map +1 -1
- package/es/components/table/src/useTable.mjs +2 -2
- package/es/components/table/src/useTable.mjs.map +1 -1
- package/es/components/table/utils/table.mjs +2 -2
- package/es/components/table/utils/table.mjs.map +1 -1
- package/es/components/tree/index.mjs +2 -2
- package/es/components/tree/index.mjs.map +1 -1
- package/es/components/tree/src/tree.d.ts +40 -40
- package/es/components/tree/src/tree.mjs +2 -2
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree/src/tree.props.mjs +2 -2
- package/es/components/tree/src/tree.props.mjs.map +1 -1
- package/es/components/tree/src/tree.type.mjs +0 -2
- package/es/components/treeSelect/index.mjs +2 -2
- package/es/components/treeSelect/index.mjs.map +1 -1
- package/es/components/treeSelect/src/treeSelect.d.ts +60 -60
- package/es/components/treeSelect/src/treeSelect.mjs +2 -2
- package/es/components/treeSelect/src/treeSelect.mjs.map +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/index.mjs.map +1 -1
- package/es/components/upload/src/upload.d.ts +73 -73
- package/es/components/upload/src/upload.mjs +2 -2
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/useUpload.mjs +2 -2
- package/es/components/upload/src/useUpload.mjs.map +1 -1
- package/es/components/upload/utils/upload.mjs +2 -2
- package/es/components/upload/utils/upload.mjs.map +1 -1
- package/es/components/uploadImage/index.mjs +2 -2
- package/es/components/uploadImage/index.mjs.map +1 -1
- package/es/components/uploadImage/src/uploadImage.d.ts +69 -69
- package/es/components/uploadImage/src/uploadImage.mjs +2 -2
- package/es/components/uploadImage/src/uploadImage.mjs.map +1 -1
- package/es/components/uploadImages/index.mjs +2 -2
- package/es/components/uploadImages/index.mjs.map +1 -1
- package/es/components/uploadImages/src/uploadImages.d.ts +70 -70
- package/es/components/uploadImages/src/uploadImages.mjs +2 -2
- package/es/components/uploadImages/src/uploadImages.mjs.map +1 -1
- package/es/constants/index.mjs +1 -2
- package/es/constants/mime.mjs +2 -2
- package/es/constants/mime.mjs.map +1 -1
- package/es/constants/regex.mjs +2 -2
- package/es/constants/regex.mjs.map +1 -1
- package/es/directive.mjs +2 -2
- package/es/directive.mjs.map +1 -1
- package/es/directives/click-copy/index.mjs +2 -2
- package/es/directives/click-copy/index.mjs.map +1 -1
- package/es/directives/click-debounce/index.mjs +2 -2
- package/es/directives/click-debounce/index.mjs.map +1 -1
- package/es/directives/click-draggable/index.mjs +2 -2
- package/es/directives/click-draggable/index.mjs.map +1 -1
- package/es/directives/click-icon-copy/index.mjs +2 -2
- package/es/directives/click-icon-copy/index.mjs.map +1 -1
- package/es/directives/click-longpress/index.mjs +2 -2
- package/es/directives/click-longpress/index.mjs.map +1 -1
- package/es/directives/click-throttle/index.mjs +2 -2
- package/es/directives/click-throttle/index.mjs.map +1 -1
- package/es/directives/index.mjs +1 -2
- package/es/element-plus.mjs +2 -2
- package/es/element-plus.mjs.map +1 -1
- package/es/hooks/index.mjs +1 -2
- package/es/hooks/use-loading/index.mjs +2 -2
- package/es/hooks/use-loading/index.mjs.map +1 -1
- package/es/hooks/use-overlay/index.mjs +2 -2
- package/es/hooks/use-overlay/index.mjs.map +1 -1
- package/es/hooks/use-screenFull/index.mjs +2 -2
- package/es/hooks/use-screenFull/index.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/index.mjs.map +1 -1
- package/es/make-installer.mjs +2 -2
- package/es/make-installer.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +2 -2
- package/es/version.mjs.map +1 -1
- package/lib/_virtual/_rolldown/runtime.js +1 -0
- package/lib/component.js +2 -2
- package/lib/component.js.map +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/index.js.map +1 -1
- package/lib/components/avatar/src/avatar.d.ts +10 -10
- package/lib/components/avatar/src/avatar.js +2 -2
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/src/button.d.ts +21 -17
- package/lib/components/button/src/button.js +2 -2
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/carNumber/index.js +2 -2
- package/lib/components/carNumber/index.js.map +1 -1
- package/lib/components/carNumber/src/carNumber.d.ts +36 -33
- package/lib/components/carNumber/src/carNumber.js +2 -2
- package/lib/components/carNumber/src/carNumber.js.map +1 -1
- package/lib/components/carNumber/src/common.js +2 -2
- package/lib/components/carNumber/src/common.js.map +1 -1
- package/lib/components/contextMenu/index.js +2 -2
- package/lib/components/contextMenu/index.js.map +1 -1
- package/lib/components/contextMenu/src/contextMenu.js +2 -2
- package/lib/components/contextMenu/src/contextMenu.js.map +1 -1
- package/lib/components/contextMenu/src/contextMenu.type.js +0 -2
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/index.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +11 -11
- package/lib/components/dialog/src/dialog.js +2 -2
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/index.js.map +1 -1
- package/lib/components/drawer/src/drawer.d.ts +10 -18
- package/lib/components/drawer/src/drawer.js +2 -2
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/form/src/form.d.ts +15 -15
- package/lib/components/form/src/form.js +2 -2
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/formItem.d.ts +14 -14
- package/lib/components/form/src/formItem.js +2 -2
- package/lib/components/form/src/formItem.js.map +1 -1
- package/lib/components/form/utils/form.js +2 -2
- package/lib/components/form/utils/form.js.map +1 -1
- package/lib/components/formItemTip/index.js +2 -2
- package/lib/components/formItemTip/index.js.map +1 -1
- package/lib/components/formItemTip/src/formItemTip.js +2 -2
- package/lib/components/formItemTip/src/formItemTip.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/src/icon.js +2 -2
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/iconSelector/index.js +2 -2
- package/lib/components/iconSelector/index.js.map +1 -1
- package/lib/components/iconSelector/src/iconSelector.js +2 -2
- package/lib/components/iconSelector/src/iconSelector.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/index.js.map +1 -1
- package/lib/components/image/src/image.d.ts +13 -13
- package/lib/components/image/src/image.js +2 -2
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/inputDialogPage/index.js +2 -2
- package/lib/components/inputDialogPage/index.js.map +1 -1
- package/lib/components/inputDialogPage/src/inputDialogPage.js +2 -2
- package/lib/components/inputDialogPage/src/inputDialogPage.js.map +1 -1
- package/lib/components/layoutGrid/index.js +2 -2
- package/lib/components/layoutGrid/index.js.map +1 -1
- package/lib/components/layoutGrid/src/layoutGrid.js +2 -2
- package/lib/components/layoutGrid/src/layoutGrid.js.map +1 -1
- package/lib/components/layoutGrid/src/layoutGrid.type.js +0 -2
- package/lib/components/layoutGrid/src/layoutGridItem.js +2 -2
- package/lib/components/layoutGrid/src/layoutGridItem.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/select/src/select.d.ts +21 -21
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.type.js +0 -2
- package/lib/components/select/src/selectOption.js +2 -2
- package/lib/components/select/src/selectOption.js.map +1 -1
- package/lib/components/selectPage/index.js +2 -2
- package/lib/components/selectPage/index.js.map +1 -1
- package/lib/components/selectPage/src/selectPage.d.ts +27 -27
- package/lib/components/selectPage/src/selectPage.js +2 -2
- package/lib/components/selectPage/src/selectPage.js.map +1 -1
- package/lib/components/selectV2/index.js +2 -2
- package/lib/components/selectV2/index.js.map +1 -1
- package/lib/components/selectV2/src/selectV2.d.ts +19 -19
- package/lib/components/selectV2/src/selectV2.js +2 -2
- package/lib/components/selectV2/src/selectV2.js.map +1 -1
- package/lib/components/table/images/artwork.js +2 -0
- package/lib/components/table/images/artwork.js.map +1 -0
- package/lib/components/table/images/notImage.js +2 -0
- package/lib/components/table/images/notImage.js.map +1 -0
- package/lib/components/table/index.js +2 -2
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/src/page.type.js +2 -2
- package/lib/components/table/src/page.type.js.map +1 -1
- package/lib/components/table/src/table.d.ts +20 -4
- package/lib/components/table/src/table.js +2 -2
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.state.js +0 -2
- package/lib/components/table/src/table.type.d.ts +1 -1
- package/lib/components/table/src/table.type.js +2 -2
- package/lib/components/table/src/table.type.js.map +1 -1
- package/lib/components/table/src/tableColumn.js +2 -2
- package/lib/components/table/src/tableColumn.js.map +1 -1
- package/lib/components/table/src/tableColumnSettingDialog.js +2 -2
- package/lib/components/table/src/tableColumnSettingDialog.js.map +1 -1
- package/lib/components/table/src/tablePagination.js +2 -2
- package/lib/components/table/src/tablePagination.js.map +1 -1
- package/lib/components/table/src/tableSearchForm.js +2 -2
- package/lib/components/table/src/tableSearchForm.js.map +1 -1
- package/lib/components/table/src/tableSearchFormItem.js +2 -2
- package/lib/components/table/src/tableSearchFormItem.js.map +1 -1
- package/lib/components/table/src/useTable.js +2 -2
- package/lib/components/table/src/useTable.js.map +1 -1
- package/lib/components/table/utils/table.js +2 -2
- package/lib/components/table/utils/table.js.map +1 -1
- package/lib/components/tree/index.js +2 -2
- package/lib/components/tree/index.js.map +1 -1
- package/lib/components/tree/src/tree.d.ts +40 -40
- package/lib/components/tree/src/tree.js +2 -2
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree/src/tree.props.js +2 -2
- package/lib/components/tree/src/tree.props.js.map +1 -1
- package/lib/components/tree/src/tree.type.js +0 -2
- package/lib/components/treeSelect/index.js +2 -2
- package/lib/components/treeSelect/index.js.map +1 -1
- package/lib/components/treeSelect/src/treeSelect.d.ts +60 -60
- package/lib/components/treeSelect/src/treeSelect.js +2 -2
- package/lib/components/treeSelect/src/treeSelect.js.map +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/index.js.map +1 -1
- package/lib/components/upload/src/upload.d.ts +73 -73
- package/lib/components/upload/src/upload.js +2 -2
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/useUpload.js +2 -2
- package/lib/components/upload/src/useUpload.js.map +1 -1
- package/lib/components/upload/utils/upload.js +2 -2
- package/lib/components/upload/utils/upload.js.map +1 -1
- package/lib/components/uploadImage/index.js +2 -2
- package/lib/components/uploadImage/index.js.map +1 -1
- package/lib/components/uploadImage/src/uploadImage.d.ts +69 -69
- package/lib/components/uploadImage/src/uploadImage.js +2 -2
- package/lib/components/uploadImage/src/uploadImage.js.map +1 -1
- package/lib/components/uploadImages/index.js +2 -2
- package/lib/components/uploadImages/index.js.map +1 -1
- package/lib/components/uploadImages/src/uploadImages.d.ts +70 -70
- package/lib/components/uploadImages/src/uploadImages.js +2 -2
- package/lib/components/uploadImages/src/uploadImages.js.map +1 -1
- package/lib/constants/index.js +1 -2
- package/lib/constants/mime.js +2 -2
- package/lib/constants/mime.js.map +1 -1
- package/lib/constants/regex.js +2 -2
- package/lib/constants/regex.js.map +1 -1
- package/lib/directive.js +2 -2
- package/lib/directive.js.map +1 -1
- package/lib/directives/click-copy/index.js +2 -2
- package/lib/directives/click-copy/index.js.map +1 -1
- package/lib/directives/click-debounce/index.js +2 -2
- package/lib/directives/click-debounce/index.js.map +1 -1
- package/lib/directives/click-draggable/index.js +2 -2
- package/lib/directives/click-draggable/index.js.map +1 -1
- package/lib/directives/click-icon-copy/index.js +2 -2
- package/lib/directives/click-icon-copy/index.js.map +1 -1
- package/lib/directives/click-longpress/index.js +2 -2
- package/lib/directives/click-longpress/index.js.map +1 -1
- package/lib/directives/click-throttle/index.js +2 -2
- package/lib/directives/click-throttle/index.js.map +1 -1
- package/lib/directives/index.js +1 -2
- package/lib/element-plus.js +2 -2
- package/lib/element-plus.js.map +1 -1
- package/lib/hooks/index.js +1 -2
- package/lib/hooks/use-loading/index.js +2 -2
- package/lib/hooks/use-loading/index.js.map +1 -1
- package/lib/hooks/use-overlay/index.js +2 -2
- package/lib/hooks/use-overlay/index.js.map +1 -1
- package/lib/hooks/use-screenFull/index.js +2 -2
- package/lib/hooks/use-screenFull/index.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/make-installer.js +2 -2
- package/lib/make-installer.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/lib/version.js.map +1 -1
- package/package.json +7 -7
- package/es/components/contextMenu/src/contextMenu.type.mjs.map +0 -1
- package/es/components/layoutGrid/src/layoutGrid.type.mjs.map +0 -1
- package/es/components/select/src/select.type.mjs.map +0 -1
- package/es/components/table/images/artwork.png.mjs +0 -2
- package/es/components/table/images/artwork.png.mjs.map +0 -1
- package/es/components/table/images/notImage.png.mjs +0 -2
- package/es/components/table/images/notImage.png.mjs.map +0 -1
- package/es/components/table/src/table.state.mjs.map +0 -1
- package/es/components/tree/src/tree.type.mjs.map +0 -1
- package/es/constants/index.mjs.map +0 -1
- package/es/directives/index.mjs.map +0 -1
- package/es/hooks/index.mjs.map +0 -1
- package/lib/components/contextMenu/src/contextMenu.type.js.map +0 -1
- package/lib/components/layoutGrid/src/layoutGrid.type.js.map +0 -1
- package/lib/components/select/src/select.type.js.map +0 -1
- package/lib/components/table/images/artwork.png.js +0 -2
- package/lib/components/table/images/artwork.png.js.map +0 -1
- package/lib/components/table/images/notImage.png.js +0 -2
- package/lib/components/table/images/notImage.png.js.map +0 -1
- package/lib/components/table/src/table.state.js.map +0 -1
- package/lib/components/tree/src/tree.type.js.map +0 -1
- package/lib/constants/index.js.map +0 -1
- package/lib/directives/index.js.map +0 -1
- package/lib/hooks/index.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=useUpload.mjs.map
|
|
1
|
+
import{uploadUtil as e}from"../utils/upload.mjs";import{consoleError as l,consoleWarn as a}from"@fast-china/utils";import{inject as u,onMounted as i,ref as r,watch as t}from"vue";import{ElMessage as o,ElNotification as n,formContextKey as p,formItemContextKey as d,genFileId as s}from"element-plus";import{isArray as m,isNumber as c,isString as f}from"lodash-unified";import{useVModel as v}from"@vueuse/core";import{Decimal as h}from"decimal.js";var $=($,g,x,y,S)=>{const w=v(x,"fileList",y,{passive:!0}),A=r(!1),U=u(p,void 0),V=u(d,void 0),E=new h(1024),z=new h(c(S?.maxSize)?S?.maxSize:Number(S?.maxSize)),B=z.div(E);i(()=>{!x.autoUpload||S.uploadApi||S.uploadUrl||a($,"['uploadApi', 'uploadUrl'] 属性必须二选一。")});const F=()=>{if(w.value.length>0)if(f(x.modelValue))y("update:modelValue",w.value[0].url),y("change",w.value[0].url);else if(x.multiple){const e=w.value.map(e=>e.url);y("update:modelValue",e),y("change",e)}else y("update:modelValue",w.value[0].url),y("change",w.value[0].url);else y("update:modelValue",null),y("change",null)};return t(()=>x.modelValue,e=>{if(e)if(m(e))w.value=e.map(e=>{const l=w.value.find(l=>l.url===e);return{name:"",status:"success",uid:l?.uid??s(),url:e}});else{const l=w.value.find(l=>l.url===e);w.value=[{name:"",status:"success",uid:l?.uid??s(),url:e}]}},{immediate:!0}),{fileList:w,loading:A,formContext:U,formItemContext:V,maxSizeMB:B,handleValue:F,handleHttpRequest:async a=>{let u;if(x.data&&(u=e.getPropsData(a.file,x.data)),!S?.uploadApi&&!S?.uploadUrl)return o.error(`上传${g}Api或地址不能为空`),void l($,`上传${g}接口 “uploadApi” 或地址 “uploadUrl” 不能为空`);A.value=!0;try{let l;l=S.uploadApi?await e.uploadFileByApi(S.uploadApi,a.file,a.filename,u):await e.uploadFile(S.uploadUrl,a.file,a.filename,u),a.onSuccess(l)}finally{A.value=!1}},handleOnSuccess:(e,l,a)=>{e&&(!x.multiple&&a.length>1&&a.shift(),l.url=e,F(),V?.prop&&U?.validateField([V.prop]),o.success("上传成功"),x.onSuccess&&x.onSuccess(e,l,a))},handleOnError:(e,l,a)=>{n({message:`【${l.name}】${g}上传失败,请您重新上传`,type:"error"}),x.onError&&x.onError(e,l,a)},handleOnExceed:(e,l)=>{o.warning(`最多只能上传 ${x.limit} 个${g},请移除后再进行上传`),x.onExceed&&x.onExceed(e,l)},handleOnUpload:u=>{if(new h(u.size).div(E).greaterThan(z))return a($,`【${u.name}】${g}上传大小不能超过 ${B.toString()}MB`),o.warning(`【${u.name}】${g}上传大小不能超过 ${B.toString()}MB`),!1;const i="type"in u?u.type:u.raw.type;if(x.accept&&x.accept.split(",").every(e=>e!==i)){const a=e.detectFileType(x.accept);return l($,`只允许上传【${a}】格式的${g}`),o.error(`只允许上传【${a}】格式的${g}`),!1}return!0}}};export{$ as useUpload};
|
|
2
|
+
//# sourceMappingURL=useUpload.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpload.mjs","sources":["../../../../../packages/components/upload/src/useUpload.ts"],"sourcesContent":["import { inject, onMounted, ref, watch } from \"vue\";\nimport { ElMessage, ElNotification, formContextKey, formItemContextKey, genFileId } from \"element-plus\";\nimport { consoleError, consoleWarn } from \"@fast-china/utils\";\nimport { useVModel } from \"@vueuse/core\";\nimport { Decimal } from \"decimal.js\";\nimport { isArray, isNumber, isString } from \"lodash-unified\";\nimport { uploadUtil } from \"../utils/upload\";\nimport type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRequestOptions, UploadUserFile } from \"element-plus\";\n\nexport const useUpload = <T extends string | string[]>(\n\tcomponentName: string,\n\tfileTypeName: string,\n\tprops: UploadProps & {\n\t\tmodelValue: T;\n\t},\n\temit: ((event: \"update:fileList\", value: UploadUserFile[]) => void) &\n\t\t((event: \"update:modelValue\", value: T) => void) &\n\t\t((event: \"change\", value: T) => void),\n\tdata?: {\n\t\tmaxSize?: string | number;\n\t\tuploadApi?: (formData: FormData) => Promise<string>;\n\t\tuploadUrl?: string;\n\t}\n\t// eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/explicit-module-boundary-types\n) => {\n\tconst fileList = useVModel(props, \"fileList\", emit, { passive: true });\n\n\tconst loading = ref(false);\n\n\t// 获取 el-form 组件上下文\n\tconst formContext = inject(formContextKey, undefined);\n\t// 获取 el-form-item 组件上下文\n\tconst formItemContext = inject(formItemContextKey, undefined);\n\n\tconst mbNum = new Decimal(1024);\n\tconst maxSizeKB = new Decimal(isNumber(data?.maxSize) ? data?.maxSize : Number(data?.maxSize));\n\tconst maxSizeMB = maxSizeKB.div(mbNum);\n\n\tonMounted(() => {\n\t\tif (props.autoUpload && !data.uploadApi && !data.uploadUrl) {\n\t\t\tconsoleWarn(componentName, \"['uploadApi', 'uploadUrl'] 属性必须二选一。\");\n\t\t}\n\t});\n\n\tconst handleValue = (): void => {\n\t\tif (fileList.value.length > 0) {\n\t\t\tif (isString(props.modelValue)) {\n\t\t\t\temit(\"update:modelValue\", fileList.value[0].url as T);\n\t\t\t\temit(\"change\", fileList.value[0].url as T);\n\t\t\t} else {\n\t\t\t\tif (props.multiple) {\n\t\t\t\t\tconst value = fileList.value.map((m) => m.url);\n\t\t\t\t\temit(\"update:modelValue\", value as T);\n\t\t\t\t\temit(\"change\", value as T);\n\t\t\t\t} else {\n\t\t\t\t\temit(\"update:modelValue\", fileList.value[0].url as T);\n\t\t\t\t\temit(\"change\", fileList.value[0].url as T);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\temit(\"update:modelValue\", null);\n\t\t\temit(\"change\", null);\n\t\t}\n\t};\n\n\tconst handleHttpRequest = async (options: UploadRequestOptions): Promise<void> => {\n\t\tlet propsData;\n\t\tif (props.data) {\n\t\t\tpropsData = uploadUtil.getPropsData(options.file, props.data);\n\t\t}\n\t\tif (!data?.uploadApi && !data?.uploadUrl) {\n\t\t\tElMessage.error(`上传${fileTypeName}Api或地址不能为空`);\n\t\t\tconsoleError(componentName, `上传${fileTypeName}接口 “uploadApi” 或地址 “uploadUrl” 不能为空`);\n\t\t\treturn;\n\t\t}\n\t\tloading.value = true;\n\t\ttry {\n\t\t\tlet fileUrl: string;\n\t\t\tif (data.uploadApi) {\n\t\t\t\tfileUrl = await uploadUtil.uploadFileByApi(data.uploadApi, options.file, options.filename, propsData);\n\t\t\t} else {\n\t\t\t\tfileUrl = await uploadUtil.uploadFile(data.uploadUrl, options.file, options.filename, propsData);\n\t\t\t}\n\t\t\toptions.onSuccess(fileUrl);\n\t\t} finally {\n\t\t\tloading.value = false;\n\t\t}\n\t};\n\n\tconst handleOnSuccess = (fileUrl: string, uploadFile: UploadFile, uploadFiles: UploadFiles): void => {\n\t\tif (!fileUrl) return;\n\t\tif (!props.multiple && uploadFiles.length > 1) {\n\t\t\tuploadFiles.shift();\n\t\t}\n\t\tuploadFile.url = fileUrl;\n\t\thandleValue();\n\t\t// 调用 el-form 内部的校验方法(可自动校验)\n\t\tformItemContext?.prop && formContext?.validateField([formItemContext.prop as string]);\n\t\tElMessage.success(\"上传成功\");\n\t\tprops.onSuccess && props.onSuccess(fileUrl, uploadFile, uploadFiles);\n\t};\n\n\tconst handleOnError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles): void => {\n\t\tElNotification({\n\t\t\tmessage: `【${uploadFile.name}】${fileTypeName}上传失败,请您重新上传`,\n\t\t\ttype: \"error\",\n\t\t});\n\t\tprops.onError && props.onError(error, uploadFile, uploadFiles);\n\t};\n\n\tconst handleOnExceed = (files: File[], uploadFiles: UploadUserFile[]): void => {\n\t\tElMessage.warning(`最多只能上传 ${props.limit} 个${fileTypeName},请移除后再进行上传`);\n\t\tprops.onExceed && props.onExceed(files, uploadFiles);\n\t};\n\n\tconst handleOnUpload = (file: UploadFile | UploadRawFile): boolean => {\n\t\tconst fileSizeKB = new Decimal(file.size).div(mbNum);\n\n\t\tif (fileSizeKB.greaterThan(maxSizeKB)) {\n\t\t\tconsoleWarn(componentName, `【${file.name}】${fileTypeName}上传大小不能超过 ${maxSizeMB.toString()}MB`);\n\t\t\tElMessage.warning(`【${file.name}】${fileTypeName}上传大小不能超过 ${maxSizeMB.toString()}MB`);\n\t\t\treturn false;\n\t\t}\n\n\t\tconst fileType = \"type\" in file ? file.type : file.raw.type;\n\n\t\tif (props.accept && props.accept.split(\",\").every((e) => e !== fileType)) {\n\t\t\tconst uploadFileNames = uploadUtil.detectFileType(props.accept);\n\t\t\tconsoleError(componentName, `只允许上传【${uploadFileNames}】格式的${fileTypeName}`);\n\t\t\tElMessage.error(`只允许上传【${uploadFileNames}】格式的${fileTypeName}`);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t};\n\n\t/**\n\t * 监听 v-model 绑定数据\n\t */\n\twatch(\n\t\t() => props.modelValue,\n\t\t(newValue) => {\n\t\t\tif (newValue) {\n\t\t\t\tif (isArray(newValue)) {\n\t\t\t\t\tfileList.value = newValue.map((m) => {\n\t\t\t\t\t\tconst find = fileList.value.find((f) => f.url === m);\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname: \"\",\n\t\t\t\t\t\t\tstatus: \"success\",\n\t\t\t\t\t\t\tuid: find?.uid ?? genFileId(),\n\t\t\t\t\t\t\turl: m,\n\t\t\t\t\t\t};\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tconst find = fileList.value.find((f) => f.url === newValue);\n\t\t\t\t\tfileList.value = [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"\",\n\t\t\t\t\t\t\tstatus: \"success\",\n\t\t\t\t\t\t\tuid: find?.uid ?? genFileId(),\n\t\t\t\t\t\t\turl: newValue,\n\t\t\t\t\t\t},\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\timmediate: true,\n\t\t}\n\t);\n\n\treturn {\n\t\tfileList,\n\t\tloading,\n\t\tformContext,\n\t\tformItemContext,\n\t\tmaxSizeMB,\n\t\thandleValue,\n\t\thandleHttpRequest,\n\t\thandleOnSuccess,\n\t\thandleOnError,\n\t\thandleOnExceed,\n\t\thandleOnUpload,\n\t};\n};\n"],"names":["useUpload","componentName","fileTypeName","props","emit","data","fileList","useVModel","passive","loading","ref","formContext","inject","formContextKey","formItemContext","formItemContextKey","mbNum","Decimal","maxSizeKB","isNumber","maxSize","Number","maxSizeMB","div","onMounted","autoUpload","uploadApi","uploadUrl","consoleWarn","handleValue","value","length","isString","modelValue","url","multiple","map","m","watch","newValue","isArray","find","f","name","status","uid","genFileId","immediate","handleHttpRequest","async","options","propsData","uploadUtil","getPropsData","file","ElMessage","error","consoleError","fileUrl","uploadFileByApi","filename","uploadFile","onSuccess","handleOnSuccess","uploadFiles","shift","prop","validateField","success","handleOnError","ElNotification","message","type","onError","handleOnExceed","files","warning","limit","onExceed","handleOnUpload","size","greaterThan","toString","fileType","raw","accept","split","every","e","uploadFileNames","detectFileType"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"useUpload.mjs","names":[],"sources":["../../../../../packages/components/upload/src/useUpload.ts"],"sourcesContent":["import { inject, onMounted, ref, watch } from \"vue\";\nimport { ElMessage, ElNotification, formContextKey, formItemContextKey, genFileId } from \"element-plus\";\nimport { consoleError, consoleWarn } from \"@fast-china/utils\";\nimport { useVModel } from \"@vueuse/core\";\nimport { Decimal } from \"decimal.js\";\nimport { isArray, isNumber, isString } from \"lodash-unified\";\nimport { uploadUtil } from \"../utils/upload\";\nimport type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRequestOptions, UploadUserFile } from \"element-plus\";\n\nexport const useUpload = <T extends string | string[]>(\n\tcomponentName: string,\n\tfileTypeName: string,\n\tprops: UploadProps & {\n\t\tmodelValue: T;\n\t},\n\temit: ((event: \"update:fileList\", value: UploadUserFile[]) => void) &\n\t\t((event: \"update:modelValue\", value: T) => void) &\n\t\t((event: \"change\", value: T) => void),\n\tdata?: {\n\t\tmaxSize?: string | number;\n\t\tuploadApi?: (formData: FormData) => Promise<string>;\n\t\tuploadUrl?: string;\n\t}\n\t// eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/explicit-module-boundary-types\n) => {\n\tconst fileList = useVModel(props, \"fileList\", emit, { passive: true });\n\n\tconst loading = ref(false);\n\n\t// 获取 el-form 组件上下文\n\tconst formContext = inject(formContextKey, undefined);\n\t// 获取 el-form-item 组件上下文\n\tconst formItemContext = inject(formItemContextKey, undefined);\n\n\tconst mbNum = new Decimal(1024);\n\tconst maxSizeKB = new Decimal(isNumber(data?.maxSize) ? data?.maxSize : Number(data?.maxSize));\n\tconst maxSizeMB = maxSizeKB.div(mbNum);\n\n\tonMounted(() => {\n\t\tif (props.autoUpload && !data.uploadApi && !data.uploadUrl) {\n\t\t\tconsoleWarn(componentName, \"['uploadApi', 'uploadUrl'] 属性必须二选一。\");\n\t\t}\n\t});\n\n\tconst handleValue = (): void => {\n\t\tif (fileList.value.length > 0) {\n\t\t\tif (isString(props.modelValue)) {\n\t\t\t\temit(\"update:modelValue\", fileList.value[0].url as T);\n\t\t\t\temit(\"change\", fileList.value[0].url as T);\n\t\t\t} else {\n\t\t\t\tif (props.multiple) {\n\t\t\t\t\tconst value = fileList.value.map((m) => m.url);\n\t\t\t\t\temit(\"update:modelValue\", value as T);\n\t\t\t\t\temit(\"change\", value as T);\n\t\t\t\t} else {\n\t\t\t\t\temit(\"update:modelValue\", fileList.value[0].url as T);\n\t\t\t\t\temit(\"change\", fileList.value[0].url as T);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\temit(\"update:modelValue\", null);\n\t\t\temit(\"change\", null);\n\t\t}\n\t};\n\n\tconst handleHttpRequest = async (options: UploadRequestOptions): Promise<void> => {\n\t\tlet propsData;\n\t\tif (props.data) {\n\t\t\tpropsData = uploadUtil.getPropsData(options.file, props.data);\n\t\t}\n\t\tif (!data?.uploadApi && !data?.uploadUrl) {\n\t\t\tElMessage.error(`上传${fileTypeName}Api或地址不能为空`);\n\t\t\tconsoleError(componentName, `上传${fileTypeName}接口 “uploadApi” 或地址 “uploadUrl” 不能为空`);\n\t\t\treturn;\n\t\t}\n\t\tloading.value = true;\n\t\ttry {\n\t\t\tlet fileUrl: string;\n\t\t\tif (data.uploadApi) {\n\t\t\t\tfileUrl = await uploadUtil.uploadFileByApi(data.uploadApi, options.file, options.filename, propsData);\n\t\t\t} else {\n\t\t\t\tfileUrl = await uploadUtil.uploadFile(data.uploadUrl, options.file, options.filename, propsData);\n\t\t\t}\n\t\t\toptions.onSuccess(fileUrl);\n\t\t} finally {\n\t\t\tloading.value = false;\n\t\t}\n\t};\n\n\tconst handleOnSuccess = (fileUrl: string, uploadFile: UploadFile, uploadFiles: UploadFiles): void => {\n\t\tif (!fileUrl) return;\n\t\tif (!props.multiple && uploadFiles.length > 1) {\n\t\t\tuploadFiles.shift();\n\t\t}\n\t\tuploadFile.url = fileUrl;\n\t\thandleValue();\n\t\t// 调用 el-form 内部的校验方法(可自动校验)\n\t\tformItemContext?.prop && formContext?.validateField([formItemContext.prop as string]);\n\t\tElMessage.success(\"上传成功\");\n\t\tprops.onSuccess && props.onSuccess(fileUrl, uploadFile, uploadFiles);\n\t};\n\n\tconst handleOnError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles): void => {\n\t\tElNotification({\n\t\t\tmessage: `【${uploadFile.name}】${fileTypeName}上传失败,请您重新上传`,\n\t\t\ttype: \"error\",\n\t\t});\n\t\tprops.onError && props.onError(error, uploadFile, uploadFiles);\n\t};\n\n\tconst handleOnExceed = (files: File[], uploadFiles: UploadUserFile[]): void => {\n\t\tElMessage.warning(`最多只能上传 ${props.limit} 个${fileTypeName},请移除后再进行上传`);\n\t\tprops.onExceed && props.onExceed(files, uploadFiles);\n\t};\n\n\tconst handleOnUpload = (file: UploadFile | UploadRawFile): boolean => {\n\t\tconst fileSizeKB = new Decimal(file.size).div(mbNum);\n\n\t\tif (fileSizeKB.greaterThan(maxSizeKB)) {\n\t\t\tconsoleWarn(componentName, `【${file.name}】${fileTypeName}上传大小不能超过 ${maxSizeMB.toString()}MB`);\n\t\t\tElMessage.warning(`【${file.name}】${fileTypeName}上传大小不能超过 ${maxSizeMB.toString()}MB`);\n\t\t\treturn false;\n\t\t}\n\n\t\tconst fileType = \"type\" in file ? file.type : file.raw.type;\n\n\t\tif (props.accept && props.accept.split(\",\").every((e) => e !== fileType)) {\n\t\t\tconst uploadFileNames = uploadUtil.detectFileType(props.accept);\n\t\t\tconsoleError(componentName, `只允许上传【${uploadFileNames}】格式的${fileTypeName}`);\n\t\t\tElMessage.error(`只允许上传【${uploadFileNames}】格式的${fileTypeName}`);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t};\n\n\t/**\n\t * 监听 v-model 绑定数据\n\t */\n\twatch(\n\t\t() => props.modelValue,\n\t\t(newValue) => {\n\t\t\tif (newValue) {\n\t\t\t\tif (isArray(newValue)) {\n\t\t\t\t\tfileList.value = newValue.map((m) => {\n\t\t\t\t\t\tconst find = fileList.value.find((f) => f.url === m);\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname: \"\",\n\t\t\t\t\t\t\tstatus: \"success\",\n\t\t\t\t\t\t\tuid: find?.uid ?? genFileId(),\n\t\t\t\t\t\t\turl: m,\n\t\t\t\t\t\t};\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tconst find = fileList.value.find((f) => f.url === newValue);\n\t\t\t\t\tfileList.value = [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"\",\n\t\t\t\t\t\t\tstatus: \"success\",\n\t\t\t\t\t\t\tuid: find?.uid ?? genFileId(),\n\t\t\t\t\t\t\turl: newValue,\n\t\t\t\t\t\t},\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\timmediate: true,\n\t\t}\n\t);\n\n\treturn {\n\t\tfileList,\n\t\tloading,\n\t\tformContext,\n\t\tformItemContext,\n\t\tmaxSizeMB,\n\t\thandleValue,\n\t\thandleHttpRequest,\n\t\thandleOnSuccess,\n\t\thandleOnError,\n\t\thandleOnExceed,\n\t\thandleOnUpload,\n\t};\n};\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=upload.mjs.map
|
|
1
|
+
import{FaMimeType as e}from"../../../constants/mime.mjs";import"../../../constants/index.mjs";import{consoleError as r,consoleWarn as t}from"@fast-china/utils";import{ElMessage as o}from"element-plus";import{isArray as a,isFunction as i}from"lodash-unified";var n={};for(const[p,c]of Object.entries(e))c.split(",").forEach(e=>{n[e.trim()]=p});var s={detectFileType(e){const r=new Set;return e.split(",").forEach(e=>{r.add(n[e]??e)}),Array.from(r).join(",")},getPropsData(e,r){let t;t=i(r)?r(e):r;const o={};return a(r)?r.forEach(e=>{Object.assign(o,e)}):Object.assign(o,t),o},async uploadFile(e,a,i,n){if(!e)return r("uploadUtil","文件上传地址为空!"),o.error("文件上传地址为空!"),Promise.reject();const s=new FormData;s.append("file",a),s.append("fileName",i),n&&Object.keys(n).forEach(e=>{s.append(e,n[e])});try{const r=await fetch(e,{headers:{"Content-Type":"multipart/form-data"},method:"POST",body:s});return r.ok?await r.text():(t("uploadUtil","文件上传失败!"),o.error("文件上传失败!"),Promise.reject())}catch(p){return t("uploadUtil","文件上传失败!"),r("uploadUtil",p),o.error("文件上传失败!"),Promise.reject()}},async uploadFileByApi(e,a,i,n){if(!e)return r("uploadUtil","文件上传接口为空!"),o.error("文件上传接口为空!"),Promise.reject();const s=new FormData;s.append("file",a),s.append("fileName",i),n&&Object.keys(n).forEach(e=>{s.append(e,n[e])});try{return Promise.resolve(await e(s))}catch(p){return t("uploadUtil","文件上传失败!"),r("uploadUtil",p),o.error("文件上传失败!"),Promise.reject()}}};export{s as uploadUtil};
|
|
2
|
+
//# sourceMappingURL=upload.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.mjs","sources":["../../../../../packages/components/upload/utils/upload.ts"],"sourcesContent":["import { ElMessage } from \"element-plus\";\nimport { FaMimeType } from \"@fast-element-plus/constants\";\nimport { consoleError, consoleWarn } from \"@fast-china/utils\";\nimport { isArray, isFunction } from \"lodash-unified\";\nimport type { UploadRawFile } from \"element-plus\";\n\nconst FaMimeTypeNames: Record<string, keyof typeof FaMimeType> = {};\n\nfor (const [kName, vAccept] of Object.entries(FaMimeType)) {\n\tvAccept.split(\",\").forEach((tItem) => {\n\t\tFaMimeTypeNames[tItem.trim()] = kName as keyof typeof FaMimeType;\n\t});\n}\n\n/**\n * 上传工具类\n */\nexport const uploadUtil = {\n\t/**\n\t * 识别文件类型\n\t */\n\tdetectFileType(accept: string): string {\n\t\tconst detectTypes = new Set<string>();\n\t\taccept.split(\",\").forEach((mimeType) => {\n\t\t\tdetectTypes.add(FaMimeTypeNames[mimeType] ?? mimeType);\n\t\t});\n\t\treturn Array.from(detectTypes).join(\",\");\n\t},\n\t/**\n\t * 获取props data属性值\n\t */\n\tgetPropsData(rawFile: UploadRawFile, data: any | any[] | ((rawFile: UploadRawFile) => any[])): any {\n\t\tlet propsData;\n\t\tif (isFunction(data)) {\n\t\t\tpropsData = data(rawFile);\n\t\t} else {\n\t\t\tpropsData = data;\n\t\t}\n\n\t\tconst result = {};\n\t\tif (isArray(data)) {\n\t\t\tdata.forEach((item) => {\n\t\t\t\tObject.assign(result, item);\n\t\t\t});\n\t\t} else {\n\t\t\tObject.assign(result, propsData);\n\t\t}\n\n\t\treturn result;\n\t},\n\t/**\n\t * 文件上传\n\t * @param url 地址\n\t * @param file 文件\n\t * @param fileName 文件名称\n\t * @param params 参数\n\t */\n\tasync uploadFile(url: string, file: File, fileName: string, params?: unknown): Promise<string> {\n\t\tif (!url) {\n\t\t\tconsoleError(\"uploadUtil\", \"文件上传地址为空!\");\n\t\t\tElMessage.error(\"文件上传地址为空!\");\n\t\t\treturn Promise.reject();\n\t\t}\n\t\tconst formData = new FormData();\n\t\tformData.append(\"file\", file);\n\t\tformData.append(\"fileName\", fileName);\n\t\tif (params) {\n\t\t\tObject.keys(params).forEach((key) => {\n\t\t\t\tformData.append(key, params[key]);\n\t\t\t});\n\t\t}\n\t\ttry {\n\t\t\tconst response = await fetch(url, {\n\t\t\t\theaders: {\n\t\t\t\t\t\"Content-Type\": \"multipart/form-data\",\n\t\t\t\t},\n\t\t\t\tmethod: \"POST\",\n\t\t\t\tbody: formData,\n\t\t\t});\n\t\t\tif (!response.ok) {\n\t\t\t\tconsoleWarn(\"uploadUtil\", \"文件上传失败!\");\n\t\t\t\tElMessage.error(\"文件上传失败!\");\n\t\t\t\treturn Promise.reject();\n\t\t\t}\n\t\t\treturn await response.text();\n\t\t} catch (error) {\n\t\t\tconsoleWarn(\"uploadUtil\", \"文件上传失败!\");\n\t\t\tconsoleError(\"uploadUtil\", error);\n\t\t\tElMessage.error(\"文件上传失败!\");\n\t\t\treturn Promise.reject();\n\t\t}\n\t},\n\t/**\n\t * 文件上传\n\t * @param url 地址\n\t * @param file 文件\n\t * @param fileName 文件名称\n\t * @param params 参数\n\t */\n\tasync uploadFileByApi(api: (formData: FormData) => Promise<string>, file: File, fileName: string, params?: unknown): Promise<string> {\n\t\tif (!api) {\n\t\t\tconsoleError(\"uploadUtil\", \"文件上传接口为空!\");\n\t\t\tElMessage.error(\"文件上传接口为空!\");\n\t\t\treturn Promise.reject();\n\t\t}\n\t\tconst formData = new FormData();\n\t\tformData.append(\"file\", file);\n\t\tformData.append(\"fileName\", fileName);\n\t\tif (params) {\n\t\t\tObject.keys(params).forEach((key) => {\n\t\t\t\tformData.append(key, params[key]);\n\t\t\t});\n\t\t}\n\t\ttry {\n\t\t\treturn Promise.resolve<string>(await api(formData));\n\t\t} catch (error) {\n\t\t\tconsoleWarn(\"uploadUtil\", \"文件上传失败!\");\n\t\t\tconsoleError(\"uploadUtil\", error);\n\t\t\tElMessage.error(\"文件上传失败!\");\n\t\t\treturn Promise.reject();\n\t\t}\n\t},\n};\n"],"
|
|
1
|
+
{"version":3,"file":"upload.mjs","names":[],"sources":["../../../../../packages/components/upload/utils/upload.ts"],"sourcesContent":["import { ElMessage } from \"element-plus\";\nimport { FaMimeType } from \"@fast-element-plus/constants\";\nimport { consoleError, consoleWarn } from \"@fast-china/utils\";\nimport { isArray, isFunction } from \"lodash-unified\";\nimport type { UploadRawFile } from \"element-plus\";\n\nconst FaMimeTypeNames: Record<string, keyof typeof FaMimeType> = {};\n\nfor (const [kName, vAccept] of Object.entries(FaMimeType)) {\n\tvAccept.split(\",\").forEach((tItem) => {\n\t\tFaMimeTypeNames[tItem.trim()] = kName as keyof typeof FaMimeType;\n\t});\n}\n\n/**\n * 上传工具类\n */\nexport const uploadUtil = {\n\t/**\n\t * 识别文件类型\n\t */\n\tdetectFileType(accept: string): string {\n\t\tconst detectTypes = new Set<string>();\n\t\taccept.split(\",\").forEach((mimeType) => {\n\t\t\tdetectTypes.add(FaMimeTypeNames[mimeType] ?? mimeType);\n\t\t});\n\t\treturn Array.from(detectTypes).join(\",\");\n\t},\n\t/**\n\t * 获取props data属性值\n\t */\n\tgetPropsData(rawFile: UploadRawFile, data: any | any[] | ((rawFile: UploadRawFile) => any[])): any {\n\t\tlet propsData;\n\t\tif (isFunction(data)) {\n\t\t\tpropsData = data(rawFile);\n\t\t} else {\n\t\t\tpropsData = data;\n\t\t}\n\n\t\tconst result = {};\n\t\tif (isArray(data)) {\n\t\t\tdata.forEach((item) => {\n\t\t\t\tObject.assign(result, item);\n\t\t\t});\n\t\t} else {\n\t\t\tObject.assign(result, propsData);\n\t\t}\n\n\t\treturn result;\n\t},\n\t/**\n\t * 文件上传\n\t * @param url 地址\n\t * @param file 文件\n\t * @param fileName 文件名称\n\t * @param params 参数\n\t */\n\tasync uploadFile(url: string, file: File, fileName: string, params?: unknown): Promise<string> {\n\t\tif (!url) {\n\t\t\tconsoleError(\"uploadUtil\", \"文件上传地址为空!\");\n\t\t\tElMessage.error(\"文件上传地址为空!\");\n\t\t\treturn Promise.reject();\n\t\t}\n\t\tconst formData = new FormData();\n\t\tformData.append(\"file\", file);\n\t\tformData.append(\"fileName\", fileName);\n\t\tif (params) {\n\t\t\tObject.keys(params).forEach((key) => {\n\t\t\t\tformData.append(key, params[key]);\n\t\t\t});\n\t\t}\n\t\ttry {\n\t\t\tconst response = await fetch(url, {\n\t\t\t\theaders: {\n\t\t\t\t\t\"Content-Type\": \"multipart/form-data\",\n\t\t\t\t},\n\t\t\t\tmethod: \"POST\",\n\t\t\t\tbody: formData,\n\t\t\t});\n\t\t\tif (!response.ok) {\n\t\t\t\tconsoleWarn(\"uploadUtil\", \"文件上传失败!\");\n\t\t\t\tElMessage.error(\"文件上传失败!\");\n\t\t\t\treturn Promise.reject();\n\t\t\t}\n\t\t\treturn await response.text();\n\t\t} catch (error) {\n\t\t\tconsoleWarn(\"uploadUtil\", \"文件上传失败!\");\n\t\t\tconsoleError(\"uploadUtil\", error);\n\t\t\tElMessage.error(\"文件上传失败!\");\n\t\t\treturn Promise.reject();\n\t\t}\n\t},\n\t/**\n\t * 文件上传\n\t * @param url 地址\n\t * @param file 文件\n\t * @param fileName 文件名称\n\t * @param params 参数\n\t */\n\tasync uploadFileByApi(api: (formData: FormData) => Promise<string>, file: File, fileName: string, params?: unknown): Promise<string> {\n\t\tif (!api) {\n\t\t\tconsoleError(\"uploadUtil\", \"文件上传接口为空!\");\n\t\t\tElMessage.error(\"文件上传接口为空!\");\n\t\t\treturn Promise.reject();\n\t\t}\n\t\tconst formData = new FormData();\n\t\tformData.append(\"file\", file);\n\t\tformData.append(\"fileName\", fileName);\n\t\tif (params) {\n\t\t\tObject.keys(params).forEach((key) => {\n\t\t\t\tformData.append(key, params[key]);\n\t\t\t});\n\t\t}\n\t\ttry {\n\t\t\treturn Promise.resolve<string>(await api(formData));\n\t\t} catch (error) {\n\t\t\tconsoleWarn(\"uploadUtil\", \"文件上传失败!\");\n\t\t\tconsoleError(\"uploadUtil\", error);\n\t\t\tElMessage.error(\"文件上传失败!\");\n\t\t\treturn Promise.reject();\n\t\t}\n\t},\n};\n"],"mappings":"kQAMA,IAAM,EAA2D,CAAA,EAEjE,IAAK,MAAO,EAAO,KAAY,OAAO,QAAQ,GAC7C,EAAQ,MAAM,KAAK,QAAS,IAC3B,EAAgB,EAAM,QAAU,IAOlC,IAAa,EAAa,CAIzB,cAAA,CAAe,GACd,MAAM,EAAc,IAAI,IAIxB,OAHA,EAAO,MAAM,KAAK,QAAS,IAC1B,EAAY,IAAI,EAAgB,IAAa,KAEvC,MAAM,KAAK,GAAa,KAAK,MAKrC,YAAA,CAAa,EAAwB,GACpC,IAAI,EAEH,EADG,EAAW,GACF,EAAK,GAEL,EAGb,MAAM,EAAS,CAAA,EASf,OARI,EAAQ,GACX,EAAK,QAAS,IACb,OAAO,OAAO,EAAQ,KAGvB,OAAO,OAAO,EAAQ,GAGhB,GASR,gBAAM,CAAW,EAAa,EAAY,EAAkB,GAC3D,IAAK,EAGJ,OAFA,EAAa,aAAc,aAC3B,EAAU,MAAM,aACT,QAAQ,SAEhB,MAAM,EAAW,IAAI,SACrB,EAAS,OAAO,OAAQ,GACxB,EAAS,OAAO,WAAY,GACxB,GACH,OAAO,KAAK,GAAQ,QAAS,IAC5B,EAAS,OAAO,EAAK,EAAO,MAG9B,IACC,MAAM,QAAiB,MAAM,EAAK,CACjC,QAAS,CACR,eAAgB,uBAEjB,OAAQ,OACR,KAAM,IAEP,OAAK,EAAS,SAKD,EAAS,QAJrB,EAAY,aAAc,WAC1B,EAAU,MAAM,WACT,QAAQ,gBAGR,GAIR,OAHA,EAAY,aAAc,WAC1B,EAAa,aAAc,GAC3B,EAAU,MAAM,WACT,QAAQ,WAUjB,qBAAM,CAAgB,EAA8C,EAAY,EAAkB,GACjG,IAAK,EAGJ,OAFA,EAAa,aAAc,aAC3B,EAAU,MAAM,aACT,QAAQ,SAEhB,MAAM,EAAW,IAAI,SACrB,EAAS,OAAO,OAAQ,GACxB,EAAS,OAAO,WAAY,GACxB,GACH,OAAO,KAAK,GAAQ,QAAS,IAC5B,EAAS,OAAO,EAAK,EAAO,MAG9B,IACC,OAAO,QAAQ,cAAsB,EAAI,UACjC,GAIR,OAHA,EAAY,aAAc,WAC1B,EAAa,aAAc,GAC3B,EAAU,MAAM,WACT,QAAQ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import a,{faUploadImageEmits as r,faUploadImageProps as m}from"./src/uploadImage.mjs";import{withInstall as o}from"@fast-china/utils";var t=o(a);export{t as default};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../packages/components/uploadImage/index.ts"],"sourcesContent":["import { withInstall } from \"@fast-china/utils\";\nimport UploadImage, { faUploadImageEmits, faUploadImageProps } from \"./src/uploadImage\";\nimport type { ExtractPropTypes } from \"vue\";\n\nexport const FaUploadImage = withInstall(UploadImage);\nexport default FaUploadImage;\n\nexport { faUploadImageProps, faUploadImageEmits };\n\nexport type FaUploadImageInstance = InstanceType<typeof UploadImage>;\n\nexport type FaUploadImageProps = ExtractPropTypes<typeof faUploadImageProps>;\n\nexport type FaUploadImageEmits = typeof faUploadImageEmits;\n"],"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../packages/components/uploadImage/index.ts"],"sourcesContent":["import { withInstall } from \"@fast-china/utils\";\nimport UploadImage, { faUploadImageEmits, faUploadImageProps } from \"./src/uploadImage\";\nimport type { ExtractPropTypes } from \"vue\";\n\nexport const FaUploadImage = withInstall(UploadImage);\nexport default FaUploadImage;\n\nexport { faUploadImageProps, faUploadImageEmits };\n\nexport type FaUploadImageInstance = InstanceType<typeof UploadImage>;\n\nexport type FaUploadImageProps = ExtractPropTypes<typeof faUploadImageProps>;\n\nexport type FaUploadImageEmits = typeof faUploadImageEmits;\n"],"mappings":"sIAIA,IAAa,EAAgB,EAAY"}
|