🔱: [client] sync upgrade with 3 commits [trident-sync]

Merge remote-tracking branch 'origin/main'
perf: 优化fs-images-format 加载失败时的显示
pull/14/head
GitHub Actions Bot 2023-04-18 19:24:09 +00:00
parent 529648a30c
commit 1173fb1e90
2 changed files with 17 additions and 10 deletions

View File

@ -93,6 +93,10 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
}
}
},
error: {
title: "error",
type: "image-uploader"
},
pictureCard2: {
title: "通过urls显示",
type: "image-uploader",
@ -106,16 +110,8 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
},
column: {
component: {
urls: [
{
url: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?1",
previewUrl: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?preview1"
},
{
url: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?2",
previewUrl: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?preview2"
}
]
vModel: "urls"
// urls:[{url:'xxxx',previewUrl:'xxxx'}]
}
}
},

View File

@ -8,6 +8,17 @@ const list = [
avatar: "http://greper.handsfree.work/extends/avatar.jpg",
file: ["http://greper.handsfree.work/extends/avatar.jpg", "https://www.baidu.com/img/bd_logo1.png"],
pictureCard: ["http://greper.handsfree.work/extends/avatar.jpg", "https://www.baidu.com/img/bd_logo1.png"],
error: ["http://localhost:11111/error_image"],
pictureCard2: [
{
url: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?1",
previewUrl: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?preview1"
},
{
url: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?2",
previewUrl: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?preview2"
}
],
limit: ["http://greper.handsfree.work/extends/avatar.jpg", "https://www.baidu.com/img/bd_logo1.png"],
statusRemote: "0",
keyValueType: "/2022-12-20/qygzqdjd1g.yaml"