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 };
}),
mapReadPretty((props) => {
// 控制显示的图片数量
const { showCount, value = [] } = props;
const dataValues = value.slice(0, showCount);
return (
<ImageUploader
{...props}
value={dataValues}
disableUpload
showUpload={false}
upload={async () => {