| | |
| | | |
| | | import { computed, ref, toRefs, watch } from 'vue'; |
| | | |
| | | import { IconifyIcon } from '../../packages/icons/src'; |
| | | import { $t } from '../../packages/locales/src'; |
| | | import { IconifyIcon } from '@vben/icons'; |
| | | import { $t } from '@vben/locales'; |
| | | import { |
| | | defaultImageAccepts, |
| | | isFunction, |
| | | isImage, |
| | | isObject, |
| | | isString, |
| | | } from '../../packages/utils/src'; |
| | | } from '@vben/utils'; |
| | | |
| | | import { message, Modal, Upload } from 'ant-design-vue'; |
| | | |
| | |
| | | // 添加到临时上传列表 |
| | | const fileUrl = res?.url || res?.data || res; |
| | | uploadList.value.push({ |
| | | name: file.name, |
| | | name: res?.name || file.name, |
| | | url: fileUrl, |
| | | id: res?.id, |
| | | response: res, |
| | | status: UploadResultStatus.DONE, |
| | | uid: file.name + Date.now(), |
| | | }); |