diff --git a/src/components/image-picker/index.js b/src/components/image-picker/index.js index da0b75f5c..8fdc6ecb6 100644 --- a/src/components/image-picker/index.js +++ b/src/components/image-picker/index.js @@ -84,51 +84,47 @@ export default class AtImagePicker extends AtComponent { className={rootCls} style={customStyle} > - { - matrix.map((row, i) => ( - - { - row.map((item, j) => ( - item.url - ? ( + + {row.map((item, j) => ( + item.url + ? + + + + + + : + {item.type === 'btn' && ( + - - - - + + - : - {item.type === 'btn' && ( - - - - - )} - - )) - } - - )) - } + )} + + ))} + + ))} ) }