Skip to content

pxValue

描述

将值转换为像素字符串。

示例

ts
import { pxValue } from '@base-web-kits/base-tools-vue';

const px = pxValue(10); // '10px'
const px2 = pxValue('10px'); // '10px'
```来源

[VueUse](https://vueuse.org/functions/pxValue/)