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:
parent
236c308d23
commit
42f7a69c82
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user