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 };
|
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 () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user