fix: mobile-client, showCount (#1055)

Reviewed-on: daoyoucloud/tachybase#1055
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-05-28 13:43:21 +08:00 committed by sealday
parent 236c308d23
commit 42f7a69c82

View File

@ -54,9 +54,13 @@ export const MImageUploader = connect(
return { ...props }; return { ...props };
}), }),
mapReadPretty((props) => { mapReadPretty((props) => {
// 控制显示的图片数量
const { showCount, value = [] } = props;
const dataValues = value.slice(0, showCount);
return ( return (
<ImageUploader <ImageUploader
{...props} {...props}
value={dataValues}
disableUpload disableUpload
showUpload={false} showUpload={false}
upload={async () => { upload={async () => {