UNPKG

@opentiny/vue-renderless

Version:

An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.

15 lines (14 loc) 265 B
import "../chunk-G2ADBYYC.js"; import { isNumber, isNull } from "@opentiny/utils"; const toPxStyle = (value) => { if (isNull(value)) { return void 0; } if (isNumber(value)) { return `${value}px`; } return String(value); }; export { toPxStyle };