Introduction
This document is mainly used to describe some features and usage of the calcSize utils.
Usage
typescript
import { calcSize } from '@/utils/common.ts'
calcSize(100) // => "100px"
calcSize('2rem') // => "2rem"
calcSize(100, { defaultUnit: 'rem' }) // => "100rem"
calcSize('auto') // => "auto"