Skip to content

Commit 6d8ea36

Browse files
committed
chore: update v2 to v3 md
1 parent a50fc2e commit 6d8ea36

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

migrate-from-v2.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -525,23 +525,13 @@ plugins: [
525525

526526
#### Uploader
527527

528-
- `maximize` 重命名为 `maxFileSize`
529-
- `maximum` 重命名为 `maxCount`
530-
- `listType ` 重命名为 `previewType`
531-
- `isDeletable ` 重命名为 `deletable`
532-
- `isPreview` 重命名为 ` preview`
533-
- `defaultImg` 重命名为 ` previewUrl`
534-
- `defaultFileList` 重命名为 ` defaultValue`
535-
- `uploadIconTip` 重命名为 `uploadLabel`,类型变更为 `ReactNode`
536-
- `onBeforeUpload` 重命名为 `beforeUpload`
537-
- `onBeforeXhrUpload` 重命名为 `beforeXhrUpload`
538-
- `onBeforeDelete` 重命名为 `beforeDelete`
539-
- `onRemove` 重命名为 `onDelete`
540-
- 增加 `fit`,用于图片填充模式
541-
- 增加 `value`,用于受控传值
542-
- 移除 `uploadIconSize`,可通过 icon 属性传入自定义 icon 或借助 CSS Variables 修改 icon 大小
543-
- `uploadIcon` 类型从 `string` 调整为 `ReactNode`
544-
- `onChange` 参数类型从 `{fileList: FileItem[], event: any}` 调整为 `FileItem[]`
528+
- 移除了组件内部关于ajax相关网络逻辑的处理
529+
- 移除了`url``headers``data``xhrState``withCredentials``timeout` 网络配置相关props
530+
- 移除了`onStart``onProgress``onFailure``beforeXhrUpload` 触发时机函数相关props
531+
- 新增`onOverCount`属性,文件数量超过限制时触发
532+
- 新增`onUploadQueueChange`属性,图片上传队列变化时触发
533+
- 简化`FileItem`类型的使用,除url外其他属性变为可选
534+
- 调整多选状态下`maxCount`属性的默认值为`Number.MAX_VALUE`
545535

546536
### 操作反馈
547537

0 commit comments

Comments
 (0)