filesbox/miniprogram/FilesBox/node_modules/@vant/weapp/lib/wxs/add-unit.wxs
2023-09-21 10:23:31 +08:00

13 lines
227 B
XML

/* eslint-disable */
var REGEXP = getRegExp('^-?\d+(\.\d+)?$');
function addUnit(value) {
if (value == null) {
return undefined;
}
return REGEXP.test('' + value) ? value + 'px' : value;
}
module.exports = addUnit;