[new feature] Uploader: support isImage flag (#4072)

This commit is contained in:
neverland
2019-08-08 20:28:55 +08:00
committed by GitHub
parent b004ae11c0
commit c012b29a20
3 changed files with 12 additions and 1 deletions
+4 -1
View File
@@ -42,7 +42,10 @@ export default {
data() {
return {
fileList: [
{ url: 'https://img.yzcdn.cn/vant/cat.jpeg' }
{ url: 'https://img.yzcdn.cn/vant/cat.jpeg' },
// Uploader 根据文件后缀来判断是否为图片文件
// 如果图片 URL 中不包含类型信息,可以添加 isImage 标记来声明
{ url: 'https://cloud-image', isImage: true }
]
}
}