feat: add custom isImgurl prop to Upload Component #23248
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
@@ Coverage Diff @@ ## feature #23248 +/- ## ======================================== Coverage 98.35% 98.35% ======================================== Files 365 365 Lines 7289 7290 +1 Branches 1999 2001 +2 ======================================== + Hits 7169 7170 +1 Misses 120 120
---Original--- From: "偏右"<firstname.lastname@example.org> Date: Tue, Apr 14, 2020 18:21 PM To: "ant-design/ant-design"<email@example.com>; Cc: "nick"<firstname.lastname@example.org>;"Author"<email@example.com>; Subject: Re: [ant-design/ant-design] feat: add custom isImgurl prop to Upload Component (#23248) @afc163 commented on this pull request. In components/upload/index.zh-CN.md: > @@ -34,6 +34,7 @@ title: Upload | multiple | 是否支持多选文件，`ie10+` 支持。开启后按住 ctrl 可选择多个文件 | boolean | false | | | name | 发到后台的文件参数名 | string | 'file' | | | previewFile | 自定义文件预览逻辑 | (file: File \| Blob) => Promise<dataURL: string> | 无 | | +| isImageUrl | 自定义缩略图是否使用 img 标签进行显示 | (file: UploadFile) => boolean | 无 | | 默认值可以给一个 github 源代码地址。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge.