components/upload/style/picture.ts
Function genPictureCardStyle
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const genPictureCardStyle: GenerateStyle<UploadToken> = (token) => {
const { componentCls, iconCls, fontSizeLG, colorTextLightSolid, calc } = token;
const listCls = `${componentCls}-list`;
const itemCls = `${listCls}-item`;
Function genPictureStyle
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const genPictureStyle: GenerateStyle<UploadToken> = (token) => {
const { componentCls, iconCls, uploadThumbnailSize, uploadProgressOffset, calc } = token;
const listCls = `${componentCls}-list`;
const itemCls = `${listCls}-item`;