在这里找到export function convertToUnit (str: string | number | null | undefined, unit = 'px'): string | undefined {  if (str == null || str === '') {    return undefined
  } else if (isNaN(+str!)) { // **** THIS LINE ****
    return String(str)
  } else {    return `${Number(str)}${unit}`
  }
}
                    
                    
                添加回答
举报
0/150
	提交
		取消
	
 
                    